~ubuntu-branches/ubuntu/gutsy/pygoocanvas/gutsy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-08-31 12:32:56 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070831123256-cacxmruft92p09kq
Tags: 0.9.0-0ubuntu1
* New upstream version (UVF exception approval on LP: #136326)
* debian/control:
  - updated libgoocanvas requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006  Free Software Foundation, Inc.
 
4
# 2005  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_if(m4_PACKAGE_VERSION, [2.61],,
15
 
[m4_fatal([this file was generated for autoconf 2.61.
16
 
You have another version of autoconf.  If you want to use that,
17
 
you should regenerate the build system entirely.], [63])])
18
 
 
19
14
dnl -*- mode: autoconf -*-
20
15
 
21
16
# serial 1
72
67
 
73
68
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
74
69
 
75
 
# serial 50 AC_PROG_LIBTOOL
 
70
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
76
71
 
77
72
 
78
73
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
278
273
    [pic_mode=default])
279
274
test -z "$pic_mode" && pic_mode=default
280
275
 
281
 
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
282
 
#
283
 
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
284
 
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
285
 
#        calls AC_LIBTOOL_CONFIG and creates libtool.
286
 
#
287
 
_LT_VERSION_CHECK
288
 
 
289
276
# Use C for the default configuration in the libtool script
290
277
tagname=
291
278
AC_LIBTOOL_LANG_C_CONFIG
293
280
])# AC_LIBTOOL_SETUP
294
281
 
295
282
 
296
 
# _LT_VERSION_CHECK
297
 
# -----------------
298
 
AC_DEFUN([_LT_VERSION_CHECK],
299
 
[AC_MSG_CHECKING([for correct ltmain.sh version])
300
 
if test "x$ltmain" = "x" ; then
301
 
  AC_MSG_RESULT(no)
302
 
  AC_MSG_ERROR([
303
 
 
304
 
*** @<:@Gentoo@:>@ sanity check failed! ***
305
 
*** \$ltmain is not defined, please check the patch for consistency! ***
306
 
])
307
 
fi
308
 
gentoo_lt_version="1.5.23b"
309
 
gentoo_ltmain_version=`sed -n '/^[[     ]]*VERSION=/{s/^[[      ]]*VERSION=//;p;q;}' "$ltmain"`
310
 
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
311
 
  AC_MSG_RESULT(no)
312
 
  AC_MSG_ERROR([
313
 
 
314
 
*** @<:@Gentoo@:>@ sanity check failed! ***
315
 
*** libtool.m4 and ltmain.sh have a version mismatch! ***
316
 
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
317
 
 
318
 
Please run:
319
 
 
320
 
  libtoolize --copy --force
321
 
 
322
 
if appropriate, please contact the maintainer of this
323
 
package (or your distribution) for help.
324
 
])
325
 
else
326
 
  AC_MSG_RESULT(yes)
327
 
fi
328
 
])# _LT_VERSION_CHECK
329
 
 
330
 
 
331
283
# _LT_AC_SYS_COMPILER
332
284
# -------------------
333
285
AC_DEFUN([_LT_AC_SYS_COMPILER],
365
317
# Check for compiler boilerplate output or warnings with
366
318
# the simple compiler test code.
367
319
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
368
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
369
 
ac_outfile=conftest.$ac_objext
370
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
320
[ac_outfile=conftest.$ac_objext
 
321
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
371
322
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
372
323
_lt_compiler_boilerplate=`cat conftest.err`
373
324
$rm conftest*
379
330
# Check for linker boilerplate output or warnings with
380
331
# the simple link test code.
381
332
AC_DEFUN([_LT_LINKER_BOILERPLATE],
382
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
383
 
ac_outfile=conftest.$ac_objext
384
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
333
[ac_outfile=conftest.$ac_objext
 
334
printf "$lt_simple_link_test_code" >conftest.$ac_ext
385
335
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
386
336
_lt_linker_boilerplate=`cat conftest.err`
387
337
$rm conftest*
397
347
# If we don't find anything, use the default library path according
398
348
# to the aix ld manual.
399
349
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
400
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
401
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
402
 
lt_aix_libpath_sed='
403
 
    /Import File Strings/,/^$/ {
404
 
        /^0/ {
405
 
            s/^0  *\(.*\)$/\1/
406
 
            p
407
 
        }
408
 
    }'
409
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
350
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
352
}'`
410
353
# Check for a 64-bit object if we didn't find anything.
411
 
if test -z "$aix_libpath"; then
412
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
413
 
fi],[])
 
354
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; }
 
355
}'`; fi],[])
414
356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
415
357
])# _LT_AC_SYS_LIBPATH_AIX
416
358
 
641
583
  rm -rf conftest*
642
584
  ;;
643
585
 
644
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
645
 
s390*-*linux*|sparc*-*linux*)
 
586
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
646
587
  # Find out which ABI we are using.
647
588
  echo 'int i;' > conftest.$ac_ext
648
589
  if AC_TRY_EVAL(ac_compile); then
649
590
    case `/usr/bin/file conftest.o` in
650
591
    *32-bit*)
651
592
      case $host in
652
 
        x86_64-*kfreebsd*-gnu)
653
 
          LD="${LD-ld} -m elf_i386_fbsd"
654
 
          ;;
655
593
        x86_64-*linux*)
656
594
          LD="${LD-ld} -m elf_i386"
657
595
          ;;
668
606
      ;;
669
607
    *64-bit*)
670
608
      case $host in
671
 
        x86_64-*kfreebsd*-gnu)
672
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
673
 
          ;;
674
609
        x86_64-*linux*)
675
610
          LD="${LD-ld} -m elf_x86_64"
676
611
          ;;
742
677
AC_CACHE_CHECK([$1], [$2],
743
678
  [$2=no
744
679
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
745
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
680
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
746
681
   lt_compiler_flag="$3"
747
682
   # Insert the option either (1) after the last *FLAGS variable, or
748
683
   # (2) before a word containing "conftest.", or (3) at the end.
783
718
# ------------------------------------------------------------
784
719
# Check whether the given compiler option works
785
720
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
786
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
787
 
AC_CACHE_CHECK([$1], [$2],
 
721
[AC_CACHE_CHECK([$1], [$2],
788
722
  [$2=no
789
723
   save_LDFLAGS="$LDFLAGS"
790
724
   LDFLAGS="$LDFLAGS $3"
791
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
725
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
792
726
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
793
727
     # The linker can only warn and ignore the option if not recognized
794
728
     # So say no if there are warnings
1146
1080
# ---------------------------------
1147
1081
# Check to see if options -c and -o are simultaneously supported by compiler
1148
1082
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1149
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1150
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1083
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1151
1084
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1152
1085
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1153
1086
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1155
1088
   mkdir conftest
1156
1089
   cd conftest
1157
1090
   mkdir out
1158
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1091
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1159
1092
 
1160
1093
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1161
1094
   # Insert the option either (1) after the last *FLAGS variable, or
1295
1228
   darwin*)
1296
1229
       if test -n "$STRIP" ; then
1297
1230
         striplib="$STRIP -x"
1298
 
         old_striplib="$STRIP -S"
1299
1231
         AC_MSG_RESULT([yes])
1300
1232
       else
1301
1233
  AC_MSG_RESULT([no])
1313
1245
# -----------------------------
1314
1246
# PORTME Fill in your ld.so characteristics
1315
1247
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1316
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1317
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
1248
[AC_MSG_CHECKING([dynamic linker characteristics])
1318
1249
library_names_spec=
1319
1250
libname_spec='lib$name'
1320
1251
soname_spec=
1328
1259
version_type=none
1329
1260
dynamic_linker="$host_os ld.so"
1330
1261
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1331
 
m4_if($1,[],[
1332
1262
if test "$GCC" = yes; then
1333
 
  case $host_os in
1334
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1335
 
    *) lt_awk_arg="/^libraries:/" ;;
1336
 
  esac
1337
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1338
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
1263
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1264
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1339
1265
    # if the path contains ";" then we assume it to be the separator
1340
1266
    # otherwise default to the standard path separator (i.e. ":") - it is
1341
1267
    # assumed that no part of a normal pathname contains ";" but that should
1342
1268
    # okay in the real world where ";" in dirpaths is itself problematic.
1343
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
1269
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1344
1270
  else
1345
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1271
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1346
1272
  fi
1347
 
  # Ok, now we have the path, separated by spaces, we can step through it
1348
 
  # and add multilib dir if necessary.
1349
 
  lt_tmp_lt_search_path_spec=
1350
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1351
 
  for lt_sys_path in $lt_search_path_spec; do
1352
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1353
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1354
 
    else
1355
 
      test -d "$lt_sys_path" && \
1356
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1357
 
    fi
1358
 
  done
1359
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1360
 
BEGIN {RS=" "; FS="/|\n";} {
1361
 
  lt_foo="";
1362
 
  lt_count=0;
1363
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
1364
 
    if ($lt_i != "" && $lt_i != ".") {
1365
 
      if ($lt_i == "..") {
1366
 
        lt_count++;
1367
 
      } else {
1368
 
        if (lt_count == 0) {
1369
 
          lt_foo="/" $lt_i lt_foo;
1370
 
        } else {
1371
 
          lt_count--;
1372
 
        }
1373
 
      }
1374
 
    }
1375
 
  }
1376
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1377
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1378
 
}'`
1379
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1380
1273
else
1381
1274
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1382
 
fi])
 
1275
fi
1383
1276
need_lib_prefix=unknown
1384
1277
hardcode_into_libs=no
1385
1278
 
1536
1429
  shlibpath_overrides_runpath=yes
1537
1430
  shlibpath_var=DYLD_LIBRARY_PATH
1538
1431
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1539
 
  m4_if([$1], [],[
1540
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
1432
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
1433
  if test "$GCC" = yes; then
 
1434
    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"`
 
1435
  else
 
1436
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
1437
  fi
1541
1438
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1542
1439
  ;;
1543
1440
 
1565
1462
    *) objformat=elf ;;
1566
1463
    esac
1567
1464
  fi
1568
 
  # Handle Gentoo/FreeBSD as it was Linux
1569
 
  case $host_vendor in
1570
 
    gentoo)
1571
 
      version_type=linux ;;
1572
 
    *)
1573
 
      version_type=freebsd-$objformat ;;
1574
 
  esac
1575
 
 
 
1465
  version_type=freebsd-$objformat
1576
1466
  case $version_type in
1577
1467
    freebsd-elf*)
1578
1468
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1583
1473
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1584
1474
      need_version=yes
1585
1475
      ;;
1586
 
    linux)
1587
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1588
 
      soname_spec='${libname}${release}${shared_ext}$major'
1589
 
      need_lib_prefix=no
1590
 
      need_version=no
1591
 
      ;;
1592
1476
  esac
1593
1477
  shlibpath_var=LD_LIBRARY_PATH
1594
1478
  case $host_os in
1604
1488
    shlibpath_overrides_runpath=no
1605
1489
    hardcode_into_libs=yes
1606
1490
    ;;
1607
 
  *) # from 4.6 on, and DragonFly
 
1491
  freebsd*) # from 4.6 on
1608
1492
    shlibpath_overrides_runpath=yes
1609
1493
    hardcode_into_libs=yes
1610
1494
    ;;
1738
1622
 
1739
1623
  # Append ld.so.conf contents to the search path
1740
1624
  if test -f /etc/ld.so.conf; then
1741
 
    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/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1625
    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' ' '`
1742
1626
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1743
1627
  fi
1744
1628
 
1751
1635
  dynamic_linker='GNU/Linux ld.so'
1752
1636
  ;;
1753
1637
 
 
1638
netbsdelf*-gnu)
 
1639
  version_type=linux
 
1640
  need_lib_prefix=no
 
1641
  need_version=no
 
1642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1643
  soname_spec='${libname}${release}${shared_ext}$major'
 
1644
  shlibpath_var=LD_LIBRARY_PATH
 
1645
  shlibpath_overrides_runpath=no
 
1646
  hardcode_into_libs=yes
 
1647
  dynamic_linker='NetBSD ld.elf_so'
 
1648
  ;;
 
1649
 
1754
1650
netbsd*)
1755
1651
  version_type=sunos
1756
1652
  need_lib_prefix=no
1832
1728
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1833
1729
  ;;
1834
1730
 
1835
 
rdos*)
1836
 
  dynamic_linker=no
1837
 
  ;;
1838
 
 
1839
1731
solaris*)
1840
1732
  version_type=linux
1841
1733
  need_lib_prefix=no
1941
1833
# _LT_AC_TAGCONFIG
1942
1834
# ----------------
1943
1835
AC_DEFUN([_LT_AC_TAGCONFIG],
1944
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1945
 
AC_ARG_WITH([tags],
 
1836
[AC_ARG_WITH([tags],
1946
1837
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1947
1838
        [include additional configurations @<:@automatic@:>@])],
1948
1839
    [tagnames="$withval"])
2203
2094
 
2204
2095
# AC_PATH_TOOL_PREFIX
2205
2096
# -------------------
2206
 
# find a file program which can recognize shared library
 
2097
# find a file program which can recognise shared library
2207
2098
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2208
2099
[AC_REQUIRE([AC_PROG_EGREP])dnl
2209
2100
AC_MSG_CHECKING([for $1])
2266
2157
 
2267
2158
# AC_PATH_MAGIC
2268
2159
# -------------
2269
 
# find a file program which can recognize a shared library
 
2160
# find a file program which can recognise a shared library
2270
2161
AC_DEFUN([AC_PATH_MAGIC],
2271
2162
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2272
2163
if test -z "$lt_cv_path_MAGIC_CMD"; then
2413
2304
# how to check for library dependencies
2414
2305
#  -- PORTME fill in with the dynamic library characteristics
2415
2306
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2416
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
2307
[AC_CACHE_CHECK([how to recognise dependent libraries],
2417
2308
lt_cv_deplibs_check_method,
2418
2309
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2419
2310
lt_cv_file_magic_test_file=
2452
2343
 
2453
2344
mingw* | pw32*)
2454
2345
  # Base MSYS/MinGW do not provide the 'file' command needed by
2455
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
2456
 
  # unless we find 'file', for example because we are cross-compiling.
2457
 
  if ( file / ) >/dev/null 2>&1; then
2458
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2459
 
    lt_cv_file_magic_cmd='func_win32_libid'
2460
 
  else
2461
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2462
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
2463
 
  fi
 
2346
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2347
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2348
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2464
2349
  ;;
2465
2350
 
2466
2351
darwin* | rhapsody*)
2525
2410
  lt_cv_deplibs_check_method=pass_all
2526
2411
  ;;
2527
2412
 
2528
 
netbsd*)
 
2413
netbsd* | netbsdelf*-gnu)
2529
2414
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2530
2415
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2531
2416
  else
2555
2440
  lt_cv_deplibs_check_method=pass_all
2556
2441
  ;;
2557
2442
 
2558
 
rdos*)
2559
 
  lt_cv_deplibs_check_method=pass_all
2560
 
  ;;
2561
 
 
2562
2443
solaris*)
2563
2444
  lt_cv_deplibs_check_method=pass_all
2564
2445
  ;;
2611
2492
  lt_cv_path_NM="$NM"
2612
2493
else
2613
2494
  lt_nm_to_check="${ac_tool_prefix}nm"
2614
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
2495
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
2615
2496
    lt_nm_to_check="$lt_nm_to_check nm"
2616
2497
  fi
2617
2498
  for lt_tmp_nm in $lt_nm_to_check; do
2827
2708
_LT_AC_TAGVAR(objext, $1)=$objext
2828
2709
 
2829
2710
# Code to be used in simple compile tests
2830
 
lt_simple_compile_test_code="int some_variable = 0;"
 
2711
lt_simple_compile_test_code="int some_variable = 0;\n"
2831
2712
 
2832
2713
# Code to be used in simple link tests
2833
 
lt_simple_link_test_code='int main(){return(0);}'
 
2714
lt_simple_link_test_code='int main(){return(0);}\n'
2834
2715
 
2835
2716
_LT_AC_SYS_COMPILER
2836
2717
 
2932
2813
_LT_AC_TAGVAR(objext, $1)=$objext
2933
2814
 
2934
2815
# Code to be used in simple compile tests
2935
 
lt_simple_compile_test_code="int some_variable = 0;"
 
2816
lt_simple_compile_test_code="int some_variable = 0;\n"
2936
2817
 
2937
2818
# Code to be used in simple link tests
2938
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
2819
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2939
2820
 
2940
2821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2941
2822
_LT_AC_SYS_COMPILER
3081
2962
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3082
2963
        then
3083
2964
          # We have reworked collect2
3084
 
          :
 
2965
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3085
2966
        else
3086
2967
          # We have old collect2
3087
2968
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3326
3207
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3327
3208
 
3328
3209
      case $host_cpu in
3329
 
      hppa*64*|ia64*) ;;
 
3210
      hppa*64*|ia64*)
 
3211
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3212
        ;;
3330
3213
      *)
3331
3214
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3332
3215
        ;;
3514
3397
        # dependencies.
3515
3398
        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'
3516
3399
        ;;
3517
 
      *)
3518
 
        case `$CC -V 2>&1 | sed 5q` in
3519
 
        *Sun\ C*)
3520
 
          # Sun C++ 5.9
3521
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3522
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3523
 
          _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'
3524
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3525
 
          _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'
3526
 
 
3527
 
          # Not sure whether something based on
3528
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3529
 
          # would be better.
3530
 
          output_verbose_link_cmd='echo'
3531
 
 
3532
 
          # Archives containing C++ object files must be created using
3533
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3534
 
          # necessary to make sure instantiated templates are included
3535
 
          # in the archive.
3536
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3537
 
          ;;
3538
 
        esac
3539
 
        ;;
3540
3400
    esac
3541
3401
    ;;
3542
3402
  lynxos*)
3559
3419
        ;;
3560
3420
    esac
3561
3421
    ;;
3562
 
  netbsd*)
 
3422
  netbsd* | netbsdelf*-gnu)
3563
3423
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3564
3424
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3565
3425
      wlarc=
3746
3606
        case $host_os in
3747
3607
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3748
3608
          *)
3749
 
            # The compiler driver will combine and reorder linker options,
3750
 
            # but understands `-z linker_flag'.
 
3609
            # The C++ compiler is used as linker so we must use $wl
 
3610
            # flag to pass the commands to the underlying system
 
3611
            # linker. We must also pass each convience library through
 
3612
            # to the system linker between allextract/defaultextract.
 
3613
            # The C++ compiler will combine linker options so we
 
3614
            # cannot just pass the convience library names through
 
3615
            # without $wl.
3751
3616
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3752
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
3617
            _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'
3753
3618
            ;;
3754
3619
        esac
3755
3620
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3796
3661
          fi
3797
3662
 
3798
3663
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3799
 
          case $host_os in
3800
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3801
 
          *)
3802
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3803
 
            ;;
3804
 
          esac
3805
3664
        fi
3806
3665
        ;;
3807
3666
    esac
4053
3912
  _LT_AC_TAGVAR(postdeps,$1)=
4054
3913
  ;;
4055
3914
 
4056
 
linux*)
4057
 
  case `$CC -V 2>&1 | sed 5q` in
4058
 
  *Sun\ C*)
4059
 
    # Sun C++ 5.9
4060
 
    #
4061
 
    # The more standards-conforming stlport4 library is
4062
 
    # incompatible with the Cstd library. Avoid specifying
4063
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4064
 
    # -library=stlport4 depends on it.
4065
 
    case " $CXX $CXXFLAGS " in
4066
 
    *" -library=stlport4 "*)
4067
 
      solaris_use_stlport4=yes
4068
 
      ;;
4069
 
    esac
4070
 
    if test "$solaris_use_stlport4" != yes; then
4071
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4072
 
    fi
4073
 
    ;;
4074
 
  esac
4075
 
  ;;
4076
 
 
4077
3915
solaris*)
4078
3916
  case $cc_basename in
4079
3917
  CC*)
4080
 
    # The more standards-conforming stlport4 library is
4081
 
    # incompatible with the Cstd library. Avoid specifying
4082
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4083
 
    # -library=stlport4 depends on it.
4084
 
    case " $CXX $CXXFLAGS " in
4085
 
    *" -library=stlport4 "*)
4086
 
      solaris_use_stlport4=yes
4087
 
      ;;
4088
 
    esac
4089
 
 
4090
3918
    # Adding this requires a known-good setup of shared libraries for
4091
3919
    # Sun compiler versions before 5.6, else PIC objects from an old
4092
3920
    # archive will be linked into the output, leading to subtle bugs.
4093
 
    if test "$solaris_use_stlport4" != yes; then
4094
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4095
 
    fi
 
3921
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4096
3922
    ;;
4097
3923
  esac
4098
3924
  ;;
4141
3967
_LT_AC_TAGVAR(objext, $1)=$objext
4142
3968
 
4143
3969
# Code to be used in simple compile tests
4144
 
lt_simple_compile_test_code="\
4145
 
      subroutine t
4146
 
      return
4147
 
      end
4148
 
"
 
3970
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4149
3971
 
4150
3972
# Code to be used in simple link tests
4151
 
lt_simple_link_test_code="\
4152
 
      program t
4153
 
      end
4154
 
"
 
3973
lt_simple_link_test_code="      program t\n      end\n"
4155
3974
 
4156
3975
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4157
3976
_LT_AC_SYS_COMPILER
4230
4049
_LT_AC_TAGVAR(objext, $1)=$objext
4231
4050
 
4232
4051
# Code to be used in simple compile tests
4233
 
lt_simple_compile_test_code="class foo {}"
 
4052
lt_simple_compile_test_code="class foo {}\n"
4234
4053
 
4235
4054
# Code to be used in simple link tests
4236
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
4055
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4237
4056
 
4238
4057
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4239
4058
_LT_AC_SYS_COMPILER
4286
4105
_LT_AC_TAGVAR(objext, $1)=$objext
4287
4106
 
4288
4107
# Code to be used in simple compile tests
4289
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
4108
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4290
4109
 
4291
4110
# Code to be used in simple link tests
4292
4111
lt_simple_link_test_code="$lt_simple_compile_test_code"
4421
4240
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4422
4241
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4423
4242
#
4424
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
4243
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4425
4244
# Free Software Foundation, Inc.
4426
4245
#
4427
4246
# This file is part of GNU Libtool:
4829
4648
# ---------------------------------
4830
4649
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4831
4650
[AC_REQUIRE([AC_CANONICAL_HOST])
4832
 
AC_REQUIRE([LT_AC_PROG_SED])
4833
4651
AC_REQUIRE([AC_PROG_NM])
4834
4652
AC_REQUIRE([AC_OBJEXT])
4835
4653
# Check for command to grab the raw symbol name followed by C symbol from nm.
5056
4874
      # like `-m68040'.
5057
4875
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5058
4876
      ;;
5059
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4877
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5060
4878
      # PIC is the default for these OSes.
5061
4879
      ;;
5062
 
    mingw* | cygwin* | os2* | pw32*)
 
4880
    mingw* | os2* | pw32*)
5063
4881
      # This hack is so that the source file can tell whether it is being
5064
4882
      # built for inclusion in a dll (and should export symbols for example).
5065
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5066
 
      # (--disable-auto-import) libraries
5067
4883
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5068
4884
      ;;
5069
4885
    darwin* | rhapsody*)
5211
5027
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5212
5028
            ;;
5213
5029
          *)
5214
 
            case `$CC -V 2>&1 | sed 5q` in
5215
 
            *Sun\ C*)
5216
 
              # Sun C++ 5.9
5217
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5218
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5219
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5220
 
              ;;
5221
 
            esac
5222
5030
            ;;
5223
5031
        esac
5224
5032
        ;;
5235
5043
            ;;
5236
5044
        esac
5237
5045
        ;;
5238
 
      netbsd*)
 
5046
      netbsd* | netbsdelf*-gnu)
5239
5047
        ;;
5240
5048
      osf3* | osf4* | osf5*)
5241
5049
        case $cc_basename in
5339
5147
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5340
5148
      ;;
5341
5149
 
5342
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5150
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5343
5151
      # PIC is the default for these OSes.
5344
5152
      ;;
5345
5153
 
5346
 
    mingw* | cygwin* | pw32* | os2*)
 
5154
    mingw* | pw32* | os2*)
5347
5155
      # This hack is so that the source file can tell whether it is being
5348
5156
      # built for inclusion in a dll (and should export symbols for example).
5349
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5350
 
      # (--disable-auto-import) libraries
5351
5157
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5352
5158
      ;;
5353
5159
 
5415
5221
       esac
5416
5222
       ;;
5417
5223
 
5418
 
    mingw* | cygwin* | pw32* | os2*)
 
5224
    mingw* | pw32* | os2*)
5419
5225
      # This hack is so that the source file can tell whether it is being
5420
5226
      # built for inclusion in a dll (and should export symbols for example).
5421
5227
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5467
5273
        # All Alpha code is PIC.
5468
5274
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5469
5275
        ;;
5470
 
      *)
5471
 
        case `$CC -V 2>&1 | sed 5q` in
5472
 
        *Sun\ C*)
5473
 
          # Sun C 5.9
5474
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5475
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5476
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5477
 
          ;;
5478
 
        *Sun\ F*)
5479
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5480
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5481
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5482
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5483
 
          ;;
5484
 
        esac
5485
 
        ;;
5486
5276
      esac
5487
5277
      ;;
5488
5278
 
5492
5282
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5493
5283
      ;;
5494
5284
 
5495
 
    rdos*)
5496
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5497
 
      ;;
5498
 
 
5499
5285
    solaris*)
5500
5286
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5501
5287
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5590
5376
# ------------------------------------
5591
5377
# See if the linker supports building shared libraries.
5592
5378
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5593
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5594
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5379
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5595
5380
ifelse([$1],[CXX],[
5596
5381
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5597
5382
  case $host_os in
5608
5393
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5609
5394
  ;;
5610
5395
  cygwin* | mingw*)
5611
 
    _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'
 
5396
    _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'
 
5397
  ;;
 
5398
  linux* | k*bsd*-gnu)
 
5399
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5612
5400
  ;;
5613
5401
  *)
5614
5402
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5747
5535
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5748
5536
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5749
5537
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5750
 
      _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'
 
5538
      _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'
5751
5539
 
5752
5540
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5753
5541
        _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'
5780
5568
      _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'
5781
5569
      ;;
5782
5570
 
5783
 
    gnu* | linux* | k*bsd*-gnu)
 
5571
    linux* | k*bsd*-gnu)
5784
5572
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5785
5573
        tmp_addflag=
5786
5574
        case $cc_basename,$host_cpu in
5798
5586
        ifc* | ifort*)                  # Intel Fortran compiler
5799
5587
          tmp_addflag=' -nofor_main' ;;
5800
5588
        esac
5801
 
        case `$CC -V 2>&1 | sed 5q` in
5802
 
        *Sun\ C*)                       # Sun C 5.9
5803
 
          _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'
5804
 
          tmp_sharedflag='-G' ;;
5805
 
        *Sun\ F*)                       # Sun Fortran 8.3
5806
 
          tmp_sharedflag='-G' ;;
5807
 
        *)
5808
 
          tmp_sharedflag='-shared' ;;
5809
 
        esac
5810
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5589
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5811
5590
 
5812
5591
        if test $supports_anon_versioning = yes; then
5813
5592
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5814
5593
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5815
5594
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5816
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5595
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5817
5596
        fi
 
5597
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5818
5598
      else
5819
5599
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5820
5600
      fi
5821
5601
      ;;
5822
5602
 
5823
 
    netbsd*)
 
5603
    netbsd* | netbsdelf*-gnu)
5824
5604
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5825
5605
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5826
5606
        wlarc=
5853
5633
 
5854
5634
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5855
5635
      case `$LD -v 2>&1` in
5856
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5636
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
5857
5637
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5858
5638
        cat <<_LT_EOF 1>&2
5859
5639
 
5972
5752
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5973
5753
          then
5974
5754
          # We have reworked collect2
5975
 
          :
 
5755
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5976
5756
          else
5977
5757
          # We have old collect2
5978
5758
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6065
5845
      # The linker will automatically build a .lib file if we build a DLL.
6066
5846
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6067
5847
      # FIXME: Should let the user specify the lib program.
6068
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5848
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6069
5849
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6070
5850
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6071
5851
      ;;
6252
6032
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6253
6033
      ;;
6254
6034
 
6255
 
    netbsd*)
 
6035
    netbsd* | netbsdelf*-gnu)
6256
6036
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6257
6037
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6258
6038
      else
6348
6128
      case $host_os in
6349
6129
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6350
6130
      *)
6351
 
        # The compiler driver will combine and reorder linker options,
6352
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6353
 
        # but is careful enough not to reorder.
 
6131
        # The compiler driver will combine linker options so we
 
6132
        # cannot just pass the convience library names through
 
6133
        # without $wl, iff we do not link with $LD.
 
6134
        # Luckily, gcc supports the same syntax we need for Sun Studio.
6354
6135
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6355
 
        if test "$GCC" = yes; then
6356
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6357
 
        else
6358
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6359
 
        fi
6360
 
        ;;
 
6136
        case $wlarc in
 
6137
        '')
 
6138
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6139
        *)
 
6140
          _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' ;;
 
6141
        esac ;;
6361
6142
      esac
6362
6143
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6363
6144
      ;;
6414
6195
      fi
6415
6196
      ;;
6416
6197
 
6417
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6198
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6418
6199
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6419
6200
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6420
6201
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6489
6270
      # to ld, don't add -lc before -lgcc.
6490
6271
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6491
6272
      $rm conftest*
6492
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6273
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6493
6274
 
6494
6275
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6495
6276
        soname=conftest
6592
6373
[AC_CHECK_TOOL(RC, windres, no)
6593
6374
])
6594
6375
 
6595
 
 
6596
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6597
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6598
 
 
6599
 
# _AS_TEST_PREPARE
6600
 
# ----------------
6601
 
m4_ifndef([_AS_TEST_PREPARE],
6602
 
[m4_defun([_AS_TEST_PREPARE],
6603
 
[if test -x / >/dev/null 2>&1; then
6604
 
  as_executable_p='test -x'
6605
 
else
6606
 
  as_executable_p='test -f'
6607
 
fi
6608
 
])])# _AS_TEST_PREPARE
6609
 
 
6610
 
# AS_EXECUTABLE_P
6611
 
# ---------------
6612
 
# Check whether a file is executable.
6613
 
m4_ifndef([AS_EXECUTABLE_P],
6614
 
[m4_defun([AS_EXECUTABLE_P],
6615
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6616
 
$as_executable_p $1[]dnl
6617
 
])])# AS_EXECUTABLE_P
6618
 
 
6619
6376
# NOTE: This macro has been submitted for inclusion into   #
6620
6377
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6621
6378
#  a released version of Autoconf we should remove this    #
6636
6393
  test -z "$as_dir" && as_dir=.
6637
6394
  for lt_ac_prog in sed gsed; do
6638
6395
    for ac_exec_ext in '' $ac_executable_extensions; do
6639
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
6396
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6640
6397
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6641
6398
      fi
6642
6399
    done
6643
6400
  done
6644
6401
done
6645
 
IFS=$as_save_IFS
6646
6402
lt_ac_max=0
6647
6403
lt_ac_count=0
6648
6404
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6675
6431
done
6676
6432
])
6677
6433
SED=$lt_cv_path_SED
6678
 
AC_SUBST([SED])
6679
6434
AC_MSG_RESULT([$SED])
6680
6435
])
6681
6436
 
6837
6592
fi[]dnl
6838
6593
])# PKG_CHECK_MODULES
6839
6594
 
6840
 
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
6595
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6841
6596
#
6842
6597
# This file is free software; the Free Software Foundation
6843
6598
# gives unlimited permission to copy and/or distribute it,
6847
6602
# ----------------------------
6848
6603
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6849
6604
# generated from the m4 files accompanying Automake X.Y.
6850
 
# (This private macro should not be called outside this file.)
6851
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
6852
 
[am__api_version='1.10'
6853
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6854
 
dnl require some minimum version.  Point them to the right macro.
6855
 
m4_if([$1], [1.10], [],
6856
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6857
 
])
6858
 
 
6859
 
# _AM_AUTOCONF_VERSION(VERSION)
6860
 
# -----------------------------
6861
 
# aclocal traces this macro to find the Autoconf version.
6862
 
# This is a private macro too.  Using m4_define simplifies
6863
 
# the logic in aclocal, which can simply ignore this definition.
6864
 
m4_define([_AM_AUTOCONF_VERSION], [])
 
6605
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6865
6606
 
6866
6607
# AM_SET_CURRENT_AUTOMAKE_VERSION
6867
6608
# -------------------------------
6868
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
6609
# Call AM_AUTOMAKE_VERSION so it can be traced.
6869
6610
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6870
6611
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6871
 
[AM_AUTOMAKE_VERSION([1.10])dnl
6872
 
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
6612
         [AM_AUTOMAKE_VERSION([1.9.6])])
6873
6613
 
6874
6614
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6875
6615
 
6926
6666
 
6927
6667
# AM_CONDITIONAL                                            -*- Autoconf -*-
6928
6668
 
6929
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
6669
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6930
6670
# Free Software Foundation, Inc.
6931
6671
#
6932
6672
# This file is free software; the Free Software Foundation
6933
6673
# gives unlimited permission to copy and/or distribute it,
6934
6674
# with or without modifications, as long as this notice is preserved.
6935
6675
 
6936
 
# serial 8
 
6676
# serial 7
6937
6677
 
6938
6678
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6939
6679
# -------------------------------------
6942
6682
[AC_PREREQ(2.52)dnl
6943
6683
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6944
6684
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6945
 
AC_SUBST([$1_TRUE])dnl
6946
 
AC_SUBST([$1_FALSE])dnl
6947
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
6948
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
6685
AC_SUBST([$1_TRUE])
 
6686
AC_SUBST([$1_FALSE])
6949
6687
if $2; then
6950
6688
  $1_TRUE=
6951
6689
  $1_FALSE='#'
6959
6697
Usually this means the macro was only invoked conditionally.]])
6960
6698
fi])])
6961
6699
 
6962
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
6700
 
 
6701
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6963
6702
# Free Software Foundation, Inc.
6964
6703
#
6965
6704
# This file is free software; the Free Software Foundation
6966
6705
# gives unlimited permission to copy and/or distribute it,
6967
6706
# with or without modifications, as long as this notice is preserved.
6968
6707
 
6969
 
# serial 9
 
6708
# serial 8
6970
6709
 
6971
6710
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6972
6711
# written in clear, in which case automake, when reading aclocal.m4,
6994
6733
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6995
6734
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6996
6735
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6997
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6998
6736
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6999
6737
                   [depcc="$$1"   am_compiler_list=])
7000
6738
 
7060
6798
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7061
6799
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7062
6800
         >/dev/null 2>conftest.err &&
7063
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7064
6801
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7065
6802
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7066
6803
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7113
6850
  AMDEPBACKSLASH='\'
7114
6851
fi
7115
6852
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7116
 
AC_SUBST([AMDEPBACKSLASH])dnl
7117
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
6853
AC_SUBST([AMDEPBACKSLASH])
7118
6854
])
7119
6855
 
7120
6856
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7139
6875
  # some people rename them; so instead we look at the file content.
7140
6876
  # Grep'ing the first line is not enough: some people post-process
7141
6877
  # each Makefile.in and add a new line on top of each file to say so.
7142
 
  # Grep'ing the whole file is not good either: AIX grep has a line
7143
 
  # limit of 2048, but all sed's we know have understand at least 4000.
7144
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
6878
  # So let's grep whole file.
 
6879
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7145
6880
    dirpart=`AS_DIRNAME("$mf")`
7146
6881
  else
7147
6882
    continue
7200
6935
 
7201
6936
# Do all the work for Automake.                             -*- Autoconf -*-
7202
6937
 
7203
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7204
 
# 2005, 2006 Free Software Foundation, Inc.
 
6938
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6939
# Free Software Foundation, Inc.
7205
6940
#
7206
6941
# This file is free software; the Free Software Foundation
7207
6942
# gives unlimited permission to copy and/or distribute it,
7224
6959
# arguments mandatory, and then we can depend on a new Autoconf
7225
6960
# release and drop the old call support.
7226
6961
AC_DEFUN([AM_INIT_AUTOMAKE],
7227
 
[AC_PREREQ([2.60])dnl
 
6962
[AC_PREREQ([2.58])dnl
7228
6963
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7229
6964
dnl the ones we care about.
7230
6965
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7231
6966
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7232
6967
AC_REQUIRE([AC_PROG_INSTALL])dnl
7233
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7234
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7235
 
  # is not polluted with repeated "-I."
7236
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7237
 
  # test to see if srcdir already configured
7238
 
  if test -f $srcdir/config.status; then
7239
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7240
 
  fi
 
6968
# test to see if srcdir already configured
 
6969
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
6970
   test -f $srcdir/config.status; then
 
6971
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7241
6972
fi
7242
6973
 
7243
6974
# test whether we have cygpath
7257
6988
 AC_SUBST([PACKAGE], [$1])dnl
7258
6989
 AC_SUBST([VERSION], [$2])],
7259
6990
[_AM_SET_OPTIONS([$1])dnl
7260
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7261
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7262
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7263
6991
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7264
6992
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7265
6993
 
7295
7023
                  [_AM_DEPENDENCIES(CXX)],
7296
7024
                  [define([AC_PROG_CXX],
7297
7025
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7298
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7299
 
                  [_AM_DEPENDENCIES(OBJC)],
7300
 
                  [define([AC_PROG_OBJC],
7301
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7302
7026
])
7303
7027
])
7304
7028
 
7334
7058
# Define $install_sh.
7335
7059
AC_DEFUN([AM_PROG_INSTALL_SH],
7336
7060
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7337
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
7061
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7338
7062
AC_SUBST(install_sh)])
7339
7063
 
7340
7064
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7412
7136
 
7413
7137
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7414
7138
 
7415
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
7139
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7416
7140
# Free Software Foundation, Inc.
7417
7141
#
7418
7142
# This file is free software; the Free Software Foundation
7419
7143
# gives unlimited permission to copy and/or distribute it,
7420
7144
# with or without modifications, as long as this notice is preserved.
7421
7145
 
7422
 
# serial 5
 
7146
# serial 4
7423
7147
 
7424
7148
# AM_MISSING_PROG(NAME, PROGRAM)
7425
7149
# ------------------------------
7435
7159
# If it does, set am_missing_run to use it, otherwise, to nothing.
7436
7160
AC_DEFUN([AM_MISSING_HAS_RUN],
7437
7161
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7438
 
AC_REQUIRE_AUX_FILE([missing])dnl
7439
7162
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7440
7163
# Use eval to expand $SHELL
7441
7164
if eval "$MISSING --run true"; then
7446
7169
fi
7447
7170
])
7448
7171
 
7449
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
7172
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
7450
7173
#
7451
7174
# This file is free software; the Free Software Foundation
7452
7175
# gives unlimited permission to copy and/or distribute it,
7454
7177
 
7455
7178
# AM_PROG_MKDIR_P
7456
7179
# ---------------
7457
 
# Check for `mkdir -p'.
 
7180
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
7181
#
 
7182
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
7183
# created by `make install' are always world readable, even if the
 
7184
# installer happens to have an overly restrictive umask (e.g. 077).
 
7185
# This was a mistake.  There are at least two reasons why we must not
 
7186
# use `-m 0755':
 
7187
#   - it causes special bits like SGID to be ignored,
 
7188
#   - it may be too restrictive (some setups expect 775 directories).
 
7189
#
 
7190
# Do not use -m 0755 and let people choose whatever they expect by
 
7191
# setting umask.
 
7192
#
 
7193
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
7194
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
7195
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
7196
# concurrently, both version can detect that a/ is missing, but only
 
7197
# one can create it and the other will error out.  Consequently we
 
7198
# restrict ourselves to GNU make (using the --version option ensures
 
7199
# this.)
7458
7200
AC_DEFUN([AM_PROG_MKDIR_P],
7459
 
[AC_PREREQ([2.60])dnl
7460
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7461
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
7462
 
dnl while keeping a definition of mkdir_p for backward compatibility.
7463
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7464
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7465
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7466
 
dnl adjustment using top_builddir (which is defined more often than
7467
 
dnl MKDIR_P).
7468
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7469
 
case $mkdir_p in
7470
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
7471
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7472
 
esac
7473
 
])
 
7201
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
7202
  # We used to keeping the `.' as first argument, in order to
 
7203
  # allow $(mkdir_p) to be used without argument.  As in
 
7204
  #   $(mkdir_p) $(somedir)
 
7205
  # where $(somedir) is conditionally defined.  However this is wrong
 
7206
  # for two reasons:
 
7207
  #  1. if the package is installed by a user who cannot write `.'
 
7208
  #     make install will fail,
 
7209
  #  2. the above comment should most certainly read
 
7210
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
7211
  #     so it does not work when $(somedir) is undefined and
 
7212
  #     $(DESTDIR) is not.
 
7213
  #  To support the latter case, we have to write
 
7214
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
7215
  #  so the `.' trick is pointless.
 
7216
  mkdir_p='mkdir -p --'
 
7217
else
 
7218
  # On NextStep and OpenStep, the `mkdir' command does not
 
7219
  # recognize any option.  It will interpret all options as
 
7220
  # directories to create, and then abort because `.' already
 
7221
  # exists.
 
7222
  for d in ./-p ./--version;
 
7223
  do
 
7224
    test -d $d && rmdir $d
 
7225
  done
 
7226
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
7227
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
7228
    mkdir_p='$(mkinstalldirs)'
 
7229
  else
 
7230
    mkdir_p='$(install_sh) -d'
 
7231
  fi
 
7232
fi
 
7233
AC_SUBST([mkdir_p])])
7474
7234
 
7475
7235
# Helper functions for option handling.                     -*- Autoconf -*-
7476
7236
 
7763
7523
if test "$cross_compiling" != no; then
7764
7524
  AC_CHECK_TOOL([STRIP], [strip], :)
7765
7525
fi
7766
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
7526
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7767
7527
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7768
7528
 
7769
 
# Copyright (C) 2006  Free Software Foundation, Inc.
7770
 
#
7771
 
# This file is free software; the Free Software Foundation
7772
 
# gives unlimited permission to copy and/or distribute it,
7773
 
# with or without modifications, as long as this notice is preserved.
7774
 
 
7775
 
# _AM_SUBST_NOTMAKE(VARIABLE)
7776
 
# ---------------------------
7777
 
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7778
 
# This macro is traced by Automake.
7779
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
7780
 
 
7781
7529
# Check how to create a tarball.                            -*- Autoconf -*-
7782
7530
 
7783
7531
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.