~ubuntu-branches/ubuntu/raring/wacom-tools/raring

« back to all changes in this revision

Viewing changes to linuxwacom/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-05-22 12:04:32 UTC
  • mfrom: (1.12.2 upstream) (2.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090522120432-00suvwukj864ipib
Tags: 1:0.8.3.2-1ubuntu1
* Merge with Debian unstable, remaining changes:
  - Bump the epoch because of old Ubuntu packaging.
  - debian/control:
    - Change the Maintainer address.
    - Bump the epoch on Replaces/Conflicts.
    - Don't build wacom-kernel-source anymore (#71944).
  - debian/wacom.postinst:
    Remove old files.
  - debian/rules: Disable the scaling quirk.
  - Enable patch system (quilt).
    - Import debian/xsfbs/*
    - Add quilt to build-deps.
  - Include wacomcpl so the stylus can be calibrated. (#216347)
    - debian/rules: --enable-libwacomxi
    - debian/control: Add tcl-dev, tk-dev to Build-Depends, and tcl,
      tk to wacom-tools Depends.
  - Modify 10-linuxwacom.fdi to support WALTOP and N-Trig.
  - Add 104_revert-check.diff: Don't check the serial number, it breaks
    some devices. Disabled for now, needs testing because part of it
    is upstream now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
23
 
16
 
# serial 48 AC_PROG_LIBTOOL
 
24
# serial 52 Debian 1.5.26-4 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)
 
1726
netbsdelf*-gnu)
1614
1727
  version_type=linux
1615
1728
  need_lib_prefix=no
1616
1729
  need_version=no
1619
1732
  shlibpath_var=LD_LIBRARY_PATH
1620
1733
  shlibpath_overrides_runpath=no
1621
1734
  hardcode_into_libs=yes
1622
 
  dynamic_linker='GNU ld.so'
 
1735
  dynamic_linker='NetBSD ld.elf_so'
1623
1736
  ;;
1624
1737
 
1625
1738
netbsd*)
1703
1816
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1704
1817
  ;;
1705
1818
 
 
1819
rdos*)
 
1820
  dynamic_linker=no
 
1821
  ;;
 
1822
 
1706
1823
solaris*)
1707
1824
  version_type=linux
1708
1825
  need_lib_prefix=no
1798
1915
AC_MSG_RESULT([$dynamic_linker])
1799
1916
test "$dynamic_linker" = no && can_build_shared=no
1800
1917
 
 
1918
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1919
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1920
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1921
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1922
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1923
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1924
 
1801
1925
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1802
1926
if test "$GCC" = yes; then
1803
1927
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1808
1932
# _LT_AC_TAGCONFIG
1809
1933
# ----------------
1810
1934
AC_DEFUN([_LT_AC_TAGCONFIG],
1811
 
[AC_ARG_WITH([tags],
 
1935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1936
AC_ARG_WITH([tags],
1812
1937
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1813
1938
        [include additional configurations @<:@automatic@:>@])],
1814
1939
    [tagnames="$withval"])
2069
2194
 
2070
2195
# AC_PATH_TOOL_PREFIX
2071
2196
# -------------------
2072
 
# find a file program which can recognise shared library
 
2197
# find a file program which can recognize shared library
2073
2198
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2074
2199
[AC_REQUIRE([AC_PROG_EGREP])dnl
2075
2200
AC_MSG_CHECKING([for $1])
2132
2257
 
2133
2258
# AC_PATH_MAGIC
2134
2259
# -------------
2135
 
# find a file program which can recognise a shared library
 
2260
# find a file program which can recognize a shared library
2136
2261
AC_DEFUN([AC_PATH_MAGIC],
2137
2262
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2138
2263
if test -z "$lt_cv_path_MAGIC_CMD"; then
2279
2404
# how to check for library dependencies
2280
2405
#  -- PORTME fill in with the dynamic library characteristics
2281
2406
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2282
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2407
[AC_CACHE_CHECK([how to recognize dependent libraries],
2283
2408
lt_cv_deplibs_check_method,
2284
2409
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2285
2410
lt_cv_file_magic_test_file=
2296
2421
# whether `pass_all' will *always* work, you probably want this one.
2297
2422
 
2298
2423
case $host_os in
2299
 
aix4* | aix5*)
 
2424
aix[[4-9]]*)
2300
2425
  lt_cv_deplibs_check_method=pass_all
2301
2426
  ;;
2302
2427
 
2318
2443
 
2319
2444
mingw* | pw32*)
2320
2445
  # 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'
 
2446
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2447
  # unless we find 'file', for example because we are cross-compiling.
 
2448
  if ( file / ) >/dev/null 2>&1; then
 
2449
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2450
    lt_cv_file_magic_cmd='func_win32_libid'
 
2451
  else
 
2452
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2453
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2454
  fi
2324
2455
  ;;
2325
2456
 
2326
2457
darwin* | rhapsody*)
2327
2458
  lt_cv_deplibs_check_method=pass_all
2328
2459
  ;;
2329
2460
 
2330
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2461
freebsd* | dragonfly*)
2331
2462
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2332
2463
    case $host_cpu in
2333
2464
    i*86 )
2365
2496
  esac
2366
2497
  ;;
2367
2498
 
2368
 
interix3*)
 
2499
interix[[3-9]]*)
2369
2500
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2370
2501
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2371
2502
  ;;
2381
2512
  ;;
2382
2513
 
2383
2514
# This must be Linux ELF.
2384
 
linux*)
 
2515
linux* | k*bsd*-gnu)
2385
2516
  lt_cv_deplibs_check_method=pass_all
2386
2517
  ;;
2387
2518
 
2388
 
netbsd*)
 
2519
netbsd* | netbsdelf*-gnu)
2389
2520
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2390
2521
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2391
2522
  else
2415
2546
  lt_cv_deplibs_check_method=pass_all
2416
2547
  ;;
2417
2548
 
 
2549
rdos*)
 
2550
  lt_cv_deplibs_check_method=pass_all
 
2551
  ;;
 
2552
 
2418
2553
solaris*)
2419
2554
  lt_cv_deplibs_check_method=pass_all
2420
2555
  ;;
2467
2602
  lt_cv_path_NM="$NM"
2468
2603
else
2469
2604
  lt_nm_to_check="${ac_tool_prefix}nm"
2470
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2605
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2471
2606
    lt_nm_to_check="$lt_nm_to_check nm"
2472
2607
  fi
2473
2608
  for lt_tmp_nm in $lt_nm_to_check; do
2683
2818
_LT_AC_TAGVAR(objext, $1)=$objext
2684
2819
 
2685
2820
# Code to be used in simple compile tests
2686
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2821
lt_simple_compile_test_code="int some_variable = 0;"
2687
2822
 
2688
2823
# Code to be used in simple link tests
2689
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2824
lt_simple_link_test_code='int main(){return(0);}'
2690
2825
 
2691
2826
_LT_AC_SYS_COMPILER
2692
2827
 
2722
2857
  fi
2723
2858
  ;;
2724
2859
 
2725
 
aix4* | aix5*)
 
2860
aix[[4-9]]*)
2726
2861
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2727
2862
    test "$enable_shared" = yes && enable_static=no
2728
2863
  fi
2779
2914
_LT_AC_TAGVAR(predeps, $1)=
2780
2915
_LT_AC_TAGVAR(postdeps, $1)=
2781
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2782
2918
 
2783
2919
# Source file extension for C++ test sources.
2784
2920
ac_ext=cpp
2788
2924
_LT_AC_TAGVAR(objext, $1)=$objext
2789
2925
 
2790
2926
# Code to be used in simple compile tests
2791
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2927
lt_simple_compile_test_code="int some_variable = 0;"
2792
2928
 
2793
2929
# Code to be used in simple link tests
2794
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2930
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2795
2931
 
2796
2932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2797
2933
_LT_AC_SYS_COMPILER
2888
3024
    # FIXME: insert proper C++ library support
2889
3025
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2890
3026
    ;;
2891
 
  aix4* | aix5*)
 
3027
  aix[[4-9]]*)
2892
3028
    if test "$host_cpu" = ia64; then
2893
3029
      # On IA64, the linker does run time linking by default, so we don't
2894
3030
      # have to do anything special.
2901
3037
      # Test if we are trying to use run time linking or normal
2902
3038
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2903
3039
      # need to do runtime linking.
2904
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3040
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2905
3041
        for ld_flag in $LDFLAGS; do
2906
3042
          case $ld_flag in
2907
3043
          *-brtl*)
2937
3073
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2938
3074
        then
2939
3075
          # We have reworked collect2
2940
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3076
          :
2941
3077
        else
2942
3078
          # We have old collect2
2943
3079
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3047
3183
    fi
3048
3184
  ;;
3049
3185
      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
3186
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3070
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3071
3188
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3072
3189
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3073
3190
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3074
3191
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3075
 
 
3076
 
    if test "$GXX" = yes ; then
3077
 
      lt_int_apple_cc_single_mod=no
 
3192
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3193
      if test "$GXX" = yes ; then
3078
3194
      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
 
3195
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3196
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3197
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3198
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3199
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3200
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
3201
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3081
3202
      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
3203
      else
3096
3204
      case $cc_basename in
3097
3205
        xlc*)
3098
3206
         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'
 
3207
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3100
3208
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3101
3209
          # 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}'
 
3210
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3103
3211
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3104
3212
          ;;
3105
3213
       *)
3133
3241
  freebsd-elf*)
3134
3242
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3135
3243
    ;;
3136
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3244
  freebsd* | dragonfly*)
3137
3245
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3138
3246
    # conventions
3139
3247
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3182
3290
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3183
3291
 
3184
3292
      case $host_cpu in
3185
 
      hppa*64*|ia64*)
3186
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3187
 
        ;;
 
3293
      hppa*64*|ia64*) ;;
3188
3294
      *)
3189
3295
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3190
3296
        ;;
3252
3358
        ;;
3253
3359
    esac
3254
3360
    ;;
3255
 
  interix3*)
 
3361
  interix[[3-9]]*)
3256
3362
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3257
3363
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3258
3364
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3292
3398
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3293
3399
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3294
3400
    ;;
3295
 
  linux*)
 
3401
  linux* | k*bsd*-gnu)
3296
3402
    case $cc_basename in
3297
3403
      KCC*)
3298
3404
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3344
3450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3345
3451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3346
3452
        ;;
3347
 
      pgCC*)
 
3453
      pgCC* | pgcpp*)
3348
3454
        # Portland Group C++ compiler
3349
3455
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3350
3456
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3372
3478
        # dependencies.
3373
3479
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3374
3480
        ;;
 
3481
      *)
 
3482
        case `$CC -V 2>&1 | sed 5q` in
 
3483
        *Sun\ C*)
 
3484
          # Sun C++ 5.9
 
3485
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3486
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3487
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3488
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3489
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3490
 
 
3491
          # Not sure whether something based on
 
3492
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3493
          # would be better.
 
3494
          output_verbose_link_cmd='echo'
 
3495
 
 
3496
          # Archives containing C++ object files must be created using
 
3497
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3498
          # necessary to make sure instantiated templates are included
 
3499
          # in the archive.
 
3500
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3501
          ;;
 
3502
        esac
 
3503
        ;;
3375
3504
    esac
3376
3505
    ;;
3377
3506
  lynxos*)
3394
3523
        ;;
3395
3524
    esac
3396
3525
    ;;
3397
 
  netbsd*)
 
3526
  netbsd* | netbsdelf*-gnu)
3398
3527
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3399
3528
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3400
3529
      wlarc=
3410
3539
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3411
3540
    ;;
3412
3541
  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'
 
3542
    if test -f /usr/libexec/ld.so; then
 
3543
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3544
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3545
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3546
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3547
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3548
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3549
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3550
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3551
      fi
 
3552
      output_verbose_link_cmd='echo'
 
3553
    else
 
3554
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3421
3555
    fi
3422
 
    output_verbose_link_cmd='echo'
3423
3556
    ;;
3424
3557
  osf3*)
3425
3558
    case $cc_basename in
3581
3714
        case $host_os in
3582
3715
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3583
3716
          *)
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.
 
3717
            # The compiler driver will combine and reorder linker options,
 
3718
            # but understands `-z linker_flag'.
3591
3719
            # 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'
 
3720
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3593
3721
            ;;
3594
3722
        esac
3595
3723
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3636
3764
          fi
3637
3765
 
3638
3766
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3767
          case $host_os in
 
3768
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3769
          *)
 
3770
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3771
            ;;
 
3772
          esac
3639
3773
        fi
3640
3774
        ;;
3641
3775
    esac
3751
3885
# compiler output when linking a shared library.
3752
3886
# Parse the compiler output and extract the necessary
3753
3887
# objects, libraries and library flags.
3754
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3755
3890
dnl we can't use the lt_simple_compile_test_code here,
3756
3891
dnl because it contains code intended for an executable,
3757
3892
dnl not a library.  It's possible we should let each
3876
4011
 
3877
4012
$rm -f confest.$objext
3878
4013
 
 
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4016
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4017
fi
 
4018
 
3879
4019
# PORTME: override above test on systems where it is broken
3880
4020
ifelse([$1],[CXX],
3881
4021
[case $host_os in
3882
 
interix3*)
 
4022
interix[[3-9]]*)
3883
4023
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3884
4024
  # hack all around it, let's just trust "g++" to DTRT.
3885
4025
  _LT_AC_TAGVAR(predep_objects,$1)=
3887
4027
  _LT_AC_TAGVAR(postdeps,$1)=
3888
4028
  ;;
3889
4029
 
 
4030
linux*)
 
4031
  case `$CC -V 2>&1 | sed 5q` in
 
4032
  *Sun\ C*)
 
4033
    # Sun C++ 5.9
 
4034
    #
 
4035
    # The more standards-conforming stlport4 library is
 
4036
    # incompatible with the Cstd library. Avoid specifying
 
4037
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4038
    # -library=stlport4 depends on it.
 
4039
    case " $CXX $CXXFLAGS " in
 
4040
    *" -library=stlport4 "*)
 
4041
      solaris_use_stlport4=yes
 
4042
      ;;
 
4043
    esac
 
4044
    if test "$solaris_use_stlport4" != yes; then
 
4045
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4046
    fi
 
4047
    ;;
 
4048
  esac
 
4049
  ;;
 
4050
 
3890
4051
solaris*)
3891
4052
  case $cc_basename in
3892
4053
  CC*)
 
4054
    # The more standards-conforming stlport4 library is
 
4055
    # incompatible with the Cstd library. Avoid specifying
 
4056
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4057
    # -library=stlport4 depends on it.
 
4058
    case " $CXX $CXXFLAGS " in
 
4059
    *" -library=stlport4 "*)
 
4060
      solaris_use_stlport4=yes
 
4061
      ;;
 
4062
    esac
 
4063
 
3893
4064
    # Adding this requires a known-good setup of shared libraries for
3894
4065
    # Sun compiler versions before 5.6, else PIC objects from an old
3895
4066
    # archive will be linked into the output, leading to subtle bugs.
3896
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4067
    if test "$solaris_use_stlport4" != yes; then
 
4068
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4069
    fi
3897
4070
    ;;
3898
4071
  esac
3899
4072
  ;;
3900
4073
esac
3901
4074
])
3902
 
 
3903
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3904
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3905
4077
esac
3942
4114
_LT_AC_TAGVAR(objext, $1)=$objext
3943
4115
 
3944
4116
# Code to be used in simple compile tests
3945
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4117
lt_simple_compile_test_code="\
 
4118
      subroutine t
 
4119
      return
 
4120
      end
 
4121
"
3946
4122
 
3947
4123
# Code to be used in simple link tests
3948
 
lt_simple_link_test_code="      program t\n      end\n"
 
4124
lt_simple_link_test_code="\
 
4125
      program t
 
4126
      end
 
4127
"
3949
4128
 
3950
4129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3951
4130
_LT_AC_SYS_COMPILER
3977
4156
    postinstall_cmds='$RANLIB $lib'
3978
4157
  fi
3979
4158
  ;;
3980
 
aix4* | aix5*)
 
4159
aix[[4-9]]*)
3981
4160
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3982
4161
    test "$enable_shared" = yes && enable_static=no
3983
4162
  fi
4024
4203
_LT_AC_TAGVAR(objext, $1)=$objext
4025
4204
 
4026
4205
# Code to be used in simple compile tests
4027
 
lt_simple_compile_test_code="class foo {}\n"
 
4206
lt_simple_compile_test_code="class foo {}"
4028
4207
 
4029
4208
# Code to be used in simple link tests
4030
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4031
4210
 
4032
4211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4033
4212
_LT_AC_SYS_COMPILER
4080
4259
_LT_AC_TAGVAR(objext, $1)=$objext
4081
4260
 
4082
4261
# Code to be used in simple compile tests
4083
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4262
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4084
4263
 
4085
4264
# Code to be used in simple link tests
4086
4265
lt_simple_link_test_code="$lt_simple_compile_test_code"
4154
4333
    _LT_AC_TAGVAR(predeps, $1) \
4155
4334
    _LT_AC_TAGVAR(postdeps, $1) \
4156
4335
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4336
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4157
4337
    _LT_AC_TAGVAR(archive_cmds, $1) \
4158
4338
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4159
4339
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4169
4349
    _LT_AC_TAGVAR(module_cmds, $1) \
4170
4350
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4171
4351
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4352
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4172
4353
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4173
4354
    _LT_AC_TAGVAR(include_expsyms, $1); do
4174
4355
 
4215
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4216
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4217
4398
#
4218
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4219
4400
# Free Software Foundation, Inc.
4220
4401
#
4221
4402
# This file is part of GNU Libtool:
4452
4633
# shared library.
4453
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4454
4635
 
 
4636
# The directories searched by this compiler when creating a shared
 
4637
# library
 
4638
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4639
 
4455
4640
# The library search path used internally by the compiler when linking
4456
4641
# a shared library.
4457
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4540
4725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4541
4726
 
4542
4727
# Fix the shell variable \$srcfile for the compiler.
4543
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4728
fix_srcfile_path=$lt_fix_srcfile_path
4544
4729
 
4545
4730
# Set to yes if exported symbols are required.
4546
4731
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4623
4808
# ---------------------------------
4624
4809
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4625
4810
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4811
AC_REQUIRE([LT_AC_PROG_SED])
4626
4812
AC_REQUIRE([AC_PROG_NM])
4627
4813
AC_REQUIRE([AC_OBJEXT])
4628
4814
# Check for command to grab the raw symbol name followed by C symbol from nm.
4659
4845
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4660
4846
  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
4847
  ;;
4662
 
linux*)
 
4848
linux* | k*bsd*-gnu)
4663
4849
  if test "$host_cpu" = ia64; then
4664
4850
    symcode='[[ABCDGIRSTW]]'
4665
4851
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4800
4986
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4801
4987
    cat conftest.$ac_ext >&5
4802
4988
  fi
4803
 
  rm -f conftest* conftst*
 
4989
  rm -rf conftest* conftst*
4804
4990
 
4805
4991
  # Do not use the global_symbol_pipe unless it works.
4806
4992
  if test "$pipe_works" = yes; then
4849
5035
      # like `-m68040'.
4850
5036
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4851
5037
      ;;
4852
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5038
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4853
5039
      # PIC is the default for these OSes.
4854
5040
      ;;
4855
 
    mingw* | os2* | pw32*)
 
5041
    mingw* | cygwin* | os2* | pw32*)
4856
5042
      # This hack is so that the source file can tell whether it is being
4857
5043
      # built for inclusion in a dll (and should export symbols for example).
4858
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5044
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5045
      # (--disable-auto-import) libraries
 
5046
      m4_if([$1], [GCJ], [],
 
5047
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4859
5048
      ;;
4860
5049
    darwin* | rhapsody*)
4861
5050
      # PIC is the default on this platform
4866
5055
      # DJGPP does not support shared libraries at all
4867
5056
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4868
5057
      ;;
4869
 
    interix3*)
 
5058
    interix[[3-9]]*)
4870
5059
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4871
5060
      # Instead, we relocate shared libraries at runtime.
4872
5061
      ;;
4892
5081
    esac
4893
5082
  else
4894
5083
    case $host_os in
4895
 
      aix4* | aix5*)
 
5084
      aix[[4-9]]*)
4896
5085
        # All AIX code is PIC.
4897
5086
        if test "$host_cpu" = ia64; then
4898
5087
          # AIX 5 now supports IA64 processor
4932
5121
            ;;
4933
5122
        esac
4934
5123
        ;;
4935
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5124
      freebsd* | dragonfly*)
4936
5125
        # FreeBSD uses GNU C++
4937
5126
        ;;
4938
5127
      hpux9* | hpux10* | hpux11*)
4975
5164
            ;;
4976
5165
        esac
4977
5166
        ;;
4978
 
      linux*)
 
5167
      linux* | k*bsd*-gnu)
4979
5168
        case $cc_basename in
4980
5169
          KCC*)
4981
5170
            # KAI C++ Compiler
4988
5177
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4989
5178
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4990
5179
            ;;
4991
 
          pgCC*)
 
5180
          pgCC* | pgcpp*)
4992
5181
            # Portland Group C++ compiler.
4993
5182
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4994
5183
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5002
5191
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5003
5192
            ;;
5004
5193
          *)
 
5194
            case `$CC -V 2>&1 | sed 5q` in
 
5195
            *Sun\ C*)
 
5196
              # Sun C++ 5.9
 
5197
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5198
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5199
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5200
              ;;
 
5201
            esac
5005
5202
            ;;
5006
5203
        esac
5007
5204
        ;;
5018
5215
            ;;
5019
5216
        esac
5020
5217
        ;;
5021
 
      netbsd*)
 
5218
      netbsd* | netbsdelf*-gnu)
5022
5219
        ;;
5023
5220
      osf3* | osf4* | osf5*)
5024
5221
        case $cc_basename in
5122
5319
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5123
5320
      ;;
5124
5321
 
5125
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5322
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5126
5323
      # PIC is the default for these OSes.
5127
5324
      ;;
5128
5325
 
5129
 
    mingw* | pw32* | os2*)
 
5326
    mingw* | cygwin* | pw32* | os2*)
5130
5327
      # This hack is so that the source file can tell whether it is being
5131
5328
      # built for inclusion in a dll (and should export symbols for example).
5132
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5329
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5330
      # (--disable-auto-import) libraries
 
5331
      m4_if([$1], [GCJ], [],
 
5332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5133
5333
      ;;
5134
5334
 
5135
5335
    darwin* | rhapsody*)
5138
5338
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5139
5339
      ;;
5140
5340
 
5141
 
    interix3*)
 
5341
    interix[[3-9]]*)
5142
5342
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5143
5343
      # Instead, we relocate shared libraries at runtime.
5144
5344
      ;;
5196
5396
       esac
5197
5397
       ;;
5198
5398
 
5199
 
    mingw* | pw32* | os2*)
 
5399
    mingw* | cygwin* | pw32* | os2*)
5200
5400
      # This hack is so that the source file can tell whether it is being
5201
5401
      # built for inclusion in a dll (and should export symbols for example).
5202
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5402
      m4_if([$1], [GCJ], [],
 
5403
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5203
5404
      ;;
5204
5405
 
5205
5406
    hpux9* | hpux10* | hpux11*)
5229
5430
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5230
5431
      ;;
5231
5432
 
5232
 
    linux*)
 
5433
    linux* | k*bsd*-gnu)
5233
5434
      case $cc_basename in
5234
5435
      icc* | ecc*)
5235
5436
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5248
5449
        # All Alpha code is PIC.
5249
5450
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5250
5451
        ;;
 
5452
      *)
 
5453
        case `$CC -V 2>&1 | sed 5q` in
 
5454
        *Sun\ C*)
 
5455
          # Sun C 5.9
 
5456
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5457
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5458
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5459
          ;;
 
5460
        *Sun\ F*)
 
5461
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5462
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5463
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5464
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5465
          ;;
 
5466
        esac
 
5467
        ;;
5251
5468
      esac
5252
5469
      ;;
5253
5470
 
5257
5474
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5258
5475
      ;;
5259
5476
 
 
5477
    rdos*)
 
5478
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5479
      ;;
 
5480
 
5260
5481
    solaris*)
5261
5482
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5262
5483
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5316
5537
#
5317
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5318
5539
  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),
 
5540
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5320
5541
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5321
5542
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5322
5543
     "" | " "*) ;;
5340
5561
#
5341
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5342
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5343
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5564
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5344
5565
  $lt_tmp_static_flag,
5345
5566
  [],
5346
5567
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5351
5572
# ------------------------------------
5352
5573
# See if the linker supports building shared libraries.
5353
5574
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5354
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5575
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5576
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5355
5577
ifelse([$1],[CXX],[
5356
5578
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5357
5579
  case $host_os in
5358
 
  aix4* | aix5*)
 
5580
  aix[[4-9]]*)
5359
5581
    # If we're using GNU nm, then we don't want the "-C" option.
5360
5582
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5361
5583
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5368
5590
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5369
5591
  ;;
5370
5592
  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'
 
5593
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5594
  ;;
 
5595
  linux* | k*bsd*-gnu)
 
5596
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5372
5597
  ;;
5373
5598
  *)
5374
5599
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5375
5600
  ;;
5376
5601
  esac
 
5602
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5377
5603
],[
5378
5604
  runpath_var=
5379
5605
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5404
5630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5405
5631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5406
5632
  # as well as any symbol that contains `d'.
5407
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5633
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5408
5634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5409
5635
  # platforms (ab)use it in PIC code, but their linkers get confused if
5410
5636
  # the symbol is explicitly referenced.  Since portable code cannot
5411
5637
  # rely on this symbol name, it's probably fine to never include it in
5412
5638
  # preloaded symbol tables.
 
5639
  # Exclude shared library initialization/finalization symbols.
 
5640
dnl Note also adjust exclude_expsyms for C++ above.
5413
5641
  extract_expsyms_cmds=
5414
5642
  # Just being paranoid about ensuring that cc_basename is set.
5415
5643
  _LT_CC_BASENAME([$compiler])
5459
5687
 
5460
5688
    # See if GNU ld supports shared libraries.
5461
5689
    case $host_os in
5462
 
    aix3* | aix4* | aix5*)
 
5690
    aix[[3-9]]*)
5463
5691
      # On AIX/PPC, the GNU linker is very broken
5464
5692
      if test "$host_cpu" != ia64; then
5465
5693
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5507
5735
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5508
5736
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5509
5737
      _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'
 
5738
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5511
5739
 
5512
5740
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5513
5741
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5525
5753
      fi
5526
5754
      ;;
5527
5755
 
5528
 
    interix3*)
 
5756
    interix[[3-9]]*)
5529
5757
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5530
5758
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5531
5759
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5540
5768
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5541
5769
      ;;
5542
5770
 
5543
 
    linux*)
 
5771
    gnu* | linux* | k*bsd*-gnu)
5544
5772
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5545
5773
        tmp_addflag=
5546
5774
        case $cc_basename,$host_cpu in
5558
5786
        ifc* | ifort*)                  # Intel Fortran compiler
5559
5787
          tmp_addflag=' -nofor_main' ;;
5560
5788
        esac
5561
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5789
        case `$CC -V 2>&1 | sed 5q` in
 
5790
        *Sun\ C*)                       # Sun C 5.9
 
5791
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5792
          tmp_sharedflag='-G' ;;
 
5793
        *Sun\ F*)                       # Sun Fortran 8.3
 
5794
          tmp_sharedflag='-G' ;;
 
5795
        *)
 
5796
          tmp_sharedflag='-shared' ;;
 
5797
        esac
 
5798
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5562
5799
 
5563
5800
        if test $supports_anon_versioning = yes; then
5564
5801
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5565
5802
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5566
5803
  $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'
 
5804
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5568
5805
        fi
 
5806
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5569
5807
      else
5570
5808
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5571
5809
      fi
5572
5810
      ;;
5573
5811
 
5574
 
    netbsd*)
 
5812
    netbsd* | netbsdelf*-gnu)
5575
5813
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5576
5814
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5577
5815
        wlarc=
5604
5842
 
5605
5843
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5606
5844
      case `$LD -v 2>&1` in
5607
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5845
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5608
5846
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5609
5847
        cat <<_LT_EOF 1>&2
5610
5848
 
5669
5907
      fi
5670
5908
      ;;
5671
5909
 
5672
 
    aix4* | aix5*)
 
5910
    aix[[4-9]]*)
5673
5911
      if test "$host_cpu" = ia64; then
5674
5912
        # On IA64, the linker does run time linking by default, so we don't
5675
5913
        # have to do anything special.
5689
5927
        # Test if we are trying to use run time linking or normal
5690
5928
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5691
5929
        # need to do runtime linking.
5692
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5930
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5693
5931
          for ld_flag in $LDFLAGS; do
5694
5932
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5695
5933
            aix_use_runtimelinking=yes
5723
5961
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5724
5962
          then
5725
5963
          # We have reworked collect2
5726
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5964
          :
5727
5965
          else
5728
5966
          # We have old collect2
5729
5967
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5816
6054
      # The linker will automatically build a .lib file if we build a DLL.
5817
6055
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5818
6056
      # FIXME: Should let the user specify the lib program.
5819
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6057
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5820
6058
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5821
6059
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5822
6060
      ;;
5849
6087
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5850
6088
    if test "$GCC" = yes ; then
5851
6089
        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}'
 
6090
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6091
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6092
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6093
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5857
6094
    else
5858
6095
      case $cc_basename in
5859
6096
        xlc*)
5860
6097
         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'
 
6098
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5862
6099
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5863
6100
          # 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}'
 
6101
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5865
6102
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5866
6103
          ;;
5867
6104
       *)
5901
6138
      ;;
5902
6139
 
5903
6140
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5904
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6141
    freebsd* | dragonfly*)
5905
6142
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5906
6143
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5907
6144
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6003
6240
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6004
6241
      ;;
6005
6242
 
6006
 
    netbsd*)
 
6243
    netbsd* | netbsdelf*-gnu)
6007
6244
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6008
6245
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6009
6246
      else
6023
6260
      ;;
6024
6261
 
6025
6262
    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'
 
6263
      if test -f /usr/libexec/ld.so; then
 
6264
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6265
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6266
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6267
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6268
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6269
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6270
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6271
        else
 
6272
          case $host_os in
 
6273
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6274
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6275
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6276
             ;;
 
6277
           *)
 
6278
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6279
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6280
             ;;
 
6281
          esac
 
6282
        fi
6033
6283
      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
 
6284
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6044
6285
      fi
6045
6286
      ;;
6046
6287
 
6099
6340
      case $host_os in
6100
6341
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6101
6342
      *)
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.
 
6343
        # The compiler driver will combine and reorder linker options,
 
6344
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6345
        # but is careful enough not to reorder.
6106
6346
        # 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 ;;
 
6347
        if test "$GCC" = yes; then
 
6348
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6349
        else
 
6350
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6351
        fi
 
6352
        ;;
6113
6353
      esac
6114
6354
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6115
6355
      ;;
6166
6406
      fi
6167
6407
      ;;
6168
6408
 
6169
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6409
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6170
6410
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6171
6411
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6172
6412
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6241
6481
      # to ld, don't add -lc before -lgcc.
6242
6482
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6243
6483
      $rm conftest*
6244
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6484
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6245
6485
 
6246
6486
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6247
6487
        soname=conftest
6344
6584
[AC_CHECK_TOOL(RC, windres, no)
6345
6585
])
6346
6586
 
 
6587
 
 
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6590
 
 
6591
# _AS_TEST_PREPARE
 
6592
# ----------------
 
6593
m4_ifndef([_AS_TEST_PREPARE],
 
6594
[m4_defun([_AS_TEST_PREPARE],
 
6595
[if test -x / >/dev/null 2>&1; then
 
6596
  as_executable_p='test -x'
 
6597
else
 
6598
  as_executable_p='test -f'
 
6599
fi
 
6600
])])# _AS_TEST_PREPARE
 
6601
 
 
6602
# AS_EXECUTABLE_P
 
6603
# ---------------
 
6604
# Check whether a file is executable.
 
6605
m4_ifndef([AS_EXECUTABLE_P],
 
6606
[m4_defun([AS_EXECUTABLE_P],
 
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6608
$as_executable_p $1[]dnl
 
6609
])])# AS_EXECUTABLE_P
 
6610
 
6347
6611
# NOTE: This macro has been submitted for inclusion into   #
6348
6612
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6349
6613
#  a released version of Autoconf we should remove this    #
6364
6628
  test -z "$as_dir" && as_dir=.
6365
6629
  for lt_ac_prog in sed gsed; do
6366
6630
    for ac_exec_ext in '' $ac_executable_extensions; do
6367
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6631
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6368
6632
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6369
6633
      fi
6370
6634
    done
6371
6635
  done
6372
6636
done
 
6637
IFS=$as_save_IFS
6373
6638
lt_ac_max=0
6374
6639
lt_ac_count=0
6375
6640
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6402
6667
done
6403
6668
])
6404
6669
SED=$lt_cv_path_SED
 
6670
AC_SUBST([SED])
6405
6671
AC_MSG_RESULT([$SED])
6406
6672
])
6407
6673
 
6543
6809
 
6544
6810
_PKG_TEXT
6545
6811
])],
6546
 
                [$4])
 
6812
                [AC_MSG_RESULT([no])
 
6813
                $4])
6547
6814
elif test $pkg_failed = untried; then
6548
6815
        ifelse([$4], , [AC_MSG_FAILURE(dnl
6549
6816
[The pkg-config script could not be found or is too old.  Make sure it
6552
6819
 
6553
6820
_PKG_TEXT
6554
6821
 
6555
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
6822
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
6556
6823
                [$4])
6557
6824
else
6558
6825
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6562
6829
fi[]dnl
6563
6830
])# PKG_CHECK_MODULES
6564
6831
 
6565
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6832
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6566
6833
#
6567
6834
# This file is free software; the Free Software Foundation
6568
6835
# gives unlimited permission to copy and/or distribute it,
6572
6839
# ----------------------------
6573
6840
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6574
6841
# generated from the m4 files accompanying Automake X.Y.
6575
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6842
# (This private macro should not be called outside this file.)
 
6843
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6844
[am__api_version='1.10'
 
6845
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6846
dnl require some minimum version.  Point them to the right macro.
 
6847
m4_if([$1], [1.10.1], [],
 
6848
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6849
])
 
6850
 
 
6851
# _AM_AUTOCONF_VERSION(VERSION)
 
6852
# -----------------------------
 
6853
# aclocal traces this macro to find the Autoconf version.
 
6854
# This is a private macro too.  Using m4_define simplifies
 
6855
# the logic in aclocal, which can simply ignore this definition.
 
6856
m4_define([_AM_AUTOCONF_VERSION], [])
6576
6857
 
6577
6858
# AM_SET_CURRENT_AUTOMAKE_VERSION
6578
6859
# -------------------------------
6579
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6860
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6580
6861
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6581
6862
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6582
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6863
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
6864
m4_ifndef([AC_AUTOCONF_VERSION],
 
6865
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
6866
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6583
6867
 
6584
6868
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6585
6869
 
6636
6920
 
6637
6921
# AM_CONDITIONAL                                            -*- Autoconf -*-
6638
6922
 
6639
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6923
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6640
6924
# Free Software Foundation, Inc.
6641
6925
#
6642
6926
# This file is free software; the Free Software Foundation
6643
6927
# gives unlimited permission to copy and/or distribute it,
6644
6928
# with or without modifications, as long as this notice is preserved.
6645
6929
 
6646
 
# serial 7
 
6930
# serial 8
6647
6931
 
6648
6932
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6649
6933
# -------------------------------------
6652
6936
[AC_PREREQ(2.52)dnl
6653
6937
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6654
6938
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6655
 
AC_SUBST([$1_TRUE])
6656
 
AC_SUBST([$1_FALSE])
 
6939
AC_SUBST([$1_TRUE])dnl
 
6940
AC_SUBST([$1_FALSE])dnl
 
6941
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6942
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6657
6943
if $2; then
6658
6944
  $1_TRUE=
6659
6945
  $1_FALSE='#'
6667
6953
Usually this means the macro was only invoked conditionally.]])
6668
6954
fi])])
6669
6955
 
6670
 
 
6671
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6956
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6672
6957
# Free Software Foundation, Inc.
6673
6958
#
6674
6959
# This file is free software; the Free Software Foundation
6675
6960
# gives unlimited permission to copy and/or distribute it,
6676
6961
# with or without modifications, as long as this notice is preserved.
6677
6962
 
6678
 
# serial 8
 
6963
# serial 9
6679
6964
 
6680
6965
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6681
6966
# written in clear, in which case automake, when reading aclocal.m4,
6703
6988
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6704
6989
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6705
6990
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6991
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6706
6992
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6707
6993
                   [depcc="$$1"   am_compiler_list=])
6708
6994
 
6768
7054
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6769
7055
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6770
7056
         >/dev/null 2>conftest.err &&
 
7057
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6771
7058
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6772
7059
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6773
7060
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6820
7107
  AMDEPBACKSLASH='\'
6821
7108
fi
6822
7109
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6823
 
AC_SUBST([AMDEPBACKSLASH])
 
7110
AC_SUBST([AMDEPBACKSLASH])dnl
 
7111
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6824
7112
])
6825
7113
 
6826
7114
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6845
7133
  # some people rename them; so instead we look at the file content.
6846
7134
  # Grep'ing the first line is not enough: some people post-process
6847
7135
  # each Makefile.in and add a new line on top of each file to say so.
6848
 
  # So let's grep whole file.
6849
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
7136
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7137
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7138
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6850
7139
    dirpart=`AS_DIRNAME("$mf")`
6851
7140
  else
6852
7141
    continue
6905
7194
 
6906
7195
# Do all the work for Automake.                             -*- Autoconf -*-
6907
7196
 
6908
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6909
 
# Free Software Foundation, Inc.
 
7197
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7198
# 2005, 2006, 2008 Free Software Foundation, Inc.
6910
7199
#
6911
7200
# This file is free software; the Free Software Foundation
6912
7201
# gives unlimited permission to copy and/or distribute it,
6913
7202
# with or without modifications, as long as this notice is preserved.
6914
7203
 
6915
 
# serial 12
 
7204
# serial 13
6916
7205
 
6917
7206
# This macro actually does too much.  Some checks are only needed if
6918
7207
# your package does certain things.  But this isn't really a big deal.
6929
7218
# arguments mandatory, and then we can depend on a new Autoconf
6930
7219
# release and drop the old call support.
6931
7220
AC_DEFUN([AM_INIT_AUTOMAKE],
6932
 
[AC_PREREQ([2.58])dnl
 
7221
[AC_PREREQ([2.60])dnl
6933
7222
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6934
7223
dnl the ones we care about.
6935
7224
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6936
7225
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6937
7226
AC_REQUIRE([AC_PROG_INSTALL])dnl
6938
 
# test to see if srcdir already configured
6939
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6940
 
   test -f $srcdir/config.status; then
6941
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7227
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7228
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7229
  # is not polluted with repeated "-I."
 
7230
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7231
  # test to see if srcdir already configured
 
7232
  if test -f $srcdir/config.status; then
 
7233
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7234
  fi
6942
7235
fi
6943
7236
 
6944
7237
# test whether we have cygpath
6958
7251
 AC_SUBST([PACKAGE], [$1])dnl
6959
7252
 AC_SUBST([VERSION], [$2])],
6960
7253
[_AM_SET_OPTIONS([$1])dnl
 
7254
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7255
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7256
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6961
7257
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6962
7258
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6963
7259
 
6993
7289
                  [_AM_DEPENDENCIES(CXX)],
6994
7290
                  [define([AC_PROG_CXX],
6995
7291
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7292
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7293
                  [_AM_DEPENDENCIES(OBJC)],
 
7294
                  [define([AC_PROG_OBJC],
 
7295
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6996
7296
])
6997
7297
])
6998
7298
 
7006
7306
# our stamp files there.
7007
7307
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7008
7308
[# Compute $1's index in $config_headers.
 
7309
_am_arg=$1
7009
7310
_am_stamp_count=1
7010
7311
for _am_header in $config_headers :; do
7011
7312
  case $_am_header in
7012
 
    $1 | $1:* )
 
7313
    $_am_arg | $_am_arg:* )
7013
7314
      break ;;
7014
7315
    * )
7015
7316
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7016
7317
  esac
7017
7318
done
7018
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7319
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7019
7320
 
7020
7321
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7021
7322
#
7028
7329
# Define $install_sh.
7029
7330
AC_DEFUN([AM_PROG_INSTALL_SH],
7030
7331
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7031
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7332
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7032
7333
AC_SUBST(install_sh)])
7033
7334
 
7034
7335
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7135
7436
 
7136
7437
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7137
7438
 
7138
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7439
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7139
7440
# Free Software Foundation, Inc.
7140
7441
#
7141
7442
# This file is free software; the Free Software Foundation
7142
7443
# gives unlimited permission to copy and/or distribute it,
7143
7444
# with or without modifications, as long as this notice is preserved.
7144
7445
 
7145
 
# serial 4
 
7446
# serial 5
7146
7447
 
7147
7448
# AM_MISSING_PROG(NAME, PROGRAM)
7148
7449
# ------------------------------
7158
7459
# If it does, set am_missing_run to use it, otherwise, to nothing.
7159
7460
AC_DEFUN([AM_MISSING_HAS_RUN],
7160
7461
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7462
AC_REQUIRE_AUX_FILE([missing])dnl
7161
7463
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7162
7464
# Use eval to expand $SHELL
7163
7465
if eval "$MISSING --run true"; then
7168
7470
fi
7169
7471
])
7170
7472
 
7171
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7473
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7172
7474
#
7173
7475
# This file is free software; the Free Software Foundation
7174
7476
# gives unlimited permission to copy and/or distribute it,
7176
7478
 
7177
7479
# AM_PROG_MKDIR_P
7178
7480
# ---------------
7179
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7180
 
#
7181
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7182
 
# created by `make install' are always world readable, even if the
7183
 
# installer happens to have an overly restrictive umask (e.g. 077).
7184
 
# This was a mistake.  There are at least two reasons why we must not
7185
 
# use `-m 0755':
7186
 
#   - it causes special bits like SGID to be ignored,
7187
 
#   - it may be too restrictive (some setups expect 775 directories).
7188
 
#
7189
 
# Do not use -m 0755 and let people choose whatever they expect by
7190
 
# setting umask.
7191
 
#
7192
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7193
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7194
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7195
 
# concurrently, both version can detect that a/ is missing, but only
7196
 
# one can create it and the other will error out.  Consequently we
7197
 
# restrict ourselves to GNU make (using the --version option ensures
7198
 
# this.)
 
7481
# Check for `mkdir -p'.
7199
7482
AC_DEFUN([AM_PROG_MKDIR_P],
7200
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7201
 
  # We used to keeping the `.' as first argument, in order to
7202
 
  # allow $(mkdir_p) to be used without argument.  As in
7203
 
  #   $(mkdir_p) $(somedir)
7204
 
  # where $(somedir) is conditionally defined.  However this is wrong
7205
 
  # for two reasons:
7206
 
  #  1. if the package is installed by a user who cannot write `.'
7207
 
  #     make install will fail,
7208
 
  #  2. the above comment should most certainly read
7209
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7210
 
  #     so it does not work when $(somedir) is undefined and
7211
 
  #     $(DESTDIR) is not.
7212
 
  #  To support the latter case, we have to write
7213
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7214
 
  #  so the `.' trick is pointless.
7215
 
  mkdir_p='mkdir -p --'
7216
 
else
7217
 
  # On NextStep and OpenStep, the `mkdir' command does not
7218
 
  # recognize any option.  It will interpret all options as
7219
 
  # directories to create, and then abort because `.' already
7220
 
  # exists.
7221
 
  for d in ./-p ./--version;
7222
 
  do
7223
 
    test -d $d && rmdir $d
7224
 
  done
7225
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7226
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7227
 
    mkdir_p='$(mkinstalldirs)'
7228
 
  else
7229
 
    mkdir_p='$(install_sh) -d'
7230
 
  fi
7231
 
fi
7232
 
AC_SUBST([mkdir_p])])
 
7483
[AC_PREREQ([2.60])dnl
 
7484
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7485
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7486
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7487
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7488
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7489
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7490
dnl adjustment using top_builddir (which is defined more often than
 
7491
dnl MKDIR_P).
 
7492
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7493
case $mkdir_p in
 
7494
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7495
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7496
esac
 
7497
])
7233
7498
 
7234
7499
# Helper functions for option handling.                     -*- Autoconf -*-
7235
7500
 
7341
7606
if test "$cross_compiling" != no; then
7342
7607
  AC_CHECK_TOOL([STRIP], [strip], :)
7343
7608
fi
7344
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7609
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7345
7610
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7346
7611
 
 
7612
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7613
#
 
7614
# This file is free software; the Free Software Foundation
 
7615
# gives unlimited permission to copy and/or distribute it,
 
7616
# with or without modifications, as long as this notice is preserved.
 
7617
 
 
7618
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7619
# ---------------------------
 
7620
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7621
# This macro is traced by Automake.
 
7622
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7623
 
7347
7624
# Check how to create a tarball.                            -*- Autoconf -*-
7348
7625
 
7349
7626
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
7440
7717
AC_SUBST([am__untar])
7441
7718
]) # _AM_PROG_TAR
7442
7719
 
7443
 
m4_include([acinclude.m4])