~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2008-06-25 19:56:33 UTC
  • mfrom: (3.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625195633-8jljph4rfq00l8o7
Tags: 1:1.5.1-2
* uim-tcode: provide tutcode-custom.scm, tutcode-bushudic.scm
  and tutcode-rule.scm (Closes: #482659)
* Fix FTBFS: segv during compile (Closes: #483078).
  I personally think this bug is not specific for uim but is a optimization
  problem on gcc-4.3.1. (https://bugs.freedesktop.org/show_bug.cgi?id=16477)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
 
15
23
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
16
 
# serial 2 IT_PROG_INTLTOOL
 
24
# serial 36 IT_PROG_INTLTOOL
17
25
AC_DEFUN([IT_PROG_INTLTOOL],
18
26
[AC_PREREQ([2.50])dnl
19
27
 
26
34
esac
27
35
 
28
36
if test -n "$1"; then
29
 
    AC_MSG_CHECKING(for intltool >= $1)
 
37
    AC_MSG_CHECKING([for intltool >= $1])
30
38
 
31
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 100 + $ 2; }'`
 
39
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
32
40
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
33
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
 
41
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
34
42
    ]
35
43
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
36
44
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
55
63
  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 $< [$]@' 
56
64
    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 $< [$]@' 
57
65
    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 $< [$]@'
 
66
   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 $< [$]@'
58
67
 
59
68
AC_SUBST(INTLTOOL_DESKTOP_RULE)
60
69
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
74
83
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
75
84
AC_SUBST(INTLTOOL_THEME_RULE)
76
85
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
86
AC_SUBST(INTLTOOL_POLICY_RULE)
 
87
 
 
88
# Check the gettext tools to make sure they are GNU
 
89
AC_PATH_PROG(XGETTEXT, xgettext)
 
90
AC_PATH_PROG(MSGMERGE, msgmerge)
 
91
AC_PATH_PROG(MSGFMT, msgfmt)
 
92
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
93
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
94
fi
 
95
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
96
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
97
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
98
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
99
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
100
fi
77
101
 
78
102
# Use the tools built into the package, not the ones that are installed.
79
103
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
96
120
   fi
97
121
fi
98
122
 
99
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
100
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
101
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
102
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
 
123
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
124
AC_SUBST(ALL_LINGUAS)
 
125
 
 
126
# Set DATADIRNAME correctly if it is not set yet
 
127
# (copied from glib-gettext.m4)
 
128
if test -z "$DATADIRNAME"; then
 
129
  AC_LINK_IFELSE(
 
130
    [AC_LANG_PROGRAM([[]],
 
131
                     [[extern int _nl_msg_cat_cntr;
 
132
                       return _nl_msg_cat_cntr]])],
 
133
    [DATADIRNAME=share],
 
134
    [case $host in
 
135
    *-*-solaris*)
 
136
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
137
    dnl GNU format message catalog is always supported,
 
138
    dnl since both are added to the libc all together.
 
139
    dnl Hence, we'd like to go with DATADIRNAME=share
 
140
    dnl in this case.
 
141
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
142
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
143
    ;;
 
144
    *)
 
145
    [DATADIRNAME=lib]
 
146
    ;;
 
147
    esac])
 
148
fi
 
149
AC_SUBST(DATADIRNAME)
103
150
 
104
151
IT_PO_SUBDIR([po])
105
152
 
123
170
for file in intltool-extract intltool-merge intltool-update; do
124
171
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
125
172
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
126
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
127
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
128
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
129
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
130
173
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
131
174
        < ${ac_aux_dir}/${file}.in > ${file}.out
132
175
  if cmp -s ${file} ${file}.out 2>/dev/null; then
141
184
],
142
185
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
143
186
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
144
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
145
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
146
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
187
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
147
188
 
148
189
])
149
190
 
192
233
 
193
234
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
194
235
 
195
 
# serial 48 AC_PROG_LIBTOOL
 
236
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
196
237
 
197
238
 
198
239
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
280
321
AC_REQUIRE([AC_OBJEXT])dnl
281
322
AC_REQUIRE([AC_EXEEXT])dnl
282
323
dnl
283
 
 
284
324
AC_LIBTOOL_SYS_MAX_CMD_LEN
285
325
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
286
326
AC_LIBTOOL_OBJDIR
355
395
test -z "$ac_objext" && ac_objext=o
356
396
 
357
397
# Determine commands to create old-style static archives.
358
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
398
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
359
399
old_postinstall_cmds='chmod 644 $oldlib'
360
400
old_postuninstall_cmds=
361
401
 
382
422
  ;;
383
423
esac
384
424
 
 
425
_LT_REQUIRED_DARWIN_CHECKS
 
426
 
385
427
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
386
428
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
387
429
enable_win32_dll=yes, enable_win32_dll=no)
442
484
# Check for compiler boilerplate output or warnings with
443
485
# the simple compiler test code.
444
486
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
445
 
[ac_outfile=conftest.$ac_objext
446
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
487
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
488
ac_outfile=conftest.$ac_objext
 
489
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
447
490
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
448
491
_lt_compiler_boilerplate=`cat conftest.err`
449
492
$rm conftest*
455
498
# Check for linker boilerplate output or warnings with
456
499
# the simple link test code.
457
500
AC_DEFUN([_LT_LINKER_BOILERPLATE],
458
 
[ac_outfile=conftest.$ac_objext
459
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
501
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
502
ac_outfile=conftest.$ac_objext
 
503
echo "$lt_simple_link_test_code" >conftest.$ac_ext
460
504
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
461
505
_lt_linker_boilerplate=`cat conftest.err`
462
 
$rm conftest*
 
506
$rm -r conftest*
463
507
])# _LT_LINKER_BOILERPLATE
464
508
 
 
509
# _LT_REQUIRED_DARWIN_CHECKS
 
510
# --------------------------
 
511
# Check for some things on darwin
 
512
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
513
  case $host_os in
 
514
    rhapsody* | darwin*)
 
515
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
516
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
517
 
 
518
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
519
      [lt_cv_apple_cc_single_mod=no
 
520
      if test -z "${LT_MULTI_MODULE}"; then
 
521
   # By default we will add the -single_module flag. You can override
 
522
   # by either setting the environment variable LT_MULTI_MODULE
 
523
   # non-empty at configure time, or by adding -multi_module to the
 
524
   # link flags.
 
525
   echo "int foo(void){return 1;}" > conftest.c
 
526
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
527
     -dynamiclib ${wl}-single_module conftest.c
 
528
   if test -f libconftest.dylib; then
 
529
     lt_cv_apple_cc_single_mod=yes
 
530
     rm -rf libconftest.dylib*
 
531
   fi
 
532
   rm conftest.c
 
533
      fi])
 
534
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
535
      [lt_cv_ld_exported_symbols_list],
 
536
      [lt_cv_ld_exported_symbols_list=no
 
537
      save_LDFLAGS=$LDFLAGS
 
538
      echo "_main" > conftest.sym
 
539
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
540
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
541
   [lt_cv_ld_exported_symbols_list=yes],
 
542
   [lt_cv_ld_exported_symbols_list=no])
 
543
   LDFLAGS="$save_LDFLAGS"
 
544
    ])
 
545
    case $host_os in
 
546
    rhapsody* | darwin1.[[0123]])
 
547
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
548
    darwin1.*)
 
549
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
550
    darwin*)
 
551
      # if running on 10.5 or later, the deployment target defaults
 
552
      # to the OS version, if on x86, and 10.4, the deployment
 
553
      # target defaults to 10.4. Don't you love it?
 
554
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
555
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
556
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
557
   10.[[012]]*)
 
558
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
559
   10.*)
 
560
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
561
      esac
 
562
    ;;
 
563
  esac
 
564
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
565
      _lt_dar_single_mod='$single_module'
 
566
    fi
 
567
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
568
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
569
    else
 
570
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
571
    fi
 
572
    if test "$DSYMUTIL" != ":"; then
 
573
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
574
    else
 
575
      _lt_dsymutil=
 
576
    fi
 
577
    ;;
 
578
  esac
 
579
])
465
580
 
466
581
# _LT_AC_SYS_LIBPATH_AIX
467
582
# ----------------------
472
587
# If we don't find anything, use the default library path according
473
588
# to the aix ld manual.
474
589
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
475
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
476
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
477
 
}'`
 
590
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
591
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
592
lt_aix_libpath_sed='
 
593
    /Import File Strings/,/^$/ {
 
594
        /^0/ {
 
595
            s/^0  *\(.*\)$/\1/
 
596
            p
 
597
        }
 
598
    }'
 
599
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
478
600
# Check for a 64-bit object if we didn't find anything.
479
 
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; }
480
 
}'`; fi],[])
 
601
if test -z "$aix_libpath"; then
 
602
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
603
fi],[])
481
604
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
482
605
])# _LT_AC_SYS_LIBPATH_AIX
483
606
 
708
831
  rm -rf conftest*
709
832
  ;;
710
833
 
711
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
834
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
835
s390*-*linux*|sparc*-*linux*)
712
836
  # Find out which ABI we are using.
713
837
  echo 'int i;' > conftest.$ac_ext
714
838
  if AC_TRY_EVAL(ac_compile); then
715
839
    case `/usr/bin/file conftest.o` in
716
840
    *32-bit*)
717
841
      case $host in
 
842
        x86_64-*kfreebsd*-gnu)
 
843
          LD="${LD-ld} -m elf_i386_fbsd"
 
844
          ;;
718
845
        x86_64-*linux*)
719
846
          LD="${LD-ld} -m elf_i386"
720
847
          ;;
731
858
      ;;
732
859
    *64-bit*)
733
860
      case $host in
 
861
        x86_64-*kfreebsd*-gnu)
 
862
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
863
          ;;
734
864
        x86_64-*linux*)
735
865
          LD="${LD-ld} -m elf_x86_64"
736
866
          ;;
771
901
    *64-bit*)
772
902
      case $lt_cv_prog_gnu_ld in
773
903
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
774
 
      *)    LD="${LD-ld} -64" ;;
 
904
      *)
 
905
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
906
          LD="${LD-ld} -64"
 
907
        fi
 
908
        ;;
775
909
      esac
776
910
      ;;
777
911
    esac
802
936
AC_CACHE_CHECK([$1], [$2],
803
937
  [$2=no
804
938
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
805
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
939
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
806
940
   lt_compiler_flag="$3"
807
941
   # Insert the option either (1) after the last *FLAGS variable, or
808
942
   # (2) before a word containing "conftest.", or (3) at the end.
843
977
# ------------------------------------------------------------
844
978
# Check whether the given compiler option works
845
979
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
846
 
[AC_CACHE_CHECK([$1], [$2],
 
980
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
981
AC_CACHE_CHECK([$1], [$2],
847
982
  [$2=no
848
983
   save_LDFLAGS="$LDFLAGS"
849
984
   LDFLAGS="$LDFLAGS $3"
850
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
985
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
851
986
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
852
987
     # The linker can only warn and ignore the option if not recognized
853
988
     # So say no if there are warnings
863
998
       $2=yes
864
999
     fi
865
1000
   fi
866
 
   $rm conftest*
 
1001
   $rm -r conftest*
867
1002
   LDFLAGS="$save_LDFLAGS"
868
1003
])
869
1004
 
961
1096
    fi
962
1097
    ;;
963
1098
  *)
964
 
    # If test is not a shell built-in, we'll probably end up computing a
965
 
    # maximum length that is only half of the actual maximum length, but
966
 
    # we can't tell.
967
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
968
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1099
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1100
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1101
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1102
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1103
    else
 
1104
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1105
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
969
1106
               = "XX$teststring") >/dev/null 2>&1 &&
970
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
971
 
            lt_cv_sys_max_cmd_len=$new_result &&
972
 
            test $i != 17 # 1/2 MB should be enough
973
 
    do
974
 
      i=`expr $i + 1`
975
 
      teststring=$teststring$teststring
976
 
    done
977
 
    teststring=
978
 
    # Add a significant safety factor because C++ compilers can tack on massive
979
 
    # amounts of additional arguments before passing them to the linker.
980
 
    # It appears as though 1/2 is a usable value.
981
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1107
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1108
              lt_cv_sys_max_cmd_len=$new_result &&
 
1109
              test $i != 17 # 1/2 MB should be enough
 
1110
      do
 
1111
        i=`expr $i + 1`
 
1112
        teststring=$teststring$teststring
 
1113
      done
 
1114
      teststring=
 
1115
      # Add a significant safety factor because C++ compilers can tack on massive
 
1116
      # amounts of additional arguments before passing them to the linker.
 
1117
      # It appears as though 1/2 is a usable value.
 
1118
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1119
    fi
982
1120
    ;;
983
1121
  esac
984
1122
])
1131
1269
    AC_CHECK_FUNC([shl_load],
1132
1270
          [lt_cv_dlopen="shl_load"],
1133
1271
      [AC_CHECK_LIB([dld], [shl_load],
1134
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1272
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1135
1273
        [AC_CHECK_FUNC([dlopen],
1136
1274
              [lt_cv_dlopen="dlopen"],
1137
1275
          [AC_CHECK_LIB([dl], [dlopen],
1139
1277
            [AC_CHECK_LIB([svld], [dlopen],
1140
1278
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1141
1279
              [AC_CHECK_LIB([dld], [dld_link],
1142
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1280
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1143
1281
              ])
1144
1282
            ])
1145
1283
          ])
1205
1343
# ---------------------------------
1206
1344
# Check to see if options -c and -o are simultaneously supported by compiler
1207
1345
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1208
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1346
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1347
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1209
1348
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1210
1349
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1211
1350
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1213
1352
   mkdir conftest
1214
1353
   cd conftest
1215
1354
   mkdir out
1216
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1355
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1217
1356
 
1218
1357
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1219
1358
   # Insert the option either (1) after the last *FLAGS variable, or
1353
1492
   darwin*)
1354
1493
       if test -n "$STRIP" ; then
1355
1494
         striplib="$STRIP -x"
 
1495
         old_striplib="$STRIP -S"
1356
1496
         AC_MSG_RESULT([yes])
1357
1497
       else
1358
1498
  AC_MSG_RESULT([no])
1370
1510
# -----------------------------
1371
1511
# PORTME Fill in your ld.so characteristics
1372
1512
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1373
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1513
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1514
AC_MSG_CHECKING([dynamic linker characteristics])
1374
1515
library_names_spec=
1375
1516
libname_spec='lib$name'
1376
1517
soname_spec=
1384
1525
version_type=none
1385
1526
dynamic_linker="$host_os ld.so"
1386
1527
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1528
m4_if($1,[],[
1387
1529
if test "$GCC" = yes; then
1388
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1389
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1530
  case $host_os in
 
1531
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1532
    *) lt_awk_arg="/^libraries:/" ;;
 
1533
  esac
 
1534
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1535
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1390
1536
    # if the path contains ";" then we assume it to be the separator
1391
1537
    # otherwise default to the standard path separator (i.e. ":") - it is
1392
1538
    # assumed that no part of a normal pathname contains ";" but that should
1393
1539
    # okay in the real world where ";" in dirpaths is itself problematic.
1394
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1540
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1395
1541
  else
1396
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1542
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1397
1543
  fi
 
1544
  # Ok, now we have the path, separated by spaces, we can step through it
 
1545
  # and add multilib dir if necessary.
 
1546
  lt_tmp_lt_search_path_spec=
 
1547
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1548
  for lt_sys_path in $lt_search_path_spec; do
 
1549
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1550
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1551
    else
 
1552
      test -d "$lt_sys_path" && \
 
1553
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1554
    fi
 
1555
  done
 
1556
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1557
BEGIN {RS=" "; FS="/|\n";} {
 
1558
  lt_foo="";
 
1559
  lt_count=0;
 
1560
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1561
    if ($lt_i != "" && $lt_i != ".") {
 
1562
      if ($lt_i == "..") {
 
1563
        lt_count++;
 
1564
      } else {
 
1565
        if (lt_count == 0) {
 
1566
          lt_foo="/" $lt_i lt_foo;
 
1567
        } else {
 
1568
          lt_count--;
 
1569
        }
 
1570
      }
 
1571
    }
 
1572
  }
 
1573
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1574
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1575
}'`
 
1576
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1398
1577
else
1399
1578
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1400
 
fi
 
1579
fi])
1401
1580
need_lib_prefix=unknown
1402
1581
hardcode_into_libs=no
1403
1582
 
1415
1594
  soname_spec='${libname}${release}${shared_ext}$major'
1416
1595
  ;;
1417
1596
 
1418
 
aix4* | aix5*)
 
1597
aix[[4-9]]*)
1419
1598
  version_type=linux
1420
1599
  need_lib_prefix=no
1421
1600
  need_version=no
1554
1733
  shlibpath_overrides_runpath=yes
1555
1734
  shlibpath_var=DYLD_LIBRARY_PATH
1556
1735
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1557
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1558
 
  if test "$GCC" = yes; then
1559
 
    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"`
1560
 
  else
1561
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1562
 
  fi
 
1736
  m4_if([$1], [],[
 
1737
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1563
1738
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1564
1739
  ;;
1565
1740
 
1576
1751
  dynamic_linker=no
1577
1752
  ;;
1578
1753
 
1579
 
kfreebsd*-gnu)
1580
 
  version_type=linux
1581
 
  need_lib_prefix=no
1582
 
  need_version=no
1583
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1584
 
  soname_spec='${libname}${release}${shared_ext}$major'
1585
 
  shlibpath_var=LD_LIBRARY_PATH
1586
 
  shlibpath_overrides_runpath=no
1587
 
  hardcode_into_libs=yes
1588
 
  dynamic_linker='GNU ld.so'
1589
 
  ;;
1590
 
 
1591
1754
freebsd* | dragonfly*)
1592
1755
  # DragonFly does not have aout.  When/if they implement a new
1593
1756
  # versioning mechanism, adjust this.
1625
1788
    shlibpath_overrides_runpath=no
1626
1789
    hardcode_into_libs=yes
1627
1790
    ;;
1628
 
  freebsd*) # from 4.6 on
 
1791
  *) # from 4.6 on, and DragonFly
1629
1792
    shlibpath_overrides_runpath=yes
1630
1793
    hardcode_into_libs=yes
1631
1794
    ;;
1688
1851
  postinstall_cmds='chmod 555 $lib'
1689
1852
  ;;
1690
1853
 
1691
 
interix3*)
 
1854
interix[[3-9]]*)
1692
1855
  version_type=linux
1693
1856
  need_lib_prefix=no
1694
1857
  need_version=no
1743
1906
  ;;
1744
1907
 
1745
1908
# This must be Linux ELF.
1746
 
linux*)
 
1909
linux* | k*bsd*-gnu)
1747
1910
  version_type=linux
1748
1911
  need_lib_prefix=no
1749
1912
  need_version=no
1757
1920
  # before this can be enabled.
1758
1921
  hardcode_into_libs=yes
1759
1922
 
1760
 
  # find out which ABI we are using
1761
 
  libsuff=
1762
 
  case "$host_cpu" in
1763
 
  x86_64*|s390x*|powerpc64*)
1764
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1765
 
    if AC_TRY_EVAL(ac_compile); then
1766
 
      case `/usr/bin/file conftest.$ac_objext` in
1767
 
      *64-bit*)
1768
 
        libsuff=64
1769
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1770
 
        ;;
1771
 
      esac
1772
 
    fi
1773
 
    rm -rf conftest*
1774
 
    ;;
1775
 
  esac
1776
 
 
1777
1923
  # Append ld.so.conf contents to the search path
1778
1924
  if test -f /etc/ld.so.conf; then
1779
 
    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' ' '`
1780
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
1925
    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' ' '`
 
1926
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1781
1927
  fi
1782
1928
 
1783
1929
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1789
1935
  dynamic_linker='GNU/Linux ld.so'
1790
1936
  ;;
1791
1937
 
1792
 
knetbsd*-gnu)
 
1938
netbsdelf*-gnu)
1793
1939
  version_type=linux
1794
1940
  need_lib_prefix=no
1795
1941
  need_version=no
1798
1944
  shlibpath_var=LD_LIBRARY_PATH
1799
1945
  shlibpath_overrides_runpath=no
1800
1946
  hardcode_into_libs=yes
1801
 
  dynamic_linker='GNU ld.so'
 
1947
  dynamic_linker='NetBSD ld.elf_so'
1802
1948
  ;;
1803
1949
 
1804
1950
netbsd*)
1882
2028
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1883
2029
  ;;
1884
2030
 
 
2031
rdos*)
 
2032
  dynamic_linker=no
 
2033
  ;;
 
2034
 
1885
2035
solaris*)
1886
2036
  version_type=linux
1887
2037
  need_lib_prefix=no
1977
2127
AC_MSG_RESULT([$dynamic_linker])
1978
2128
test "$dynamic_linker" = no && can_build_shared=no
1979
2129
 
 
2130
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
2131
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
2132
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2133
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
2134
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
2135
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2136
 
1980
2137
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1981
2138
if test "$GCC" = yes; then
1982
2139
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1987
2144
# _LT_AC_TAGCONFIG
1988
2145
# ----------------
1989
2146
AC_DEFUN([_LT_AC_TAGCONFIG],
1990
 
[AC_ARG_WITH([tags],
 
2147
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2148
AC_ARG_WITH([tags],
1991
2149
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1992
2150
        [include additional configurations @<:@automatic@:>@])],
1993
2151
    [tagnames="$withval"])
2248
2406
 
2249
2407
# AC_PATH_TOOL_PREFIX
2250
2408
# -------------------
2251
 
# find a file program which can recognise shared library
 
2409
# find a file program which can recognize shared library
2252
2410
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2253
2411
[AC_REQUIRE([AC_PROG_EGREP])dnl
2254
2412
AC_MSG_CHECKING([for $1])
2311
2469
 
2312
2470
# AC_PATH_MAGIC
2313
2471
# -------------
2314
 
# find a file program which can recognise a shared library
 
2472
# find a file program which can recognize a shared library
2315
2473
AC_DEFUN([AC_PATH_MAGIC],
2316
2474
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2317
2475
if test -z "$lt_cv_path_MAGIC_CMD"; then
2458
2616
# how to check for library dependencies
2459
2617
#  -- PORTME fill in with the dynamic library characteristics
2460
2618
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2461
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2619
[AC_CACHE_CHECK([how to recognize dependent libraries],
2462
2620
lt_cv_deplibs_check_method,
2463
2621
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2464
2622
lt_cv_file_magic_test_file=
2475
2633
# whether `pass_all' will *always* work, you probably want this one.
2476
2634
 
2477
2635
case $host_os in
2478
 
aix4* | aix5*)
 
2636
aix[[4-9]]*)
2479
2637
  lt_cv_deplibs_check_method=pass_all
2480
2638
  ;;
2481
2639
 
2497
2655
 
2498
2656
mingw* | pw32*)
2499
2657
  # Base MSYS/MinGW do not provide the 'file' command needed by
2500
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2501
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2502
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2658
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2659
  # unless we find 'file', for example because we are cross-compiling.
 
2660
  if ( file / ) >/dev/null 2>&1; then
 
2661
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2662
    lt_cv_file_magic_cmd='func_win32_libid'
 
2663
  else
 
2664
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2665
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2666
  fi
2503
2667
  ;;
2504
2668
 
2505
2669
darwin* | rhapsody*)
2506
2670
  lt_cv_deplibs_check_method=pass_all
2507
2671
  ;;
2508
2672
 
2509
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2673
freebsd* | dragonfly*)
2510
2674
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2511
2675
    case $host_cpu in
2512
2676
    i*86 )
2544
2708
  esac
2545
2709
  ;;
2546
2710
 
2547
 
interix3*)
 
2711
interix[[3-9]]*)
2548
2712
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2549
2713
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2550
2714
  ;;
2560
2724
  ;;
2561
2725
 
2562
2726
# This must be Linux ELF.
2563
 
linux*)
 
2727
linux* | k*bsd*-gnu)
2564
2728
  lt_cv_deplibs_check_method=pass_all
2565
2729
  ;;
2566
2730
 
2567
 
netbsd*)
 
2731
netbsd* | netbsdelf*-gnu)
2568
2732
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2569
2733
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2570
2734
  else
2594
2758
  lt_cv_deplibs_check_method=pass_all
2595
2759
  ;;
2596
2760
 
 
2761
rdos*)
 
2762
  lt_cv_deplibs_check_method=pass_all
 
2763
  ;;
 
2764
 
2597
2765
solaris*)
2598
2766
  lt_cv_deplibs_check_method=pass_all
2599
2767
  ;;
2646
2814
  lt_cv_path_NM="$NM"
2647
2815
else
2648
2816
  lt_nm_to_check="${ac_tool_prefix}nm"
2649
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2817
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2650
2818
    lt_nm_to_check="$lt_nm_to_check nm"
2651
2819
  fi
2652
2820
  for lt_tmp_nm in $lt_nm_to_check; do
2862
3030
_LT_AC_TAGVAR(objext, $1)=$objext
2863
3031
 
2864
3032
# Code to be used in simple compile tests
2865
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3033
lt_simple_compile_test_code="int some_variable = 0;"
2866
3034
 
2867
3035
# Code to be used in simple link tests
2868
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
3036
lt_simple_link_test_code='int main(){return(0);}'
2869
3037
 
2870
3038
_LT_AC_SYS_COMPILER
2871
3039
 
2901
3069
  fi
2902
3070
  ;;
2903
3071
 
2904
 
aix4* | aix5*)
 
3072
aix[[4-9]]*)
2905
3073
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2906
3074
    test "$enable_shared" = yes && enable_static=no
2907
3075
  fi
2958
3126
_LT_AC_TAGVAR(predeps, $1)=
2959
3127
_LT_AC_TAGVAR(postdeps, $1)=
2960
3128
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3129
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2961
3130
 
2962
3131
# Source file extension for C++ test sources.
2963
3132
ac_ext=cpp
2967
3136
_LT_AC_TAGVAR(objext, $1)=$objext
2968
3137
 
2969
3138
# Code to be used in simple compile tests
2970
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3139
lt_simple_compile_test_code="int some_variable = 0;"
2971
3140
 
2972
3141
# Code to be used in simple link tests
2973
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3142
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2974
3143
 
2975
3144
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2976
3145
_LT_AC_SYS_COMPILER
3067
3236
    # FIXME: insert proper C++ library support
3068
3237
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3069
3238
    ;;
3070
 
  aix4* | aix5*)
 
3239
  aix[[4-9]]*)
3071
3240
    if test "$host_cpu" = ia64; then
3072
3241
      # On IA64, the linker does run time linking by default, so we don't
3073
3242
      # have to do anything special.
3080
3249
      # Test if we are trying to use run time linking or normal
3081
3250
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3082
3251
      # need to do runtime linking.
3083
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3252
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3084
3253
        for ld_flag in $LDFLAGS; do
3085
3254
          case $ld_flag in
3086
3255
          *-brtl*)
3116
3285
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3117
3286
        then
3118
3287
          # We have reworked collect2
3119
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3288
          :
3120
3289
        else
3121
3290
          # We have old collect2
3122
3291
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3226
3395
    fi
3227
3396
  ;;
3228
3397
      darwin* | rhapsody*)
3229
 
        case $host_os in
3230
 
        rhapsody* | darwin1.[[012]])
3231
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3232
 
         ;;
3233
 
       *) # Darwin 1.3 on
3234
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3235
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3236
 
         else
3237
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3238
 
             10.[[012]])
3239
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3240
 
               ;;
3241
 
             10.*)
3242
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3243
 
               ;;
3244
 
           esac
3245
 
         fi
3246
 
         ;;
3247
 
        esac
3248
3398
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3249
3399
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3250
3400
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3251
3401
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3252
3402
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3253
3403
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3254
 
 
3255
 
    if test "$GXX" = yes ; then
3256
 
      lt_int_apple_cc_single_mod=no
 
3404
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3405
      if test "$GXX" = yes ; then
3257
3406
      output_verbose_link_cmd='echo'
3258
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3259
 
       lt_int_apple_cc_single_mod=yes
 
3407
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3408
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3409
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3410
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3411
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3412
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
3413
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3260
3414
      fi
3261
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3262
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3263
 
      else
3264
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3265
 
        fi
3266
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3267
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3268
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3269
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3270
 
          else
3271
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3272
 
          fi
3273
 
            _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}'
3274
3415
      else
3275
3416
      case $cc_basename in
3276
3417
        xlc*)
3277
3418
         output_verbose_link_cmd='echo'
3278
 
          _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'
 
3419
          _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'
3279
3420
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3280
3421
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3281
 
          _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}'
 
3422
          _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}'
3282
3423
          _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}'
3283
3424
          ;;
3284
3425
       *)
3312
3453
  freebsd-elf*)
3313
3454
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3314
3455
    ;;
3315
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3456
  freebsd* | dragonfly*)
3316
3457
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3317
3458
    # conventions
3318
3459
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3361
3502
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3362
3503
 
3363
3504
      case $host_cpu in
3364
 
      hppa*64*|ia64*)
3365
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3366
 
        ;;
 
3505
      hppa*64*|ia64*) ;;
3367
3506
      *)
3368
3507
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3369
3508
        ;;
3431
3570
        ;;
3432
3571
    esac
3433
3572
    ;;
3434
 
  interix3*)
 
3573
  interix[[3-9]]*)
3435
3574
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3436
3575
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3437
3576
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3471
3610
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3472
3611
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3473
3612
    ;;
3474
 
  linux*)
 
3613
  linux* | k*bsd*-gnu)
3475
3614
    case $cc_basename in
3476
3615
      KCC*)
3477
3616
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3523
3662
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3524
3663
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3525
3664
        ;;
3526
 
      pgCC*)
 
3665
      pgCC* | pgcpp*)
3527
3666
        # Portland Group C++ compiler
3528
3667
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3529
3668
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3551
3690
        # dependencies.
3552
3691
        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'
3553
3692
        ;;
 
3693
      *)
 
3694
        case `$CC -V 2>&1 | sed 5q` in
 
3695
        *Sun\ C*)
 
3696
          # Sun C++ 5.9
 
3697
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3698
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3699
          _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'
 
3700
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3701
          _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'
 
3702
 
 
3703
          # Not sure whether something based on
 
3704
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3705
          # would be better.
 
3706
          output_verbose_link_cmd='echo'
 
3707
 
 
3708
          # Archives containing C++ object files must be created using
 
3709
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3710
          # necessary to make sure instantiated templates are included
 
3711
          # in the archive.
 
3712
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3713
          ;;
 
3714
        esac
 
3715
        ;;
3554
3716
    esac
3555
3717
    ;;
3556
3718
  lynxos*)
3573
3735
        ;;
3574
3736
    esac
3575
3737
    ;;
3576
 
  netbsd*)
 
3738
  netbsd* | netbsdelf*-gnu)
3577
3739
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3578
3740
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3579
3741
      wlarc=
3589
3751
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3590
3752
    ;;
3591
3753
  openbsd*)
3592
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3593
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3594
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3595
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3596
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597
 
      _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'
3598
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3599
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3754
    if test -f /usr/libexec/ld.so; then
 
3755
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3756
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3757
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3758
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3759
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3760
        _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'
 
3761
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3762
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3763
      fi
 
3764
      output_verbose_link_cmd='echo'
 
3765
    else
 
3766
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3600
3767
    fi
3601
 
    output_verbose_link_cmd='echo'
3602
3768
    ;;
3603
3769
  osf3*)
3604
3770
    case $cc_basename in
3760
3926
        case $host_os in
3761
3927
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3762
3928
          *)
3763
 
            # The C++ compiler is used as linker so we must use $wl
3764
 
            # flag to pass the commands to the underlying system
3765
 
            # linker. We must also pass each convience library through
3766
 
            # to the system linker between allextract/defaultextract.
3767
 
            # The C++ compiler will combine linker options so we
3768
 
            # cannot just pass the convience library names through
3769
 
            # without $wl.
 
3929
            # The compiler driver will combine and reorder linker options,
 
3930
            # but understands `-z linker_flag'.
3770
3931
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3771
 
            _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'
 
3932
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3772
3933
            ;;
3773
3934
        esac
3774
3935
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3815
3976
          fi
3816
3977
 
3817
3978
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3979
          case $host_os in
 
3980
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3981
          *)
 
3982
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3983
            ;;
 
3984
          esac
3818
3985
        fi
3819
3986
        ;;
3820
3987
    esac
3930
4097
# compiler output when linking a shared library.
3931
4098
# Parse the compiler output and extract the necessary
3932
4099
# objects, libraries and library flags.
3933
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4100
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4101
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3934
4102
dnl we can't use the lt_simple_compile_test_code here,
3935
4103
dnl because it contains code intended for an executable,
3936
4104
dnl not a library.  It's possible we should let each
4055
4223
 
4056
4224
$rm -f confest.$objext
4057
4225
 
 
4226
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4227
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4228
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4229
fi
 
4230
 
4058
4231
# PORTME: override above test on systems where it is broken
4059
4232
ifelse([$1],[CXX],
4060
4233
[case $host_os in
4061
 
interix3*)
 
4234
interix[[3-9]]*)
4062
4235
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4063
4236
  # hack all around it, let's just trust "g++" to DTRT.
4064
4237
  _LT_AC_TAGVAR(predep_objects,$1)=
4066
4239
  _LT_AC_TAGVAR(postdeps,$1)=
4067
4240
  ;;
4068
4241
 
 
4242
linux*)
 
4243
  case `$CC -V 2>&1 | sed 5q` in
 
4244
  *Sun\ C*)
 
4245
    # Sun C++ 5.9
 
4246
    #
 
4247
    # The more standards-conforming stlport4 library is
 
4248
    # incompatible with the Cstd library. Avoid specifying
 
4249
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4250
    # -library=stlport4 depends on it.
 
4251
    case " $CXX $CXXFLAGS " in
 
4252
    *" -library=stlport4 "*)
 
4253
      solaris_use_stlport4=yes
 
4254
      ;;
 
4255
    esac
 
4256
    if test "$solaris_use_stlport4" != yes; then
 
4257
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4258
    fi
 
4259
    ;;
 
4260
  esac
 
4261
  ;;
 
4262
 
4069
4263
solaris*)
4070
4264
  case $cc_basename in
4071
4265
  CC*)
 
4266
    # The more standards-conforming stlport4 library is
 
4267
    # incompatible with the Cstd library. Avoid specifying
 
4268
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4269
    # -library=stlport4 depends on it.
 
4270
    case " $CXX $CXXFLAGS " in
 
4271
    *" -library=stlport4 "*)
 
4272
      solaris_use_stlport4=yes
 
4273
      ;;
 
4274
    esac
 
4275
 
4072
4276
    # Adding this requires a known-good setup of shared libraries for
4073
4277
    # Sun compiler versions before 5.6, else PIC objects from an old
4074
4278
    # archive will be linked into the output, leading to subtle bugs.
4075
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4279
    if test "$solaris_use_stlport4" != yes; then
 
4280
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4281
    fi
4076
4282
    ;;
4077
4283
  esac
4078
4284
  ;;
4079
4285
esac
4080
4286
])
4081
 
 
4082
4287
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4083
4288
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4084
4289
esac
4121
4326
_LT_AC_TAGVAR(objext, $1)=$objext
4122
4327
 
4123
4328
# Code to be used in simple compile tests
4124
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4329
lt_simple_compile_test_code="\
 
4330
      subroutine t
 
4331
      return
 
4332
      end
 
4333
"
4125
4334
 
4126
4335
# Code to be used in simple link tests
4127
 
lt_simple_link_test_code="      program t\n      end\n"
 
4336
lt_simple_link_test_code="\
 
4337
      program t
 
4338
      end
 
4339
"
4128
4340
 
4129
4341
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4130
4342
_LT_AC_SYS_COMPILER
4156
4368
    postinstall_cmds='$RANLIB $lib'
4157
4369
  fi
4158
4370
  ;;
4159
 
aix4* | aix5*)
 
4371
aix[[4-9]]*)
4160
4372
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4161
4373
    test "$enable_shared" = yes && enable_static=no
4162
4374
  fi
4203
4415
_LT_AC_TAGVAR(objext, $1)=$objext
4204
4416
 
4205
4417
# Code to be used in simple compile tests
4206
 
lt_simple_compile_test_code="class foo {}\n"
 
4418
lt_simple_compile_test_code="class foo {}"
4207
4419
 
4208
4420
# Code to be used in simple link tests
4209
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4421
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4210
4422
 
4211
4423
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4212
4424
_LT_AC_SYS_COMPILER
4259
4471
_LT_AC_TAGVAR(objext, $1)=$objext
4260
4472
 
4261
4473
# Code to be used in simple compile tests
4262
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4474
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4263
4475
 
4264
4476
# Code to be used in simple link tests
4265
4477
lt_simple_link_test_code="$lt_simple_compile_test_code"
4333
4545
    _LT_AC_TAGVAR(predeps, $1) \
4334
4546
    _LT_AC_TAGVAR(postdeps, $1) \
4335
4547
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4548
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4336
4549
    _LT_AC_TAGVAR(archive_cmds, $1) \
4337
4550
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4338
4551
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4348
4561
    _LT_AC_TAGVAR(module_cmds, $1) \
4349
4562
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4350
4563
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4564
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4351
4565
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4352
4566
    _LT_AC_TAGVAR(include_expsyms, $1); do
4353
4567
 
4394
4608
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4395
4609
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4396
4610
#
4397
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4611
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4398
4612
# Free Software Foundation, Inc.
4399
4613
#
4400
4614
# This file is part of GNU Libtool:
4631
4845
# shared library.
4632
4846
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4633
4847
 
 
4848
# The directories searched by this compiler when creating a shared
 
4849
# library
 
4850
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4851
 
4634
4852
# The library search path used internally by the compiler when linking
4635
4853
# a shared library.
4636
4854
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4719
4937
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4720
4938
 
4721
4939
# Fix the shell variable \$srcfile for the compiler.
4722
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4940
fix_srcfile_path=$lt_fix_srcfile_path
4723
4941
 
4724
4942
# Set to yes if exported symbols are required.
4725
4943
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4802
5020
# ---------------------------------
4803
5021
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4804
5022
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5023
AC_REQUIRE([LT_AC_PROG_SED])
4805
5024
AC_REQUIRE([AC_PROG_NM])
4806
5025
AC_REQUIRE([AC_OBJEXT])
4807
5026
# Check for command to grab the raw symbol name followed by C symbol from nm.
4838
5057
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4839
5058
  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'"
4840
5059
  ;;
4841
 
linux*)
 
5060
linux* | k*bsd*-gnu)
4842
5061
  if test "$host_cpu" = ia64; then
4843
5062
    symcode='[[ABCDGIRSTW]]'
4844
5063
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4979
5198
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4980
5199
    cat conftest.$ac_ext >&5
4981
5200
  fi
4982
 
  rm -f conftest* conftst*
 
5201
  rm -rf conftest* conftst*
4983
5202
 
4984
5203
  # Do not use the global_symbol_pipe unless it works.
4985
5204
  if test "$pipe_works" = yes; then
5028
5247
      # like `-m68040'.
5029
5248
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5030
5249
      ;;
5031
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5250
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5032
5251
      # PIC is the default for these OSes.
5033
5252
      ;;
5034
 
    mingw* | os2* | pw32*)
 
5253
    mingw* | cygwin* | os2* | pw32*)
5035
5254
      # This hack is so that the source file can tell whether it is being
5036
5255
      # built for inclusion in a dll (and should export symbols for example).
5037
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5256
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5257
      # (--disable-auto-import) libraries
 
5258
      m4_if([$1], [GCJ], [],
 
5259
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5038
5260
      ;;
5039
5261
    darwin* | rhapsody*)
5040
5262
      # PIC is the default on this platform
5045
5267
      # DJGPP does not support shared libraries at all
5046
5268
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5047
5269
      ;;
5048
 
    interix3*)
 
5270
    interix[[3-9]]*)
5049
5271
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5050
5272
      # Instead, we relocate shared libraries at runtime.
5051
5273
      ;;
5071
5293
    esac
5072
5294
  else
5073
5295
    case $host_os in
5074
 
      aix4* | aix5*)
 
5296
      aix[[4-9]]*)
5075
5297
        # All AIX code is PIC.
5076
5298
        if test "$host_cpu" = ia64; then
5077
5299
          # AIX 5 now supports IA64 processor
5111
5333
            ;;
5112
5334
        esac
5113
5335
        ;;
5114
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5336
      freebsd* | dragonfly*)
5115
5337
        # FreeBSD uses GNU C++
5116
5338
        ;;
5117
5339
      hpux9* | hpux10* | hpux11*)
5154
5376
            ;;
5155
5377
        esac
5156
5378
        ;;
5157
 
      linux*)
 
5379
      linux* | k*bsd*-gnu)
5158
5380
        case $cc_basename in
5159
5381
          KCC*)
5160
5382
            # KAI C++ Compiler
5167
5389
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5168
5390
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5169
5391
            ;;
5170
 
          pgCC*)
 
5392
          pgCC* | pgcpp*)
5171
5393
            # Portland Group C++ compiler.
5172
5394
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5173
5395
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5181
5403
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5182
5404
            ;;
5183
5405
          *)
 
5406
            case `$CC -V 2>&1 | sed 5q` in
 
5407
            *Sun\ C*)
 
5408
              # Sun C++ 5.9
 
5409
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5410
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5411
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5412
              ;;
 
5413
            esac
5184
5414
            ;;
5185
5415
        esac
5186
5416
        ;;
5197
5427
            ;;
5198
5428
        esac
5199
5429
        ;;
5200
 
      netbsd*)
 
5430
      netbsd* | netbsdelf*-gnu)
5201
5431
        ;;
5202
5432
      osf3* | osf4* | osf5*)
5203
5433
        case $cc_basename in
5301
5531
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5302
5532
      ;;
5303
5533
 
5304
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5534
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5305
5535
      # PIC is the default for these OSes.
5306
5536
      ;;
5307
5537
 
5308
 
    mingw* | pw32* | os2*)
 
5538
    mingw* | cygwin* | pw32* | os2*)
5309
5539
      # This hack is so that the source file can tell whether it is being
5310
5540
      # built for inclusion in a dll (and should export symbols for example).
5311
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5541
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5542
      # (--disable-auto-import) libraries
 
5543
      m4_if([$1], [GCJ], [],
 
5544
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5312
5545
      ;;
5313
5546
 
5314
5547
    darwin* | rhapsody*)
5317
5550
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5318
5551
      ;;
5319
5552
 
5320
 
    interix3*)
 
5553
    interix[[3-9]]*)
5321
5554
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5322
5555
      # Instead, we relocate shared libraries at runtime.
5323
5556
      ;;
5375
5608
       esac
5376
5609
       ;;
5377
5610
 
5378
 
    mingw* | pw32* | os2*)
 
5611
    mingw* | cygwin* | pw32* | os2*)
5379
5612
      # This hack is so that the source file can tell whether it is being
5380
5613
      # built for inclusion in a dll (and should export symbols for example).
5381
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5614
      m4_if([$1], [GCJ], [],
 
5615
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5382
5616
      ;;
5383
5617
 
5384
5618
    hpux9* | hpux10* | hpux11*)
5408
5642
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5409
5643
      ;;
5410
5644
 
5411
 
    linux*)
 
5645
    linux* | k*bsd*-gnu)
5412
5646
      case $cc_basename in
5413
5647
      icc* | ecc*)
5414
5648
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5427
5661
        # All Alpha code is PIC.
5428
5662
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5429
5663
        ;;
 
5664
      *)
 
5665
        case `$CC -V 2>&1 | sed 5q` in
 
5666
        *Sun\ C*)
 
5667
          # Sun C 5.9
 
5668
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5669
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5670
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5671
          ;;
 
5672
        *Sun\ F*)
 
5673
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5674
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5675
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5676
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5677
          ;;
 
5678
        esac
 
5679
        ;;
5430
5680
      esac
5431
5681
      ;;
5432
5682
 
5436
5686
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5437
5687
      ;;
5438
5688
 
 
5689
    rdos*)
 
5690
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5691
      ;;
 
5692
 
5439
5693
    solaris*)
5440
5694
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5441
5695
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495
5749
#
5496
5750
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5497
5751
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5498
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5752
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5499
5753
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5500
5754
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5501
5755
     "" | " "*) ;;
5519
5773
#
5520
5774
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5521
5775
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5522
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5776
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5523
5777
  $lt_tmp_static_flag,
5524
5778
  [],
5525
5779
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5530
5784
# ------------------------------------
5531
5785
# See if the linker supports building shared libraries.
5532
5786
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5533
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5787
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5788
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5534
5789
ifelse([$1],[CXX],[
5535
5790
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5536
5791
  case $host_os in
5537
 
  aix4* | aix5*)
 
5792
  aix[[4-9]]*)
5538
5793
    # If we're using GNU nm, then we don't want the "-C" option.
5539
5794
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5540
5795
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5547
5802
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5548
5803
  ;;
5549
5804
  cygwin* | mingw*)
5550
 
    _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'
 
5805
    _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'
 
5806
  ;;
 
5807
  linux* | k*bsd*-gnu)
 
5808
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5551
5809
  ;;
5552
5810
  *)
5553
5811
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5554
5812
  ;;
5555
5813
  esac
 
5814
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5556
5815
],[
5557
5816
  runpath_var=
5558
5817
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5583
5842
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5584
5843
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5585
5844
  # as well as any symbol that contains `d'.
5586
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5845
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5587
5846
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5588
5847
  # platforms (ab)use it in PIC code, but their linkers get confused if
5589
5848
  # the symbol is explicitly referenced.  Since portable code cannot
5590
5849
  # rely on this symbol name, it's probably fine to never include it in
5591
5850
  # preloaded symbol tables.
 
5851
  # Exclude shared library initialization/finalization symbols.
 
5852
dnl Note also adjust exclude_expsyms for C++ above.
5592
5853
  extract_expsyms_cmds=
5593
5854
  # Just being paranoid about ensuring that cc_basename is set.
5594
5855
  _LT_CC_BASENAME([$compiler])
5638
5899
 
5639
5900
    # See if GNU ld supports shared libraries.
5640
5901
    case $host_os in
5641
 
    aix3* | aix4* | aix5*)
 
5902
    aix[[3-9]]*)
5642
5903
      # On AIX/PPC, the GNU linker is very broken
5643
5904
      if test "$host_cpu" != ia64; then
5644
5905
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5686
5947
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5687
5948
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5688
5949
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5689
 
      _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'
 
5950
      _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'
5690
5951
 
5691
5952
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5692
5953
        _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'
5704
5965
      fi
5705
5966
      ;;
5706
5967
 
5707
 
    interix3*)
 
5968
    interix[[3-9]]*)
5708
5969
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5709
5970
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5710
5971
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5719
5980
      _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'
5720
5981
      ;;
5721
5982
 
5722
 
    linux*)
 
5983
    gnu* | linux* | k*bsd*-gnu)
5723
5984
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5724
5985
        tmp_addflag=
5725
5986
        case $cc_basename,$host_cpu in
5737
5998
        ifc* | ifort*)                  # Intel Fortran compiler
5738
5999
          tmp_addflag=' -nofor_main' ;;
5739
6000
        esac
5740
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6001
        case `$CC -V 2>&1 | sed 5q` in
 
6002
        *Sun\ C*)                       # Sun C 5.9
 
6003
          _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'
 
6004
          tmp_sharedflag='-G' ;;
 
6005
        *Sun\ F*)                       # Sun Fortran 8.3
 
6006
          tmp_sharedflag='-G' ;;
 
6007
        *)
 
6008
          tmp_sharedflag='-shared' ;;
 
6009
        esac
 
6010
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5741
6011
 
5742
6012
        if test $supports_anon_versioning = yes; then
5743
6013
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5744
6014
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5745
6015
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5746
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6016
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5747
6017
        fi
 
6018
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5748
6019
      else
5749
6020
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5750
6021
      fi
5751
6022
      ;;
5752
6023
 
5753
 
    netbsd*)
 
6024
    netbsd* | netbsdelf*-gnu)
5754
6025
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5755
6026
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5756
6027
        wlarc=
5783
6054
 
5784
6055
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5785
6056
      case `$LD -v 2>&1` in
5786
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6057
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5787
6058
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5788
6059
        cat <<_LT_EOF 1>&2
5789
6060
 
5848
6119
      fi
5849
6120
      ;;
5850
6121
 
5851
 
    aix4* | aix5*)
 
6122
    aix[[4-9]]*)
5852
6123
      if test "$host_cpu" = ia64; then
5853
6124
        # On IA64, the linker does run time linking by default, so we don't
5854
6125
        # have to do anything special.
5868
6139
        # Test if we are trying to use run time linking or normal
5869
6140
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5870
6141
        # need to do runtime linking.
5871
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6142
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5872
6143
          for ld_flag in $LDFLAGS; do
5873
6144
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5874
6145
            aix_use_runtimelinking=yes
5902
6173
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5903
6174
          then
5904
6175
          # We have reworked collect2
5905
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6176
          :
5906
6177
          else
5907
6178
          # We have old collect2
5908
6179
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5995
6266
      # The linker will automatically build a .lib file if we build a DLL.
5996
6267
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5997
6268
      # FIXME: Should let the user specify the lib program.
5998
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6269
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5999
6270
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6000
6271
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6001
6272
      ;;
6028
6299
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6029
6300
    if test "$GCC" = yes ; then
6030
6301
        output_verbose_link_cmd='echo'
6031
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6032
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6033
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6034
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6035
 
      _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}'
 
6302
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6303
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6304
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6305
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6036
6306
    else
6037
6307
      case $cc_basename in
6038
6308
        xlc*)
6039
6309
         output_verbose_link_cmd='echo'
6040
 
         _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'
 
6310
         _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'
6041
6311
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6042
6312
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6043
 
         _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}'
 
6313
         _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}'
6044
6314
          _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}'
6045
6315
          ;;
6046
6316
       *)
6080
6350
      ;;
6081
6351
 
6082
6352
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6083
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6353
    freebsd* | dragonfly*)
6084
6354
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6085
6355
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6086
6356
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6182
6452
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6183
6453
      ;;
6184
6454
 
6185
 
    netbsd*)
 
6455
    netbsd* | netbsdelf*-gnu)
6186
6456
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6187
6457
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6188
6458
      else
6202
6472
      ;;
6203
6473
 
6204
6474
    openbsd*)
6205
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6206
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6207
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6208
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6209
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6210
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6211
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6475
      if test -f /usr/libexec/ld.so; then
 
6476
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6477
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6478
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6479
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6480
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6481
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6482
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6483
        else
 
6484
          case $host_os in
 
6485
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6486
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6487
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6488
             ;;
 
6489
           *)
 
6490
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6491
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6492
             ;;
 
6493
          esac
 
6494
        fi
6212
6495
      else
6213
 
       case $host_os in
6214
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6215
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6216
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6217
 
           ;;
6218
 
         *)
6219
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6220
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6221
 
           ;;
6222
 
       esac
 
6496
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6223
6497
      fi
6224
6498
      ;;
6225
6499
 
6278
6552
      case $host_os in
6279
6553
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6280
6554
      *)
6281
 
        # The compiler driver will combine linker options so we
6282
 
        # cannot just pass the convience library names through
6283
 
        # without $wl, iff we do not link with $LD.
6284
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6555
        # The compiler driver will combine and reorder linker options,
 
6556
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6557
        # but is careful enough not to reorder.
6285
6558
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6286
 
        case $wlarc in
6287
 
        '')
6288
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6289
 
        *)
6290
 
          _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' ;;
6291
 
        esac ;;
 
6559
        if test "$GCC" = yes; then
 
6560
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6561
        else
 
6562
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6563
        fi
 
6564
        ;;
6292
6565
      esac
6293
6566
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6294
6567
      ;;
6345
6618
      fi
6346
6619
      ;;
6347
6620
 
6348
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6621
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6349
6622
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6350
6623
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6351
6624
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6420
6693
      # to ld, don't add -lc before -lgcc.
6421
6694
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6422
6695
      $rm conftest*
6423
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6696
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6424
6697
 
6425
6698
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6426
6699
        soname=conftest
6523
6796
[AC_CHECK_TOOL(RC, windres, no)
6524
6797
])
6525
6798
 
 
6799
 
 
6800
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6801
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6802
 
 
6803
# _AS_TEST_PREPARE
 
6804
# ----------------
 
6805
m4_ifndef([_AS_TEST_PREPARE],
 
6806
[m4_defun([_AS_TEST_PREPARE],
 
6807
[if test -x / >/dev/null 2>&1; then
 
6808
  as_executable_p='test -x'
 
6809
else
 
6810
  as_executable_p='test -f'
 
6811
fi
 
6812
])])# _AS_TEST_PREPARE
 
6813
 
 
6814
# AS_EXECUTABLE_P
 
6815
# ---------------
 
6816
# Check whether a file is executable.
 
6817
m4_ifndef([AS_EXECUTABLE_P],
 
6818
[m4_defun([AS_EXECUTABLE_P],
 
6819
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6820
$as_executable_p $1[]dnl
 
6821
])])# AS_EXECUTABLE_P
 
6822
 
6526
6823
# NOTE: This macro has been submitted for inclusion into   #
6527
6824
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6528
6825
#  a released version of Autoconf we should remove this    #
6543
6840
  test -z "$as_dir" && as_dir=.
6544
6841
  for lt_ac_prog in sed gsed; do
6545
6842
    for ac_exec_ext in '' $ac_executable_extensions; do
6546
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6843
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6547
6844
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6548
6845
      fi
6549
6846
    done
6550
6847
  done
6551
6848
done
 
6849
IFS=$as_save_IFS
6552
6850
lt_ac_max=0
6553
6851
lt_ac_count=0
6554
6852
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6581
6879
done
6582
6880
])
6583
6881
SED=$lt_cv_path_SED
 
6882
AC_SUBST([SED])
6584
6883
AC_MSG_RESULT([$SED])
6585
6884
])
6586
6885
 
6722
7021
 
6723
7022
_PKG_TEXT
6724
7023
])],
6725
 
                [$4])
 
7024
                [AC_MSG_RESULT([no])
 
7025
                $4])
6726
7026
elif test $pkg_failed = untried; then
6727
7027
        ifelse([$4], , [AC_MSG_FAILURE(dnl
6728
7028
[The pkg-config script could not be found or is too old.  Make sure it
6731
7031
 
6732
7032
_PKG_TEXT
6733
7033
 
6734
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
7034
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
6735
7035
                [$4])
6736
7036
else
6737
7037
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6741
7041
fi[]dnl
6742
7042
])# PKG_CHECK_MODULES
6743
7043
 
6744
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
7044
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6745
7045
#
6746
7046
# This file is free software; the Free Software Foundation
6747
7047
# gives unlimited permission to copy and/or distribute it,
6751
7051
# ----------------------------
6752
7052
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6753
7053
# generated from the m4 files accompanying Automake X.Y.
6754
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
7054
# (This private macro should not be called outside this file.)
 
7055
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
7056
[am__api_version='1.10'
 
7057
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
7058
dnl require some minimum version.  Point them to the right macro.
 
7059
m4_if([$1], [1.10.1], [],
 
7060
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
7061
])
 
7062
 
 
7063
# _AM_AUTOCONF_VERSION(VERSION)
 
7064
# -----------------------------
 
7065
# aclocal traces this macro to find the Autoconf version.
 
7066
# This is a private macro too.  Using m4_define simplifies
 
7067
# the logic in aclocal, which can simply ignore this definition.
 
7068
m4_define([_AM_AUTOCONF_VERSION], [])
6755
7069
 
6756
7070
# AM_SET_CURRENT_AUTOMAKE_VERSION
6757
7071
# -------------------------------
6758
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
7072
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6759
7073
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6760
7074
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6761
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
7075
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
7076
m4_ifndef([AC_AUTOCONF_VERSION],
 
7077
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
7078
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6762
7079
 
6763
7080
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6764
7081
 
6815
7132
 
6816
7133
# AM_CONDITIONAL                                            -*- Autoconf -*-
6817
7134
 
6818
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
7135
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6819
7136
# Free Software Foundation, Inc.
6820
7137
#
6821
7138
# This file is free software; the Free Software Foundation
6822
7139
# gives unlimited permission to copy and/or distribute it,
6823
7140
# with or without modifications, as long as this notice is preserved.
6824
7141
 
6825
 
# serial 7
 
7142
# serial 8
6826
7143
 
6827
7144
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6828
7145
# -------------------------------------
6831
7148
[AC_PREREQ(2.52)dnl
6832
7149
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6833
7150
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6834
 
AC_SUBST([$1_TRUE])
6835
 
AC_SUBST([$1_FALSE])
 
7151
AC_SUBST([$1_TRUE])dnl
 
7152
AC_SUBST([$1_FALSE])dnl
 
7153
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
7154
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6836
7155
if $2; then
6837
7156
  $1_TRUE=
6838
7157
  $1_FALSE='#'
6846
7165
Usually this means the macro was only invoked conditionally.]])
6847
7166
fi])])
6848
7167
 
6849
 
 
6850
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7168
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6851
7169
# Free Software Foundation, Inc.
6852
7170
#
6853
7171
# This file is free software; the Free Software Foundation
6854
7172
# gives unlimited permission to copy and/or distribute it,
6855
7173
# with or without modifications, as long as this notice is preserved.
6856
7174
 
6857
 
# serial 8
 
7175
# serial 9
6858
7176
 
6859
7177
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6860
7178
# written in clear, in which case automake, when reading aclocal.m4,
6882
7200
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6883
7201
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6884
7202
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
7203
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6885
7204
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6886
7205
                   [depcc="$$1"   am_compiler_list=])
6887
7206
 
6947
7266
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6948
7267
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6949
7268
         >/dev/null 2>conftest.err &&
 
7269
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6950
7270
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6951
7271
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6952
7272
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6999
7319
  AMDEPBACKSLASH='\'
7000
7320
fi
7001
7321
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7002
 
AC_SUBST([AMDEPBACKSLASH])
 
7322
AC_SUBST([AMDEPBACKSLASH])dnl
 
7323
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7003
7324
])
7004
7325
 
7005
7326
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7024
7345
  # some people rename them; so instead we look at the file content.
7025
7346
  # Grep'ing the first line is not enough: some people post-process
7026
7347
  # each Makefile.in and add a new line on top of each file to say so.
7027
 
  # So let's grep whole file.
7028
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
7348
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7349
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7350
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7029
7351
    dirpart=`AS_DIRNAME("$mf")`
7030
7352
  else
7031
7353
    continue
7072
7394
 
7073
7395
# Do all the work for Automake.                             -*- Autoconf -*-
7074
7396
 
7075
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7076
 
# Free Software Foundation, Inc.
 
7397
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7398
# 2005, 2006, 2008 Free Software Foundation, Inc.
7077
7399
#
7078
7400
# This file is free software; the Free Software Foundation
7079
7401
# gives unlimited permission to copy and/or distribute it,
7080
7402
# with or without modifications, as long as this notice is preserved.
7081
7403
 
7082
 
# serial 12
 
7404
# serial 13
7083
7405
 
7084
7406
# This macro actually does too much.  Some checks are only needed if
7085
7407
# your package does certain things.  But this isn't really a big deal.
7096
7418
# arguments mandatory, and then we can depend on a new Autoconf
7097
7419
# release and drop the old call support.
7098
7420
AC_DEFUN([AM_INIT_AUTOMAKE],
7099
 
[AC_PREREQ([2.58])dnl
 
7421
[AC_PREREQ([2.60])dnl
7100
7422
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7101
7423
dnl the ones we care about.
7102
7424
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7103
7425
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7104
7426
AC_REQUIRE([AC_PROG_INSTALL])dnl
7105
 
# test to see if srcdir already configured
7106
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7107
 
   test -f $srcdir/config.status; then
7108
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7427
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7428
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7429
  # is not polluted with repeated "-I."
 
7430
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7431
  # test to see if srcdir already configured
 
7432
  if test -f $srcdir/config.status; then
 
7433
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7434
  fi
7109
7435
fi
7110
7436
 
7111
7437
# test whether we have cygpath
7125
7451
 AC_SUBST([PACKAGE], [$1])dnl
7126
7452
 AC_SUBST([VERSION], [$2])],
7127
7453
[_AM_SET_OPTIONS([$1])dnl
 
7454
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7455
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7456
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7128
7457
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7129
7458
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7130
7459
 
7160
7489
                  [_AM_DEPENDENCIES(CXX)],
7161
7490
                  [define([AC_PROG_CXX],
7162
7491
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7492
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7493
                  [_AM_DEPENDENCIES(OBJC)],
 
7494
                  [define([AC_PROG_OBJC],
 
7495
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7163
7496
])
7164
7497
])
7165
7498
 
7173
7506
# our stamp files there.
7174
7507
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7175
7508
[# Compute $1's index in $config_headers.
 
7509
_am_arg=$1
7176
7510
_am_stamp_count=1
7177
7511
for _am_header in $config_headers :; do
7178
7512
  case $_am_header in
7179
 
    $1 | $1:* )
 
7513
    $_am_arg | $_am_arg:* )
7180
7514
      break ;;
7181
7515
    * )
7182
7516
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7183
7517
  esac
7184
7518
done
7185
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7519
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7186
7520
 
7187
7521
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7188
7522
#
7195
7529
# Define $install_sh.
7196
7530
AC_DEFUN([AM_PROG_INSTALL_SH],
7197
7531
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7198
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7532
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7199
7533
AC_SUBST(install_sh)])
7200
7534
 
7201
7535
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7219
7553
rmdir .tst 2>/dev/null
7220
7554
AC_SUBST([am__leading_dot])])
7221
7555
 
7222
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7223
 
# Free Software Foundation, Inc.
 
7556
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 
7557
# 2006  Free Software Foundation, Inc.
7224
7558
#
7225
7559
# This file is free software; the Free Software Foundation
7226
7560
# gives unlimited permission to copy and/or distribute it,
7227
7561
# with or without modifications, as long as this notice is preserved.
7228
7562
 
7229
 
# serial 9
 
7563
# serial 10
7230
7564
 
7231
7565
# AM_PATH_LISPDIR
7232
7566
# ---------------
7233
7567
AC_DEFUN([AM_PATH_LISPDIR],
7234
 
[ # If set to t, that means we are running in a shell under Emacs.
 
7568
[AC_PREREQ([2.60])dnl
 
7569
 # If set to t, that means we are running in a shell under Emacs.
7235
7570
 # If you have an Emacs named "t", then use the full path.
7236
7571
 test x"$EMACS" = xt && EMACS=
7237
7572
 AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
7255
7590
        am_cv_lispdir=`sed -n \
7256
7591
       -e 's,/$,,' \
7257
7592
       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
7258
 
       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
 
7593
       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
7259
7594
       conftest.out`
7260
7595
       rm conftest.out
7261
7596
     fi
7269
7604
 
7270
7605
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
7271
7606
 
 
7607
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
7608
# From Jim Meyering
 
7609
 
 
7610
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
7611
# Free Software Foundation, Inc.
 
7612
#
 
7613
# This file is free software; the Free Software Foundation
 
7614
# gives unlimited permission to copy and/or distribute it,
 
7615
# with or without modifications, as long as this notice is preserved.
 
7616
 
 
7617
# serial 4
 
7618
 
 
7619
AC_DEFUN([AM_MAINTAINER_MODE],
 
7620
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
7621
  dnl maintainer-mode is disabled by default
 
7622
  AC_ARG_ENABLE(maintainer-mode,
 
7623
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
7624
                          (and sometimes confusing) to the casual installer],
 
7625
      USE_MAINTAINER_MODE=$enableval,
 
7626
      USE_MAINTAINER_MODE=no)
 
7627
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
7628
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
7629
  MAINT=$MAINTAINER_MODE_TRUE
 
7630
  AC_SUBST(MAINT)dnl
 
7631
]
 
7632
)
 
7633
 
 
7634
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
7635
 
7272
7636
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
7273
7637
 
7274
7638
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
7323
7687
 
7324
7688
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7325
7689
 
7326
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7690
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7327
7691
# Free Software Foundation, Inc.
7328
7692
#
7329
7693
# This file is free software; the Free Software Foundation
7330
7694
# gives unlimited permission to copy and/or distribute it,
7331
7695
# with or without modifications, as long as this notice is preserved.
7332
7696
 
7333
 
# serial 4
 
7697
# serial 5
7334
7698
 
7335
7699
# AM_MISSING_PROG(NAME, PROGRAM)
7336
7700
# ------------------------------
7346
7710
# If it does, set am_missing_run to use it, otherwise, to nothing.
7347
7711
AC_DEFUN([AM_MISSING_HAS_RUN],
7348
7712
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7713
AC_REQUIRE_AUX_FILE([missing])dnl
7349
7714
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7350
7715
# Use eval to expand $SHELL
7351
7716
if eval "$MISSING --run true"; then
7356
7721
fi
7357
7722
])
7358
7723
 
7359
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7724
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7360
7725
#
7361
7726
# This file is free software; the Free Software Foundation
7362
7727
# gives unlimited permission to copy and/or distribute it,
7364
7729
 
7365
7730
# AM_PROG_MKDIR_P
7366
7731
# ---------------
7367
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7368
 
#
7369
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7370
 
# created by `make install' are always world readable, even if the
7371
 
# installer happens to have an overly restrictive umask (e.g. 077).
7372
 
# This was a mistake.  There are at least two reasons why we must not
7373
 
# use `-m 0755':
7374
 
#   - it causes special bits like SGID to be ignored,
7375
 
#   - it may be too restrictive (some setups expect 775 directories).
7376
 
#
7377
 
# Do not use -m 0755 and let people choose whatever they expect by
7378
 
# setting umask.
7379
 
#
7380
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7381
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7382
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7383
 
# concurrently, both version can detect that a/ is missing, but only
7384
 
# one can create it and the other will error out.  Consequently we
7385
 
# restrict ourselves to GNU make (using the --version option ensures
7386
 
# this.)
 
7732
# Check for `mkdir -p'.
7387
7733
AC_DEFUN([AM_PROG_MKDIR_P],
7388
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7389
 
  # We used to keeping the `.' as first argument, in order to
7390
 
  # allow $(mkdir_p) to be used without argument.  As in
7391
 
  #   $(mkdir_p) $(somedir)
7392
 
  # where $(somedir) is conditionally defined.  However this is wrong
7393
 
  # for two reasons:
7394
 
  #  1. if the package is installed by a user who cannot write `.'
7395
 
  #     make install will fail,
7396
 
  #  2. the above comment should most certainly read
7397
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7398
 
  #     so it does not work when $(somedir) is undefined and
7399
 
  #     $(DESTDIR) is not.
7400
 
  #  To support the latter case, we have to write
7401
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7402
 
  #  so the `.' trick is pointless.
7403
 
  mkdir_p='mkdir -p --'
7404
 
else
7405
 
  # On NextStep and OpenStep, the `mkdir' command does not
7406
 
  # recognize any option.  It will interpret all options as
7407
 
  # directories to create, and then abort because `.' already
7408
 
  # exists.
7409
 
  for d in ./-p ./--version;
7410
 
  do
7411
 
    test -d $d && rmdir $d
7412
 
  done
7413
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7414
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7415
 
    mkdir_p='$(mkinstalldirs)'
7416
 
  else
7417
 
    mkdir_p='$(install_sh) -d'
7418
 
  fi
7419
 
fi
7420
 
AC_SUBST([mkdir_p])])
 
7734
[AC_PREREQ([2.60])dnl
 
7735
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7736
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7737
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7738
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7739
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7740
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7741
dnl adjustment using top_builddir (which is defined more often than
 
7742
dnl MKDIR_P).
 
7743
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7744
case $mkdir_p in
 
7745
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7746
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7747
esac
 
7748
])
7421
7749
 
7422
7750
# Helper functions for option handling.                     -*- Autoconf -*-
7423
7751
 
7529
7857
if test "$cross_compiling" != no; then
7530
7858
  AC_CHECK_TOOL([STRIP], [strip], :)
7531
7859
fi
7532
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7860
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7533
7861
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7534
7862
 
 
7863
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7864
#
 
7865
# This file is free software; the Free Software Foundation
 
7866
# gives unlimited permission to copy and/or distribute it,
 
7867
# with or without modifications, as long as this notice is preserved.
 
7868
 
 
7869
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7870
# ---------------------------
 
7871
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7872
# This macro is traced by Automake.
 
7873
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7874
 
7535
7875
# Check how to create a tarball.                            -*- Autoconf -*-
7536
7876
 
7537
7877
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
7630
7970
 
7631
7971
m4_include([m4/ac_cxx_have_stl.m4])
7632
7972
m4_include([m4/ac_cxx_namespace.m4])
7633
 
m4_include([m4/ax_create_stdint_h.m4])
 
7973
m4_include([m4/ax_cflags_gcc_option.m4])
 
7974
m4_include([m4/ax_func_sigsetjmp.m4])
 
7975
m4_include([m4/ax_lib_glibc.m4])
 
7976
m4_include([m4/ax_path_qmake4.m4])
7634
7977
m4_include([m4/codeset.m4])
 
7978
m4_include([m4/eb4.m4])
7635
7979
m4_include([m4/gettext.m4])
7636
7980
m4_include([m4/iconv.m4])
7637
7981
m4_include([m4/lib-ld.m4])
7640
7984
m4_include([m4/nls.m4])
7641
7985
m4_include([m4/po.m4])
7642
7986
m4_include([m4/progtest.m4])
 
7987
m4_include([m4/wnn.m4])
7643
7988
m4_include([m4/xft.m4])