~ubuntu-branches/debian/sid/rlinetd/sid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2008-04-13 22:52:10 UTC
  • mfrom: (2.3.1 upstream) (3.1.2 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080413225210-hdjbnr9sq6hhrbds
Tags: 0.6.2-1
* New upstream version.
* Build with debhelper v6.
* Move homepage to its own field (lintian).
* Standards-Version: 3.7.3 (no changes).
* Add simple wrapper around gcc that removes -soname option while linking
  libparse.so in order to make libparse.so a private library to avoid
  dpkg warnings.
* Pass --without-nsl to configure.
* Don't ignore make clean error (lintian),

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
23
 
16
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
24
# serial 52 Debian 1.5.26-3 AC_PROG_LIBTOOL
17
25
 
18
26
 
19
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
101
109
AC_REQUIRE([AC_OBJEXT])dnl
102
110
AC_REQUIRE([AC_EXEEXT])dnl
103
111
dnl
104
 
 
105
112
AC_LIBTOOL_SYS_MAX_CMD_LEN
106
113
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
107
114
AC_LIBTOOL_OBJDIR
176
183
test -z "$ac_objext" && ac_objext=o
177
184
 
178
185
# Determine commands to create old-style static archives.
179
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
186
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
180
187
old_postinstall_cmds='chmod 644 $oldlib'
181
188
old_postuninstall_cmds=
182
189
 
203
210
  ;;
204
211
esac
205
212
 
 
213
_LT_REQUIRED_DARWIN_CHECKS
 
214
 
206
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
207
216
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
208
217
enable_win32_dll=yes, enable_win32_dll=no)
263
272
# Check for compiler boilerplate output or warnings with
264
273
# the simple compiler test code.
265
274
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
 
[ac_outfile=conftest.$ac_objext
267
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
275
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
276
ac_outfile=conftest.$ac_objext
 
277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
279
_lt_compiler_boilerplate=`cat conftest.err`
270
280
$rm conftest*
276
286
# Check for linker boilerplate output or warnings with
277
287
# the simple link test code.
278
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
 
[ac_outfile=conftest.$ac_objext
280
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
290
ac_outfile=conftest.$ac_objext
 
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
293
_lt_linker_boilerplate=`cat conftest.err`
283
 
$rm conftest*
 
294
$rm -r conftest*
284
295
])# _LT_LINKER_BOILERPLATE
285
296
 
 
297
# _LT_REQUIRED_DARWIN_CHECKS
 
298
# --------------------------
 
299
# Check for some things on darwin
 
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
301
  case $host_os in
 
302
    rhapsody* | darwin*)
 
303
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
304
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
305
 
 
306
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
307
      [lt_cv_apple_cc_single_mod=no
 
308
      if test -z "${LT_MULTI_MODULE}"; then
 
309
   # By default we will add the -single_module flag. You can override
 
310
   # by either setting the environment variable LT_MULTI_MODULE
 
311
   # non-empty at configure time, or by adding -multi_module to the
 
312
   # link flags.
 
313
   echo "int foo(void){return 1;}" > conftest.c
 
314
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
315
     -dynamiclib ${wl}-single_module conftest.c
 
316
   if test -f libconftest.dylib; then
 
317
     lt_cv_apple_cc_single_mod=yes
 
318
     rm -rf libconftest.dylib*
 
319
   fi
 
320
   rm conftest.c
 
321
      fi])
 
322
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
323
      [lt_cv_ld_exported_symbols_list],
 
324
      [lt_cv_ld_exported_symbols_list=no
 
325
      save_LDFLAGS=$LDFLAGS
 
326
      echo "_main" > conftest.sym
 
327
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
328
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
329
   [lt_cv_ld_exported_symbols_list=yes],
 
330
   [lt_cv_ld_exported_symbols_list=no])
 
331
   LDFLAGS="$save_LDFLAGS"
 
332
    ])
 
333
    case $host_os in
 
334
    rhapsody* | darwin1.[[0123]])
 
335
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
336
    darwin1.*)
 
337
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
338
    darwin*)
 
339
      # if running on 10.5 or later, the deployment target defaults
 
340
      # to the OS version, if on x86, and 10.4, the deployment
 
341
      # target defaults to 10.4. Don't you love it?
 
342
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
343
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
344
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
345
   10.[[012]]*)
 
346
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
347
   10.*)
 
348
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
349
      esac
 
350
    ;;
 
351
  esac
 
352
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
353
      _lt_dar_single_mod='$single_module'
 
354
    fi
 
355
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
356
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
357
    else
 
358
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
359
    fi
 
360
    if test "$DSYMUTIL" != ":"; then
 
361
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
362
    else
 
363
      _lt_dsymutil=
 
364
    fi
 
365
    ;;
 
366
  esac
 
367
])
286
368
 
287
369
# _LT_AC_SYS_LIBPATH_AIX
288
370
# ----------------------
293
375
# If we don't find anything, use the default library path according
294
376
# to the aix ld manual.
295
377
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
298
 
}'`
 
378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
379
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
380
lt_aix_libpath_sed='
 
381
    /Import File Strings/,/^$/ {
 
382
        /^0/ {
 
383
            s/^0  *\(.*\)$/\1/
 
384
            p
 
385
        }
 
386
    }'
 
387
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
388
# Check for a 64-bit object if we didn't find anything.
300
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
301
 
}'`; fi],[])
 
389
if test -z "$aix_libpath"; then
 
390
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
391
fi],[])
302
392
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
393
])# _LT_AC_SYS_LIBPATH_AIX
304
394
 
529
619
  rm -rf conftest*
530
620
  ;;
531
621
 
532
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
622
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
623
s390*-*linux*|sparc*-*linux*)
533
624
  # Find out which ABI we are using.
534
625
  echo 'int i;' > conftest.$ac_ext
535
626
  if AC_TRY_EVAL(ac_compile); then
536
627
    case `/usr/bin/file conftest.o` in
537
628
    *32-bit*)
538
629
      case $host in
 
630
        x86_64-*kfreebsd*-gnu)
 
631
          LD="${LD-ld} -m elf_i386_fbsd"
 
632
          ;;
539
633
        x86_64-*linux*)
540
634
          LD="${LD-ld} -m elf_i386"
541
635
          ;;
552
646
      ;;
553
647
    *64-bit*)
554
648
      case $host in
 
649
        x86_64-*kfreebsd*-gnu)
 
650
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
651
          ;;
555
652
        x86_64-*linux*)
556
653
          LD="${LD-ld} -m elf_x86_64"
557
654
          ;;
592
689
    *64-bit*)
593
690
      case $lt_cv_prog_gnu_ld in
594
691
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
595
 
      *)    LD="${LD-ld} -64" ;;
 
692
      *)
 
693
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
694
          LD="${LD-ld} -64"
 
695
        fi
 
696
        ;;
596
697
      esac
597
698
      ;;
598
699
    esac
623
724
AC_CACHE_CHECK([$1], [$2],
624
725
  [$2=no
625
726
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
727
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
728
   lt_compiler_flag="$3"
628
729
   # Insert the option either (1) after the last *FLAGS variable, or
629
730
   # (2) before a word containing "conftest.", or (3) at the end.
664
765
# ------------------------------------------------------------
665
766
# Check whether the given compiler option works
666
767
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
 
[AC_CACHE_CHECK([$1], [$2],
 
768
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
769
AC_CACHE_CHECK([$1], [$2],
668
770
  [$2=no
669
771
   save_LDFLAGS="$LDFLAGS"
670
772
   LDFLAGS="$LDFLAGS $3"
671
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
773
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
774
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
775
     # The linker can only warn and ignore the option if not recognized
674
776
     # So say no if there are warnings
684
786
       $2=yes
685
787
     fi
686
788
   fi
687
 
   $rm conftest*
 
789
   $rm -r conftest*
688
790
   LDFLAGS="$save_LDFLAGS"
689
791
])
690
792
 
782
884
    fi
783
885
    ;;
784
886
  *)
785
 
    # If test is not a shell built-in, we'll probably end up computing a
786
 
    # maximum length that is only half of the actual maximum length, but
787
 
    # we can't tell.
788
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
887
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
888
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
889
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
890
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
891
    else
 
892
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
893
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
894
               = "XX$teststring") >/dev/null 2>&1 &&
791
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
 
            lt_cv_sys_max_cmd_len=$new_result &&
793
 
            test $i != 17 # 1/2 MB should be enough
794
 
    do
795
 
      i=`expr $i + 1`
796
 
      teststring=$teststring$teststring
797
 
    done
798
 
    teststring=
799
 
    # Add a significant safety factor because C++ compilers can tack on massive
800
 
    # amounts of additional arguments before passing them to the linker.
801
 
    # It appears as though 1/2 is a usable value.
802
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
895
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
896
              lt_cv_sys_max_cmd_len=$new_result &&
 
897
              test $i != 17 # 1/2 MB should be enough
 
898
      do
 
899
        i=`expr $i + 1`
 
900
        teststring=$teststring$teststring
 
901
      done
 
902
      teststring=
 
903
      # Add a significant safety factor because C++ compilers can tack on massive
 
904
      # amounts of additional arguments before passing them to the linker.
 
905
      # It appears as though 1/2 is a usable value.
 
906
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
907
    fi
803
908
    ;;
804
909
  esac
805
910
])
952
1057
    AC_CHECK_FUNC([shl_load],
953
1058
          [lt_cv_dlopen="shl_load"],
954
1059
      [AC_CHECK_LIB([dld], [shl_load],
955
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1060
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
956
1061
        [AC_CHECK_FUNC([dlopen],
957
1062
              [lt_cv_dlopen="dlopen"],
958
1063
          [AC_CHECK_LIB([dl], [dlopen],
960
1065
            [AC_CHECK_LIB([svld], [dlopen],
961
1066
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
962
1067
              [AC_CHECK_LIB([dld], [dld_link],
963
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1068
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
964
1069
              ])
965
1070
            ])
966
1071
          ])
1026
1131
# ---------------------------------
1027
1132
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1133
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1134
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1135
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1136
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1137
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1138
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1034
1140
   mkdir conftest
1035
1141
   cd conftest
1036
1142
   mkdir out
1037
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1143
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1038
1144
 
1039
1145
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1040
1146
   # Insert the option either (1) after the last *FLAGS variable, or
1174
1280
   darwin*)
1175
1281
       if test -n "$STRIP" ; then
1176
1282
         striplib="$STRIP -x"
 
1283
         old_striplib="$STRIP -S"
1177
1284
         AC_MSG_RESULT([yes])
1178
1285
       else
1179
1286
  AC_MSG_RESULT([no])
1191
1298
# -----------------------------
1192
1299
# PORTME Fill in your ld.so characteristics
1193
1300
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1301
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1302
AC_MSG_CHECKING([dynamic linker characteristics])
1195
1303
library_names_spec=
1196
1304
libname_spec='lib$name'
1197
1305
soname_spec=
1205
1313
version_type=none
1206
1314
dynamic_linker="$host_os ld.so"
1207
1315
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1316
m4_if($1,[],[
1208
1317
if test "$GCC" = yes; then
1209
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1318
  case $host_os in
 
1319
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1320
    *) lt_awk_arg="/^libraries:/" ;;
 
1321
  esac
 
1322
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1323
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1324
    # if the path contains ";" then we assume it to be the separator
1212
1325
    # otherwise default to the standard path separator (i.e. ":") - it is
1213
1326
    # assumed that no part of a normal pathname contains ";" but that should
1214
1327
    # okay in the real world where ";" in dirpaths is itself problematic.
1215
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1328
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1216
1329
  else
1217
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1330
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1218
1331
  fi
 
1332
  # Ok, now we have the path, separated by spaces, we can step through it
 
1333
  # and add multilib dir if necessary.
 
1334
  lt_tmp_lt_search_path_spec=
 
1335
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1336
  for lt_sys_path in $lt_search_path_spec; do
 
1337
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1338
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1339
    else
 
1340
      test -d "$lt_sys_path" && \
 
1341
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1342
    fi
 
1343
  done
 
1344
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1345
BEGIN {RS=" "; FS="/|\n";} {
 
1346
  lt_foo="";
 
1347
  lt_count=0;
 
1348
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1349
    if ($lt_i != "" && $lt_i != ".") {
 
1350
      if ($lt_i == "..") {
 
1351
        lt_count++;
 
1352
      } else {
 
1353
        if (lt_count == 0) {
 
1354
          lt_foo="/" $lt_i lt_foo;
 
1355
        } else {
 
1356
          lt_count--;
 
1357
        }
 
1358
      }
 
1359
    }
 
1360
  }
 
1361
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1362
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1363
}'`
 
1364
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1219
1365
else
1220
1366
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221
 
fi
 
1367
fi])
1222
1368
need_lib_prefix=unknown
1223
1369
hardcode_into_libs=no
1224
1370
 
1236
1382
  soname_spec='${libname}${release}${shared_ext}$major'
1237
1383
  ;;
1238
1384
 
1239
 
aix4* | aix5*)
 
1385
aix[[4-9]]*)
1240
1386
  version_type=linux
1241
1387
  need_lib_prefix=no
1242
1388
  need_version=no
1375
1521
  shlibpath_overrides_runpath=yes
1376
1522
  shlibpath_var=DYLD_LIBRARY_PATH
1377
1523
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379
 
  if test "$GCC" = yes; then
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"`
1381
 
  else
1382
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1383
 
  fi
 
1524
  m4_if([$1], [],[
 
1525
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1384
1526
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385
1527
  ;;
1386
1528
 
1434
1576
    shlibpath_overrides_runpath=no
1435
1577
    hardcode_into_libs=yes
1436
1578
    ;;
1437
 
  freebsd*) # from 4.6 on
 
1579
  *) # from 4.6 on, and DragonFly
1438
1580
    shlibpath_overrides_runpath=yes
1439
1581
    hardcode_into_libs=yes
1440
1582
    ;;
1497
1639
  postinstall_cmds='chmod 555 $lib'
1498
1640
  ;;
1499
1641
 
1500
 
interix3*)
 
1642
interix[[3-9]]*)
1501
1643
  version_type=linux
1502
1644
  need_lib_prefix=no
1503
1645
  need_version=no
1568
1710
 
1569
1711
  # Append ld.so.conf contents to the search path
1570
1712
  if test -f /etc/ld.so.conf; then
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' ' '`
 
1713
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1572
1714
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1573
1715
  fi
1574
1716
 
1674
1816
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1675
1817
  ;;
1676
1818
 
 
1819
rdos*)
 
1820
  dynamic_linker=no
 
1821
  ;;
 
1822
 
1677
1823
solaris*)
1678
1824
  version_type=linux
1679
1825
  need_lib_prefix=no
1769
1915
AC_MSG_RESULT([$dynamic_linker])
1770
1916
test "$dynamic_linker" = no && can_build_shared=no
1771
1917
 
 
1918
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1919
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1920
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1921
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1922
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1923
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1924
 
1772
1925
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1773
1926
if test "$GCC" = yes; then
1774
1927
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1779
1932
# _LT_AC_TAGCONFIG
1780
1933
# ----------------
1781
1934
AC_DEFUN([_LT_AC_TAGCONFIG],
1782
 
[AC_ARG_WITH([tags],
 
1935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1936
AC_ARG_WITH([tags],
1783
1937
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1784
1938
        [include additional configurations @<:@automatic@:>@])],
1785
1939
    [tagnames="$withval"])
2040
2194
 
2041
2195
# AC_PATH_TOOL_PREFIX
2042
2196
# -------------------
2043
 
# find a file program which can recognise shared library
 
2197
# find a file program which can recognize shared library
2044
2198
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2045
2199
[AC_REQUIRE([AC_PROG_EGREP])dnl
2046
2200
AC_MSG_CHECKING([for $1])
2103
2257
 
2104
2258
# AC_PATH_MAGIC
2105
2259
# -------------
2106
 
# find a file program which can recognise a shared library
 
2260
# find a file program which can recognize a shared library
2107
2261
AC_DEFUN([AC_PATH_MAGIC],
2108
2262
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2109
2263
if test -z "$lt_cv_path_MAGIC_CMD"; then
2250
2404
# how to check for library dependencies
2251
2405
#  -- PORTME fill in with the dynamic library characteristics
2252
2406
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2253
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2407
[AC_CACHE_CHECK([how to recognize dependent libraries],
2254
2408
lt_cv_deplibs_check_method,
2255
2409
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2256
2410
lt_cv_file_magic_test_file=
2267
2421
# whether `pass_all' will *always* work, you probably want this one.
2268
2422
 
2269
2423
case $host_os in
2270
 
aix4* | aix5*)
 
2424
aix[[4-9]]*)
2271
2425
  lt_cv_deplibs_check_method=pass_all
2272
2426
  ;;
2273
2427
 
2289
2443
 
2290
2444
mingw* | pw32*)
2291
2445
  # Base MSYS/MinGW do not provide the 'file' command needed by
2292
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2293
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2294
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2446
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2447
  # unless we find 'file', for example because we are cross-compiling.
 
2448
  if ( file / ) >/dev/null 2>&1; then
 
2449
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2450
    lt_cv_file_magic_cmd='func_win32_libid'
 
2451
  else
 
2452
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2453
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2454
  fi
2295
2455
  ;;
2296
2456
 
2297
2457
darwin* | rhapsody*)
2336
2496
  esac
2337
2497
  ;;
2338
2498
 
2339
 
interix3*)
 
2499
interix[[3-9]]*)
2340
2500
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341
2501
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2342
2502
  ;;
2386
2546
  lt_cv_deplibs_check_method=pass_all
2387
2547
  ;;
2388
2548
 
 
2549
rdos*)
 
2550
  lt_cv_deplibs_check_method=pass_all
 
2551
  ;;
 
2552
 
2389
2553
solaris*)
2390
2554
  lt_cv_deplibs_check_method=pass_all
2391
2555
  ;;
2438
2602
  lt_cv_path_NM="$NM"
2439
2603
else
2440
2604
  lt_nm_to_check="${ac_tool_prefix}nm"
2441
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2605
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442
2606
    lt_nm_to_check="$lt_nm_to_check nm"
2443
2607
  fi
2444
2608
  for lt_tmp_nm in $lt_nm_to_check; do
2654
2818
_LT_AC_TAGVAR(objext, $1)=$objext
2655
2819
 
2656
2820
# Code to be used in simple compile tests
2657
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2821
lt_simple_compile_test_code="int some_variable = 0;"
2658
2822
 
2659
2823
# Code to be used in simple link tests
2660
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2824
lt_simple_link_test_code='int main(){return(0);}'
2661
2825
 
2662
2826
_LT_AC_SYS_COMPILER
2663
2827
 
2693
2857
  fi
2694
2858
  ;;
2695
2859
 
2696
 
aix4* | aix5*)
 
2860
aix[[4-9]]*)
2697
2861
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2698
2862
    test "$enable_shared" = yes && enable_static=no
2699
2863
  fi
2750
2914
_LT_AC_TAGVAR(predeps, $1)=
2751
2915
_LT_AC_TAGVAR(postdeps, $1)=
2752
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2753
2918
 
2754
2919
# Source file extension for C++ test sources.
2755
2920
ac_ext=cpp
2759
2924
_LT_AC_TAGVAR(objext, $1)=$objext
2760
2925
 
2761
2926
# Code to be used in simple compile tests
2762
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2927
lt_simple_compile_test_code="int some_variable = 0;"
2763
2928
 
2764
2929
# Code to be used in simple link tests
2765
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2930
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2766
2931
 
2767
2932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2768
2933
_LT_AC_SYS_COMPILER
2859
3024
    # FIXME: insert proper C++ library support
2860
3025
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2861
3026
    ;;
2862
 
  aix4* | aix5*)
 
3027
  aix[[4-9]]*)
2863
3028
    if test "$host_cpu" = ia64; then
2864
3029
      # On IA64, the linker does run time linking by default, so we don't
2865
3030
      # have to do anything special.
2872
3037
      # Test if we are trying to use run time linking or normal
2873
3038
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2874
3039
      # need to do runtime linking.
2875
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3040
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2876
3041
        for ld_flag in $LDFLAGS; do
2877
3042
          case $ld_flag in
2878
3043
          *-brtl*)
2908
3073
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2909
3074
        then
2910
3075
          # We have reworked collect2
2911
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3076
          :
2912
3077
        else
2913
3078
          # We have old collect2
2914
3079
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3018
3183
    fi
3019
3184
  ;;
3020
3185
      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
 
         ;;
3039
 
        esac
3040
3186
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3041
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3042
3188
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3043
3189
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3044
3190
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3045
3191
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3046
 
 
3047
 
    if test "$GXX" = yes ; then
3048
 
      lt_int_apple_cc_single_mod=no
 
3192
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3193
      if test "$GXX" = yes ; then
3049
3194
      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
 
3195
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3196
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3197
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3198
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3199
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3200
        _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${_lt_dsymutil}"
 
3201
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
3052
3202
      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
3203
      else
3067
3204
      case $cc_basename in
3068
3205
        xlc*)
3069
3206
         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'
 
3207
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3071
3208
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
3209
          # 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}'
 
3210
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3074
3211
          _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
3212
          ;;
3076
3213
       *)
3153
3290
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3154
3291
 
3155
3292
      case $host_cpu in
3156
 
      hppa*64*|ia64*)
3157
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3158
 
        ;;
 
3293
      hppa*64*|ia64*) ;;
3159
3294
      *)
3160
3295
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3161
3296
        ;;
3223
3358
        ;;
3224
3359
    esac
3225
3360
    ;;
3226
 
  interix3*)
 
3361
  interix[[3-9]]*)
3227
3362
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228
3363
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229
3364
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3315
3450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3316
3451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3317
3452
        ;;
3318
 
      pgCC*)
 
3453
      pgCC* | pgcpp*)
3319
3454
        # Portland Group C++ compiler
3320
3455
        _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
3456
        _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'
3343
3478
        # dependencies.
3344
3479
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3345
3480
        ;;
 
3481
      *)
 
3482
        case `$CC -V 2>&1 | sed 5q` in
 
3483
        *Sun\ C*)
 
3484
          # Sun C++ 5.9
 
3485
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3486
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3487
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3488
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3489
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3490
 
 
3491
          # Not sure whether something based on
 
3492
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3493
          # would be better.
 
3494
          output_verbose_link_cmd='echo'
 
3495
 
 
3496
          # Archives containing C++ object files must be created using
 
3497
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3498
          # necessary to make sure instantiated templates are included
 
3499
          # in the archive.
 
3500
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3501
          ;;
 
3502
        esac
 
3503
        ;;
3346
3504
    esac
3347
3505
    ;;
3348
3506
  lynxos*)
3381
3539
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3382
3540
    ;;
3383
3541
  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'
 
3542
    if test -f /usr/libexec/ld.so; then
 
3543
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3544
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3545
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3546
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3547
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3548
        _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'
 
3549
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3550
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3551
      fi
 
3552
      output_verbose_link_cmd='echo'
 
3553
    else
 
3554
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3392
3555
    fi
3393
 
    output_verbose_link_cmd='echo'
3394
3556
    ;;
3395
3557
  osf3*)
3396
3558
    case $cc_basename in
3552
3714
        case $host_os in
3553
3715
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3554
3716
          *)
3555
 
            # The C++ compiler is used as linker so we must use $wl
3556
 
            # flag to pass the commands to the underlying system
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.
 
3717
            # The compiler driver will combine and reorder linker options,
 
3718
            # but understands `-z linker_flag'.
3562
3719
            # Supported since Solaris 2.6 (maybe 2.5.1?)
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'
 
3720
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3564
3721
            ;;
3565
3722
        esac
3566
3723
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3607
3764
          fi
3608
3765
 
3609
3766
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3767
          case $host_os in
 
3768
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3769
          *)
 
3770
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3771
            ;;
 
3772
          esac
3610
3773
        fi
3611
3774
        ;;
3612
3775
    esac
3722
3885
# compiler output when linking a shared library.
3723
3886
# Parse the compiler output and extract the necessary
3724
3887
# objects, libraries and library flags.
3725
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3726
3890
dnl we can't use the lt_simple_compile_test_code here,
3727
3891
dnl because it contains code intended for an executable,
3728
3892
dnl not a library.  It's possible we should let each
3847
4011
 
3848
4012
$rm -f confest.$objext
3849
4013
 
 
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4016
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4017
fi
 
4018
 
3850
4019
# PORTME: override above test on systems where it is broken
3851
4020
ifelse([$1],[CXX],
3852
4021
[case $host_os in
3853
 
interix3*)
 
4022
interix[[3-9]]*)
3854
4023
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3855
4024
  # hack all around it, let's just trust "g++" to DTRT.
3856
4025
  _LT_AC_TAGVAR(predep_objects,$1)=
3858
4027
  _LT_AC_TAGVAR(postdeps,$1)=
3859
4028
  ;;
3860
4029
 
 
4030
linux*)
 
4031
  case `$CC -V 2>&1 | sed 5q` in
 
4032
  *Sun\ C*)
 
4033
    # Sun C++ 5.9
 
4034
    #
 
4035
    # The more standards-conforming stlport4 library is
 
4036
    # incompatible with the Cstd library. Avoid specifying
 
4037
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4038
    # -library=stlport4 depends on it.
 
4039
    case " $CXX $CXXFLAGS " in
 
4040
    *" -library=stlport4 "*)
 
4041
      solaris_use_stlport4=yes
 
4042
      ;;
 
4043
    esac
 
4044
    if test "$solaris_use_stlport4" != yes; then
 
4045
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4046
    fi
 
4047
    ;;
 
4048
  esac
 
4049
  ;;
 
4050
 
3861
4051
solaris*)
3862
4052
  case $cc_basename in
3863
4053
  CC*)
 
4054
    # The more standards-conforming stlport4 library is
 
4055
    # incompatible with the Cstd library. Avoid specifying
 
4056
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4057
    # -library=stlport4 depends on it.
 
4058
    case " $CXX $CXXFLAGS " in
 
4059
    *" -library=stlport4 "*)
 
4060
      solaris_use_stlport4=yes
 
4061
      ;;
 
4062
    esac
 
4063
 
3864
4064
    # Adding this requires a known-good setup of shared libraries for
3865
4065
    # Sun compiler versions before 5.6, else PIC objects from an old
3866
4066
    # archive will be linked into the output, leading to subtle bugs.
3867
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4067
    if test "$solaris_use_stlport4" != yes; then
 
4068
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4069
    fi
3868
4070
    ;;
3869
4071
  esac
3870
4072
  ;;
3871
4073
esac
3872
4074
])
3873
 
 
3874
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3875
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3876
4077
esac
3913
4114
_LT_AC_TAGVAR(objext, $1)=$objext
3914
4115
 
3915
4116
# Code to be used in simple compile tests
3916
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4117
lt_simple_compile_test_code="\
 
4118
      subroutine t
 
4119
      return
 
4120
      end
 
4121
"
3917
4122
 
3918
4123
# Code to be used in simple link tests
3919
 
lt_simple_link_test_code="      program t\n      end\n"
 
4124
lt_simple_link_test_code="\
 
4125
      program t
 
4126
      end
 
4127
"
3920
4128
 
3921
4129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3922
4130
_LT_AC_SYS_COMPILER
3948
4156
    postinstall_cmds='$RANLIB $lib'
3949
4157
  fi
3950
4158
  ;;
3951
 
aix4* | aix5*)
 
4159
aix[[4-9]]*)
3952
4160
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3953
4161
    test "$enable_shared" = yes && enable_static=no
3954
4162
  fi
3995
4203
_LT_AC_TAGVAR(objext, $1)=$objext
3996
4204
 
3997
4205
# Code to be used in simple compile tests
3998
 
lt_simple_compile_test_code="class foo {}\n"
 
4206
lt_simple_compile_test_code="class foo {}"
3999
4207
 
4000
4208
# Code to be used in simple link tests
4001
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4002
4210
 
4003
4211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4004
4212
_LT_AC_SYS_COMPILER
4051
4259
_LT_AC_TAGVAR(objext, $1)=$objext
4052
4260
 
4053
4261
# Code to be used in simple compile tests
4054
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4262
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4055
4263
 
4056
4264
# Code to be used in simple link tests
4057
4265
lt_simple_link_test_code="$lt_simple_compile_test_code"
4125
4333
    _LT_AC_TAGVAR(predeps, $1) \
4126
4334
    _LT_AC_TAGVAR(postdeps, $1) \
4127
4335
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4336
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4128
4337
    _LT_AC_TAGVAR(archive_cmds, $1) \
4129
4338
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4130
4339
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4140
4349
    _LT_AC_TAGVAR(module_cmds, $1) \
4141
4350
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4142
4351
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4352
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4143
4353
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4144
4354
    _LT_AC_TAGVAR(include_expsyms, $1); do
4145
4355
 
4186
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4187
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4188
4398
#
4189
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4190
4400
# Free Software Foundation, Inc.
4191
4401
#
4192
4402
# This file is part of GNU Libtool:
4423
4633
# shared library.
4424
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4425
4635
 
 
4636
# The directories searched by this compiler when creating a shared
 
4637
# library
 
4638
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4639
 
4426
4640
# The library search path used internally by the compiler when linking
4427
4641
# a shared library.
4428
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4511
4725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4512
4726
 
4513
4727
# Fix the shell variable \$srcfile for the compiler.
4514
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4728
fix_srcfile_path=$lt_fix_srcfile_path
4515
4729
 
4516
4730
# Set to yes if exported symbols are required.
4517
4731
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4594
4808
# ---------------------------------
4595
4809
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4596
4810
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4811
AC_REQUIRE([LT_AC_PROG_SED])
4597
4812
AC_REQUIRE([AC_PROG_NM])
4598
4813
AC_REQUIRE([AC_OBJEXT])
4599
4814
# Check for command to grab the raw symbol name followed by C symbol from nm.
4771
4986
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4772
4987
    cat conftest.$ac_ext >&5
4773
4988
  fi
4774
 
  rm -f conftest* conftst*
 
4989
  rm -rf conftest* conftst*
4775
4990
 
4776
4991
  # Do not use the global_symbol_pipe unless it works.
4777
4992
  if test "$pipe_works" = yes; then
4820
5035
      # like `-m68040'.
4821
5036
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4822
5037
      ;;
4823
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5038
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4824
5039
      # PIC is the default for these OSes.
4825
5040
      ;;
4826
 
    mingw* | os2* | pw32*)
 
5041
    mingw* | cygwin* | os2* | pw32*)
4827
5042
      # This hack is so that the source file can tell whether it is being
4828
5043
      # built for inclusion in a dll (and should export symbols for example).
4829
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5044
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5045
      # (--disable-auto-import) libraries
 
5046
      m4_if([$1], [GCJ], [],
 
5047
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4830
5048
      ;;
4831
5049
    darwin* | rhapsody*)
4832
5050
      # PIC is the default on this platform
4837
5055
      # DJGPP does not support shared libraries at all
4838
5056
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4839
5057
      ;;
4840
 
    interix3*)
 
5058
    interix[[3-9]]*)
4841
5059
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4842
5060
      # Instead, we relocate shared libraries at runtime.
4843
5061
      ;;
4863
5081
    esac
4864
5082
  else
4865
5083
    case $host_os in
4866
 
      aix4* | aix5*)
 
5084
      aix[[4-9]]*)
4867
5085
        # All AIX code is PIC.
4868
5086
        if test "$host_cpu" = ia64; then
4869
5087
          # AIX 5 now supports IA64 processor
4959
5177
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4960
5178
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4961
5179
            ;;
4962
 
          pgCC*)
 
5180
          pgCC* | pgcpp*)
4963
5181
            # Portland Group C++ compiler.
4964
5182
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4965
5183
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4973
5191
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4974
5192
            ;;
4975
5193
          *)
 
5194
            case `$CC -V 2>&1 | sed 5q` in
 
5195
            *Sun\ C*)
 
5196
              # Sun C++ 5.9
 
5197
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5198
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5199
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5200
              ;;
 
5201
            esac
4976
5202
            ;;
4977
5203
        esac
4978
5204
        ;;
5093
5319
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5094
5320
      ;;
5095
5321
 
5096
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5322
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5097
5323
      # PIC is the default for these OSes.
5098
5324
      ;;
5099
5325
 
5100
 
    mingw* | pw32* | os2*)
 
5326
    mingw* | cygwin* | pw32* | os2*)
5101
5327
      # This hack is so that the source file can tell whether it is being
5102
5328
      # built for inclusion in a dll (and should export symbols for example).
5103
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5329
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5330
      # (--disable-auto-import) libraries
 
5331
      m4_if([$1], [GCJ], [],
 
5332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5104
5333
      ;;
5105
5334
 
5106
5335
    darwin* | rhapsody*)
5109
5338
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5110
5339
      ;;
5111
5340
 
5112
 
    interix3*)
 
5341
    interix[[3-9]]*)
5113
5342
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5114
5343
      # Instead, we relocate shared libraries at runtime.
5115
5344
      ;;
5167
5396
       esac
5168
5397
       ;;
5169
5398
 
5170
 
    mingw* | pw32* | os2*)
 
5399
    mingw* | cygwin* | pw32* | os2*)
5171
5400
      # This hack is so that the source file can tell whether it is being
5172
5401
      # built for inclusion in a dll (and should export symbols for example).
5173
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5402
      m4_if([$1], [GCJ], [],
 
5403
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5174
5404
      ;;
5175
5405
 
5176
5406
    hpux9* | hpux10* | hpux11*)
5219
5449
        # All Alpha code is PIC.
5220
5450
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5221
5451
        ;;
 
5452
      *)
 
5453
        case `$CC -V 2>&1 | sed 5q` in
 
5454
        *Sun\ C*)
 
5455
          # Sun C 5.9
 
5456
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5457
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5458
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5459
          ;;
 
5460
        *Sun\ F*)
 
5461
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5462
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5463
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5464
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5465
          ;;
 
5466
        esac
 
5467
        ;;
5222
5468
      esac
5223
5469
      ;;
5224
5470
 
5228
5474
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5229
5475
      ;;
5230
5476
 
 
5477
    rdos*)
 
5478
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5479
      ;;
 
5480
 
5231
5481
    solaris*)
5232
5482
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5233
5483
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5287
5537
#
5288
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5289
5539
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5290
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5540
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5291
5541
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5292
5542
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5293
5543
     "" | " "*) ;;
5311
5561
#
5312
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5313
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5314
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5564
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5315
5565
  $lt_tmp_static_flag,
5316
5566
  [],
5317
5567
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5322
5572
# ------------------------------------
5323
5573
# See if the linker supports building shared libraries.
5324
5574
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5325
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5575
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5576
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5326
5577
ifelse([$1],[CXX],[
5327
5578
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5328
5579
  case $host_os in
5329
 
  aix4* | aix5*)
 
5580
  aix[[4-9]]*)
5330
5581
    # If we're using GNU nm, then we don't want the "-C" option.
5331
5582
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5332
5583
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5339
5590
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5340
5591
  ;;
5341
5592
  cygwin* | mingw*)
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'
 
5593
    _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'
5343
5594
  ;;
5344
5595
  linux* | k*bsd*-gnu)
5345
5596
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5348
5599
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5349
5600
  ;;
5350
5601
  esac
 
5602
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5351
5603
],[
5352
5604
  runpath_var=
5353
5605
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5378
5630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5379
5631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5380
5632
  # as well as any symbol that contains `d'.
5381
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5633
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5382
5634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5383
5635
  # platforms (ab)use it in PIC code, but their linkers get confused if
5384
5636
  # the symbol is explicitly referenced.  Since portable code cannot
5385
5637
  # rely on this symbol name, it's probably fine to never include it in
5386
5638
  # preloaded symbol tables.
 
5639
  # Exclude shared library initialization/finalization symbols.
 
5640
dnl Note also adjust exclude_expsyms for C++ above.
5387
5641
  extract_expsyms_cmds=
5388
5642
  # Just being paranoid about ensuring that cc_basename is set.
5389
5643
  _LT_CC_BASENAME([$compiler])
5433
5687
 
5434
5688
    # See if GNU ld supports shared libraries.
5435
5689
    case $host_os in
5436
 
    aix3* | aix4* | aix5*)
 
5690
    aix[[3-9]]*)
5437
5691
      # On AIX/PPC, the GNU linker is very broken
5438
5692
      if test "$host_cpu" != ia64; then
5439
5693
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5481
5735
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5482
5736
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5483
5737
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
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'
 
5738
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5485
5739
 
5486
5740
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5487
5741
        _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'
5499
5753
      fi
5500
5754
      ;;
5501
5755
 
5502
 
    interix3*)
 
5756
    interix[[3-9]]*)
5503
5757
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5504
5758
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505
5759
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5514
5768
      _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
5769
      ;;
5516
5770
 
5517
 
    linux* | k*bsd*-gnu)
 
5771
    gnu* | linux* | k*bsd*-gnu)
5518
5772
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5519
5773
        tmp_addflag=
5520
5774
        case $cc_basename,$host_cpu in
5532
5786
        ifc* | ifort*)                  # Intel Fortran compiler
5533
5787
          tmp_addflag=' -nofor_main' ;;
5534
5788
        esac
5535
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5789
        case `$CC -V 2>&1 | sed 5q` in
 
5790
        *Sun\ C*)                       # Sun C 5.9
 
5791
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5792
          tmp_sharedflag='-G' ;;
 
5793
        *Sun\ F*)                       # Sun Fortran 8.3
 
5794
          tmp_sharedflag='-G' ;;
 
5795
        *)
 
5796
          tmp_sharedflag='-shared' ;;
 
5797
        esac
 
5798
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536
5799
 
5537
5800
        if test $supports_anon_versioning = yes; then
5538
5801
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
5802
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
5803
  $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'
 
5804
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5542
5805
        fi
5543
5806
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5544
5807
      else
5579
5842
 
5580
5843
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581
5844
      case `$LD -v 2>&1` in
5582
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5845
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583
5846
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584
5847
        cat <<_LT_EOF 1>&2
5585
5848
 
5644
5907
      fi
5645
5908
      ;;
5646
5909
 
5647
 
    aix4* | aix5*)
 
5910
    aix[[4-9]]*)
5648
5911
      if test "$host_cpu" = ia64; then
5649
5912
        # On IA64, the linker does run time linking by default, so we don't
5650
5913
        # have to do anything special.
5664
5927
        # Test if we are trying to use run time linking or normal
5665
5928
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5666
5929
        # need to do runtime linking.
5667
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5930
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5668
5931
          for ld_flag in $LDFLAGS; do
5669
5932
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5670
5933
            aix_use_runtimelinking=yes
5698
5961
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5699
5962
          then
5700
5963
          # We have reworked collect2
5701
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5964
          :
5702
5965
          else
5703
5966
          # We have old collect2
5704
5967
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5791
6054
      # The linker will automatically build a .lib file if we build a DLL.
5792
6055
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5793
6056
      # FIXME: Should let the user specify the lib program.
5794
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6057
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5795
6058
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5796
6059
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5797
6060
      ;;
5824
6087
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5825
6088
    if test "$GCC" = yes ; then
5826
6089
        output_verbose_link_cmd='echo'
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}'
 
6090
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6091
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6092
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6093
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5832
6094
    else
5833
6095
      case $cc_basename in
5834
6096
        xlc*)
5835
6097
         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'
 
6098
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5837
6099
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
6100
          # 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}'
 
6101
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5840
6102
          _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}'
5841
6103
          ;;
5842
6104
       *)
5998
6260
      ;;
5999
6261
 
6000
6262
    openbsd*)
6001
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6002
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
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'
6006
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6263
      if test -f /usr/libexec/ld.so; then
 
6264
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6265
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6266
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6267
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6268
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6269
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6270
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6271
        else
 
6272
          case $host_os in
 
6273
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6274
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6275
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6276
             ;;
 
6277
           *)
 
6278
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6279
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6280
             ;;
 
6281
          esac
 
6282
        fi
6008
6283
      else
6009
 
       case $host_os in
6010
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6011
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6013
 
           ;;
6014
 
         *)
6015
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6016
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6017
 
           ;;
6018
 
       esac
 
6284
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6019
6285
      fi
6020
6286
      ;;
6021
6287
 
6074
6340
      case $host_os in
6075
6341
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6076
6342
      *)
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.
 
6343
        # The compiler driver will combine and reorder linker options,
 
6344
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6345
        # but is careful enough not to reorder.
6081
6346
        # 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 ;;
 
6347
        if test "$GCC" = yes; then
 
6348
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6349
        else
 
6350
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6351
        fi
 
6352
        ;;
6088
6353
      esac
6089
6354
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6090
6355
      ;;
6141
6406
      fi
6142
6407
      ;;
6143
6408
 
6144
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6409
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6145
6410
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6146
6411
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6147
6412
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6216
6481
      # to ld, don't add -lc before -lgcc.
6217
6482
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6218
6483
      $rm conftest*
6219
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6484
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6220
6485
 
6221
6486
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6222
6487
        soname=conftest
6319
6584
[AC_CHECK_TOOL(RC, windres, no)
6320
6585
])
6321
6586
 
 
6587
 
 
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6590
 
 
6591
# _AS_TEST_PREPARE
 
6592
# ----------------
 
6593
m4_ifndef([_AS_TEST_PREPARE],
 
6594
[m4_defun([_AS_TEST_PREPARE],
 
6595
[if test -x / >/dev/null 2>&1; then
 
6596
  as_executable_p='test -x'
 
6597
else
 
6598
  as_executable_p='test -f'
 
6599
fi
 
6600
])])# _AS_TEST_PREPARE
 
6601
 
 
6602
# AS_EXECUTABLE_P
 
6603
# ---------------
 
6604
# Check whether a file is executable.
 
6605
m4_ifndef([AS_EXECUTABLE_P],
 
6606
[m4_defun([AS_EXECUTABLE_P],
 
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6608
$as_executable_p $1[]dnl
 
6609
])])# AS_EXECUTABLE_P
 
6610
 
6322
6611
# NOTE: This macro has been submitted for inclusion into   #
6323
6612
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6324
6613
#  a released version of Autoconf we should remove this    #
6339
6628
  test -z "$as_dir" && as_dir=.
6340
6629
  for lt_ac_prog in sed gsed; do
6341
6630
    for ac_exec_ext in '' $ac_executable_extensions; do
6342
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6631
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6343
6632
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6344
6633
      fi
6345
6634
    done
6346
6635
  done
6347
6636
done
 
6637
IFS=$as_save_IFS
6348
6638
lt_ac_max=0
6349
6639
lt_ac_count=0
6350
6640
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6377
6667
done
6378
6668
])
6379
6669
SED=$lt_cv_path_SED
 
6670
AC_SUBST([SED])
6380
6671
AC_MSG_RESULT([$SED])
6381
6672
])
6382
6673
 
6383
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6674
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6384
6675
#
6385
6676
# This file is free software; the Free Software Foundation
6386
6677
# gives unlimited permission to copy and/or distribute it,
6390
6681
# ----------------------------
6391
6682
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6392
6683
# generated from the m4 files accompanying Automake X.Y.
6393
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6684
# (This private macro should not be called outside this file.)
 
6685
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6686
[am__api_version='1.10'
 
6687
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6688
dnl require some minimum version.  Point them to the right macro.
 
6689
m4_if([$1], [1.10.1], [],
 
6690
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6691
])
 
6692
 
 
6693
# _AM_AUTOCONF_VERSION(VERSION)
 
6694
# -----------------------------
 
6695
# aclocal traces this macro to find the Autoconf version.
 
6696
# This is a private macro too.  Using m4_define simplifies
 
6697
# the logic in aclocal, which can simply ignore this definition.
 
6698
m4_define([_AM_AUTOCONF_VERSION], [])
6394
6699
 
6395
6700
# AM_SET_CURRENT_AUTOMAKE_VERSION
6396
6701
# -------------------------------
6397
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6702
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6398
6703
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6399
6704
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6400
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6705
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
6706
m4_ifndef([AC_AUTOCONF_VERSION],
 
6707
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
6708
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6401
6709
 
6402
6710
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6403
6711
 
6454
6762
 
6455
6763
# AM_CONDITIONAL                                            -*- Autoconf -*-
6456
6764
 
6457
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6765
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6458
6766
# Free Software Foundation, Inc.
6459
6767
#
6460
6768
# This file is free software; the Free Software Foundation
6461
6769
# gives unlimited permission to copy and/or distribute it,
6462
6770
# with or without modifications, as long as this notice is preserved.
6463
6771
 
6464
 
# serial 7
 
6772
# serial 8
6465
6773
 
6466
6774
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6467
6775
# -------------------------------------
6470
6778
[AC_PREREQ(2.52)dnl
6471
6779
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6472
6780
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6473
 
AC_SUBST([$1_TRUE])
6474
 
AC_SUBST([$1_FALSE])
 
6781
AC_SUBST([$1_TRUE])dnl
 
6782
AC_SUBST([$1_FALSE])dnl
 
6783
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6784
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6475
6785
if $2; then
6476
6786
  $1_TRUE=
6477
6787
  $1_FALSE='#'
6485
6795
Usually this means the macro was only invoked conditionally.]])
6486
6796
fi])])
6487
6797
 
6488
 
 
6489
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6798
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6490
6799
# Free Software Foundation, Inc.
6491
6800
#
6492
6801
# This file is free software; the Free Software Foundation
6493
6802
# gives unlimited permission to copy and/or distribute it,
6494
6803
# with or without modifications, as long as this notice is preserved.
6495
6804
 
6496
 
# serial 8
 
6805
# serial 9
6497
6806
 
6498
6807
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6499
6808
# written in clear, in which case automake, when reading aclocal.m4,
6521
6830
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6522
6831
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6523
6832
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6833
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6524
6834
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6525
6835
                   [depcc="$$1"   am_compiler_list=])
6526
6836
 
6586
6896
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6587
6897
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6588
6898
         >/dev/null 2>conftest.err &&
 
6899
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6589
6900
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6590
6901
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6591
6902
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6638
6949
  AMDEPBACKSLASH='\'
6639
6950
fi
6640
6951
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6641
 
AC_SUBST([AMDEPBACKSLASH])
 
6952
AC_SUBST([AMDEPBACKSLASH])dnl
 
6953
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6642
6954
])
6643
6955
 
6644
6956
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6663
6975
  # some people rename them; so instead we look at the file content.
6664
6976
  # Grep'ing the first line is not enough: some people post-process
6665
6977
  # each Makefile.in and add a new line on top of each file to say so.
6666
 
  # So let's grep whole file.
6667
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6978
  # Grep'ing the whole file is not good either: AIX grep has a line
 
6979
  # limit of 2048, but all sed's we know have understand at least 4000.
 
6980
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6668
6981
    dirpart=`AS_DIRNAME("$mf")`
6669
6982
  else
6670
6983
    continue
6739
7052
 
6740
7053
# Do all the work for Automake.                             -*- Autoconf -*-
6741
7054
 
6742
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6743
 
# Free Software Foundation, Inc.
 
7055
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7056
# 2005, 2006, 2008 Free Software Foundation, Inc.
6744
7057
#
6745
7058
# This file is free software; the Free Software Foundation
6746
7059
# gives unlimited permission to copy and/or distribute it,
6747
7060
# with or without modifications, as long as this notice is preserved.
6748
7061
 
6749
 
# serial 12
 
7062
# serial 13
6750
7063
 
6751
7064
# This macro actually does too much.  Some checks are only needed if
6752
7065
# your package does certain things.  But this isn't really a big deal.
6763
7076
# arguments mandatory, and then we can depend on a new Autoconf
6764
7077
# release and drop the old call support.
6765
7078
AC_DEFUN([AM_INIT_AUTOMAKE],
6766
 
[AC_PREREQ([2.58])dnl
 
7079
[AC_PREREQ([2.60])dnl
6767
7080
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6768
7081
dnl the ones we care about.
6769
7082
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6770
7083
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6771
7084
AC_REQUIRE([AC_PROG_INSTALL])dnl
6772
 
# test to see if srcdir already configured
6773
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6774
 
   test -f $srcdir/config.status; then
6775
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7085
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7086
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7087
  # is not polluted with repeated "-I."
 
7088
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7089
  # test to see if srcdir already configured
 
7090
  if test -f $srcdir/config.status; then
 
7091
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7092
  fi
6776
7093
fi
6777
7094
 
6778
7095
# test whether we have cygpath
6792
7109
 AC_SUBST([PACKAGE], [$1])dnl
6793
7110
 AC_SUBST([VERSION], [$2])],
6794
7111
[_AM_SET_OPTIONS([$1])dnl
 
7112
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7113
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7114
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6795
7115
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6796
7116
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6797
7117
 
6827
7147
                  [_AM_DEPENDENCIES(CXX)],
6828
7148
                  [define([AC_PROG_CXX],
6829
7149
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7150
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7151
                  [_AM_DEPENDENCIES(OBJC)],
 
7152
                  [define([AC_PROG_OBJC],
 
7153
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6830
7154
])
6831
7155
])
6832
7156
 
6840
7164
# our stamp files there.
6841
7165
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6842
7166
[# Compute $1's index in $config_headers.
 
7167
_am_arg=$1
6843
7168
_am_stamp_count=1
6844
7169
for _am_header in $config_headers :; do
6845
7170
  case $_am_header in
6846
 
    $1 | $1:* )
 
7171
    $_am_arg | $_am_arg:* )
6847
7172
      break ;;
6848
7173
    * )
6849
7174
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6850
7175
  esac
6851
7176
done
6852
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7177
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
6853
7178
 
6854
7179
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
6855
7180
#
6862
7187
# Define $install_sh.
6863
7188
AC_DEFUN([AM_PROG_INSTALL_SH],
6864
7189
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6865
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7190
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6866
7191
AC_SUBST(install_sh)])
6867
7192
 
6868
7193
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
6990
7315
 
6991
7316
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
6992
7317
 
6993
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7318
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6994
7319
# Free Software Foundation, Inc.
6995
7320
#
6996
7321
# This file is free software; the Free Software Foundation
6997
7322
# gives unlimited permission to copy and/or distribute it,
6998
7323
# with or without modifications, as long as this notice is preserved.
6999
7324
 
7000
 
# serial 4
 
7325
# serial 5
7001
7326
 
7002
7327
# AM_MISSING_PROG(NAME, PROGRAM)
7003
7328
# ------------------------------
7013
7338
# If it does, set am_missing_run to use it, otherwise, to nothing.
7014
7339
AC_DEFUN([AM_MISSING_HAS_RUN],
7015
7340
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7341
AC_REQUIRE_AUX_FILE([missing])dnl
7016
7342
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7017
7343
# Use eval to expand $SHELL
7018
7344
if eval "$MISSING --run true"; then
7023
7349
fi
7024
7350
])
7025
7351
 
7026
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7352
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7027
7353
#
7028
7354
# This file is free software; the Free Software Foundation
7029
7355
# gives unlimited permission to copy and/or distribute it,
7031
7357
 
7032
7358
# AM_PROG_MKDIR_P
7033
7359
# ---------------
7034
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7035
 
#
7036
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7037
 
# created by `make install' are always world readable, even if the
7038
 
# installer happens to have an overly restrictive umask (e.g. 077).
7039
 
# This was a mistake.  There are at least two reasons why we must not
7040
 
# use `-m 0755':
7041
 
#   - it causes special bits like SGID to be ignored,
7042
 
#   - it may be too restrictive (some setups expect 775 directories).
7043
 
#
7044
 
# Do not use -m 0755 and let people choose whatever they expect by
7045
 
# setting umask.
7046
 
#
7047
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7048
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7049
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7050
 
# concurrently, both version can detect that a/ is missing, but only
7051
 
# one can create it and the other will error out.  Consequently we
7052
 
# restrict ourselves to GNU make (using the --version option ensures
7053
 
# this.)
 
7360
# Check for `mkdir -p'.
7054
7361
AC_DEFUN([AM_PROG_MKDIR_P],
7055
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7056
 
  # We used to keeping the `.' as first argument, in order to
7057
 
  # allow $(mkdir_p) to be used without argument.  As in
7058
 
  #   $(mkdir_p) $(somedir)
7059
 
  # where $(somedir) is conditionally defined.  However this is wrong
7060
 
  # for two reasons:
7061
 
  #  1. if the package is installed by a user who cannot write `.'
7062
 
  #     make install will fail,
7063
 
  #  2. the above comment should most certainly read
7064
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7065
 
  #     so it does not work when $(somedir) is undefined and
7066
 
  #     $(DESTDIR) is not.
7067
 
  #  To support the latter case, we have to write
7068
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7069
 
  #  so the `.' trick is pointless.
7070
 
  mkdir_p='mkdir -p --'
7071
 
else
7072
 
  # On NextStep and OpenStep, the `mkdir' command does not
7073
 
  # recognize any option.  It will interpret all options as
7074
 
  # directories to create, and then abort because `.' already
7075
 
  # exists.
7076
 
  for d in ./-p ./--version;
7077
 
  do
7078
 
    test -d $d && rmdir $d
7079
 
  done
7080
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7081
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7082
 
    mkdir_p='$(mkinstalldirs)'
7083
 
  else
7084
 
    mkdir_p='$(install_sh) -d'
7085
 
  fi
7086
 
fi
7087
 
AC_SUBST([mkdir_p])])
 
7362
[AC_PREREQ([2.60])dnl
 
7363
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7364
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7365
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7366
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7367
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7368
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7369
dnl adjustment using top_builddir (which is defined more often than
 
7370
dnl MKDIR_P).
 
7371
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7372
case $mkdir_p in
 
7373
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7374
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7375
esac
 
7376
])
7088
7377
 
7089
7378
# Helper functions for option handling.                     -*- Autoconf -*-
7090
7379
 
7196
7485
if test "$cross_compiling" != no; then
7197
7486
  AC_CHECK_TOOL([STRIP], [strip], :)
7198
7487
fi
7199
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7488
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7200
7489
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7201
7490
 
 
7491
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7492
#
 
7493
# This file is free software; the Free Software Foundation
 
7494
# gives unlimited permission to copy and/or distribute it,
 
7495
# with or without modifications, as long as this notice is preserved.
 
7496
 
 
7497
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7498
# ---------------------------
 
7499
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7500
# This macro is traced by Automake.
 
7501
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7502
 
7202
7503
# Check how to create a tarball.                            -*- Autoconf -*-
7203
7504
 
7204
7505
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.