~ubuntu-branches/ubuntu/natty/xfce4-weather-plugin/natty-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Simon Huggins, Yves-Alexis Perez
  • Date: 2007-12-08 19:28:17 UTC
  • mfrom: (0.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071208192817-xjr2u2eshv19ndp5
Tags: 0.6.2-1
[ Simon Huggins ]
* debian/control: Move fake Homepage field to a real one now dpkg
  supports it.
* Add Vcs-* headers to debian/control

[ Yves-Alexis Perez ]
* New upstream release.
* debian/control:
  - updated standard versions to 3.7.3.
  - updated my email to the debian.org one.
* debian/copyright: updated copyrights, authors and license.
* debian/NEWS: remove tab at beginning of lines. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006  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
 
14
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
16
21
#
114
119
#-----------------
115
120
glib_DEFUN([GLIB_WITH_NLS],
116
121
  dnl NLS is obligatory
117
 
  [USE_NLS=yes
 
122
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
123
    USE_NLS=yes
118
124
    AC_SUBST(USE_NLS)
119
125
 
120
126
    gt_cv_have_gettext=no
218
224
          glib_save_LIBS="$LIBS"
219
225
          LIBS="$LIBS $INTLLIBS"
220
226
          AC_CHECK_FUNCS(dcgettext)
 
227
          MSGFMT_OPTS=
 
228
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
229
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
230
msgid ""
 
231
msgstr ""
 
232
"Content-Type: text/plain; charset=UTF-8\n"
 
233
"Project-Id-Version: test 1.0\n"
 
234
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
235
"Last-Translator: test <foo@bar.xx>\n"
 
236
"Language-Team: C <LL@li.org>\n"
 
237
"MIME-Version: 1.0\n"
 
238
"Content-Transfer-Encoding: 8bit\n"
 
239
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
240
          AC_SUBST(MSGFMT_OPTS)
221
241
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
242
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
243
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
389
409
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
410
glib_save_prefix="$prefix"
391
411
glib_save_exec_prefix="$exec_prefix"
 
412
glib_save_datarootdir="$datarootdir"
392
413
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
414
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
415
datarootdir=`eval echo "${datarootdir}"`
394
416
if test "x$CATOBJEXT" = "x.mo" ; then
395
417
  localedir=`eval echo "${libdir}/locale"`
396
418
else
398
420
fi
399
421
prefix="$glib_save_prefix"
400
422
exec_prefix="$glib_save_exec_prefix"
 
423
datarootdir="$glib_save_datarootdir"
401
424
AC_DEFINE_UNQUOTED($1, "$localedir",
402
425
  [Define the location where the catalogs will be installed])
403
426
])
410
433
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
411
434
])dnl
412
435
 
 
436
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
437
 
438
# Create a temporary file with TEST-FILE as its contents and pass the
 
439
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
440
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
441
AC_DEFUN([GLIB_RUN_PROG],
 
442
[cat >conftest.foo <<_ACEOF
 
443
$2
 
444
_ACEOF
 
445
if AC_RUN_LOG([$1 conftest.foo]); then
 
446
  m4_ifval([$3], [$3], [:])
 
447
m4_ifvaln([$4], [else $4])dnl
 
448
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
449
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
450
fi])
 
451
 
 
452
 
413
453
 
414
454
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
 
# serial 35 IT_PROG_INTLTOOL
 
455
# serial 36 IT_PROG_INTLTOOL
416
456
AC_DEFUN([IT_PROG_INTLTOOL],
417
457
[AC_PREREQ([2.50])dnl
418
458
 
425
465
esac
426
466
 
427
467
if test -n "$1"; then
428
 
    AC_MSG_CHECKING(for intltool >= $1)
 
468
    AC_MSG_CHECKING([for intltool >= $1])
429
469
 
430
470
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
431
471
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
454
494
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
455
495
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
456
496
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
497
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
457
498
 
458
499
AC_SUBST(INTLTOOL_DESKTOP_RULE)
459
500
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
473
514
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
474
515
AC_SUBST(INTLTOOL_THEME_RULE)
475
516
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
517
AC_SUBST(INTLTOOL_POLICY_RULE)
476
518
 
477
519
# Use the tools built into the package, not the ones that are installed.
478
520
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
495
537
   fi
496
538
fi
497
539
 
498
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
502
 
 
503
540
# Substitute ALL_LINGUAS so we can use it in po/Makefile
504
541
AC_SUBST(ALL_LINGUAS)
505
 
    
 
542
 
 
543
# Set DATADIRNAME correctly if it is not set yet
 
544
# (copied from glib-gettext.m4)
 
545
if test -z "$DATADIRNAME"; then
 
546
  AC_LINK_IFELSE(
 
547
    [AC_LANG_PROGRAM([[]],
 
548
                     [[extern int _nl_msg_cat_cntr;
 
549
                       return _nl_msg_cat_cntr]])],
 
550
    [DATADIRNAME=share],
 
551
    [case $host in
 
552
    *-*-solaris*)
 
553
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
554
    dnl GNU format message catalog is always supported,
 
555
    dnl since both are added to the libc all together.
 
556
    dnl Hence, we'd like to go with DATADIRNAME=share
 
557
    dnl in this case.
 
558
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
559
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
560
    ;;
 
561
    *)
 
562
    [DATADIRNAME=lib]
 
563
    ;;
 
564
    esac])
 
565
fi
 
566
AC_SUBST(DATADIRNAME)
 
567
 
506
568
IT_PO_SUBDIR([po])
507
569
 
508
570
dnl The following is very similar to
525
587
for file in intltool-extract intltool-merge intltool-update; do
526
588
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
527
589
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
528
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
529
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
530
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
531
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
532
590
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
533
591
        < ${ac_aux_dir}/${file}.in > ${file}.out
534
592
  if cmp -s ${file} ${file}.out 2>/dev/null; then
543
601
],
544
602
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
545
603
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
546
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
547
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
548
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
604
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
549
605
 
550
606
])
551
607
 
594
650
 
595
651
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
596
652
 
597
 
# serial 48 AC_PROG_LIBTOOL
 
653
# serial 51 AC_PROG_LIBTOOL
598
654
 
599
655
 
600
656
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
757
813
test -z "$ac_objext" && ac_objext=o
758
814
 
759
815
# Determine commands to create old-style static archives.
760
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
816
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
761
817
old_postinstall_cmds='chmod 644 $oldlib'
762
818
old_postuninstall_cmds=
763
819
 
844
900
# Check for compiler boilerplate output or warnings with
845
901
# the simple compiler test code.
846
902
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
847
 
[ac_outfile=conftest.$ac_objext
848
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
903
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
904
ac_outfile=conftest.$ac_objext
 
905
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
849
906
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
850
907
_lt_compiler_boilerplate=`cat conftest.err`
851
908
$rm conftest*
857
914
# Check for linker boilerplate output or warnings with
858
915
# the simple link test code.
859
916
AC_DEFUN([_LT_LINKER_BOILERPLATE],
860
 
[ac_outfile=conftest.$ac_objext
861
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
917
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
918
ac_outfile=conftest.$ac_objext
 
919
echo "$lt_simple_link_test_code" >conftest.$ac_ext
862
920
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
863
921
_lt_linker_boilerplate=`cat conftest.err`
864
922
$rm conftest*
874
932
# If we don't find anything, use the default library path according
875
933
# to the aix ld manual.
876
934
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
877
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
878
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
879
 
}'`
 
935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
936
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
937
lt_aix_libpath_sed='
 
938
    /Import File Strings/,/^$/ {
 
939
        /^0/ {
 
940
            s/^0  *\(.*\)$/\1/
 
941
            p
 
942
        }
 
943
    }'
 
944
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
880
945
# Check for a 64-bit object if we didn't find anything.
881
 
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; }
882
 
}'`; fi],[])
 
946
if test -z "$aix_libpath"; then
 
947
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
948
fi],[])
883
949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
884
950
])# _LT_AC_SYS_LIBPATH_AIX
885
951
 
1110
1176
  rm -rf conftest*
1111
1177
  ;;
1112
1178
 
1113
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1179
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1180
s390*-*linux*|sparc*-*linux*)
1114
1181
  # Find out which ABI we are using.
1115
1182
  echo 'int i;' > conftest.$ac_ext
1116
1183
  if AC_TRY_EVAL(ac_compile); then
1117
1184
    case `/usr/bin/file conftest.o` in
1118
1185
    *32-bit*)
1119
1186
      case $host in
 
1187
        x86_64-*kfreebsd*-gnu)
 
1188
          LD="${LD-ld} -m elf_i386_fbsd"
 
1189
          ;;
1120
1190
        x86_64-*linux*)
1121
1191
          LD="${LD-ld} -m elf_i386"
1122
1192
          ;;
1133
1203
      ;;
1134
1204
    *64-bit*)
1135
1205
      case $host in
 
1206
        x86_64-*kfreebsd*-gnu)
 
1207
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1208
          ;;
1136
1209
        x86_64-*linux*)
1137
1210
          LD="${LD-ld} -m elf_x86_64"
1138
1211
          ;;
1204
1277
AC_CACHE_CHECK([$1], [$2],
1205
1278
  [$2=no
1206
1279
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1207
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1280
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1208
1281
   lt_compiler_flag="$3"
1209
1282
   # Insert the option either (1) after the last *FLAGS variable, or
1210
1283
   # (2) before a word containing "conftest.", or (3) at the end.
1245
1318
# ------------------------------------------------------------
1246
1319
# Check whether the given compiler option works
1247
1320
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1248
 
[AC_CACHE_CHECK([$1], [$2],
 
1321
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1322
AC_CACHE_CHECK([$1], [$2],
1249
1323
  [$2=no
1250
1324
   save_LDFLAGS="$LDFLAGS"
1251
1325
   LDFLAGS="$LDFLAGS $3"
1252
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1326
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1253
1327
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1254
1328
     # The linker can only warn and ignore the option if not recognized
1255
1329
     # So say no if there are warnings
1363
1437
    fi
1364
1438
    ;;
1365
1439
  *)
1366
 
    # If test is not a shell built-in, we'll probably end up computing a
1367
 
    # maximum length that is only half of the actual maximum length, but
1368
 
    # we can't tell.
1369
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1370
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1440
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1441
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1442
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1443
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1444
    else
 
1445
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1446
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1371
1447
               = "XX$teststring") >/dev/null 2>&1 &&
1372
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1373
 
            lt_cv_sys_max_cmd_len=$new_result &&
1374
 
            test $i != 17 # 1/2 MB should be enough
1375
 
    do
1376
 
      i=`expr $i + 1`
1377
 
      teststring=$teststring$teststring
1378
 
    done
1379
 
    teststring=
1380
 
    # Add a significant safety factor because C++ compilers can tack on massive
1381
 
    # amounts of additional arguments before passing them to the linker.
1382
 
    # It appears as though 1/2 is a usable value.
1383
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1448
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1449
              lt_cv_sys_max_cmd_len=$new_result &&
 
1450
              test $i != 17 # 1/2 MB should be enough
 
1451
      do
 
1452
        i=`expr $i + 1`
 
1453
        teststring=$teststring$teststring
 
1454
      done
 
1455
      teststring=
 
1456
      # Add a significant safety factor because C++ compilers can tack on massive
 
1457
      # amounts of additional arguments before passing them to the linker.
 
1458
      # It appears as though 1/2 is a usable value.
 
1459
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1460
    fi
1384
1461
    ;;
1385
1462
  esac
1386
1463
])
1607
1684
# ---------------------------------
1608
1685
# Check to see if options -c and -o are simultaneously supported by compiler
1609
1686
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1610
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1687
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1688
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1611
1689
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1612
1690
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1613
1691
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1615
1693
   mkdir conftest
1616
1694
   cd conftest
1617
1695
   mkdir out
1618
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1696
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1619
1697
 
1620
1698
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1621
1699
   # Insert the option either (1) after the last *FLAGS variable, or
1755
1833
   darwin*)
1756
1834
       if test -n "$STRIP" ; then
1757
1835
         striplib="$STRIP -x"
 
1836
         old_striplib="$STRIP -S"
1758
1837
         AC_MSG_RESULT([yes])
1759
1838
       else
1760
1839
  AC_MSG_RESULT([no])
1772
1851
# -----------------------------
1773
1852
# PORTME Fill in your ld.so characteristics
1774
1853
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1775
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1854
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1855
AC_MSG_CHECKING([dynamic linker characteristics])
1776
1856
library_names_spec=
1777
1857
libname_spec='lib$name'
1778
1858
soname_spec=
1786
1866
version_type=none
1787
1867
dynamic_linker="$host_os ld.so"
1788
1868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1869
m4_if($1,[],[
1789
1870
if test "$GCC" = yes; then
1790
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1791
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1871
  case $host_os in
 
1872
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1873
    *) lt_awk_arg="/^libraries:/" ;;
 
1874
  esac
 
1875
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1876
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1792
1877
    # if the path contains ";" then we assume it to be the separator
1793
1878
    # otherwise default to the standard path separator (i.e. ":") - it is
1794
1879
    # assumed that no part of a normal pathname contains ";" but that should
1795
1880
    # okay in the real world where ";" in dirpaths is itself problematic.
1796
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1881
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1797
1882
  else
1798
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1883
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1799
1884
  fi
 
1885
  # Ok, now we have the path, separated by spaces, we can step through it
 
1886
  # and add multilib dir if necessary.
 
1887
  lt_tmp_lt_search_path_spec=
 
1888
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1889
  for lt_sys_path in $lt_search_path_spec; do
 
1890
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1891
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1892
    else
 
1893
      test -d "$lt_sys_path" && \
 
1894
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1895
    fi
 
1896
  done
 
1897
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1898
BEGIN {RS=" "; FS="/|\n";} {
 
1899
  lt_foo="";
 
1900
  lt_count=0;
 
1901
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1902
    if ($lt_i != "" && $lt_i != ".") {
 
1903
      if ($lt_i == "..") {
 
1904
        lt_count++;
 
1905
      } else {
 
1906
        if (lt_count == 0) {
 
1907
          lt_foo="/" $lt_i lt_foo;
 
1908
        } else {
 
1909
          lt_count--;
 
1910
        }
 
1911
      }
 
1912
    }
 
1913
  }
 
1914
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1915
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1916
}'`
 
1917
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1800
1918
else
1801
1919
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1802
 
fi
 
1920
fi])
1803
1921
need_lib_prefix=unknown
1804
1922
hardcode_into_libs=no
1805
1923
 
1956
2074
  shlibpath_overrides_runpath=yes
1957
2075
  shlibpath_var=DYLD_LIBRARY_PATH
1958
2076
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1959
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1960
 
  if test "$GCC" = yes; then
1961
 
    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"`
1962
 
  else
1963
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1964
 
  fi
 
2077
  m4_if([$1], [],[
 
2078
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1965
2079
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1966
2080
  ;;
1967
2081
 
1978
2092
  dynamic_linker=no
1979
2093
  ;;
1980
2094
 
1981
 
kfreebsd*-gnu)
1982
 
  version_type=linux
1983
 
  need_lib_prefix=no
1984
 
  need_version=no
1985
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1986
 
  soname_spec='${libname}${release}${shared_ext}$major'
1987
 
  shlibpath_var=LD_LIBRARY_PATH
1988
 
  shlibpath_overrides_runpath=no
1989
 
  hardcode_into_libs=yes
1990
 
  dynamic_linker='GNU ld.so'
1991
 
  ;;
1992
 
 
1993
2095
freebsd* | dragonfly*)
1994
2096
  # DragonFly does not have aout.  When/if they implement a new
1995
2097
  # versioning mechanism, adjust this.
2027
2129
    shlibpath_overrides_runpath=no
2028
2130
    hardcode_into_libs=yes
2029
2131
    ;;
2030
 
  freebsd*) # from 4.6 on
 
2132
  *) # from 4.6 on, and DragonFly
2031
2133
    shlibpath_overrides_runpath=yes
2032
2134
    hardcode_into_libs=yes
2033
2135
    ;;
2090
2192
  postinstall_cmds='chmod 555 $lib'
2091
2193
  ;;
2092
2194
 
2093
 
interix3*)
 
2195
interix[[3-9]]*)
2094
2196
  version_type=linux
2095
2197
  need_lib_prefix=no
2096
2198
  need_version=no
2145
2247
  ;;
2146
2248
 
2147
2249
# This must be Linux ELF.
2148
 
linux*)
 
2250
linux* | k*bsd*-gnu)
2149
2251
  version_type=linux
2150
2252
  need_lib_prefix=no
2151
2253
  need_version=no
2161
2263
 
2162
2264
  # Append ld.so.conf contents to the search path
2163
2265
  if test -f /etc/ld.so.conf; then
2164
 
    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' ' '`
 
2266
    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' ' '`
2165
2267
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2166
2268
  fi
2167
2269
 
2174
2276
  dynamic_linker='GNU/Linux ld.so'
2175
2277
  ;;
2176
2278
 
2177
 
knetbsd*-gnu)
2178
 
  version_type=linux
2179
 
  need_lib_prefix=no
2180
 
  need_version=no
2181
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2182
 
  soname_spec='${libname}${release}${shared_ext}$major'
2183
 
  shlibpath_var=LD_LIBRARY_PATH
2184
 
  shlibpath_overrides_runpath=no
2185
 
  hardcode_into_libs=yes
2186
 
  dynamic_linker='GNU ld.so'
2187
 
  ;;
2188
 
 
2189
2279
netbsd*)
2190
2280
  version_type=sunos
2191
2281
  need_lib_prefix=no
2267
2357
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2268
2358
  ;;
2269
2359
 
 
2360
rdos*)
 
2361
  dynamic_linker=no
 
2362
  ;;
 
2363
 
2270
2364
solaris*)
2271
2365
  version_type=linux
2272
2366
  need_lib_prefix=no
2372
2466
# _LT_AC_TAGCONFIG
2373
2467
# ----------------
2374
2468
AC_DEFUN([_LT_AC_TAGCONFIG],
2375
 
[AC_ARG_WITH([tags],
 
2469
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2470
AC_ARG_WITH([tags],
2376
2471
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2377
2472
        [include additional configurations @<:@automatic@:>@])],
2378
2473
    [tagnames="$withval"])
2633
2728
 
2634
2729
# AC_PATH_TOOL_PREFIX
2635
2730
# -------------------
2636
 
# find a file program which can recognise shared library
 
2731
# find a file program which can recognize shared library
2637
2732
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2638
2733
[AC_REQUIRE([AC_PROG_EGREP])dnl
2639
2734
AC_MSG_CHECKING([for $1])
2696
2791
 
2697
2792
# AC_PATH_MAGIC
2698
2793
# -------------
2699
 
# find a file program which can recognise a shared library
 
2794
# find a file program which can recognize a shared library
2700
2795
AC_DEFUN([AC_PATH_MAGIC],
2701
2796
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2702
2797
if test -z "$lt_cv_path_MAGIC_CMD"; then
2843
2938
# how to check for library dependencies
2844
2939
#  -- PORTME fill in with the dynamic library characteristics
2845
2940
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2846
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2941
[AC_CACHE_CHECK([how to recognize dependent libraries],
2847
2942
lt_cv_deplibs_check_method,
2848
2943
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2849
2944
lt_cv_file_magic_test_file=
2882
2977
 
2883
2978
mingw* | pw32*)
2884
2979
  # Base MSYS/MinGW do not provide the 'file' command needed by
2885
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2886
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2887
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2980
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2981
  # unless we find 'file', for example because we are cross-compiling.
 
2982
  if ( file / ) >/dev/null 2>&1; then
 
2983
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2984
    lt_cv_file_magic_cmd='func_win32_libid'
 
2985
  else
 
2986
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2987
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2988
  fi
2888
2989
  ;;
2889
2990
 
2890
2991
darwin* | rhapsody*)
2891
2992
  lt_cv_deplibs_check_method=pass_all
2892
2993
  ;;
2893
2994
 
2894
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2995
freebsd* | dragonfly*)
2895
2996
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2896
2997
    case $host_cpu in
2897
2998
    i*86 )
2929
3030
  esac
2930
3031
  ;;
2931
3032
 
2932
 
interix3*)
 
3033
interix[[3-9]]*)
2933
3034
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2934
3035
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2935
3036
  ;;
2945
3046
  ;;
2946
3047
 
2947
3048
# This must be Linux ELF.
2948
 
linux*)
 
3049
linux* | k*bsd*-gnu)
2949
3050
  lt_cv_deplibs_check_method=pass_all
2950
3051
  ;;
2951
3052
 
2979
3080
  lt_cv_deplibs_check_method=pass_all
2980
3081
  ;;
2981
3082
 
 
3083
rdos*)
 
3084
  lt_cv_deplibs_check_method=pass_all
 
3085
  ;;
 
3086
 
2982
3087
solaris*)
2983
3088
  lt_cv_deplibs_check_method=pass_all
2984
3089
  ;;
3031
3136
  lt_cv_path_NM="$NM"
3032
3137
else
3033
3138
  lt_nm_to_check="${ac_tool_prefix}nm"
3034
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3139
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3035
3140
    lt_nm_to_check="$lt_nm_to_check nm"
3036
3141
  fi
3037
3142
  for lt_tmp_nm in $lt_nm_to_check; do
3247
3352
_LT_AC_TAGVAR(objext, $1)=$objext
3248
3353
 
3249
3354
# Code to be used in simple compile tests
3250
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3355
lt_simple_compile_test_code="int some_variable = 0;"
3251
3356
 
3252
3357
# Code to be used in simple link tests
3253
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
3358
lt_simple_link_test_code='int main(){return(0);}'
3254
3359
 
3255
3360
_LT_AC_SYS_COMPILER
3256
3361
 
3352
3457
_LT_AC_TAGVAR(objext, $1)=$objext
3353
3458
 
3354
3459
# Code to be used in simple compile tests
3355
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3460
lt_simple_compile_test_code="int some_variable = 0;"
3356
3461
 
3357
3462
# Code to be used in simple link tests
3358
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3463
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3359
3464
 
3360
3465
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3361
3466
_LT_AC_SYS_COMPILER
3501
3606
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3502
3607
        then
3503
3608
          # We have reworked collect2
3504
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3609
          :
3505
3610
        else
3506
3611
          # We have old collect2
3507
3612
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3660
3765
      case $cc_basename in
3661
3766
        xlc*)
3662
3767
         output_verbose_link_cmd='echo'
3663
 
          _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'
 
3768
          _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'
3664
3769
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3665
3770
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3666
 
          _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}'
 
3771
          _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}'
3667
3772
          _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}'
3668
3773
          ;;
3669
3774
       *)
3697
3802
  freebsd-elf*)
3698
3803
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3699
3804
    ;;
3700
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3805
  freebsd* | dragonfly*)
3701
3806
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3702
3807
    # conventions
3703
3808
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3746
3851
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3747
3852
 
3748
3853
      case $host_cpu in
3749
 
      hppa*64*|ia64*)
3750
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3751
 
        ;;
 
3854
      hppa*64*|ia64*) ;;
3752
3855
      *)
3753
3856
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3754
3857
        ;;
3816
3919
        ;;
3817
3920
    esac
3818
3921
    ;;
3819
 
  interix3*)
 
3922
  interix[[3-9]]*)
3820
3923
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3821
3924
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3822
3925
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3856
3959
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3857
3960
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3858
3961
    ;;
3859
 
  linux*)
 
3962
  linux* | k*bsd*-gnu)
3860
3963
    case $cc_basename in
3861
3964
      KCC*)
3862
3965
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3936
4039
        # dependencies.
3937
4040
        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'
3938
4041
        ;;
 
4042
      *)
 
4043
        case `$CC -V 2>&1 | sed 5q` in
 
4044
        *Sun\ C*)
 
4045
          # Sun C++ 5.9
 
4046
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4047
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4048
          _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'
 
4049
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4050
          _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'
 
4051
 
 
4052
          # Not sure whether something based on
 
4053
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4054
          # would be better.
 
4055
          output_verbose_link_cmd='echo'
 
4056
 
 
4057
          # Archives containing C++ object files must be created using
 
4058
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4059
          # necessary to make sure instantiated templates are included
 
4060
          # in the archive.
 
4061
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4062
          ;;
 
4063
        esac
 
4064
        ;;
3939
4065
    esac
3940
4066
    ;;
3941
4067
  lynxos*)
3974
4100
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3975
4101
    ;;
3976
4102
  openbsd*)
3977
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3978
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3979
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3980
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3981
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3982
 
      _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'
3983
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3984
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4103
    if test -f /usr/libexec/ld.so; then
 
4104
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4105
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4106
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4107
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4108
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4109
        _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'
 
4110
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4111
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4112
      fi
 
4113
      output_verbose_link_cmd='echo'
 
4114
    else
 
4115
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3985
4116
    fi
3986
 
    output_verbose_link_cmd='echo'
3987
4117
    ;;
3988
4118
  osf3*)
3989
4119
    case $cc_basename in
4145
4275
        case $host_os in
4146
4276
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4147
4277
          *)
4148
 
            # The C++ compiler is used as linker so we must use $wl
4149
 
            # flag to pass the commands to the underlying system
4150
 
            # linker. We must also pass each convience library through
4151
 
            # to the system linker between allextract/defaultextract.
4152
 
            # The C++ compiler will combine linker options so we
4153
 
            # cannot just pass the convience library names through
4154
 
            # without $wl.
 
4278
            # The compiler driver will combine and reorder linker options,
 
4279
            # but understands `-z linker_flag'.
4155
4280
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4156
 
            _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'
 
4281
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4157
4282
            ;;
4158
4283
        esac
4159
4284
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4200
4325
          fi
4201
4326
 
4202
4327
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4328
          case $host_os in
 
4329
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4330
          *)
 
4331
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4332
            ;;
 
4333
          esac
4203
4334
        fi
4204
4335
        ;;
4205
4336
    esac
4443
4574
# PORTME: override above test on systems where it is broken
4444
4575
ifelse([$1],[CXX],
4445
4576
[case $host_os in
4446
 
interix3*)
 
4577
interix[[3-9]]*)
4447
4578
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4448
4579
  # hack all around it, let's just trust "g++" to DTRT.
4449
4580
  _LT_AC_TAGVAR(predep_objects,$1)=
4451
4582
  _LT_AC_TAGVAR(postdeps,$1)=
4452
4583
  ;;
4453
4584
 
 
4585
linux*)
 
4586
  case `$CC -V 2>&1 | sed 5q` in
 
4587
  *Sun\ C*)
 
4588
    # Sun C++ 5.9
 
4589
    #
 
4590
    # The more standards-conforming stlport4 library is
 
4591
    # incompatible with the Cstd library. Avoid specifying
 
4592
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4593
    # -library=stlport4 depends on it.
 
4594
    case " $CXX $CXXFLAGS " in
 
4595
    *" -library=stlport4 "*)
 
4596
      solaris_use_stlport4=yes
 
4597
      ;;
 
4598
    esac
 
4599
    if test "$solaris_use_stlport4" != yes; then
 
4600
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4601
    fi
 
4602
    ;;
 
4603
  esac
 
4604
  ;;
 
4605
 
4454
4606
solaris*)
4455
4607
  case $cc_basename in
4456
4608
  CC*)
 
4609
    # The more standards-conforming stlport4 library is
 
4610
    # incompatible with the Cstd library. Avoid specifying
 
4611
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4612
    # -library=stlport4 depends on it.
 
4613
    case " $CXX $CXXFLAGS " in
 
4614
    *" -library=stlport4 "*)
 
4615
      solaris_use_stlport4=yes
 
4616
      ;;
 
4617
    esac
 
4618
 
4457
4619
    # Adding this requires a known-good setup of shared libraries for
4458
4620
    # Sun compiler versions before 5.6, else PIC objects from an old
4459
4621
    # archive will be linked into the output, leading to subtle bugs.
4460
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4622
    if test "$solaris_use_stlport4" != yes; then
 
4623
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4624
    fi
4461
4625
    ;;
4462
4626
  esac
4463
4627
  ;;
4506
4670
_LT_AC_TAGVAR(objext, $1)=$objext
4507
4671
 
4508
4672
# Code to be used in simple compile tests
4509
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4673
lt_simple_compile_test_code="\
 
4674
      subroutine t
 
4675
      return
 
4676
      end
 
4677
"
4510
4678
 
4511
4679
# Code to be used in simple link tests
4512
 
lt_simple_link_test_code="      program t\n      end\n"
 
4680
lt_simple_link_test_code="\
 
4681
      program t
 
4682
      end
 
4683
"
4513
4684
 
4514
4685
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4515
4686
_LT_AC_SYS_COMPILER
4588
4759
_LT_AC_TAGVAR(objext, $1)=$objext
4589
4760
 
4590
4761
# Code to be used in simple compile tests
4591
 
lt_simple_compile_test_code="class foo {}\n"
 
4762
lt_simple_compile_test_code="class foo {}"
4592
4763
 
4593
4764
# Code to be used in simple link tests
4594
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4765
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4595
4766
 
4596
4767
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4597
4768
_LT_AC_SYS_COMPILER
4644
4815
_LT_AC_TAGVAR(objext, $1)=$objext
4645
4816
 
4646
4817
# Code to be used in simple compile tests
4647
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4818
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4648
4819
 
4649
4820
# Code to be used in simple link tests
4650
4821
lt_simple_link_test_code="$lt_simple_compile_test_code"
4733
4904
    _LT_AC_TAGVAR(module_cmds, $1) \
4734
4905
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4735
4906
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4907
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4736
4908
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4737
4909
    _LT_AC_TAGVAR(include_expsyms, $1); do
4738
4910
 
4779
4951
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4780
4952
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4781
4953
#
4782
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4954
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4783
4955
# Free Software Foundation, Inc.
4784
4956
#
4785
4957
# This file is part of GNU Libtool:
5104
5276
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5105
5277
 
5106
5278
# Fix the shell variable \$srcfile for the compiler.
5107
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5279
fix_srcfile_path=$lt_fix_srcfile_path
5108
5280
 
5109
5281
# Set to yes if exported symbols are required.
5110
5282
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5187
5359
# ---------------------------------
5188
5360
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5189
5361
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5362
AC_REQUIRE([LT_AC_PROG_SED])
5190
5363
AC_REQUIRE([AC_PROG_NM])
5191
5364
AC_REQUIRE([AC_OBJEXT])
5192
5365
# Check for command to grab the raw symbol name followed by C symbol from nm.
5223
5396
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5224
5397
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5225
5398
  ;;
5226
 
linux*)
 
5399
linux* | k*bsd*-gnu)
5227
5400
  if test "$host_cpu" = ia64; then
5228
5401
    symcode='[[ABCDGIRSTW]]'
5229
5402
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5413
5586
      # like `-m68040'.
5414
5587
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5415
5588
      ;;
5416
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5589
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5417
5590
      # PIC is the default for these OSes.
5418
5591
      ;;
5419
 
    mingw* | os2* | pw32*)
 
5592
    mingw* | cygwin* | os2* | pw32*)
5420
5593
      # This hack is so that the source file can tell whether it is being
5421
5594
      # built for inclusion in a dll (and should export symbols for example).
 
5595
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5596
      # (--disable-auto-import) libraries
5422
5597
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5423
5598
      ;;
5424
5599
    darwin* | rhapsody*)
5430
5605
      # DJGPP does not support shared libraries at all
5431
5606
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5432
5607
      ;;
5433
 
    interix3*)
 
5608
    interix[[3-9]]*)
5434
5609
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5435
5610
      # Instead, we relocate shared libraries at runtime.
5436
5611
      ;;
5496
5671
            ;;
5497
5672
        esac
5498
5673
        ;;
5499
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5674
      freebsd* | dragonfly*)
5500
5675
        # FreeBSD uses GNU C++
5501
5676
        ;;
5502
5677
      hpux9* | hpux10* | hpux11*)
5539
5714
            ;;
5540
5715
        esac
5541
5716
        ;;
5542
 
      linux*)
 
5717
      linux* | k*bsd*-gnu)
5543
5718
        case $cc_basename in
5544
5719
          KCC*)
5545
5720
            # KAI C++ Compiler
5566
5741
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5567
5742
            ;;
5568
5743
          *)
 
5744
            case `$CC -V 2>&1 | sed 5q` in
 
5745
            *Sun\ C*)
 
5746
              # Sun C++ 5.9
 
5747
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5748
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5749
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5750
              ;;
 
5751
            esac
5569
5752
            ;;
5570
5753
        esac
5571
5754
        ;;
5686
5869
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5687
5870
      ;;
5688
5871
 
5689
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5872
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5690
5873
      # PIC is the default for these OSes.
5691
5874
      ;;
5692
5875
 
5693
 
    mingw* | pw32* | os2*)
 
5876
    mingw* | cygwin* | pw32* | os2*)
5694
5877
      # This hack is so that the source file can tell whether it is being
5695
5878
      # built for inclusion in a dll (and should export symbols for example).
 
5879
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5880
      # (--disable-auto-import) libraries
5696
5881
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5697
5882
      ;;
5698
5883
 
5702
5887
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5703
5888
      ;;
5704
5889
 
5705
 
    interix3*)
 
5890
    interix[[3-9]]*)
5706
5891
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5707
5892
      # Instead, we relocate shared libraries at runtime.
5708
5893
      ;;
5760
5945
       esac
5761
5946
       ;;
5762
5947
 
5763
 
    mingw* | pw32* | os2*)
 
5948
    mingw* | cygwin* | pw32* | os2*)
5764
5949
      # This hack is so that the source file can tell whether it is being
5765
5950
      # built for inclusion in a dll (and should export symbols for example).
5766
5951
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5793
5978
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5794
5979
      ;;
5795
5980
 
5796
 
    linux*)
 
5981
    linux* | k*bsd*-gnu)
5797
5982
      case $cc_basename in
5798
5983
      icc* | ecc*)
5799
5984
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5812
5997
        # All Alpha code is PIC.
5813
5998
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5814
5999
        ;;
 
6000
      *)
 
6001
        case `$CC -V 2>&1 | sed 5q` in
 
6002
        *Sun\ C*)
 
6003
          # Sun C 5.9
 
6004
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6005
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6006
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6007
          ;;
 
6008
        *Sun\ F*)
 
6009
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6010
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6011
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6012
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6013
          ;;
 
6014
        esac
 
6015
        ;;
5815
6016
      esac
5816
6017
      ;;
5817
6018
 
5821
6022
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5822
6023
      ;;
5823
6024
 
 
6025
    rdos*)
 
6026
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6027
      ;;
 
6028
 
5824
6029
    solaris*)
5825
6030
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5826
6031
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5915
6120
# ------------------------------------
5916
6121
# See if the linker supports building shared libraries.
5917
6122
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5918
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6123
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6124
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5919
6125
ifelse([$1],[CXX],[
5920
6126
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5921
6127
  case $host_os in
5932
6138
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5933
6139
  ;;
5934
6140
  cygwin* | mingw*)
5935
 
    _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'
 
6141
    _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'
5936
6142
  ;;
5937
6143
  *)
5938
6144
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6071
6277
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6072
6278
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6073
6279
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6074
 
      _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'
 
6280
      _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'
6075
6281
 
6076
6282
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6077
6283
        _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'
6089
6295
      fi
6090
6296
      ;;
6091
6297
 
6092
 
    interix3*)
 
6298
    interix[[3-9]]*)
6093
6299
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6094
6300
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6095
6301
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6104
6310
      _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'
6105
6311
      ;;
6106
6312
 
6107
 
    linux*)
 
6313
    gnu* | linux* | k*bsd*-gnu)
6108
6314
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6109
6315
        tmp_addflag=
6110
6316
        case $cc_basename,$host_cpu in
6122
6328
        ifc* | ifort*)                  # Intel Fortran compiler
6123
6329
          tmp_addflag=' -nofor_main' ;;
6124
6330
        esac
6125
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6331
        case `$CC -V 2>&1 | sed 5q` in
 
6332
        *Sun\ C*)                       # Sun C 5.9
 
6333
          _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'
 
6334
          tmp_sharedflag='-G' ;;
 
6335
        *Sun\ F*)                       # Sun Fortran 8.3
 
6336
          tmp_sharedflag='-G' ;;
 
6337
        *)
 
6338
          tmp_sharedflag='-shared' ;;
 
6339
        esac
 
6340
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126
6341
 
6127
6342
        if test $supports_anon_versioning = yes; then
6128
6343
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6129
6344
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6130
6345
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6131
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6346
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6132
6347
        fi
6133
6348
      else
6134
6349
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6168
6383
 
6169
6384
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6170
6385
      case `$LD -v 2>&1` in
6171
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6386
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6172
6387
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6173
6388
        cat <<_LT_EOF 1>&2
6174
6389
 
6287
6502
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6288
6503
          then
6289
6504
          # We have reworked collect2
6290
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6505
          :
6291
6506
          else
6292
6507
          # We have old collect2
6293
6508
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6380
6595
      # The linker will automatically build a .lib file if we build a DLL.
6381
6596
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6382
6597
      # FIXME: Should let the user specify the lib program.
6383
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6598
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6384
6599
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6385
6600
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6386
6601
      ;;
6422
6637
      case $cc_basename in
6423
6638
        xlc*)
6424
6639
         output_verbose_link_cmd='echo'
6425
 
         _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'
 
6640
         _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'
6426
6641
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6427
6642
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6428
 
         _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}'
 
6643
         _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}'
6429
6644
          _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}'
6430
6645
          ;;
6431
6646
       *)
6465
6680
      ;;
6466
6681
 
6467
6682
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6468
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6683
    freebsd* | dragonfly*)
6469
6684
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6470
6685
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6471
6686
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6587
6802
      ;;
6588
6803
 
6589
6804
    openbsd*)
6590
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6591
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6595
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6805
      if test -f /usr/libexec/ld.so; then
 
6806
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6807
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6808
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6809
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6810
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6811
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6812
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6813
        else
 
6814
          case $host_os in
 
6815
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6816
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6817
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6818
             ;;
 
6819
           *)
 
6820
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6821
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6822
             ;;
 
6823
          esac
 
6824
        fi
6597
6825
      else
6598
 
       case $host_os in
6599
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6600
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6601
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6602
 
           ;;
6603
 
         *)
6604
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6605
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6606
 
           ;;
6607
 
       esac
 
6826
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6608
6827
      fi
6609
6828
      ;;
6610
6829
 
6663
6882
      case $host_os in
6664
6883
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6665
6884
      *)
6666
 
        # The compiler driver will combine linker options so we
6667
 
        # cannot just pass the convience library names through
6668
 
        # without $wl, iff we do not link with $LD.
6669
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6885
        # The compiler driver will combine and reorder linker options,
 
6886
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6887
        # but is careful enough not to reorder.
6670
6888
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6671
 
        case $wlarc in
6672
 
        '')
6673
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6674
 
        *)
6675
 
          _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' ;;
6676
 
        esac ;;
 
6889
        if test "$GCC" = yes; then
 
6890
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6891
        else
 
6892
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6893
        fi
 
6894
        ;;
6677
6895
      esac
6678
6896
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6679
6897
      ;;
6730
6948
      fi
6731
6949
      ;;
6732
6950
 
6733
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6951
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6734
6952
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6735
6953
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6736
6954
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6805
7023
      # to ld, don't add -lc before -lgcc.
6806
7024
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6807
7025
      $rm conftest*
6808
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7026
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6809
7027
 
6810
7028
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6811
7029
        soname=conftest
6908
7126
[AC_CHECK_TOOL(RC, windres, no)
6909
7127
])
6910
7128
 
 
7129
 
 
7130
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7131
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7132
 
 
7133
# _AS_TEST_PREPARE
 
7134
# ----------------
 
7135
m4_ifndef([_AS_TEST_PREPARE],
 
7136
[m4_defun([_AS_TEST_PREPARE],
 
7137
[if test -x / >/dev/null 2>&1; then
 
7138
  as_executable_p='test -x'
 
7139
else
 
7140
  as_executable_p='test -f'
 
7141
fi
 
7142
])])# _AS_TEST_PREPARE
 
7143
 
 
7144
# AS_EXECUTABLE_P
 
7145
# ---------------
 
7146
# Check whether a file is executable.
 
7147
m4_ifndef([AS_EXECUTABLE_P],
 
7148
[m4_defun([AS_EXECUTABLE_P],
 
7149
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7150
$as_executable_p $1[]dnl
 
7151
])])# AS_EXECUTABLE_P
 
7152
 
6911
7153
# NOTE: This macro has been submitted for inclusion into   #
6912
7154
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6913
7155
#  a released version of Autoconf we should remove this    #
6928
7170
  test -z "$as_dir" && as_dir=.
6929
7171
  for lt_ac_prog in sed gsed; do
6930
7172
    for ac_exec_ext in '' $ac_executable_extensions; do
6931
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7173
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6932
7174
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6933
7175
      fi
6934
7176
    done
6935
7177
  done
6936
7178
done
 
7179
IFS=$as_save_IFS
6937
7180
lt_ac_max=0
6938
7181
lt_ac_count=0
6939
7182
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6966
7209
done
6967
7210
])
6968
7211
SED=$lt_cv_path_SED
 
7212
AC_SUBST([SED])
6969
7213
AC_MSG_RESULT([$SED])
6970
7214
])
6971
7215
 
6972
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
7216
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
6973
7217
#
6974
7218
# This file is free software; the Free Software Foundation
6975
7219
# gives unlimited permission to copy and/or distribute it,
6979
7223
# ----------------------------
6980
7224
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6981
7225
# generated from the m4 files accompanying Automake X.Y.
6982
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
7226
# (This private macro should not be called outside this file.)
 
7227
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
7228
[am__api_version='1.10'
 
7229
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
7230
dnl require some minimum version.  Point them to the right macro.
 
7231
m4_if([$1], [1.10], [],
 
7232
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
7233
])
 
7234
 
 
7235
# _AM_AUTOCONF_VERSION(VERSION)
 
7236
# -----------------------------
 
7237
# aclocal traces this macro to find the Autoconf version.
 
7238
# This is a private macro too.  Using m4_define simplifies
 
7239
# the logic in aclocal, which can simply ignore this definition.
 
7240
m4_define([_AM_AUTOCONF_VERSION], [])
6983
7241
 
6984
7242
# AM_SET_CURRENT_AUTOMAKE_VERSION
6985
7243
# -------------------------------
6986
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
7244
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6987
7245
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6988
7246
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6989
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
7247
[AM_AUTOMAKE_VERSION([1.10])dnl
 
7248
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6990
7249
 
6991
7250
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6992
7251
 
7043
7302
 
7044
7303
# AM_CONDITIONAL                                            -*- Autoconf -*-
7045
7304
 
7046
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
7305
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7047
7306
# Free Software Foundation, Inc.
7048
7307
#
7049
7308
# This file is free software; the Free Software Foundation
7050
7309
# gives unlimited permission to copy and/or distribute it,
7051
7310
# with or without modifications, as long as this notice is preserved.
7052
7311
 
7053
 
# serial 7
 
7312
# serial 8
7054
7313
 
7055
7314
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7056
7315
# -------------------------------------
7059
7318
[AC_PREREQ(2.52)dnl
7060
7319
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7061
7320
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7062
 
AC_SUBST([$1_TRUE])
7063
 
AC_SUBST([$1_FALSE])
 
7321
AC_SUBST([$1_TRUE])dnl
 
7322
AC_SUBST([$1_FALSE])dnl
 
7323
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
7324
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7064
7325
if $2; then
7065
7326
  $1_TRUE=
7066
7327
  $1_FALSE='#'
7074
7335
Usually this means the macro was only invoked conditionally.]])
7075
7336
fi])])
7076
7337
 
7077
 
 
7078
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7338
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7079
7339
# Free Software Foundation, Inc.
7080
7340
#
7081
7341
# This file is free software; the Free Software Foundation
7082
7342
# gives unlimited permission to copy and/or distribute it,
7083
7343
# with or without modifications, as long as this notice is preserved.
7084
7344
 
7085
 
# serial 8
 
7345
# serial 9
7086
7346
 
7087
7347
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7088
7348
# written in clear, in which case automake, when reading aclocal.m4,
7110
7370
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7111
7371
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7112
7372
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
7373
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
7113
7374
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7114
7375
                   [depcc="$$1"   am_compiler_list=])
7115
7376
 
7175
7436
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7176
7437
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7177
7438
         >/dev/null 2>conftest.err &&
 
7439
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7178
7440
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7179
7441
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7180
7442
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7227
7489
  AMDEPBACKSLASH='\'
7228
7490
fi
7229
7491
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7230
 
AC_SUBST([AMDEPBACKSLASH])
 
7492
AC_SUBST([AMDEPBACKSLASH])dnl
 
7493
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7231
7494
])
7232
7495
 
7233
7496
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7252
7515
  # some people rename them; so instead we look at the file content.
7253
7516
  # Grep'ing the first line is not enough: some people post-process
7254
7517
  # each Makefile.in and add a new line on top of each file to say so.
7255
 
  # So let's grep whole file.
7256
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
7518
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7519
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7520
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7257
7521
    dirpart=`AS_DIRNAME("$mf")`
7258
7522
  else
7259
7523
    continue
7312
7576
 
7313
7577
# Do all the work for Automake.                             -*- Autoconf -*-
7314
7578
 
7315
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7316
 
# Free Software Foundation, Inc.
 
7579
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7580
# 2005, 2006 Free Software Foundation, Inc.
7317
7581
#
7318
7582
# This file is free software; the Free Software Foundation
7319
7583
# gives unlimited permission to copy and/or distribute it,
7336
7600
# arguments mandatory, and then we can depend on a new Autoconf
7337
7601
# release and drop the old call support.
7338
7602
AC_DEFUN([AM_INIT_AUTOMAKE],
7339
 
[AC_PREREQ([2.58])dnl
 
7603
[AC_PREREQ([2.60])dnl
7340
7604
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7341
7605
dnl the ones we care about.
7342
7606
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7343
7607
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7344
7608
AC_REQUIRE([AC_PROG_INSTALL])dnl
7345
 
# test to see if srcdir already configured
7346
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7347
 
   test -f $srcdir/config.status; then
7348
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7609
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7610
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7611
  # is not polluted with repeated "-I."
 
7612
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7613
  # test to see if srcdir already configured
 
7614
  if test -f $srcdir/config.status; then
 
7615
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7616
  fi
7349
7617
fi
7350
7618
 
7351
7619
# test whether we have cygpath
7365
7633
 AC_SUBST([PACKAGE], [$1])dnl
7366
7634
 AC_SUBST([VERSION], [$2])],
7367
7635
[_AM_SET_OPTIONS([$1])dnl
 
7636
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7637
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7638
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7368
7639
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7369
7640
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7370
7641
 
7400
7671
                  [_AM_DEPENDENCIES(CXX)],
7401
7672
                  [define([AC_PROG_CXX],
7402
7673
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7674
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7675
                  [_AM_DEPENDENCIES(OBJC)],
 
7676
                  [define([AC_PROG_OBJC],
 
7677
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7403
7678
])
7404
7679
])
7405
7680
 
7435
7710
# Define $install_sh.
7436
7711
AC_DEFUN([AM_PROG_INSTALL_SH],
7437
7712
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7438
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7713
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7439
7714
AC_SUBST(install_sh)])
7440
7715
 
7441
7716
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7542
7817
 
7543
7818
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7544
7819
 
7545
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7820
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7546
7821
# Free Software Foundation, Inc.
7547
7822
#
7548
7823
# This file is free software; the Free Software Foundation
7549
7824
# gives unlimited permission to copy and/or distribute it,
7550
7825
# with or without modifications, as long as this notice is preserved.
7551
7826
 
7552
 
# serial 4
 
7827
# serial 5
7553
7828
 
7554
7829
# AM_MISSING_PROG(NAME, PROGRAM)
7555
7830
# ------------------------------
7565
7840
# If it does, set am_missing_run to use it, otherwise, to nothing.
7566
7841
AC_DEFUN([AM_MISSING_HAS_RUN],
7567
7842
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7843
AC_REQUIRE_AUX_FILE([missing])dnl
7568
7844
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7569
7845
# Use eval to expand $SHELL
7570
7846
if eval "$MISSING --run true"; then
7575
7851
fi
7576
7852
])
7577
7853
 
7578
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7854
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7579
7855
#
7580
7856
# This file is free software; the Free Software Foundation
7581
7857
# gives unlimited permission to copy and/or distribute it,
7583
7859
 
7584
7860
# AM_PROG_MKDIR_P
7585
7861
# ---------------
7586
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7587
 
#
7588
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7589
 
# created by `make install' are always world readable, even if the
7590
 
# installer happens to have an overly restrictive umask (e.g. 077).
7591
 
# This was a mistake.  There are at least two reasons why we must not
7592
 
# use `-m 0755':
7593
 
#   - it causes special bits like SGID to be ignored,
7594
 
#   - it may be too restrictive (some setups expect 775 directories).
7595
 
#
7596
 
# Do not use -m 0755 and let people choose whatever they expect by
7597
 
# setting umask.
7598
 
#
7599
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7600
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7601
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7602
 
# concurrently, both version can detect that a/ is missing, but only
7603
 
# one can create it and the other will error out.  Consequently we
7604
 
# restrict ourselves to GNU make (using the --version option ensures
7605
 
# this.)
 
7862
# Check for `mkdir -p'.
7606
7863
AC_DEFUN([AM_PROG_MKDIR_P],
7607
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7608
 
  # We used to keeping the `.' as first argument, in order to
7609
 
  # allow $(mkdir_p) to be used without argument.  As in
7610
 
  #   $(mkdir_p) $(somedir)
7611
 
  # where $(somedir) is conditionally defined.  However this is wrong
7612
 
  # for two reasons:
7613
 
  #  1. if the package is installed by a user who cannot write `.'
7614
 
  #     make install will fail,
7615
 
  #  2. the above comment should most certainly read
7616
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7617
 
  #     so it does not work when $(somedir) is undefined and
7618
 
  #     $(DESTDIR) is not.
7619
 
  #  To support the latter case, we have to write
7620
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7621
 
  #  so the `.' trick is pointless.
7622
 
  mkdir_p='mkdir -p --'
7623
 
else
7624
 
  # On NextStep and OpenStep, the `mkdir' command does not
7625
 
  # recognize any option.  It will interpret all options as
7626
 
  # directories to create, and then abort because `.' already
7627
 
  # exists.
7628
 
  for d in ./-p ./--version;
7629
 
  do
7630
 
    test -d $d && rmdir $d
7631
 
  done
7632
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7633
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7634
 
    mkdir_p='$(mkinstalldirs)'
7635
 
  else
7636
 
    mkdir_p='$(install_sh) -d'
7637
 
  fi
7638
 
fi
7639
 
AC_SUBST([mkdir_p])])
 
7864
[AC_PREREQ([2.60])dnl
 
7865
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7866
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7867
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7868
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7869
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7870
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7871
dnl adjustment using top_builddir (which is defined more often than
 
7872
dnl MKDIR_P).
 
7873
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7874
case $mkdir_p in
 
7875
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7876
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7877
esac
 
7878
])
7640
7879
 
7641
7880
# Helper functions for option handling.                     -*- Autoconf -*-
7642
7881
 
7671
7910
AC_DEFUN([_AM_IF_OPTION],
7672
7911
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7673
7912
 
 
7913
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7914
#
 
7915
# This file is free software; the Free Software Foundation
 
7916
# gives unlimited permission to copy and/or distribute it,
 
7917
# with or without modifications, as long as this notice is preserved.
 
7918
 
 
7919
# AM_RUN_LOG(COMMAND)
 
7920
# -------------------
 
7921
# Run COMMAND, save the exit status in ac_status, and log it.
 
7922
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
7923
AC_DEFUN([AM_RUN_LOG],
 
7924
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
7925
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
7926
   ac_status=$?
 
7927
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
7928
   (exit $ac_status); }])
 
7929
 
7674
7930
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
7675
7931
 
7676
7932
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7748
8004
if test "$cross_compiling" != no; then
7749
8005
  AC_CHECK_TOOL([STRIP], [strip], :)
7750
8006
fi
7751
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
8007
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7752
8008
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7753
8009
 
 
8010
# Copyright (C) 2006  Free Software Foundation, Inc.
 
8011
#
 
8012
# This file is free software; the Free Software Foundation
 
8013
# gives unlimited permission to copy and/or distribute it,
 
8014
# with or without modifications, as long as this notice is preserved.
 
8015
 
 
8016
# _AM_SUBST_NOTMAKE(VARIABLE)
 
8017
# ---------------------------
 
8018
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
8019
# This macro is traced by Automake.
 
8020
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
8021
 
7754
8022
# Check how to create a tarball.                            -*- Autoconf -*-
7755
8023
 
7756
8024
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
8277
8545
])
8278
8546
 
8279
8547
 
8280
 
dnl $Id: xdt-features.m4 21591 2006-05-08 09:10:26Z benny $
 
8548
dnl $Id: xdt-features.m4 22990 2006-09-02 11:33:28Z benny $
8281
8549
dnl
8282
8550
dnl Copyright (c) 2002-2006
8283
8551
dnl         The Xfce development team. All rights reserved.
8323
8591
  AC_MSG_CHECKING([whether to build with debugging support])
8324
8592
  if test x"$enable_debug" != x"no"; then
8325
8593
    AC_DEFINE([DEBUG], [1], [Define for debugging support])
8326
 
    
8327
 
    xdt_cv_additional_CFLAGS="-Wall"
 
8594
 
 
8595
    if test x"$GCC" = x"yes"; then
 
8596
      xdt_cv_additional_CFLAGS="-Wall"
 
8597
    fi
8328
8598
    xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
8329
8599
    
8330
8600
    if test x"$enable_debug" = x"full"; then
8331
8601
      AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
8332
 
      xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
 
8602
      if test x"$GCC" = x"yes"; then
 
8603
        xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
 
8604
      fi
8333
8605
      AC_MSG_RESULT([full])
8334
8606
    else
8335
 
      xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
 
8607
      if test x"$GCC" = x"yes"; then
 
8608
        xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
 
8609
      fi
8336
8610
      AC_MSG_RESULT([yes])
8337
8611
    fi
8338
8612
 
8423
8697
  fi
8424
8698
])
8425
8699
 
8426
 
dnl $Id: xdt-i18n.m4 21591 2006-05-08 09:10:26Z benny $
 
8700
dnl $Id: xdt-i18n.m4 24486 2007-01-15 17:47:49Z benny $
8427
8701
dnl
8428
8702
dnl Copyright (c) 2002-2006
8429
8703
dnl         The Xfce development team. All rights reserved.
8492
8766
  dnl Determine additional xgettext flags
8493
8767
  AC_MSG_CHECKING([for additional xgettext flags])
8494
8768
  if test x"$XGETTEXT_ARGS" = x""; then
8495
 
    XGETTEXT_ARGS="--keyword=Q_";
 
8769
    XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8";
8496
8770
  else
8497
 
    XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_";
 
8771
    XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8";
8498
8772
  fi
8499
8773
  AC_SUBST([XGETTEXT_ARGS])
8500
8774
  AC_MSG_RESULT([$XGETTEXT_ARGS])