~ubuntu-branches/ubuntu/karmic/lasso/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-11-01 20:01:20 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071101200120-9ruoui67n24xyz9c
Tags: 2.1.1-2ubuntu1
* Merge from debian unstable (LP: #134095), remaining changes:
  + debian/control:
    - Modify Maintainer value to match DebianMaintainerField spec.
  + configure{,.ac}:
    - Add missing quotes around the value for PHP[45]_LIBS.
* Fix two lintian warnings:
  + debian/control:
    - liblasso3-dev: Replace ${Source-Version} with ${binary:Version}
  + debian/rules:
    - Don't ignore a make clean error.

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.8.5 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
4
# 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.
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
16
# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
17
17
 
18
18
 
19
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
176
176
test -z "$ac_objext" && ac_objext=o
177
177
 
178
178
# Determine commands to create old-style static archives.
179
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
179
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
180
180
old_postinstall_cmds='chmod 644 $oldlib'
181
181
old_postuninstall_cmds=
182
182
 
263
263
# Check for compiler boilerplate output or warnings with
264
264
# the simple compiler test code.
265
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
 
[ac_outfile=conftest.$ac_objext
267
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
266
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
267
ac_outfile=conftest.$ac_objext
 
268
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
269
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
270
_lt_compiler_boilerplate=`cat conftest.err`
270
271
$rm conftest*
276
277
# Check for linker boilerplate output or warnings with
277
278
# the simple link test code.
278
279
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
 
[ac_outfile=conftest.$ac_objext
280
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
280
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
281
ac_outfile=conftest.$ac_objext
 
282
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
283
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
284
_lt_linker_boilerplate=`cat conftest.err`
283
285
$rm conftest*
293
295
# If we don't find anything, use the default library path according
294
296
# to the aix ld manual.
295
297
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
 
}'`
 
298
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
299
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
300
lt_aix_libpath_sed='
 
301
    /Import File Strings/,/^$/ {
 
302
        /^0/ {
 
303
            s/^0  *\(.*\)$/\1/
 
304
            p
 
305
        }
 
306
    }'
 
307
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
308
# 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],[])
 
309
if test -z "$aix_libpath"; then
 
310
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
311
fi],[])
302
312
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
313
])# _LT_AC_SYS_LIBPATH_AIX
304
314
 
529
539
  rm -rf conftest*
530
540
  ;;
531
541
 
532
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
542
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
543
s390*-*linux*|sparc*-*linux*)
533
544
  # Find out which ABI we are using.
534
545
  echo 'int i;' > conftest.$ac_ext
535
546
  if AC_TRY_EVAL(ac_compile); then
536
547
    case `/usr/bin/file conftest.o` in
537
548
    *32-bit*)
538
549
      case $host in
 
550
        x86_64-*kfreebsd*-gnu)
 
551
          LD="${LD-ld} -m elf_i386_fbsd"
 
552
          ;;
539
553
        x86_64-*linux*)
540
554
          LD="${LD-ld} -m elf_i386"
541
555
          ;;
552
566
      ;;
553
567
    *64-bit*)
554
568
      case $host in
 
569
        x86_64-*kfreebsd*-gnu)
 
570
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
571
          ;;
555
572
        x86_64-*linux*)
556
573
          LD="${LD-ld} -m elf_x86_64"
557
574
          ;;
623
640
AC_CACHE_CHECK([$1], [$2],
624
641
  [$2=no
625
642
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
643
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
644
   lt_compiler_flag="$3"
628
645
   # Insert the option either (1) after the last *FLAGS variable, or
629
646
   # (2) before a word containing "conftest.", or (3) at the end.
664
681
# ------------------------------------------------------------
665
682
# Check whether the given compiler option works
666
683
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
 
[AC_CACHE_CHECK([$1], [$2],
 
684
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
685
AC_CACHE_CHECK([$1], [$2],
668
686
  [$2=no
669
687
   save_LDFLAGS="$LDFLAGS"
670
688
   LDFLAGS="$LDFLAGS $3"
671
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
689
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
690
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
691
     # The linker can only warn and ignore the option if not recognized
674
692
     # So say no if there are warnings
782
800
    fi
783
801
    ;;
784
802
  *)
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` \
 
803
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
804
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
805
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
806
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
807
    else
 
808
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
809
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
810
               = "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`
 
811
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
812
              lt_cv_sys_max_cmd_len=$new_result &&
 
813
              test $i != 17 # 1/2 MB should be enough
 
814
      do
 
815
        i=`expr $i + 1`
 
816
        teststring=$teststring$teststring
 
817
      done
 
818
      teststring=
 
819
      # Add a significant safety factor because C++ compilers can tack on massive
 
820
      # amounts of additional arguments before passing them to the linker.
 
821
      # It appears as though 1/2 is a usable value.
 
822
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
823
    fi
803
824
    ;;
804
825
  esac
805
826
])
1026
1047
# ---------------------------------
1027
1048
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1049
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1050
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1051
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1052
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1053
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1054
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1034
1056
   mkdir conftest
1035
1057
   cd conftest
1036
1058
   mkdir out
1037
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1059
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1038
1060
 
1039
1061
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1040
1062
   # Insert the option either (1) after the last *FLAGS variable, or
1174
1196
   darwin*)
1175
1197
       if test -n "$STRIP" ; then
1176
1198
         striplib="$STRIP -x"
 
1199
         old_striplib="$STRIP -S"
1177
1200
         AC_MSG_RESULT([yes])
1178
1201
       else
1179
1202
  AC_MSG_RESULT([no])
1191
1214
# -----------------------------
1192
1215
# PORTME Fill in your ld.so characteristics
1193
1216
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1217
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1218
AC_MSG_CHECKING([dynamic linker characteristics])
1195
1219
library_names_spec=
1196
1220
libname_spec='lib$name'
1197
1221
soname_spec=
1205
1229
version_type=none
1206
1230
dynamic_linker="$host_os ld.so"
1207
1231
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1232
m4_if($1,[],[
1208
1233
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
 
1234
  case $host_os in
 
1235
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1236
    *) lt_awk_arg="/^libraries:/" ;;
 
1237
  esac
 
1238
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1239
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1240
    # if the path contains ";" then we assume it to be the separator
1212
1241
    # otherwise default to the standard path separator (i.e. ":") - it is
1213
1242
    # assumed that no part of a normal pathname contains ";" but that should
1214
1243
    # 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'`
 
1244
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1216
1245
  else
1217
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1246
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1218
1247
  fi
 
1248
  # Ok, now we have the path, separated by spaces, we can step through it
 
1249
  # and add multilib dir if necessary.
 
1250
  lt_tmp_lt_search_path_spec=
 
1251
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1252
  for lt_sys_path in $lt_search_path_spec; do
 
1253
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1254
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1255
    else
 
1256
      test -d "$lt_sys_path" && \
 
1257
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1258
    fi
 
1259
  done
 
1260
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1261
BEGIN {RS=" "; FS="/|\n";} {
 
1262
  lt_foo="";
 
1263
  lt_count=0;
 
1264
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1265
    if ($lt_i != "" && $lt_i != ".") {
 
1266
      if ($lt_i == "..") {
 
1267
        lt_count++;
 
1268
      } else {
 
1269
        if (lt_count == 0) {
 
1270
          lt_foo="/" $lt_i lt_foo;
 
1271
        } else {
 
1272
          lt_count--;
 
1273
        }
 
1274
      }
 
1275
    }
 
1276
  }
 
1277
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1278
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1279
}'`
 
1280
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1219
1281
else
1220
1282
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221
 
fi
 
1283
fi])
1222
1284
need_lib_prefix=unknown
1223
1285
hardcode_into_libs=no
1224
1286
 
1375
1437
  shlibpath_overrides_runpath=yes
1376
1438
  shlibpath_var=DYLD_LIBRARY_PATH
1377
1439
  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
 
1440
  m4_if([$1], [],[
 
1441
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1384
1442
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385
1443
  ;;
1386
1444
 
1434
1492
    shlibpath_overrides_runpath=no
1435
1493
    hardcode_into_libs=yes
1436
1494
    ;;
1437
 
  freebsd*) # from 4.6 on
 
1495
  *) # from 4.6 on, and DragonFly
1438
1496
    shlibpath_overrides_runpath=yes
1439
1497
    hardcode_into_libs=yes
1440
1498
    ;;
1497
1555
  postinstall_cmds='chmod 555 $lib'
1498
1556
  ;;
1499
1557
 
1500
 
interix3*)
 
1558
interix[[3-9]]*)
1501
1559
  version_type=linux
1502
1560
  need_lib_prefix=no
1503
1561
  need_version=no
1568
1626
 
1569
1627
  # Append ld.so.conf contents to the search path
1570
1628
  if test -f /etc/ld.so.conf; then
1571
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1629
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1572
1630
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1573
1631
  fi
1574
1632
 
1674
1732
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1675
1733
  ;;
1676
1734
 
 
1735
rdos*)
 
1736
  dynamic_linker=no
 
1737
  ;;
 
1738
 
1677
1739
solaris*)
1678
1740
  version_type=linux
1679
1741
  need_lib_prefix=no
1779
1841
# _LT_AC_TAGCONFIG
1780
1842
# ----------------
1781
1843
AC_DEFUN([_LT_AC_TAGCONFIG],
1782
 
[AC_ARG_WITH([tags],
 
1844
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1845
AC_ARG_WITH([tags],
1783
1846
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1784
1847
        [include additional configurations @<:@automatic@:>@])],
1785
1848
    [tagnames="$withval"])
2040
2103
 
2041
2104
# AC_PATH_TOOL_PREFIX
2042
2105
# -------------------
2043
 
# find a file program which can recognise shared library
 
2106
# find a file program which can recognize shared library
2044
2107
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2045
2108
[AC_REQUIRE([AC_PROG_EGREP])dnl
2046
2109
AC_MSG_CHECKING([for $1])
2103
2166
 
2104
2167
# AC_PATH_MAGIC
2105
2168
# -------------
2106
 
# find a file program which can recognise a shared library
 
2169
# find a file program which can recognize a shared library
2107
2170
AC_DEFUN([AC_PATH_MAGIC],
2108
2171
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2109
2172
if test -z "$lt_cv_path_MAGIC_CMD"; then
2250
2313
# how to check for library dependencies
2251
2314
#  -- PORTME fill in with the dynamic library characteristics
2252
2315
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2253
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2316
[AC_CACHE_CHECK([how to recognize dependent libraries],
2254
2317
lt_cv_deplibs_check_method,
2255
2318
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2256
2319
lt_cv_file_magic_test_file=
2289
2352
 
2290
2353
mingw* | pw32*)
2291
2354
  # Base MSYS/MinGW do not provide the 'file' command needed by
2292
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2293
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2294
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2355
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2356
  # unless we find 'file', for example because we are cross-compiling.
 
2357
  if ( file / ) >/dev/null 2>&1; then
 
2358
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2359
    lt_cv_file_magic_cmd='func_win32_libid'
 
2360
  else
 
2361
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2362
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2363
  fi
2295
2364
  ;;
2296
2365
 
2297
2366
darwin* | rhapsody*)
2336
2405
  esac
2337
2406
  ;;
2338
2407
 
2339
 
interix3*)
 
2408
interix[[3-9]]*)
2340
2409
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341
2410
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2342
2411
  ;;
2386
2455
  lt_cv_deplibs_check_method=pass_all
2387
2456
  ;;
2388
2457
 
 
2458
rdos*)
 
2459
  lt_cv_deplibs_check_method=pass_all
 
2460
  ;;
 
2461
 
2389
2462
solaris*)
2390
2463
  lt_cv_deplibs_check_method=pass_all
2391
2464
  ;;
2438
2511
  lt_cv_path_NM="$NM"
2439
2512
else
2440
2513
  lt_nm_to_check="${ac_tool_prefix}nm"
2441
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2514
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442
2515
    lt_nm_to_check="$lt_nm_to_check nm"
2443
2516
  fi
2444
2517
  for lt_tmp_nm in $lt_nm_to_check; do
2654
2727
_LT_AC_TAGVAR(objext, $1)=$objext
2655
2728
 
2656
2729
# Code to be used in simple compile tests
2657
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2730
lt_simple_compile_test_code="int some_variable = 0;"
2658
2731
 
2659
2732
# Code to be used in simple link tests
2660
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2733
lt_simple_link_test_code='int main(){return(0);}'
2661
2734
 
2662
2735
_LT_AC_SYS_COMPILER
2663
2736
 
2759
2832
_LT_AC_TAGVAR(objext, $1)=$objext
2760
2833
 
2761
2834
# Code to be used in simple compile tests
2762
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2835
lt_simple_compile_test_code="int some_variable = 0;"
2763
2836
 
2764
2837
# Code to be used in simple link tests
2765
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2838
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2766
2839
 
2767
2840
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2768
2841
_LT_AC_SYS_COMPILER
2908
2981
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2909
2982
        then
2910
2983
          # We have reworked collect2
2911
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2984
          :
2912
2985
        else
2913
2986
          # We have old collect2
2914
2987
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3067
3140
      case $cc_basename in
3068
3141
        xlc*)
3069
3142
         output_verbose_link_cmd='echo'
3070
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3143
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3071
3144
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
3145
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3146
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3074
3147
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3075
3148
          ;;
3076
3149
       *)
3153
3226
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3154
3227
 
3155
3228
      case $host_cpu in
3156
 
      hppa*64*|ia64*)
3157
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3158
 
        ;;
 
3229
      hppa*64*|ia64*) ;;
3159
3230
      *)
3160
3231
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3161
3232
        ;;
3223
3294
        ;;
3224
3295
    esac
3225
3296
    ;;
3226
 
  interix3*)
 
3297
  interix[[3-9]]*)
3227
3298
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228
3299
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229
3300
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3343
3414
        # dependencies.
3344
3415
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3345
3416
        ;;
 
3417
      *)
 
3418
        case `$CC -V 2>&1 | sed 5q` in
 
3419
        *Sun\ C*)
 
3420
          # Sun C++ 5.9
 
3421
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3422
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3423
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3424
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3425
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3426
 
 
3427
          # Not sure whether something based on
 
3428
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3429
          # would be better.
 
3430
          output_verbose_link_cmd='echo'
 
3431
 
 
3432
          # Archives containing C++ object files must be created using
 
3433
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3434
          # necessary to make sure instantiated templates are included
 
3435
          # in the archive.
 
3436
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3437
          ;;
 
3438
        esac
 
3439
        ;;
3346
3440
    esac
3347
3441
    ;;
3348
3442
  lynxos*)
3381
3475
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3382
3476
    ;;
3383
3477
  openbsd*)
3384
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3390
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3478
    if test -f /usr/libexec/ld.so; then
 
3479
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3480
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3481
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3482
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3483
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3484
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3485
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3486
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3487
      fi
 
3488
      output_verbose_link_cmd='echo'
 
3489
    else
 
3490
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3392
3491
    fi
3393
 
    output_verbose_link_cmd='echo'
3394
3492
    ;;
3395
3493
  osf3*)
3396
3494
    case $cc_basename in
3552
3650
        case $host_os in
3553
3651
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3554
3652
          *)
3555
 
            # The C++ compiler is used as linker so we must use $wl
3556
 
            # flag to pass the commands to the underlying system
3557
 
            # linker. We must also pass each convience library through
3558
 
            # to the system linker between allextract/defaultextract.
3559
 
            # The C++ compiler will combine linker options so we
3560
 
            # cannot just pass the convience library names through
3561
 
            # without $wl.
 
3653
            # The compiler driver will combine and reorder linker options,
 
3654
            # but understands `-z linker_flag'.
3562
3655
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3563
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3656
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3564
3657
            ;;
3565
3658
        esac
3566
3659
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3607
3700
          fi
3608
3701
 
3609
3702
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3703
          case $host_os in
 
3704
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3705
          *)
 
3706
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3707
            ;;
 
3708
          esac
3610
3709
        fi
3611
3710
        ;;
3612
3711
    esac
3850
3949
# PORTME: override above test on systems where it is broken
3851
3950
ifelse([$1],[CXX],
3852
3951
[case $host_os in
3853
 
interix3*)
 
3952
interix[[3-9]]*)
3854
3953
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3855
3954
  # hack all around it, let's just trust "g++" to DTRT.
3856
3955
  _LT_AC_TAGVAR(predep_objects,$1)=
3858
3957
  _LT_AC_TAGVAR(postdeps,$1)=
3859
3958
  ;;
3860
3959
 
 
3960
linux*)
 
3961
  case `$CC -V 2>&1 | sed 5q` in
 
3962
  *Sun\ C*)
 
3963
    # Sun C++ 5.9
 
3964
    #
 
3965
    # The more standards-conforming stlport4 library is
 
3966
    # incompatible with the Cstd library. Avoid specifying
 
3967
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3968
    # -library=stlport4 depends on it.
 
3969
    case " $CXX $CXXFLAGS " in
 
3970
    *" -library=stlport4 "*)
 
3971
      solaris_use_stlport4=yes
 
3972
      ;;
 
3973
    esac
 
3974
    if test "$solaris_use_stlport4" != yes; then
 
3975
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3976
    fi
 
3977
    ;;
 
3978
  esac
 
3979
  ;;
 
3980
 
3861
3981
solaris*)
3862
3982
  case $cc_basename in
3863
3983
  CC*)
 
3984
    # The more standards-conforming stlport4 library is
 
3985
    # incompatible with the Cstd library. Avoid specifying
 
3986
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3987
    # -library=stlport4 depends on it.
 
3988
    case " $CXX $CXXFLAGS " in
 
3989
    *" -library=stlport4 "*)
 
3990
      solaris_use_stlport4=yes
 
3991
      ;;
 
3992
    esac
 
3993
 
3864
3994
    # Adding this requires a known-good setup of shared libraries for
3865
3995
    # Sun compiler versions before 5.6, else PIC objects from an old
3866
3996
    # archive will be linked into the output, leading to subtle bugs.
3867
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3997
    if test "$solaris_use_stlport4" != yes; then
 
3998
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3999
    fi
3868
4000
    ;;
3869
4001
  esac
3870
4002
  ;;
3913
4045
_LT_AC_TAGVAR(objext, $1)=$objext
3914
4046
 
3915
4047
# Code to be used in simple compile tests
3916
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4048
lt_simple_compile_test_code="\
 
4049
      subroutine t
 
4050
      return
 
4051
      end
 
4052
"
3917
4053
 
3918
4054
# Code to be used in simple link tests
3919
 
lt_simple_link_test_code="      program t\n      end\n"
 
4055
lt_simple_link_test_code="\
 
4056
      program t
 
4057
      end
 
4058
"
3920
4059
 
3921
4060
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3922
4061
_LT_AC_SYS_COMPILER
3995
4134
_LT_AC_TAGVAR(objext, $1)=$objext
3996
4135
 
3997
4136
# Code to be used in simple compile tests
3998
 
lt_simple_compile_test_code="class foo {}\n"
 
4137
lt_simple_compile_test_code="class foo {}"
3999
4138
 
4000
4139
# Code to be used in simple link tests
4001
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4140
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4002
4141
 
4003
4142
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4004
4143
_LT_AC_SYS_COMPILER
4051
4190
_LT_AC_TAGVAR(objext, $1)=$objext
4052
4191
 
4053
4192
# Code to be used in simple compile tests
4054
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4193
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4055
4194
 
4056
4195
# Code to be used in simple link tests
4057
4196
lt_simple_link_test_code="$lt_simple_compile_test_code"
4140
4279
    _LT_AC_TAGVAR(module_cmds, $1) \
4141
4280
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4142
4281
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4282
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4143
4283
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4144
4284
    _LT_AC_TAGVAR(include_expsyms, $1); do
4145
4285
 
4186
4326
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4187
4327
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4188
4328
#
4189
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4329
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4190
4330
# Free Software Foundation, Inc.
4191
4331
#
4192
4332
# This file is part of GNU Libtool:
4511
4651
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4512
4652
 
4513
4653
# Fix the shell variable \$srcfile for the compiler.
4514
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4654
fix_srcfile_path=$lt_fix_srcfile_path
4515
4655
 
4516
4656
# Set to yes if exported symbols are required.
4517
4657
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4594
4734
# ---------------------------------
4595
4735
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4596
4736
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4737
AC_REQUIRE([LT_AC_PROG_SED])
4597
4738
AC_REQUIRE([AC_PROG_NM])
4598
4739
AC_REQUIRE([AC_OBJEXT])
4599
4740
# Check for command to grab the raw symbol name followed by C symbol from nm.
4820
4961
      # like `-m68040'.
4821
4962
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4822
4963
      ;;
4823
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4964
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4824
4965
      # PIC is the default for these OSes.
4825
4966
      ;;
4826
 
    mingw* | os2* | pw32*)
 
4967
    mingw* | cygwin* | os2* | pw32*)
4827
4968
      # This hack is so that the source file can tell whether it is being
4828
4969
      # built for inclusion in a dll (and should export symbols for example).
 
4970
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4971
      # (--disable-auto-import) libraries
4829
4972
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4830
4973
      ;;
4831
4974
    darwin* | rhapsody*)
4837
4980
      # DJGPP does not support shared libraries at all
4838
4981
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4839
4982
      ;;
4840
 
    interix3*)
 
4983
    interix[[3-9]]*)
4841
4984
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4842
4985
      # Instead, we relocate shared libraries at runtime.
4843
4986
      ;;
4973
5116
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4974
5117
            ;;
4975
5118
          *)
 
5119
            case `$CC -V 2>&1 | sed 5q` in
 
5120
            *Sun\ C*)
 
5121
              # Sun C++ 5.9
 
5122
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5123
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5124
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5125
              ;;
 
5126
            esac
4976
5127
            ;;
4977
5128
        esac
4978
5129
        ;;
5093
5244
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5094
5245
      ;;
5095
5246
 
5096
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5247
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5097
5248
      # PIC is the default for these OSes.
5098
5249
      ;;
5099
5250
 
5100
 
    mingw* | pw32* | os2*)
 
5251
    mingw* | cygwin* | pw32* | os2*)
5101
5252
      # This hack is so that the source file can tell whether it is being
5102
5253
      # built for inclusion in a dll (and should export symbols for example).
 
5254
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5255
      # (--disable-auto-import) libraries
5103
5256
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5104
5257
      ;;
5105
5258
 
5109
5262
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5110
5263
      ;;
5111
5264
 
5112
 
    interix3*)
 
5265
    interix[[3-9]]*)
5113
5266
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5114
5267
      # Instead, we relocate shared libraries at runtime.
5115
5268
      ;;
5167
5320
       esac
5168
5321
       ;;
5169
5322
 
5170
 
    mingw* | pw32* | os2*)
 
5323
    mingw* | cygwin* | pw32* | os2*)
5171
5324
      # This hack is so that the source file can tell whether it is being
5172
5325
      # built for inclusion in a dll (and should export symbols for example).
5173
5326
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5219
5372
        # All Alpha code is PIC.
5220
5373
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5221
5374
        ;;
 
5375
      *)
 
5376
        case `$CC -V 2>&1 | sed 5q` in
 
5377
        *Sun\ C*)
 
5378
          # Sun C 5.9
 
5379
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5380
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5381
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5382
          ;;
 
5383
        *Sun\ F*)
 
5384
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5385
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5386
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5387
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5388
          ;;
 
5389
        esac
 
5390
        ;;
5222
5391
      esac
5223
5392
      ;;
5224
5393
 
5228
5397
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5229
5398
      ;;
5230
5399
 
 
5400
    rdos*)
 
5401
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5402
      ;;
 
5403
 
5231
5404
    solaris*)
5232
5405
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5233
5406
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5322
5495
# ------------------------------------
5323
5496
# See if the linker supports building shared libraries.
5324
5497
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5325
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5498
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5499
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5326
5500
ifelse([$1],[CXX],[
5327
5501
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5328
5502
  case $host_os in
5339
5513
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5340
5514
  ;;
5341
5515
  cygwin* | mingw*)
5342
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5516
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5343
5517
  ;;
5344
5518
  linux* | k*bsd*-gnu)
5345
5519
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5481
5655
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5482
5656
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5483
5657
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5484
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5658
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5485
5659
 
5486
5660
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5487
5661
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5499
5673
      fi
5500
5674
      ;;
5501
5675
 
5502
 
    interix3*)
 
5676
    interix[[3-9]]*)
5503
5677
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5504
5678
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505
5679
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5514
5688
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5515
5689
      ;;
5516
5690
 
5517
 
    linux* | k*bsd*-gnu)
 
5691
    gnu* | linux* | k*bsd*-gnu)
5518
5692
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5519
5693
        tmp_addflag=
5520
5694
        case $cc_basename,$host_cpu in
5532
5706
        ifc* | ifort*)                  # Intel Fortran compiler
5533
5707
          tmp_addflag=' -nofor_main' ;;
5534
5708
        esac
5535
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5709
        case `$CC -V 2>&1 | sed 5q` in
 
5710
        *Sun\ C*)                       # Sun C 5.9
 
5711
          _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'
 
5712
          tmp_sharedflag='-G' ;;
 
5713
        *Sun\ F*)                       # Sun Fortran 8.3
 
5714
          tmp_sharedflag='-G' ;;
 
5715
        *)
 
5716
          tmp_sharedflag='-shared' ;;
 
5717
        esac
 
5718
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536
5719
 
5537
5720
        if test $supports_anon_versioning = yes; then
5538
5721
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
5722
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
5723
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5541
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5724
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5542
5725
        fi
5543
5726
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5544
5727
      else
5579
5762
 
5580
5763
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581
5764
      case `$LD -v 2>&1` in
5582
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5765
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583
5766
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584
5767
        cat <<_LT_EOF 1>&2
5585
5768
 
5698
5881
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5699
5882
          then
5700
5883
          # We have reworked collect2
5701
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5884
          :
5702
5885
          else
5703
5886
          # We have old collect2
5704
5887
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5791
5974
      # The linker will automatically build a .lib file if we build a DLL.
5792
5975
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5793
5976
      # FIXME: Should let the user specify the lib program.
5794
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5977
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5795
5978
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5796
5979
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5797
5980
      ;;
5833
6016
      case $cc_basename in
5834
6017
        xlc*)
5835
6018
         output_verbose_link_cmd='echo'
5836
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6019
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5837
6020
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
6021
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6022
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5840
6023
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5841
6024
          ;;
5842
6025
       *)
5998
6181
      ;;
5999
6182
 
6000
6183
    openbsd*)
6001
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6002
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6004
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6006
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6184
      if test -f /usr/libexec/ld.so; then
 
6185
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6186
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6187
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6188
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6189
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6190
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6191
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6192
        else
 
6193
          case $host_os in
 
6194
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6195
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6196
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6197
             ;;
 
6198
           *)
 
6199
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6200
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6201
             ;;
 
6202
          esac
 
6203
        fi
6008
6204
      else
6009
 
       case $host_os in
6010
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6011
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6013
 
           ;;
6014
 
         *)
6015
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6016
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6017
 
           ;;
6018
 
       esac
 
6205
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6019
6206
      fi
6020
6207
      ;;
6021
6208
 
6074
6261
      case $host_os in
6075
6262
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6076
6263
      *)
6077
 
        # The compiler driver will combine linker options so we
6078
 
        # cannot just pass the convience library names through
6079
 
        # without $wl, iff we do not link with $LD.
6080
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6264
        # The compiler driver will combine and reorder linker options,
 
6265
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6266
        # but is careful enough not to reorder.
6081
6267
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6082
 
        case $wlarc in
6083
 
        '')
6084
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6085
 
        *)
6086
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6087
 
        esac ;;
 
6268
        if test "$GCC" = yes; then
 
6269
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6270
        else
 
6271
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6272
        fi
 
6273
        ;;
6088
6274
      esac
6089
6275
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6090
6276
      ;;
6141
6327
      fi
6142
6328
      ;;
6143
6329
 
6144
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6330
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6145
6331
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6146
6332
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6147
6333
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6216
6402
      # to ld, don't add -lc before -lgcc.
6217
6403
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6218
6404
      $rm conftest*
6219
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6405
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6220
6406
 
6221
6407
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6222
6408
        soname=conftest
6319
6505
[AC_CHECK_TOOL(RC, windres, no)
6320
6506
])
6321
6507
 
 
6508
 
 
6509
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6510
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6511
 
 
6512
# _AS_TEST_PREPARE
 
6513
# ----------------
 
6514
m4_ifndef([_AS_TEST_PREPARE],
 
6515
[m4_defun([_AS_TEST_PREPARE],
 
6516
[if test -x / >/dev/null 2>&1; then
 
6517
  as_executable_p='test -x'
 
6518
else
 
6519
  as_executable_p='test -f'
 
6520
fi
 
6521
])])# _AS_TEST_PREPARE
 
6522
 
 
6523
# AS_EXECUTABLE_P
 
6524
# ---------------
 
6525
# Check whether a file is executable.
 
6526
m4_ifndef([AS_EXECUTABLE_P],
 
6527
[m4_defun([AS_EXECUTABLE_P],
 
6528
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6529
$as_executable_p $1[]dnl
 
6530
])])# AS_EXECUTABLE_P
 
6531
 
6322
6532
# NOTE: This macro has been submitted for inclusion into   #
6323
6533
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6324
6534
#  a released version of Autoconf we should remove this    #
6339
6549
  test -z "$as_dir" && as_dir=.
6340
6550
  for lt_ac_prog in sed gsed; do
6341
6551
    for ac_exec_ext in '' $ac_executable_extensions; do
6342
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6552
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6343
6553
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6344
6554
      fi
6345
6555
    done
6346
6556
  done
6347
6557
done
 
6558
IFS=$as_save_IFS
6348
6559
lt_ac_max=0
6349
6560
lt_ac_count=0
6350
6561
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6377
6588
done
6378
6589
])
6379
6590
SED=$lt_cv_path_SED
 
6591
AC_SUBST([SED])
6380
6592
AC_MSG_RESULT([$SED])
6381
6593
])
6382
6594
 
6528
6740
 
6529
6741
_PKG_TEXT
6530
6742
 
6531
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
6743
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
6532
6744
                [$4])
6533
6745
else
6534
6746
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6538
6750
fi[]dnl
6539
6751
])# PKG_CHECK_MODULES
6540
6752
 
6541
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6542
 
#
6543
 
# This file is free software; the Free Software Foundation
6544
 
# gives unlimited permission to copy and/or distribute it,
6545
 
# with or without modifications, as long as this notice is preserved.
 
6753
#                                                        -*- Autoconf -*-
 
6754
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 
6755
# Generated from amversion.in; do not edit by hand.
 
6756
 
 
6757
# This program is free software; you can redistribute it and/or modify
 
6758
# it under the terms of the GNU General Public License as published by
 
6759
# the Free Software Foundation; either version 2, or (at your option)
 
6760
# any later version.
 
6761
 
 
6762
# This program is distributed in the hope that it will be useful,
 
6763
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6764
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6765
# GNU General Public License for more details.
 
6766
 
 
6767
# You should have received a copy of the GNU General Public License
 
6768
# along with this program; if not, write to the Free Software
 
6769
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6546
6770
 
6547
6771
# AM_AUTOMAKE_VERSION(VERSION)
6548
6772
# ----------------------------
6549
6773
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6550
6774
# generated from the m4 files accompanying Automake X.Y.
6551
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6775
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
6552
6776
 
6553
6777
# AM_SET_CURRENT_AUTOMAKE_VERSION
6554
6778
# -------------------------------
6555
6779
# Call AM_AUTOMAKE_VERSION so it can be traced.
6556
6780
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6557
6781
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6558
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
6559
 
 
6560
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6561
 
 
6562
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
6563
 
#
6564
 
# This file is free software; the Free Software Foundation
6565
 
# gives unlimited permission to copy and/or distribute it,
6566
 
# with or without modifications, as long as this notice is preserved.
 
6782
         [AM_AUTOMAKE_VERSION([1.8.5])])
 
6783
 
 
6784
# AM_AUX_DIR_EXPAND
 
6785
 
 
6786
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
6787
 
 
6788
# This program is free software; you can redistribute it and/or modify
 
6789
# it under the terms of the GNU General Public License as published by
 
6790
# the Free Software Foundation; either version 2, or (at your option)
 
6791
# any later version.
 
6792
 
 
6793
# This program is distributed in the hope that it will be useful,
 
6794
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6795
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6796
# GNU General Public License for more details.
 
6797
 
 
6798
# You should have received a copy of the GNU General Public License
 
6799
# along with this program; if not, write to the Free Software
 
6800
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6801
# 02111-1307, USA.
6567
6802
 
6568
6803
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6569
6804
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
6610
6845
am_aux_dir=`cd $ac_aux_dir && pwd`
6611
6846
])
6612
6847
 
6613
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
6614
 
 
6615
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6616
 
# Free Software Foundation, Inc.
6617
 
#
6618
 
# This file is free software; the Free Software Foundation
6619
 
# gives unlimited permission to copy and/or distribute it,
6620
 
# with or without modifications, as long as this notice is preserved.
6621
 
 
6622
 
# serial 7
 
6848
# AM_CONDITIONAL                                              -*- Autoconf -*-
 
6849
 
 
6850
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
6851
 
 
6852
# This program is free software; you can redistribute it and/or modify
 
6853
# it under the terms of the GNU General Public License as published by
 
6854
# the Free Software Foundation; either version 2, or (at your option)
 
6855
# any later version.
 
6856
 
 
6857
# This program is distributed in the hope that it will be useful,
 
6858
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6859
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6860
# GNU General Public License for more details.
 
6861
 
 
6862
# You should have received a copy of the GNU General Public License
 
6863
# along with this program; if not, write to the Free Software
 
6864
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6865
# 02111-1307, USA.
 
6866
 
 
6867
# serial 6
6623
6868
 
6624
6869
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6625
6870
# -------------------------------------
6639
6884
fi
6640
6885
AC_CONFIG_COMMANDS_PRE(
6641
6886
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6642
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
6643
 
Usually this means the macro was only invoked conditionally.]])
 
6887
  AC_MSG_ERROR([conditional "$1" was never defined.
 
6888
Usually this means the macro was only invoked conditionally.])
6644
6889
fi])])
6645
6890
 
 
6891
# serial 7                                              -*- Autoconf -*-
6646
6892
 
6647
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6893
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6648
6894
# Free Software Foundation, Inc.
6649
 
#
6650
 
# This file is free software; the Free Software Foundation
6651
 
# gives unlimited permission to copy and/or distribute it,
6652
 
# with or without modifications, as long as this notice is preserved.
6653
 
 
6654
 
# serial 8
 
6895
 
 
6896
# This program is free software; you can redistribute it and/or modify
 
6897
# it under the terms of the GNU General Public License as published by
 
6898
# the Free Software Foundation; either version 2, or (at your option)
 
6899
# any later version.
 
6900
 
 
6901
# This program is distributed in the hope that it will be useful,
 
6902
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6903
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6904
# GNU General Public License for more details.
 
6905
 
 
6906
# You should have received a copy of the GNU General Public License
 
6907
# along with this program; if not, write to the Free Software
 
6908
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6909
# 02111-1307, USA.
 
6910
 
6655
6911
 
6656
6912
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6657
6913
# written in clear, in which case automake, when reading aclocal.m4,
6660
6916
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6661
6917
 
6662
6918
 
 
6919
 
6663
6920
# _AM_DEPENDENCIES(NAME)
6664
6921
# ----------------------
6665
6922
# See how the compiler implements dependency checking.
6799
7056
AC_SUBST([AMDEPBACKSLASH])
6800
7057
])
6801
7058
 
6802
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6803
 
 
6804
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6805
 
# Free Software Foundation, Inc.
6806
 
#
6807
 
# This file is free software; the Free Software Foundation
6808
 
# gives unlimited permission to copy and/or distribute it,
6809
 
# with or without modifications, as long as this notice is preserved.
6810
 
 
6811
 
#serial 3
 
7059
# Generate code to set up dependency tracking.   -*- Autoconf -*-
 
7060
 
 
7061
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
7062
 
 
7063
# This program is free software; you can redistribute it and/or modify
 
7064
# it under the terms of the GNU General Public License as published by
 
7065
# the Free Software Foundation; either version 2, or (at your option)
 
7066
# any later version.
 
7067
 
 
7068
# This program is distributed in the hope that it will be useful,
 
7069
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7070
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7071
# GNU General Public License for more details.
 
7072
 
 
7073
# You should have received a copy of the GNU General Public License
 
7074
# along with this program; if not, write to the Free Software
 
7075
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7076
# 02111-1307, USA.
 
7077
 
 
7078
#serial 2
6812
7079
 
6813
7080
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6814
7081
# ------------------------------
6827
7094
  else
6828
7095
    continue
6829
7096
  fi
6830
 
  # Extract the definition of DEPDIR, am__include, and am__quote
6831
 
  # from the Makefile without running `make'.
 
7097
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
 
7098
  # Extract the definition of DEP_FILES from the Makefile without
 
7099
  # running `make'.
6832
7100
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6833
7101
  test -z "$DEPDIR" && continue
6834
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
6835
 
  test -z "am__include" && continue
6836
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6837
7102
  # When using ansi2knr, U may be empty or an underscore; expand it
6838
7103
  U=`sed -n 's/^U = //p' < "$mf"`
6839
 
  # Find all dependency output files, they are included files with
6840
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
6841
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
6842
 
  # expansion.
6843
 
  for file in `sed -n "
6844
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
7104
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
7105
  # We invoke sed twice because it is the simplest approach to
 
7106
  # changing $(DEPDIR) to its actual value in the expansion.
 
7107
  for file in `sed -n '
 
7108
    /^DEP_FILES = .*\\\\$/ {
 
7109
      s/^DEP_FILES = //
 
7110
      :loop
 
7111
        s/\\\\$//
 
7112
        p
 
7113
        n
 
7114
        /\\\\$/ b loop
 
7115
      p
 
7116
    }
 
7117
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6845
7118
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6846
7119
    # Make sure the directory exists.
6847
7120
    test -f "$dirpart/$file" && continue
6867
7140
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6868
7141
])
6869
7142
 
6870
 
# Check for Java compiler.                                  -*- Autoconf -*-
 
7143
# Check for Java compiler.
6871
7144
# For now we only handle the GNU compiler.
6872
7145
 
6873
 
# Copyright (C) 1999, 2000, 2003, 2005  Free Software Foundation, Inc.
6874
 
#
6875
 
# This file is free software; the Free Software Foundation
6876
 
# gives unlimited permission to copy and/or distribute it,
6877
 
# with or without modifications, as long as this notice is preserved.
 
7146
# Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
 
7147
 
 
7148
# This program is free software; you can redistribute it and/or modify
 
7149
# it under the terms of the GNU General Public License as published by
 
7150
# the Free Software Foundation; either version 2, or (at your option)
 
7151
# any later version.
 
7152
 
 
7153
# This program is distributed in the hope that it will be useful,
 
7154
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7155
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7156
# GNU General Public License for more details.
 
7157
 
 
7158
# You should have received a copy of the GNU General Public License
 
7159
# along with this program; if not, write to the Free Software
 
7160
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7161
# 02111-1307, USA.
6878
7162
 
6879
7163
AC_DEFUN([AM_PROG_GCJ],[
6880
7164
AC_CHECK_PROGS(GCJ, [gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95], gcj)
6886
7170
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(GCJ)])
6887
7171
])
6888
7172
 
6889
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6890
 
# Free Software Foundation, Inc.
6891
 
#
6892
 
# This file is free software; the Free Software Foundation
6893
 
# gives unlimited permission to copy and/or distribute it,
6894
 
# with or without modifications, as long as this notice is preserved.
6895
 
 
6896
 
# serial 8
 
7173
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
 
7174
 
 
7175
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
7176
 
 
7177
# This program is free software; you can redistribute it and/or modify
 
7178
# it under the terms of the GNU General Public License as published by
 
7179
# the Free Software Foundation; either version 2, or (at your option)
 
7180
# any later version.
 
7181
 
 
7182
# This program is distributed in the hope that it will be useful,
 
7183
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7184
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7185
# GNU General Public License for more details.
 
7186
 
 
7187
# You should have received a copy of the GNU General Public License
 
7188
# along with this program; if not, write to the Free Software
 
7189
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7190
# 02111-1307, USA.
 
7191
 
 
7192
# serial 7
6897
7193
 
6898
7194
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
6899
7195
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6900
7196
 
6901
 
# Do all the work for Automake.                             -*- Autoconf -*-
6902
 
 
6903
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6904
 
# Free Software Foundation, Inc.
6905
 
#
6906
 
# This file is free software; the Free Software Foundation
6907
 
# gives unlimited permission to copy and/or distribute it,
6908
 
# with or without modifications, as long as this notice is preserved.
6909
 
 
6910
 
# serial 12
6911
 
 
6912
 
# This macro actually does too much.  Some checks are only needed if
 
7197
# Do all the work for Automake.                            -*- Autoconf -*-
 
7198
 
 
7199
# This macro actually does too much some checks are only needed if
6913
7200
# your package does certain things.  But this isn't really a big deal.
6914
7201
 
 
7202
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
7203
# Free Software Foundation, Inc.
 
7204
 
 
7205
# This program is free software; you can redistribute it and/or modify
 
7206
# it under the terms of the GNU General Public License as published by
 
7207
# the Free Software Foundation; either version 2, or (at your option)
 
7208
# any later version.
 
7209
 
 
7210
# This program is distributed in the hope that it will be useful,
 
7211
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7212
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7213
# GNU General Public License for more details.
 
7214
 
 
7215
# You should have received a copy of the GNU General Public License
 
7216
# along with this program; if not, write to the Free Software
 
7217
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7218
# 02111-1307, USA.
 
7219
 
 
7220
# serial 11
 
7221
 
6915
7222
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6916
7223
# AM_INIT_AUTOMAKE([OPTIONS])
6917
7224
# -----------------------------------------------
6968
7275
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6969
7276
AM_MISSING_PROG(AUTOHEADER, autoheader)
6970
7277
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
7278
AM_MISSING_PROG(AMTAR, tar)
6971
7279
AM_PROG_INSTALL_SH
6972
7280
AM_PROG_INSTALL_STRIP
6973
7281
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6976
7284
AC_REQUIRE([AC_PROG_AWK])dnl
6977
7285
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6978
7286
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6979
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6980
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6981
 
                             [_AM_PROG_TAR([v7])])])
 
7287
 
6982
7288
_AM_IF_OPTION([no-dependencies],,
6983
7289
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6984
7290
                  [_AM_DEPENDENCIES(CC)],
7012
7318
done
7013
7319
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7014
7320
 
7015
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7016
 
#
7017
 
# This file is free software; the Free Software Foundation
7018
 
# gives unlimited permission to copy and/or distribute it,
7019
 
# with or without modifications, as long as this notice is preserved.
7020
 
 
7021
7321
# AM_PROG_INSTALL_SH
7022
7322
# ------------------
7023
7323
# Define $install_sh.
 
7324
 
 
7325
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
7326
 
 
7327
# This program is free software; you can redistribute it and/or modify
 
7328
# it under the terms of the GNU General Public License as published by
 
7329
# the Free Software Foundation; either version 2, or (at your option)
 
7330
# any later version.
 
7331
 
 
7332
# This program is distributed in the hope that it will be useful,
 
7333
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7334
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7335
# GNU General Public License for more details.
 
7336
 
 
7337
# You should have received a copy of the GNU General Public License
 
7338
# along with this program; if not, write to the Free Software
 
7339
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7340
# 02111-1307, USA.
 
7341
 
7024
7342
AC_DEFUN([AM_PROG_INSTALL_SH],
7025
7343
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7026
7344
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7027
7345
AC_SUBST(install_sh)])
7028
7346
 
7029
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7030
 
#
7031
 
# This file is free software; the Free Software Foundation
7032
 
# gives unlimited permission to copy and/or distribute it,
7033
 
# with or without modifications, as long as this notice is preserved.
7034
 
 
7035
 
# serial 2
 
7347
#                                                          -*- Autoconf -*-
 
7348
# Copyright (C) 2003  Free Software Foundation, Inc.
 
7349
 
 
7350
# This program is free software; you can redistribute it and/or modify
 
7351
# it under the terms of the GNU General Public License as published by
 
7352
# the Free Software Foundation; either version 2, or (at your option)
 
7353
# any later version.
 
7354
 
 
7355
# This program is distributed in the hope that it will be useful,
 
7356
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7357
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7358
# GNU General Public License for more details.
 
7359
 
 
7360
# You should have received a copy of the GNU General Public License
 
7361
# along with this program; if not, write to the Free Software
 
7362
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7363
# 02111-1307, USA.
 
7364
 
 
7365
# serial 1
7036
7366
 
7037
7367
# Check whether the underlying file-system supports filenames
7038
7368
# with a leading dot.  For instance MS-DOS doesn't.
7047
7377
rmdir .tst 2>/dev/null
7048
7378
AC_SUBST([am__leading_dot])])
7049
7379
 
7050
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
7380
# Add --enable-maintainer-mode option to configure.
7051
7381
# From Jim Meyering
7052
7382
 
7053
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
7383
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
7054
7384
# Free Software Foundation, Inc.
7055
 
#
7056
 
# This file is free software; the Free Software Foundation
7057
 
# gives unlimited permission to copy and/or distribute it,
7058
 
# with or without modifications, as long as this notice is preserved.
7059
 
 
7060
 
# serial 4
 
7385
 
 
7386
# This program is free software; you can redistribute it and/or modify
 
7387
# it under the terms of the GNU General Public License as published by
 
7388
# the Free Software Foundation; either version 2, or (at your option)
 
7389
# any later version.
 
7390
 
 
7391
# This program is distributed in the hope that it will be useful,
 
7392
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7393
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7394
# GNU General Public License for more details.
 
7395
 
 
7396
# You should have received a copy of the GNU General Public License
 
7397
# along with this program; if not, write to the Free Software
 
7398
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7399
# 02111-1307, USA.
 
7400
 
 
7401
# serial 3
7061
7402
 
7062
7403
AC_DEFUN([AM_MAINTAINER_MODE],
7063
7404
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7076
7417
 
7077
7418
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7078
7419
 
7079
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
7080
 
 
7081
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
7082
 
#
7083
 
# This file is free software; the Free Software Foundation
7084
 
# gives unlimited permission to copy and/or distribute it,
7085
 
# with or without modifications, as long as this notice is preserved.
7086
 
 
7087
 
# serial 3
 
7420
# Check to see how 'make' treats includes.      -*- Autoconf -*-
 
7421
 
 
7422
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
7423
 
 
7424
# This program is free software; you can redistribute it and/or modify
 
7425
# it under the terms of the GNU General Public License as published by
 
7426
# the Free Software Foundation; either version 2, or (at your option)
 
7427
# any later version.
 
7428
 
 
7429
# This program is distributed in the hope that it will be useful,
 
7430
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7431
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7432
# GNU General Public License for more details.
 
7433
 
 
7434
# You should have received a copy of the GNU General Public License
 
7435
# along with this program; if not, write to the Free Software
 
7436
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7437
# 02111-1307, USA.
 
7438
 
 
7439
# serial 2
7088
7440
 
7089
7441
# AM_MAKE_INCLUDE()
7090
7442
# -----------------
7128
7480
rm -f confinc confmf
7129
7481
])
7130
7482
 
7131
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7132
 
 
7133
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7134
 
# Free Software Foundation, Inc.
7135
 
#
7136
 
# This file is free software; the Free Software Foundation
7137
 
# gives unlimited permission to copy and/or distribute it,
7138
 
# with or without modifications, as long as this notice is preserved.
7139
 
 
7140
 
# serial 4
 
7483
#  -*- Autoconf -*-
 
7484
 
 
7485
 
 
7486
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 
7487
 
 
7488
# This program is free software; you can redistribute it and/or modify
 
7489
# it under the terms of the GNU General Public License as published by
 
7490
# the Free Software Foundation; either version 2, or (at your option)
 
7491
# any later version.
 
7492
 
 
7493
# This program is distributed in the hope that it will be useful,
 
7494
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7495
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7496
# GNU General Public License for more details.
 
7497
 
 
7498
# You should have received a copy of the GNU General Public License
 
7499
# along with this program; if not, write to the Free Software
 
7500
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7501
# 02111-1307, USA.
 
7502
 
 
7503
# serial 3
7141
7504
 
7142
7505
# AM_MISSING_PROG(NAME, PROGRAM)
7143
7506
# ------------------------------
7163
7526
fi
7164
7527
])
7165
7528
 
7166
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
7167
 
#
7168
 
# This file is free software; the Free Software Foundation
7169
 
# gives unlimited permission to copy and/or distribute it,
7170
 
# with or without modifications, as long as this notice is preserved.
7171
 
 
7172
7529
# AM_PROG_MKDIR_P
7173
7530
# ---------------
7174
7531
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7175
 
#
 
7532
 
 
7533
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 
7534
 
 
7535
# This program is free software; you can redistribute it and/or modify
 
7536
# it under the terms of the GNU General Public License as published by
 
7537
# the Free Software Foundation; either version 2, or (at your option)
 
7538
# any later version.
 
7539
 
 
7540
# This program is distributed in the hope that it will be useful,
 
7541
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7542
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7543
# GNU General Public License for more details.
 
7544
 
 
7545
# You should have received a copy of the GNU General Public License
 
7546
# along with this program; if not, write to the Free Software
 
7547
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7548
# 02111-1307, USA.
 
7549
 
7176
7550
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7177
7551
# created by `make install' are always world readable, even if the
7178
7552
# installer happens to have an overly restrictive umask (e.g. 077).
7193
7567
# this.)
7194
7568
AC_DEFUN([AM_PROG_MKDIR_P],
7195
7569
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7196
 
  # We used to keeping the `.' as first argument, in order to
7197
 
  # allow $(mkdir_p) to be used without argument.  As in
 
7570
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
7571
  # argument.  Indeed, we sometimes output rules like
7198
7572
  #   $(mkdir_p) $(somedir)
7199
 
  # where $(somedir) is conditionally defined.  However this is wrong
7200
 
  # for two reasons:
7201
 
  #  1. if the package is installed by a user who cannot write `.'
7202
 
  #     make install will fail,
7203
 
  #  2. the above comment should most certainly read
7204
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7205
 
  #     so it does not work when $(somedir) is undefined and
7206
 
  #     $(DESTDIR) is not.
7207
 
  #  To support the latter case, we have to write
7208
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7209
 
  #  so the `.' trick is pointless.
7210
 
  mkdir_p='mkdir -p --'
 
7573
  # where $(somedir) is conditionally defined.
 
7574
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
7575
  # expensive solution, as it forces Make to start a sub-shell.)
 
7576
  mkdir_p='mkdir -p -- .'
7211
7577
else
7212
7578
  # On NextStep and OpenStep, the `mkdir' command does not
7213
7579
  # recognize any option.  It will interpret all options as
7226
7592
fi
7227
7593
AC_SUBST([mkdir_p])])
7228
7594
 
7229
 
# Helper functions for option handling.                     -*- Autoconf -*-
7230
 
 
7231
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
7232
 
#
7233
 
# This file is free software; the Free Software Foundation
7234
 
# gives unlimited permission to copy and/or distribute it,
7235
 
# with or without modifications, as long as this notice is preserved.
7236
 
 
7237
 
# serial 3
 
7595
# Helper functions for option handling.                    -*- Autoconf -*-
 
7596
 
 
7597
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
 
7598
 
 
7599
# This program is free software; you can redistribute it and/or modify
 
7600
# it under the terms of the GNU General Public License as published by
 
7601
# the Free Software Foundation; either version 2, or (at your option)
 
7602
# any later version.
 
7603
 
 
7604
# This program is distributed in the hope that it will be useful,
 
7605
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7606
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7607
# GNU General Public License for more details.
 
7608
 
 
7609
# You should have received a copy of the GNU General Public License
 
7610
# along with this program; if not, write to the Free Software
 
7611
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7612
# 02111-1307, USA.
 
7613
 
 
7614
# serial 2
7238
7615
 
7239
7616
# _AM_MANGLE_OPTION(NAME)
7240
7617
# -----------------------
7259
7636
AC_DEFUN([_AM_IF_OPTION],
7260
7637
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7261
7638
 
7262
 
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
 
7639
 
 
7640
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
7263
7641
# Free Software Foundation, Inc.
7264
 
#
7265
 
# This file is free software; the Free Software Foundation
7266
 
# gives unlimited permission to copy and/or distribute it,
7267
 
# with or without modifications, as long as this notice is preserved.
7268
 
 
7269
 
# serial 4
 
7642
 
 
7643
# This program is free software; you can redistribute it and/or modify
 
7644
# it under the terms of the GNU General Public License as published by
 
7645
# the Free Software Foundation; either version 2, or (at your option)
 
7646
# any later version.
 
7647
 
 
7648
# This program is distributed in the hope that it will be useful,
 
7649
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7650
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7651
# GNU General Public License for more details.
 
7652
 
 
7653
# You should have received a copy of the GNU General Public License
 
7654
# along with this program; if not, write to the Free Software
 
7655
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7656
# 02111-1307, USA.
 
7657
 
 
7658
# serial 3
7270
7659
 
7271
7660
AC_DEFUN([AM_C_PROTOTYPES],
7272
7661
[AC_REQUIRE([AC_C_PROTOTYPES])
7284
7673
 
7285
7674
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
7286
7675
 
7287
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
7288
 
 
7289
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7290
 
# Free Software Foundation, Inc.
7291
 
#
7292
 
# This file is free software; the Free Software Foundation
7293
 
# gives unlimited permission to copy and/or distribute it,
7294
 
# with or without modifications, as long as this notice is preserved.
7295
 
 
7296
 
# serial 4
 
7676
#
 
7677
# Check to make sure that the build environment is sane.
 
7678
#
 
7679
 
 
7680
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
7681
 
 
7682
# This program is free software; you can redistribute it and/or modify
 
7683
# it under the terms of the GNU General Public License as published by
 
7684
# the Free Software Foundation; either version 2, or (at your option)
 
7685
# any later version.
 
7686
 
 
7687
# This program is distributed in the hope that it will be useful,
 
7688
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7689
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7690
# GNU General Public License for more details.
 
7691
 
 
7692
# You should have received a copy of the GNU General Public License
 
7693
# along with this program; if not, write to the Free Software
 
7694
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7695
# 02111-1307, USA.
 
7696
 
 
7697
# serial 3
7297
7698
 
7298
7699
# AM_SANITY_CHECK
7299
7700
# ---------------
7336
7737
fi
7337
7738
AC_MSG_RESULT(yes)])
7338
7739
 
7339
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7340
 
#
7341
 
# This file is free software; the Free Software Foundation
7342
 
# gives unlimited permission to copy and/or distribute it,
7343
 
# with or without modifications, as long as this notice is preserved.
7344
 
 
7345
7740
# AM_PROG_INSTALL_STRIP
7346
 
# ---------------------
 
7741
 
 
7742
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
7743
 
 
7744
# This program is free software; you can redistribute it and/or modify
 
7745
# it under the terms of the GNU General Public License as published by
 
7746
# the Free Software Foundation; either version 2, or (at your option)
 
7747
# any later version.
 
7748
 
 
7749
# This program is distributed in the hope that it will be useful,
 
7750
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7751
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7752
# GNU General Public License for more details.
 
7753
 
 
7754
# You should have received a copy of the GNU General Public License
 
7755
# along with this program; if not, write to the Free Software
 
7756
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7757
# 02111-1307, USA.
 
7758
 
7347
7759
# One issue with vendor `install' (even GNU) is that you can't
7348
7760
# specify the program used to strip binaries.  This is especially
7349
7761
# annoying in cross-compiling environments, where the build's strip
7364
7776
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7365
7777
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7366
7778
 
7367
 
# Check how to create a tarball.                            -*- Autoconf -*-
7368
 
 
7369
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
7370
 
#
7371
 
# This file is free software; the Free Software Foundation
7372
 
# gives unlimited permission to copy and/or distribute it,
7373
 
# with or without modifications, as long as this notice is preserved.
7374
 
 
7375
 
# serial 2
7376
 
 
7377
 
# _AM_PROG_TAR(FORMAT)
7378
 
# --------------------
7379
 
# Check how to create a tarball in format FORMAT.
7380
 
# FORMAT should be one of `v7', `ustar', or `pax'.
7381
 
#
7382
 
# Substitute a variable $(am__tar) that is a command
7383
 
# writing to stdout a FORMAT-tarball containing the directory
7384
 
# $tardir.
7385
 
#     tardir=directory && $(am__tar) > result.tar
7386
 
#
7387
 
# Substitute a variable $(am__untar) that extract such
7388
 
# a tarball read from stdin.
7389
 
#     $(am__untar) < result.tar
7390
 
AC_DEFUN([_AM_PROG_TAR],
7391
 
[# Always define AMTAR for backward compatibility.
7392
 
AM_MISSING_PROG([AMTAR], [tar])
7393
 
m4_if([$1], [v7],
7394
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7395
 
     [m4_case([$1], [ustar],, [pax],,
7396
 
              [m4_fatal([Unknown tar format])])
7397
 
AC_MSG_CHECKING([how to create a $1 tar archive])
7398
 
# Loop over all known methods to create a tar archive until one works.
7399
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7400
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7401
 
# Do not fold the above two line into one, because Tru64 sh and
7402
 
# Solaris sh will not grok spaces in the rhs of `-'.
7403
 
for _am_tool in $_am_tools
7404
 
do
7405
 
  case $_am_tool in
7406
 
  gnutar)
7407
 
    for _am_tar in tar gnutar gtar;
7408
 
    do
7409
 
      AM_RUN_LOG([$_am_tar --version]) && break
7410
 
    done
7411
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7412
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7413
 
    am__untar="$_am_tar -xf -"
7414
 
    ;;
7415
 
  plaintar)
7416
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
7417
 
    # ustar tarball either.
7418
 
    (tar --version) >/dev/null 2>&1 && continue
7419
 
    am__tar='tar chf - "$$tardir"'
7420
 
    am__tar_='tar chf - "$tardir"'
7421
 
    am__untar='tar xf -'
7422
 
    ;;
7423
 
  pax)
7424
 
    am__tar='pax -L -x $1 -w "$$tardir"'
7425
 
    am__tar_='pax -L -x $1 -w "$tardir"'
7426
 
    am__untar='pax -r'
7427
 
    ;;
7428
 
  cpio)
7429
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7430
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7431
 
    am__untar='cpio -i -H $1 -d'
7432
 
    ;;
7433
 
  none)
7434
 
    am__tar=false
7435
 
    am__tar_=false
7436
 
    am__untar=false
7437
 
    ;;
7438
 
  esac
7439
 
 
7440
 
  # If the value was cached, stop now.  We just wanted to have am__tar
7441
 
  # and am__untar set.
7442
 
  test -n "${am_cv_prog_tar_$1}" && break
7443
 
 
7444
 
  # tar/untar a dummy directory, and stop if the command works
7445
 
  rm -rf conftest.dir
7446
 
  mkdir conftest.dir
7447
 
  echo GrepMe > conftest.dir/file
7448
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7449
 
  rm -rf conftest.dir
7450
 
  if test -s conftest.tar; then
7451
 
    AM_RUN_LOG([$am__untar <conftest.tar])
7452
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7453
 
  fi
7454
 
done
7455
 
rm -rf conftest.dir
7456
 
 
7457
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7458
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7459
 
AC_SUBST([am__tar])
7460
 
AC_SUBST([am__untar])
7461
 
]) # _AM_PROG_TAR
7462