~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

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.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
 
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 AC_PROG_LIBTOOL
 
24
# serial 52 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
 
1397
1539
  dynamic_linker=no
1398
1540
  ;;
1399
1541
 
1400
 
kfreebsd*-gnu)
1401
 
  version_type=linux
1402
 
  need_lib_prefix=no
1403
 
  need_version=no
1404
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1405
 
  soname_spec='${libname}${release}${shared_ext}$major'
1406
 
  shlibpath_var=LD_LIBRARY_PATH
1407
 
  shlibpath_overrides_runpath=no
1408
 
  hardcode_into_libs=yes
1409
 
  dynamic_linker='GNU ld.so'
1410
 
  ;;
1411
 
 
1412
1542
freebsd* | dragonfly*)
1413
1543
  # DragonFly does not have aout.  When/if they implement a new
1414
1544
  # versioning mechanism, adjust this.
1446
1576
    shlibpath_overrides_runpath=no
1447
1577
    hardcode_into_libs=yes
1448
1578
    ;;
1449
 
  freebsd*) # from 4.6 on
 
1579
  *) # from 4.6 on, and DragonFly
1450
1580
    shlibpath_overrides_runpath=yes
1451
1581
    hardcode_into_libs=yes
1452
1582
    ;;
1509
1639
  postinstall_cmds='chmod 555 $lib'
1510
1640
  ;;
1511
1641
 
1512
 
interix3*)
 
1642
interix[[3-9]]*)
1513
1643
  version_type=linux
1514
1644
  need_lib_prefix=no
1515
1645
  need_version=no
1564
1694
  ;;
1565
1695
 
1566
1696
# This must be Linux ELF.
1567
 
linux*)
 
1697
linux* | k*bsd*-gnu)
1568
1698
  version_type=linux
1569
1699
  need_lib_prefix=no
1570
1700
  need_version=no
1578
1708
  # before this can be enabled.
1579
1709
  hardcode_into_libs=yes
1580
1710
 
1581
 
  # find out which ABI we are using
1582
 
  libsuff=
1583
 
  case "$host_cpu" in
1584
 
  x86_64*|s390x*|powerpc64*)
1585
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1586
 
    if AC_TRY_EVAL(ac_compile); then
1587
 
      case `/usr/bin/file conftest.$ac_objext` in
1588
 
      *64-bit*)
1589
 
        libsuff=64
1590
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1591
 
        ;;
1592
 
      esac
1593
 
    fi
1594
 
    rm -rf conftest*
1595
 
    ;;
1596
 
  esac
1597
 
 
1598
1711
  # Append ld.so.conf contents to the search path
1599
1712
  if test -f /etc/ld.so.conf; then
1600
 
    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' ' '`
1601
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
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' ' '`
 
1714
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1602
1715
  fi
1603
1716
 
1604
1717
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1610
1723
  dynamic_linker='GNU/Linux ld.so'
1611
1724
  ;;
1612
1725
 
1613
 
knetbsd*-gnu)
1614
 
  version_type=linux
1615
 
  need_lib_prefix=no
1616
 
  need_version=no
1617
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1618
 
  soname_spec='${libname}${release}${shared_ext}$major'
1619
 
  shlibpath_var=LD_LIBRARY_PATH
1620
 
  shlibpath_overrides_runpath=no
1621
 
  hardcode_into_libs=yes
1622
 
  dynamic_linker='GNU ld.so'
1623
 
  ;;
1624
 
 
1625
1726
netbsd*)
1626
1727
  version_type=sunos
1627
1728
  need_lib_prefix=no
1703
1804
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1704
1805
  ;;
1705
1806
 
 
1807
rdos*)
 
1808
  dynamic_linker=no
 
1809
  ;;
 
1810
 
1706
1811
solaris*)
1707
1812
  version_type=linux
1708
1813
  need_lib_prefix=no
1798
1903
AC_MSG_RESULT([$dynamic_linker])
1799
1904
test "$dynamic_linker" = no && can_build_shared=no
1800
1905
 
 
1906
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1907
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1908
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1909
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1910
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1911
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1912
 
1801
1913
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1802
1914
if test "$GCC" = yes; then
1803
1915
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1808
1920
# _LT_AC_TAGCONFIG
1809
1921
# ----------------
1810
1922
AC_DEFUN([_LT_AC_TAGCONFIG],
1811
 
[AC_ARG_WITH([tags],
 
1923
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1924
AC_ARG_WITH([tags],
1812
1925
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1813
1926
        [include additional configurations @<:@automatic@:>@])],
1814
1927
    [tagnames="$withval"])
2069
2182
 
2070
2183
# AC_PATH_TOOL_PREFIX
2071
2184
# -------------------
2072
 
# find a file program which can recognise shared library
 
2185
# find a file program which can recognize shared library
2073
2186
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2074
2187
[AC_REQUIRE([AC_PROG_EGREP])dnl
2075
2188
AC_MSG_CHECKING([for $1])
2132
2245
 
2133
2246
# AC_PATH_MAGIC
2134
2247
# -------------
2135
 
# find a file program which can recognise a shared library
 
2248
# find a file program which can recognize a shared library
2136
2249
AC_DEFUN([AC_PATH_MAGIC],
2137
2250
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2138
2251
if test -z "$lt_cv_path_MAGIC_CMD"; then
2279
2392
# how to check for library dependencies
2280
2393
#  -- PORTME fill in with the dynamic library characteristics
2281
2394
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2282
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2395
[AC_CACHE_CHECK([how to recognize dependent libraries],
2283
2396
lt_cv_deplibs_check_method,
2284
2397
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2285
2398
lt_cv_file_magic_test_file=
2296
2409
# whether `pass_all' will *always* work, you probably want this one.
2297
2410
 
2298
2411
case $host_os in
2299
 
aix4* | aix5*)
 
2412
aix[[4-9]]*)
2300
2413
  lt_cv_deplibs_check_method=pass_all
2301
2414
  ;;
2302
2415
 
2318
2431
 
2319
2432
mingw* | pw32*)
2320
2433
  # Base MSYS/MinGW do not provide the 'file' command needed by
2321
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2322
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2323
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2434
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2435
  # unless we find 'file', for example because we are cross-compiling.
 
2436
  if ( file / ) >/dev/null 2>&1; then
 
2437
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2438
    lt_cv_file_magic_cmd='func_win32_libid'
 
2439
  else
 
2440
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2441
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2442
  fi
2324
2443
  ;;
2325
2444
 
2326
2445
darwin* | rhapsody*)
2327
2446
  lt_cv_deplibs_check_method=pass_all
2328
2447
  ;;
2329
2448
 
2330
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2449
freebsd* | dragonfly*)
2331
2450
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2332
2451
    case $host_cpu in
2333
2452
    i*86 )
2365
2484
  esac
2366
2485
  ;;
2367
2486
 
2368
 
interix3*)
 
2487
interix[[3-9]]*)
2369
2488
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2370
2489
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2371
2490
  ;;
2381
2500
  ;;
2382
2501
 
2383
2502
# This must be Linux ELF.
2384
 
linux*)
 
2503
linux* | k*bsd*-gnu)
2385
2504
  lt_cv_deplibs_check_method=pass_all
2386
2505
  ;;
2387
2506
 
2415
2534
  lt_cv_deplibs_check_method=pass_all
2416
2535
  ;;
2417
2536
 
 
2537
rdos*)
 
2538
  lt_cv_deplibs_check_method=pass_all
 
2539
  ;;
 
2540
 
2418
2541
solaris*)
2419
2542
  lt_cv_deplibs_check_method=pass_all
2420
2543
  ;;
2467
2590
  lt_cv_path_NM="$NM"
2468
2591
else
2469
2592
  lt_nm_to_check="${ac_tool_prefix}nm"
2470
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2593
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2471
2594
    lt_nm_to_check="$lt_nm_to_check nm"
2472
2595
  fi
2473
2596
  for lt_tmp_nm in $lt_nm_to_check; do
2683
2806
_LT_AC_TAGVAR(objext, $1)=$objext
2684
2807
 
2685
2808
# Code to be used in simple compile tests
2686
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2809
lt_simple_compile_test_code="int some_variable = 0;"
2687
2810
 
2688
2811
# Code to be used in simple link tests
2689
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2812
lt_simple_link_test_code='int main(){return(0);}'
2690
2813
 
2691
2814
_LT_AC_SYS_COMPILER
2692
2815
 
2722
2845
  fi
2723
2846
  ;;
2724
2847
 
2725
 
aix4* | aix5*)
 
2848
aix[[4-9]]*)
2726
2849
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2727
2850
    test "$enable_shared" = yes && enable_static=no
2728
2851
  fi
2779
2902
_LT_AC_TAGVAR(predeps, $1)=
2780
2903
_LT_AC_TAGVAR(postdeps, $1)=
2781
2904
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2905
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2782
2906
 
2783
2907
# Source file extension for C++ test sources.
2784
2908
ac_ext=cpp
2788
2912
_LT_AC_TAGVAR(objext, $1)=$objext
2789
2913
 
2790
2914
# Code to be used in simple compile tests
2791
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2915
lt_simple_compile_test_code="int some_variable = 0;"
2792
2916
 
2793
2917
# Code to be used in simple link tests
2794
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2918
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2795
2919
 
2796
2920
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2797
2921
_LT_AC_SYS_COMPILER
2888
3012
    # FIXME: insert proper C++ library support
2889
3013
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2890
3014
    ;;
2891
 
  aix4* | aix5*)
 
3015
  aix[[4-9]]*)
2892
3016
    if test "$host_cpu" = ia64; then
2893
3017
      # On IA64, the linker does run time linking by default, so we don't
2894
3018
      # have to do anything special.
2901
3025
      # Test if we are trying to use run time linking or normal
2902
3026
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2903
3027
      # need to do runtime linking.
2904
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3028
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2905
3029
        for ld_flag in $LDFLAGS; do
2906
3030
          case $ld_flag in
2907
3031
          *-brtl*)
2937
3061
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2938
3062
        then
2939
3063
          # We have reworked collect2
2940
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3064
          :
2941
3065
        else
2942
3066
          # We have old collect2
2943
3067
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3047
3171
    fi
3048
3172
  ;;
3049
3173
      darwin* | rhapsody*)
3050
 
        case $host_os in
3051
 
        rhapsody* | darwin1.[[012]])
3052
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3053
 
         ;;
3054
 
       *) # Darwin 1.3 on
3055
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3056
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3057
 
         else
3058
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3059
 
             10.[[012]])
3060
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3061
 
               ;;
3062
 
             10.*)
3063
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3064
 
               ;;
3065
 
           esac
3066
 
         fi
3067
 
         ;;
3068
 
        esac
3069
3174
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3070
3175
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3071
3176
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3072
3177
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3073
3178
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3074
3179
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3075
 
 
3076
 
    if test "$GXX" = yes ; then
3077
 
      lt_int_apple_cc_single_mod=no
 
3180
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3181
      if test "$GXX" = yes ; then
3078
3182
      output_verbose_link_cmd='echo'
3079
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3080
 
       lt_int_apple_cc_single_mod=yes
 
3183
      _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}"
 
3184
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3185
      _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}"
 
3186
      _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}"
 
3187
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3188
        _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}"
 
3189
        _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}"
3081
3190
      fi
3082
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3083
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3084
 
      else
3085
 
          _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'
3086
 
        fi
3087
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3088
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3089
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3090
 
            _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}'
3091
 
          else
3092
 
            _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}'
3093
 
          fi
3094
 
            _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}'
3095
3191
      else
3096
3192
      case $cc_basename in
3097
3193
        xlc*)
3098
3194
         output_verbose_link_cmd='echo'
3099
 
          _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'
 
3195
          _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'
3100
3196
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3101
3197
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3102
 
          _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}'
 
3198
          _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}'
3103
3199
          _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}'
3104
3200
          ;;
3105
3201
       *)
3133
3229
  freebsd-elf*)
3134
3230
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3135
3231
    ;;
3136
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3232
  freebsd* | dragonfly*)
3137
3233
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3138
3234
    # conventions
3139
3235
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3182
3278
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3183
3279
 
3184
3280
      case $host_cpu in
3185
 
      hppa*64*|ia64*)
3186
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3187
 
        ;;
 
3281
      hppa*64*|ia64*) ;;
3188
3282
      *)
3189
3283
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3190
3284
        ;;
3252
3346
        ;;
3253
3347
    esac
3254
3348
    ;;
3255
 
  interix3*)
 
3349
  interix[[3-9]]*)
3256
3350
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3257
3351
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3258
3352
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3292
3386
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3293
3387
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3294
3388
    ;;
3295
 
  linux*)
 
3389
  linux* | k*bsd*-gnu)
3296
3390
    case $cc_basename in
3297
3391
      KCC*)
3298
3392
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3344
3438
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3345
3439
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3346
3440
        ;;
3347
 
      pgCC*)
 
3441
      pgCC* | pgcpp*)
3348
3442
        # Portland Group C++ compiler
3349
3443
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3350
3444
        _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'
3372
3466
        # dependencies.
3373
3467
        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'
3374
3468
        ;;
 
3469
      *)
 
3470
        case `$CC -V 2>&1 | sed 5q` in
 
3471
        *Sun\ C*)
 
3472
          # Sun C++ 5.9
 
3473
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3474
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3475
          _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'
 
3476
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3477
          _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'
 
3478
 
 
3479
          # Not sure whether something based on
 
3480
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3481
          # would be better.
 
3482
          output_verbose_link_cmd='echo'
 
3483
 
 
3484
          # Archives containing C++ object files must be created using
 
3485
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3486
          # necessary to make sure instantiated templates are included
 
3487
          # in the archive.
 
3488
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3489
          ;;
 
3490
        esac
 
3491
        ;;
3375
3492
    esac
3376
3493
    ;;
3377
3494
  lynxos*)
3410
3527
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3411
3528
    ;;
3412
3529
  openbsd*)
3413
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3414
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3415
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3416
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3417
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3418
 
      _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'
3419
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3420
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3530
    if test -f /usr/libexec/ld.so; then
 
3531
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3532
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3533
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3534
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3535
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3536
        _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'
 
3537
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3538
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3539
      fi
 
3540
      output_verbose_link_cmd='echo'
 
3541
    else
 
3542
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3421
3543
    fi
3422
 
    output_verbose_link_cmd='echo'
3423
3544
    ;;
3424
3545
  osf3*)
3425
3546
    case $cc_basename in
3581
3702
        case $host_os in
3582
3703
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3583
3704
          *)
3584
 
            # The C++ compiler is used as linker so we must use $wl
3585
 
            # flag to pass the commands to the underlying system
3586
 
            # linker. We must also pass each convience library through
3587
 
            # to the system linker between allextract/defaultextract.
3588
 
            # The C++ compiler will combine linker options so we
3589
 
            # cannot just pass the convience library names through
3590
 
            # without $wl.
 
3705
            # The compiler driver will combine and reorder linker options,
 
3706
            # but understands `-z linker_flag'.
3591
3707
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3592
 
            _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'
 
3708
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3593
3709
            ;;
3594
3710
        esac
3595
3711
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3636
3752
          fi
3637
3753
 
3638
3754
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3755
          case $host_os in
 
3756
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3757
          *)
 
3758
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3759
            ;;
 
3760
          esac
3639
3761
        fi
3640
3762
        ;;
3641
3763
    esac
3751
3873
# compiler output when linking a shared library.
3752
3874
# Parse the compiler output and extract the necessary
3753
3875
# objects, libraries and library flags.
3754
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3876
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3877
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3755
3878
dnl we can't use the lt_simple_compile_test_code here,
3756
3879
dnl because it contains code intended for an executable,
3757
3880
dnl not a library.  It's possible we should let each
3876
3999
 
3877
4000
$rm -f confest.$objext
3878
4001
 
 
4002
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4003
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4004
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4005
fi
 
4006
 
3879
4007
# PORTME: override above test on systems where it is broken
3880
4008
ifelse([$1],[CXX],
3881
4009
[case $host_os in
3882
 
interix3*)
 
4010
interix[[3-9]]*)
3883
4011
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3884
4012
  # hack all around it, let's just trust "g++" to DTRT.
3885
4013
  _LT_AC_TAGVAR(predep_objects,$1)=
3887
4015
  _LT_AC_TAGVAR(postdeps,$1)=
3888
4016
  ;;
3889
4017
 
 
4018
linux*)
 
4019
  case `$CC -V 2>&1 | sed 5q` in
 
4020
  *Sun\ C*)
 
4021
    # Sun C++ 5.9
 
4022
    #
 
4023
    # The more standards-conforming stlport4 library is
 
4024
    # incompatible with the Cstd library. Avoid specifying
 
4025
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4026
    # -library=stlport4 depends on it.
 
4027
    case " $CXX $CXXFLAGS " in
 
4028
    *" -library=stlport4 "*)
 
4029
      solaris_use_stlport4=yes
 
4030
      ;;
 
4031
    esac
 
4032
    if test "$solaris_use_stlport4" != yes; then
 
4033
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4034
    fi
 
4035
    ;;
 
4036
  esac
 
4037
  ;;
 
4038
 
3890
4039
solaris*)
3891
4040
  case $cc_basename in
3892
4041
  CC*)
 
4042
    # The more standards-conforming stlport4 library is
 
4043
    # incompatible with the Cstd library. Avoid specifying
 
4044
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4045
    # -library=stlport4 depends on it.
 
4046
    case " $CXX $CXXFLAGS " in
 
4047
    *" -library=stlport4 "*)
 
4048
      solaris_use_stlport4=yes
 
4049
      ;;
 
4050
    esac
 
4051
 
3893
4052
    # Adding this requires a known-good setup of shared libraries for
3894
4053
    # Sun compiler versions before 5.6, else PIC objects from an old
3895
4054
    # archive will be linked into the output, leading to subtle bugs.
3896
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4055
    if test "$solaris_use_stlport4" != yes; then
 
4056
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4057
    fi
3897
4058
    ;;
3898
4059
  esac
3899
4060
  ;;
3900
4061
esac
3901
4062
])
3902
 
 
3903
4063
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3904
4064
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3905
4065
esac
3942
4102
_LT_AC_TAGVAR(objext, $1)=$objext
3943
4103
 
3944
4104
# Code to be used in simple compile tests
3945
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4105
lt_simple_compile_test_code="\
 
4106
      subroutine t
 
4107
      return
 
4108
      end
 
4109
"
3946
4110
 
3947
4111
# Code to be used in simple link tests
3948
 
lt_simple_link_test_code="      program t\n      end\n"
 
4112
lt_simple_link_test_code="\
 
4113
      program t
 
4114
      end
 
4115
"
3949
4116
 
3950
4117
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3951
4118
_LT_AC_SYS_COMPILER
3977
4144
    postinstall_cmds='$RANLIB $lib'
3978
4145
  fi
3979
4146
  ;;
3980
 
aix4* | aix5*)
 
4147
aix[[4-9]]*)
3981
4148
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3982
4149
    test "$enable_shared" = yes && enable_static=no
3983
4150
  fi
4024
4191
_LT_AC_TAGVAR(objext, $1)=$objext
4025
4192
 
4026
4193
# Code to be used in simple compile tests
4027
 
lt_simple_compile_test_code="class foo {}\n"
 
4194
lt_simple_compile_test_code="class foo {}"
4028
4195
 
4029
4196
# Code to be used in simple link tests
4030
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4197
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4031
4198
 
4032
4199
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4033
4200
_LT_AC_SYS_COMPILER
4080
4247
_LT_AC_TAGVAR(objext, $1)=$objext
4081
4248
 
4082
4249
# Code to be used in simple compile tests
4083
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4250
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4084
4251
 
4085
4252
# Code to be used in simple link tests
4086
4253
lt_simple_link_test_code="$lt_simple_compile_test_code"
4154
4321
    _LT_AC_TAGVAR(predeps, $1) \
4155
4322
    _LT_AC_TAGVAR(postdeps, $1) \
4156
4323
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4324
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4157
4325
    _LT_AC_TAGVAR(archive_cmds, $1) \
4158
4326
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4159
4327
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4169
4337
    _LT_AC_TAGVAR(module_cmds, $1) \
4170
4338
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4171
4339
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4340
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4172
4341
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4173
4342
    _LT_AC_TAGVAR(include_expsyms, $1); do
4174
4343
 
4215
4384
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4216
4385
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4217
4386
#
4218
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4387
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4219
4388
# Free Software Foundation, Inc.
4220
4389
#
4221
4390
# This file is part of GNU Libtool:
4452
4621
# shared library.
4453
4622
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4454
4623
 
 
4624
# The directories searched by this compiler when creating a shared
 
4625
# library
 
4626
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4627
 
4455
4628
# The library search path used internally by the compiler when linking
4456
4629
# a shared library.
4457
4630
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4540
4713
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4541
4714
 
4542
4715
# Fix the shell variable \$srcfile for the compiler.
4543
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4716
fix_srcfile_path=$lt_fix_srcfile_path
4544
4717
 
4545
4718
# Set to yes if exported symbols are required.
4546
4719
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4623
4796
# ---------------------------------
4624
4797
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4625
4798
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4799
AC_REQUIRE([LT_AC_PROG_SED])
4626
4800
AC_REQUIRE([AC_PROG_NM])
4627
4801
AC_REQUIRE([AC_OBJEXT])
4628
4802
# Check for command to grab the raw symbol name followed by C symbol from nm.
4659
4833
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4660
4834
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4661
4835
  ;;
4662
 
linux*)
 
4836
linux* | k*bsd*-gnu)
4663
4837
  if test "$host_cpu" = ia64; then
4664
4838
    symcode='[[ABCDGIRSTW]]'
4665
4839
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4800
4974
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4801
4975
    cat conftest.$ac_ext >&5
4802
4976
  fi
4803
 
  rm -f conftest* conftst*
 
4977
  rm -rf conftest* conftst*
4804
4978
 
4805
4979
  # Do not use the global_symbol_pipe unless it works.
4806
4980
  if test "$pipe_works" = yes; then
4849
5023
      # like `-m68040'.
4850
5024
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4851
5025
      ;;
4852
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5026
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4853
5027
      # PIC is the default for these OSes.
4854
5028
      ;;
4855
 
    mingw* | os2* | pw32*)
 
5029
    mingw* | cygwin* | os2* | pw32*)
4856
5030
      # This hack is so that the source file can tell whether it is being
4857
5031
      # built for inclusion in a dll (and should export symbols for example).
4858
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5032
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5033
      # (--disable-auto-import) libraries
 
5034
      m4_if([$1], [GCJ], [],
 
5035
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4859
5036
      ;;
4860
5037
    darwin* | rhapsody*)
4861
5038
      # PIC is the default on this platform
4866
5043
      # DJGPP does not support shared libraries at all
4867
5044
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4868
5045
      ;;
4869
 
    interix3*)
 
5046
    interix[[3-9]]*)
4870
5047
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4871
5048
      # Instead, we relocate shared libraries at runtime.
4872
5049
      ;;
4892
5069
    esac
4893
5070
  else
4894
5071
    case $host_os in
4895
 
      aix4* | aix5*)
 
5072
      aix[[4-9]]*)
4896
5073
        # All AIX code is PIC.
4897
5074
        if test "$host_cpu" = ia64; then
4898
5075
          # AIX 5 now supports IA64 processor
4932
5109
            ;;
4933
5110
        esac
4934
5111
        ;;
4935
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5112
      freebsd* | dragonfly*)
4936
5113
        # FreeBSD uses GNU C++
4937
5114
        ;;
4938
5115
      hpux9* | hpux10* | hpux11*)
4975
5152
            ;;
4976
5153
        esac
4977
5154
        ;;
4978
 
      linux*)
 
5155
      linux* | k*bsd*-gnu)
4979
5156
        case $cc_basename in
4980
5157
          KCC*)
4981
5158
            # KAI C++ Compiler
4988
5165
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4989
5166
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4990
5167
            ;;
4991
 
          pgCC*)
 
5168
          pgCC* | pgcpp*)
4992
5169
            # Portland Group C++ compiler.
4993
5170
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4994
5171
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5002
5179
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5003
5180
            ;;
5004
5181
          *)
 
5182
            case `$CC -V 2>&1 | sed 5q` in
 
5183
            *Sun\ C*)
 
5184
              # Sun C++ 5.9
 
5185
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5186
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5187
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5188
              ;;
 
5189
            esac
5005
5190
            ;;
5006
5191
        esac
5007
5192
        ;;
5122
5307
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5123
5308
      ;;
5124
5309
 
5125
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5310
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5126
5311
      # PIC is the default for these OSes.
5127
5312
      ;;
5128
5313
 
5129
 
    mingw* | pw32* | os2*)
 
5314
    mingw* | cygwin* | pw32* | os2*)
5130
5315
      # This hack is so that the source file can tell whether it is being
5131
5316
      # built for inclusion in a dll (and should export symbols for example).
5132
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5317
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5318
      # (--disable-auto-import) libraries
 
5319
      m4_if([$1], [GCJ], [],
 
5320
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5133
5321
      ;;
5134
5322
 
5135
5323
    darwin* | rhapsody*)
5138
5326
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5139
5327
      ;;
5140
5328
 
5141
 
    interix3*)
 
5329
    interix[[3-9]]*)
5142
5330
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5143
5331
      # Instead, we relocate shared libraries at runtime.
5144
5332
      ;;
5196
5384
       esac
5197
5385
       ;;
5198
5386
 
5199
 
    mingw* | pw32* | os2*)
 
5387
    mingw* | cygwin* | pw32* | os2*)
5200
5388
      # This hack is so that the source file can tell whether it is being
5201
5389
      # built for inclusion in a dll (and should export symbols for example).
5202
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5390
      m4_if([$1], [GCJ], [],
 
5391
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5203
5392
      ;;
5204
5393
 
5205
5394
    hpux9* | hpux10* | hpux11*)
5229
5418
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5230
5419
      ;;
5231
5420
 
5232
 
    linux*)
 
5421
    linux* | k*bsd*-gnu)
5233
5422
      case $cc_basename in
5234
5423
      icc* | ecc*)
5235
5424
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5248
5437
        # All Alpha code is PIC.
5249
5438
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5250
5439
        ;;
 
5440
      *)
 
5441
        case `$CC -V 2>&1 | sed 5q` in
 
5442
        *Sun\ C*)
 
5443
          # Sun C 5.9
 
5444
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5445
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5446
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5447
          ;;
 
5448
        *Sun\ F*)
 
5449
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5450
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5451
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5452
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5453
          ;;
 
5454
        esac
 
5455
        ;;
5251
5456
      esac
5252
5457
      ;;
5253
5458
 
5257
5462
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5258
5463
      ;;
5259
5464
 
 
5465
    rdos*)
 
5466
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5467
      ;;
 
5468
 
5260
5469
    solaris*)
5261
5470
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5262
5471
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5316
5525
#
5317
5526
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5318
5527
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5319
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5528
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5320
5529
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5321
5530
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5322
5531
     "" | " "*) ;;
5340
5549
#
5341
5550
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5342
5551
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5343
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5552
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5344
5553
  $lt_tmp_static_flag,
5345
5554
  [],
5346
5555
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5351
5560
# ------------------------------------
5352
5561
# See if the linker supports building shared libraries.
5353
5562
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5354
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5563
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5564
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5355
5565
ifelse([$1],[CXX],[
5356
5566
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5357
5567
  case $host_os in
5358
 
  aix4* | aix5*)
 
5568
  aix[[4-9]]*)
5359
5569
    # If we're using GNU nm, then we don't want the "-C" option.
5360
5570
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5361
5571
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5368
5578
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5369
5579
  ;;
5370
5580
  cygwin* | mingw*)
5371
 
    _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'
 
5581
    _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'
5372
5582
  ;;
5373
5583
  *)
5374
5584
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5375
5585
  ;;
5376
5586
  esac
 
5587
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5377
5588
],[
5378
5589
  runpath_var=
5379
5590
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5404
5615
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5405
5616
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5406
5617
  # as well as any symbol that contains `d'.
5407
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5618
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5408
5619
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5409
5620
  # platforms (ab)use it in PIC code, but their linkers get confused if
5410
5621
  # the symbol is explicitly referenced.  Since portable code cannot
5411
5622
  # rely on this symbol name, it's probably fine to never include it in
5412
5623
  # preloaded symbol tables.
 
5624
  # Exclude shared library initialization/finalization symbols.
 
5625
dnl Note also adjust exclude_expsyms for C++ above.
5413
5626
  extract_expsyms_cmds=
5414
5627
  # Just being paranoid about ensuring that cc_basename is set.
5415
5628
  _LT_CC_BASENAME([$compiler])
5459
5672
 
5460
5673
    # See if GNU ld supports shared libraries.
5461
5674
    case $host_os in
5462
 
    aix3* | aix4* | aix5*)
 
5675
    aix[[3-9]]*)
5463
5676
      # On AIX/PPC, the GNU linker is very broken
5464
5677
      if test "$host_cpu" != ia64; then
5465
5678
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5507
5720
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5508
5721
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5509
5722
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5510
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5723
      _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'
5511
5724
 
5512
5725
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5513
5726
        _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'
5525
5738
      fi
5526
5739
      ;;
5527
5740
 
5528
 
    interix3*)
 
5741
    interix[[3-9]]*)
5529
5742
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5530
5743
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5531
5744
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5540
5753
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5541
5754
      ;;
5542
5755
 
5543
 
    linux*)
 
5756
    gnu* | linux* | k*bsd*-gnu)
5544
5757
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5545
5758
        tmp_addflag=
5546
5759
        case $cc_basename,$host_cpu in
5558
5771
        ifc* | ifort*)                  # Intel Fortran compiler
5559
5772
          tmp_addflag=' -nofor_main' ;;
5560
5773
        esac
5561
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5774
        case `$CC -V 2>&1 | sed 5q` in
 
5775
        *Sun\ C*)                       # Sun C 5.9
 
5776
          _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'
 
5777
          tmp_sharedflag='-G' ;;
 
5778
        *Sun\ F*)                       # Sun Fortran 8.3
 
5779
          tmp_sharedflag='-G' ;;
 
5780
        *)
 
5781
          tmp_sharedflag='-shared' ;;
 
5782
        esac
 
5783
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5562
5784
 
5563
5785
        if test $supports_anon_versioning = yes; then
5564
5786
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5565
5787
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5566
5788
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5567
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5789
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5568
5790
        fi
5569
5791
      else
5570
5792
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5604
5826
 
5605
5827
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5606
5828
      case `$LD -v 2>&1` in
5607
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5829
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5608
5830
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5609
5831
        cat <<_LT_EOF 1>&2
5610
5832
 
5669
5891
      fi
5670
5892
      ;;
5671
5893
 
5672
 
    aix4* | aix5*)
 
5894
    aix[[4-9]]*)
5673
5895
      if test "$host_cpu" = ia64; then
5674
5896
        # On IA64, the linker does run time linking by default, so we don't
5675
5897
        # have to do anything special.
5689
5911
        # Test if we are trying to use run time linking or normal
5690
5912
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5691
5913
        # need to do runtime linking.
5692
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5914
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5693
5915
          for ld_flag in $LDFLAGS; do
5694
5916
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5695
5917
            aix_use_runtimelinking=yes
5723
5945
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5724
5946
          then
5725
5947
          # We have reworked collect2
5726
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5948
          :
5727
5949
          else
5728
5950
          # We have old collect2
5729
5951
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5816
6038
      # The linker will automatically build a .lib file if we build a DLL.
5817
6039
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5818
6040
      # FIXME: Should let the user specify the lib program.
5819
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6041
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5820
6042
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5821
6043
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5822
6044
      ;;
5849
6071
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5850
6072
    if test "$GCC" = yes ; then
5851
6073
        output_verbose_link_cmd='echo'
5852
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5853
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5854
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5855
 
      _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}'
5856
 
      _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}'
 
6074
        _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}"
 
6075
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6076
        _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}"
 
6077
        _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}"
5857
6078
    else
5858
6079
      case $cc_basename in
5859
6080
        xlc*)
5860
6081
         output_verbose_link_cmd='echo'
5861
 
         _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'
 
6082
         _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'
5862
6083
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5863
6084
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5864
 
         _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}'
 
6085
         _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}'
5865
6086
          _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}'
5866
6087
          ;;
5867
6088
       *)
5901
6122
      ;;
5902
6123
 
5903
6124
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5904
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6125
    freebsd* | dragonfly*)
5905
6126
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5906
6127
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5907
6128
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6023
6244
      ;;
6024
6245
 
6025
6246
    openbsd*)
6026
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6027
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6028
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6029
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6030
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6031
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6032
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6247
      if test -f /usr/libexec/ld.so; then
 
6248
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6249
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6250
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6251
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6252
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6253
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6254
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6255
        else
 
6256
          case $host_os in
 
6257
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6258
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6259
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6260
             ;;
 
6261
           *)
 
6262
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6263
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6264
             ;;
 
6265
          esac
 
6266
        fi
6033
6267
      else
6034
 
       case $host_os in
6035
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6036
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6037
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6038
 
           ;;
6039
 
         *)
6040
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6041
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6042
 
           ;;
6043
 
       esac
 
6268
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6044
6269
      fi
6045
6270
      ;;
6046
6271
 
6099
6324
      case $host_os in
6100
6325
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6101
6326
      *)
6102
 
        # The compiler driver will combine linker options so we
6103
 
        # cannot just pass the convience library names through
6104
 
        # without $wl, iff we do not link with $LD.
6105
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6327
        # The compiler driver will combine and reorder linker options,
 
6328
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6329
        # but is careful enough not to reorder.
6106
6330
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6107
 
        case $wlarc in
6108
 
        '')
6109
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6110
 
        *)
6111
 
          _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' ;;
6112
 
        esac ;;
 
6331
        if test "$GCC" = yes; then
 
6332
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6333
        else
 
6334
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6335
        fi
 
6336
        ;;
6113
6337
      esac
6114
6338
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6115
6339
      ;;
6166
6390
      fi
6167
6391
      ;;
6168
6392
 
6169
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6393
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6170
6394
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6171
6395
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6172
6396
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6241
6465
      # to ld, don't add -lc before -lgcc.
6242
6466
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6243
6467
      $rm conftest*
6244
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6468
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6245
6469
 
6246
6470
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6247
6471
        soname=conftest
6344
6568
[AC_CHECK_TOOL(RC, windres, no)
6345
6569
])
6346
6570
 
 
6571
 
 
6572
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6573
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6574
 
 
6575
# _AS_TEST_PREPARE
 
6576
# ----------------
 
6577
m4_ifndef([_AS_TEST_PREPARE],
 
6578
[m4_defun([_AS_TEST_PREPARE],
 
6579
[if test -x / >/dev/null 2>&1; then
 
6580
  as_executable_p='test -x'
 
6581
else
 
6582
  as_executable_p='test -f'
 
6583
fi
 
6584
])])# _AS_TEST_PREPARE
 
6585
 
 
6586
# AS_EXECUTABLE_P
 
6587
# ---------------
 
6588
# Check whether a file is executable.
 
6589
m4_ifndef([AS_EXECUTABLE_P],
 
6590
[m4_defun([AS_EXECUTABLE_P],
 
6591
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6592
$as_executable_p $1[]dnl
 
6593
])])# AS_EXECUTABLE_P
 
6594
 
6347
6595
# NOTE: This macro has been submitted for inclusion into   #
6348
6596
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6349
6597
#  a released version of Autoconf we should remove this    #
6364
6612
  test -z "$as_dir" && as_dir=.
6365
6613
  for lt_ac_prog in sed gsed; do
6366
6614
    for ac_exec_ext in '' $ac_executable_extensions; do
6367
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6615
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6368
6616
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6369
6617
      fi
6370
6618
    done
6371
6619
  done
6372
6620
done
 
6621
IFS=$as_save_IFS
6373
6622
lt_ac_max=0
6374
6623
lt_ac_count=0
6375
6624
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6402
6651
done
6403
6652
])
6404
6653
SED=$lt_cv_path_SED
 
6654
AC_SUBST([SED])
6405
6655
AC_MSG_RESULT([$SED])
6406
6656
])
6407
6657
 
6408
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6658
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6409
6659
#
6410
6660
# This file is free software; the Free Software Foundation
6411
6661
# gives unlimited permission to copy and/or distribute it,
6415
6665
# ----------------------------
6416
6666
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6417
6667
# generated from the m4 files accompanying Automake X.Y.
6418
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6668
# (This private macro should not be called outside this file.)
 
6669
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6670
[am__api_version='1.10'
 
6671
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6672
dnl require some minimum version.  Point them to the right macro.
 
6673
m4_if([$1], [1.10.1], [],
 
6674
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6675
])
 
6676
 
 
6677
# _AM_AUTOCONF_VERSION(VERSION)
 
6678
# -----------------------------
 
6679
# aclocal traces this macro to find the Autoconf version.
 
6680
# This is a private macro too.  Using m4_define simplifies
 
6681
# the logic in aclocal, which can simply ignore this definition.
 
6682
m4_define([_AM_AUTOCONF_VERSION], [])
6419
6683
 
6420
6684
# AM_SET_CURRENT_AUTOMAKE_VERSION
6421
6685
# -------------------------------
6422
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6686
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6423
6687
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6424
6688
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6425
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6689
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
6690
m4_ifndef([AC_AUTOCONF_VERSION],
 
6691
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
6692
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6426
6693
 
6427
6694
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6428
6695
 
6479
6746
 
6480
6747
# AM_CONDITIONAL                                            -*- Autoconf -*-
6481
6748
 
6482
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6749
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6483
6750
# Free Software Foundation, Inc.
6484
6751
#
6485
6752
# This file is free software; the Free Software Foundation
6486
6753
# gives unlimited permission to copy and/or distribute it,
6487
6754
# with or without modifications, as long as this notice is preserved.
6488
6755
 
6489
 
# serial 7
 
6756
# serial 8
6490
6757
 
6491
6758
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6492
6759
# -------------------------------------
6495
6762
[AC_PREREQ(2.52)dnl
6496
6763
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6497
6764
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6498
 
AC_SUBST([$1_TRUE])
6499
 
AC_SUBST([$1_FALSE])
 
6765
AC_SUBST([$1_TRUE])dnl
 
6766
AC_SUBST([$1_FALSE])dnl
 
6767
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6768
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6500
6769
if $2; then
6501
6770
  $1_TRUE=
6502
6771
  $1_FALSE='#'
6510
6779
Usually this means the macro was only invoked conditionally.]])
6511
6780
fi])])
6512
6781
 
6513
 
 
6514
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6782
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6515
6783
# Free Software Foundation, Inc.
6516
6784
#
6517
6785
# This file is free software; the Free Software Foundation
6518
6786
# gives unlimited permission to copy and/or distribute it,
6519
6787
# with or without modifications, as long as this notice is preserved.
6520
6788
 
6521
 
# serial 8
 
6789
# serial 9
6522
6790
 
6523
6791
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6524
6792
# written in clear, in which case automake, when reading aclocal.m4,
6546
6814
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6547
6815
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6548
6816
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6817
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6549
6818
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6550
6819
                   [depcc="$$1"   am_compiler_list=])
6551
6820
 
6611
6880
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6612
6881
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6613
6882
         >/dev/null 2>conftest.err &&
 
6883
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6614
6884
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6615
6885
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6616
6886
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6663
6933
  AMDEPBACKSLASH='\'
6664
6934
fi
6665
6935
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6666
 
AC_SUBST([AMDEPBACKSLASH])
 
6936
AC_SUBST([AMDEPBACKSLASH])dnl
 
6937
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6667
6938
])
6668
6939
 
6669
6940
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6688
6959
  # some people rename them; so instead we look at the file content.
6689
6960
  # Grep'ing the first line is not enough: some people post-process
6690
6961
  # each Makefile.in and add a new line on top of each file to say so.
6691
 
  # So let's grep whole file.
6692
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6962
  # Grep'ing the whole file is not good either: AIX grep has a line
 
6963
  # limit of 2048, but all sed's we know have understand at least 4000.
 
6964
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6693
6965
    dirpart=`AS_DIRNAME("$mf")`
6694
6966
  else
6695
6967
    continue
6748
7020
 
6749
7021
# Do all the work for Automake.                             -*- Autoconf -*-
6750
7022
 
6751
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6752
 
# Free Software Foundation, Inc.
 
7023
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7024
# 2005, 2006, 2008 Free Software Foundation, Inc.
6753
7025
#
6754
7026
# This file is free software; the Free Software Foundation
6755
7027
# gives unlimited permission to copy and/or distribute it,
6756
7028
# with or without modifications, as long as this notice is preserved.
6757
7029
 
6758
 
# serial 12
 
7030
# serial 13
6759
7031
 
6760
7032
# This macro actually does too much.  Some checks are only needed if
6761
7033
# your package does certain things.  But this isn't really a big deal.
6772
7044
# arguments mandatory, and then we can depend on a new Autoconf
6773
7045
# release and drop the old call support.
6774
7046
AC_DEFUN([AM_INIT_AUTOMAKE],
6775
 
[AC_PREREQ([2.58])dnl
 
7047
[AC_PREREQ([2.60])dnl
6776
7048
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6777
7049
dnl the ones we care about.
6778
7050
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6779
7051
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6780
7052
AC_REQUIRE([AC_PROG_INSTALL])dnl
6781
 
# test to see if srcdir already configured
6782
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6783
 
   test -f $srcdir/config.status; then
6784
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7053
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7054
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7055
  # is not polluted with repeated "-I."
 
7056
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7057
  # test to see if srcdir already configured
 
7058
  if test -f $srcdir/config.status; then
 
7059
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7060
  fi
6785
7061
fi
6786
7062
 
6787
7063
# test whether we have cygpath
6801
7077
 AC_SUBST([PACKAGE], [$1])dnl
6802
7078
 AC_SUBST([VERSION], [$2])],
6803
7079
[_AM_SET_OPTIONS([$1])dnl
 
7080
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7081
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7082
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6804
7083
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6805
7084
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6806
7085
 
6836
7115
                  [_AM_DEPENDENCIES(CXX)],
6837
7116
                  [define([AC_PROG_CXX],
6838
7117
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7118
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7119
                  [_AM_DEPENDENCIES(OBJC)],
 
7120
                  [define([AC_PROG_OBJC],
 
7121
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6839
7122
])
6840
7123
])
6841
7124
 
6849
7132
# our stamp files there.
6850
7133
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6851
7134
[# Compute $1's index in $config_headers.
 
7135
_am_arg=$1
6852
7136
_am_stamp_count=1
6853
7137
for _am_header in $config_headers :; do
6854
7138
  case $_am_header in
6855
 
    $1 | $1:* )
 
7139
    $_am_arg | $_am_arg:* )
6856
7140
      break ;;
6857
7141
    * )
6858
7142
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6859
7143
  esac
6860
7144
done
6861
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7145
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
6862
7146
 
6863
7147
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
6864
7148
#
6871
7155
# Define $install_sh.
6872
7156
AC_DEFUN([AM_PROG_INSTALL_SH],
6873
7157
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6874
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7158
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6875
7159
AC_SUBST(install_sh)])
6876
7160
 
6877
7161
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
6949
7233
 
6950
7234
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
6951
7235
 
6952
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7236
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6953
7237
# Free Software Foundation, Inc.
6954
7238
#
6955
7239
# This file is free software; the Free Software Foundation
6956
7240
# gives unlimited permission to copy and/or distribute it,
6957
7241
# with or without modifications, as long as this notice is preserved.
6958
7242
 
6959
 
# serial 4
 
7243
# serial 5
6960
7244
 
6961
7245
# AM_MISSING_PROG(NAME, PROGRAM)
6962
7246
# ------------------------------
6972
7256
# If it does, set am_missing_run to use it, otherwise, to nothing.
6973
7257
AC_DEFUN([AM_MISSING_HAS_RUN],
6974
7258
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7259
AC_REQUIRE_AUX_FILE([missing])dnl
6975
7260
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6976
7261
# Use eval to expand $SHELL
6977
7262
if eval "$MISSING --run true"; then
6982
7267
fi
6983
7268
])
6984
7269
 
6985
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7270
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6986
7271
#
6987
7272
# This file is free software; the Free Software Foundation
6988
7273
# gives unlimited permission to copy and/or distribute it,
6990
7275
 
6991
7276
# AM_PROG_MKDIR_P
6992
7277
# ---------------
6993
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6994
 
#
6995
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6996
 
# created by `make install' are always world readable, even if the
6997
 
# installer happens to have an overly restrictive umask (e.g. 077).
6998
 
# This was a mistake.  There are at least two reasons why we must not
6999
 
# use `-m 0755':
7000
 
#   - it causes special bits like SGID to be ignored,
7001
 
#   - it may be too restrictive (some setups expect 775 directories).
7002
 
#
7003
 
# Do not use -m 0755 and let people choose whatever they expect by
7004
 
# setting umask.
7005
 
#
7006
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7007
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7008
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7009
 
# concurrently, both version can detect that a/ is missing, but only
7010
 
# one can create it and the other will error out.  Consequently we
7011
 
# restrict ourselves to GNU make (using the --version option ensures
7012
 
# this.)
 
7278
# Check for `mkdir -p'.
7013
7279
AC_DEFUN([AM_PROG_MKDIR_P],
7014
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7015
 
  # We used to keeping the `.' as first argument, in order to
7016
 
  # allow $(mkdir_p) to be used without argument.  As in
7017
 
  #   $(mkdir_p) $(somedir)
7018
 
  # where $(somedir) is conditionally defined.  However this is wrong
7019
 
  # for two reasons:
7020
 
  #  1. if the package is installed by a user who cannot write `.'
7021
 
  #     make install will fail,
7022
 
  #  2. the above comment should most certainly read
7023
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7024
 
  #     so it does not work when $(somedir) is undefined and
7025
 
  #     $(DESTDIR) is not.
7026
 
  #  To support the latter case, we have to write
7027
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7028
 
  #  so the `.' trick is pointless.
7029
 
  mkdir_p='mkdir -p --'
7030
 
else
7031
 
  # On NextStep and OpenStep, the `mkdir' command does not
7032
 
  # recognize any option.  It will interpret all options as
7033
 
  # directories to create, and then abort because `.' already
7034
 
  # exists.
7035
 
  for d in ./-p ./--version;
7036
 
  do
7037
 
    test -d $d && rmdir $d
7038
 
  done
7039
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7040
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7041
 
    mkdir_p='$(mkinstalldirs)'
7042
 
  else
7043
 
    mkdir_p='$(install_sh) -d'
7044
 
  fi
7045
 
fi
7046
 
AC_SUBST([mkdir_p])])
 
7280
[AC_PREREQ([2.60])dnl
 
7281
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7282
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7283
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7284
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7285
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7286
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7287
dnl adjustment using top_builddir (which is defined more often than
 
7288
dnl MKDIR_P).
 
7289
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7290
case $mkdir_p in
 
7291
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7292
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7293
esac
 
7294
])
7047
7295
 
7048
7296
# Helper functions for option handling.                     -*- Autoconf -*-
7049
7297
 
7155
7403
if test "$cross_compiling" != no; then
7156
7404
  AC_CHECK_TOOL([STRIP], [strip], :)
7157
7405
fi
7158
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7406
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7159
7407
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7160
7408
 
 
7409
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7410
#
 
7411
# This file is free software; the Free Software Foundation
 
7412
# gives unlimited permission to copy and/or distribute it,
 
7413
# with or without modifications, as long as this notice is preserved.
 
7414
 
 
7415
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7416
# ---------------------------
 
7417
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7418
# This macro is traced by Automake.
 
7419
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7420
 
7161
7421
# Check how to create a tarball.                            -*- Autoconf -*-
7162
7422
 
7163
7423
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.