~kklimonda/ubuntu/natty/glibmm2.4/update

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-08-28 08:32:22 UTC
  • mfrom: (1.2.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20090828083222-qr6jekfjlsz52rb7
Tags: 2.21.4.1-0ubuntu1
* New upstream release: (LP: #419705)
  2.21.4.1
  - Reenable hierarchy graphs for each class
  - Remove header and footer HTML fragments
  - Use shared mm-common Doxygen style sheet
  2.21.4
  - Transition to new mm-common build infrastructure
  - Correct the if condition in Gio::MemoryInputStream::add_data().
* debian/control.in:
  - Remove debian VCS links as they confuse debcheckout
* debian/libglibmm-2.4-dev.install:
  - Install files from /usr/share/glibmm-2.4/doctool

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  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.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
 
22
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
23
 
24
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
25
#
 
26
# This program is free software; you can redistribute it and/or modify
 
27
# it under the terms of the GNU General Public License as published by
 
28
# the Free Software Foundation; either version 2 of the License, or
 
29
# (at your option) any later version.
 
30
#
 
31
# This program is distributed in the hope that it will be useful, but
 
32
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
33
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
34
# General Public License for more details.
 
35
#
 
36
# You should have received a copy of the GNU General Public License
 
37
# along with this program; if not, write to the Free Software
 
38
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
39
#
 
40
# As a special exception to the GNU General Public License, if you
 
41
# distribute this file as part of a program that contains a
 
42
# configuration script generated by Autoconf, you may include it under
 
43
# the same distribution terms that you use for the rest of that program.
 
44
 
 
45
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
46
# ----------------------------------
 
47
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
48
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
49
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
50
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
51
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
52
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
53
fi
 
54
if test -n "$PKG_CONFIG"; then
 
55
        _pkg_min_version=m4_default([$1], [0.9.0])
 
56
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
57
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
58
                AC_MSG_RESULT([yes])
 
59
        else
 
60
                AC_MSG_RESULT([no])
 
61
                PKG_CONFIG=""
 
62
        fi
 
63
                
 
64
fi[]dnl
 
65
])# PKG_PROG_PKG_CONFIG
 
66
 
 
67
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
68
#
 
69
# Check to see whether a particular set of modules exists.  Similar
 
70
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
71
#
 
72
#
 
73
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
74
# this or PKG_CHECK_MODULES is called, or make sure to call
 
75
# PKG_CHECK_EXISTS manually
 
76
# --------------------------------------------------------------
 
77
AC_DEFUN([PKG_CHECK_EXISTS],
 
78
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
79
if test -n "$PKG_CONFIG" && \
 
80
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
81
  m4_ifval([$2], [$2], [:])
 
82
m4_ifvaln([$3], [else
 
83
  $3])dnl
 
84
fi])
 
85
 
 
86
 
 
87
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
88
# ---------------------------------------------
 
89
m4_define([_PKG_CONFIG],
 
90
[if test -n "$PKG_CONFIG"; then
 
91
    if test -n "$$1"; then
 
92
        pkg_cv_[]$1="$$1"
 
93
    else
 
94
        PKG_CHECK_EXISTS([$3],
 
95
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
96
                         [pkg_failed=yes])
 
97
    fi
 
98
else
 
99
        pkg_failed=untried
 
100
fi[]dnl
 
101
])# _PKG_CONFIG
 
102
 
 
103
# _PKG_SHORT_ERRORS_SUPPORTED
 
104
# -----------------------------
 
105
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
106
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
107
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
108
        _pkg_short_errors_supported=yes
 
109
else
 
110
        _pkg_short_errors_supported=no
 
111
fi[]dnl
 
112
])# _PKG_SHORT_ERRORS_SUPPORTED
 
113
 
 
114
 
 
115
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
116
# [ACTION-IF-NOT-FOUND])
 
117
#
 
118
#
 
119
# Note that if there is a possibility the first call to
 
120
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
121
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
122
#
 
123
#
 
124
# --------------------------------------------------------------
 
125
AC_DEFUN([PKG_CHECK_MODULES],
 
126
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
127
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
128
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
129
 
 
130
pkg_failed=no
 
131
AC_MSG_CHECKING([for $1])
 
132
 
 
133
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
134
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
135
 
 
136
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
137
and $1[]_LIBS to avoid the need to call pkg-config.
 
138
See the pkg-config man page for more details.])
 
139
 
 
140
if test $pkg_failed = yes; then
 
141
        _PKG_SHORT_ERRORS_SUPPORTED
 
142
        if test $_pkg_short_errors_supported = yes; then
 
143
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
144
        else 
 
145
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
146
        fi
 
147
        # Put the nasty error message in config.log where it belongs
 
148
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
149
 
 
150
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
151
[Package requirements ($2) were not met:
 
152
 
 
153
$$1_PKG_ERRORS
 
154
 
 
155
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
156
installed software in a non-standard prefix.
 
157
 
 
158
_PKG_TEXT
 
159
])],
 
160
                [AC_MSG_RESULT([no])
 
161
                $4])
 
162
elif test $pkg_failed = untried; then
 
163
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
164
[The pkg-config script could not be found or is too old.  Make sure it
 
165
is in your PATH or set the PKG_CONFIG environment variable to the full
 
166
path to pkg-config.
 
167
 
 
168
_PKG_TEXT
 
169
 
 
170
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
171
                [$4])
 
172
else
 
173
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
174
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
175
        AC_MSG_RESULT([yes])
 
176
        ifelse([$3], , :, [$3])
 
177
fi[]dnl
 
178
])# PKG_CHECK_MODULES
 
179
 
22
180
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
23
181
#
24
182
# This file is free software; the Free Software Foundation
31
189
# generated from the m4 files accompanying Automake X.Y.
32
190
# (This private macro should not be called outside this file.)
33
191
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.11'
 
192
[am__api_version='1.10'
35
193
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
194
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11], [],
 
195
m4_if([$1], [1.10.2], [],
38
196
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
197
])
40
198
 
50
208
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
209
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
210
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11])dnl
 
211
[AM_AUTOMAKE_VERSION([1.10.2])dnl
54
212
m4_ifndef([AC_AUTOCONF_VERSION],
55
213
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
214
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
110
268
 
111
269
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
270
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
271
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
114
272
# Free Software Foundation, Inc.
115
273
#
116
274
# This file is free software; the Free Software Foundation
117
275
# gives unlimited permission to copy and/or distribute it,
118
276
# with or without modifications, as long as this notice is preserved.
119
277
 
120
 
# serial 9
 
278
# serial 8
121
279
 
122
280
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
281
# -------------------------------------
130
288
AC_SUBST([$1_FALSE])dnl
131
289
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
290
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
134
291
if $2; then
135
292
  $1_TRUE=
136
293
  $1_FALSE='#'
144
301
Usually this means the macro was only invoked conditionally.]])
145
302
fi])])
146
303
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
304
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
148
305
# Free Software Foundation, Inc.
149
306
#
150
307
# This file is free software; the Free Software Foundation
151
308
# gives unlimited permission to copy and/or distribute it,
152
309
# with or without modifications, as long as this notice is preserved.
153
310
 
154
 
# serial 10
 
311
# serial 9
155
312
 
156
313
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
314
# written in clear, in which case automake, when reading aclocal.m4,
208
365
  if test "$am_compiler_list" = ""; then
209
366
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
210
367
  fi
211
 
  am__universal=false
212
 
  m4_case([$1], [CC],
213
 
    [case " $depcc " in #(
214
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
215
 
     esac],
216
 
    [CXX],
217
 
    [case " $depcc " in #(
218
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
219
 
     esac])
220
 
 
221
368
  for depmode in $am_compiler_list; do
222
369
    # Setup a source with many dependencies, because some compilers
223
370
    # like to wrap large dependency lists on column 80 (with \), and
235
382
    done
236
383
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
237
384
 
238
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
239
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
240
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
241
 
    # versions had trouble with output in subdirs
242
 
    am__obj=sub/conftest.${OBJEXT-o}
243
 
    am__minus_obj="-o $am__obj"
244
385
    case $depmode in
245
 
    gcc)
246
 
      # This depmode causes a compiler race in universal mode.
247
 
      test "$am__universal" = false || continue
248
 
      ;;
249
386
    nosideeffect)
250
387
      # after this tag, mechanisms are not by side-effect, so they'll
251
388
      # only be used when explicitly requested
255
392
        break
256
393
      fi
257
394
      ;;
258
 
    msvisualcpp | msvcmsys)
259
 
      # This compiler won't grok `-c -o', but also, the minuso test has
260
 
      # not run yet.  These depmodes are late enough in the game, and
261
 
      # so weak that their functioning should not be impacted.
262
 
      am__obj=conftest.${OBJEXT-o}
263
 
      am__minus_obj=
264
 
      ;;
265
395
    none) break ;;
266
396
    esac
 
397
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
398
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
399
    # handle `-M -o', and we need to detect this.
267
400
    if depmode=$depmode \
268
 
       source=sub/conftest.c object=$am__obj \
 
401
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
269
402
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
403
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
271
404
         >/dev/null 2>conftest.err &&
272
405
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273
406
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
407
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
275
408
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276
409
      # icc doesn't choke on unknown options, it will just issue warnings
277
410
      # or remarks (even with -Werror).  So we grep stderr for any message
406
539
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
407
540
])
408
541
 
409
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
410
 
# Free Software Foundation, Inc.
411
 
#
412
 
# This file is free software; the Free Software Foundation
413
 
# gives unlimited permission to copy and/or distribute it,
414
 
# with or without modifications, as long as this notice is preserved.
415
 
 
416
 
# serial 8
417
 
 
418
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
419
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
420
 
 
421
542
# Do all the work for Automake.                             -*- Autoconf -*-
422
543
 
423
544
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
424
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
545
# 2005, 2006, 2008 Free Software Foundation, Inc.
425
546
#
426
547
# This file is free software; the Free Software Foundation
427
548
# gives unlimited permission to copy and/or distribute it,
428
549
# with or without modifications, as long as this notice is preserved.
429
550
 
430
 
# serial 16
 
551
# serial 13
431
552
 
432
553
# This macro actually does too much.  Some checks are only needed if
433
554
# your package does certain things.  But this isn't really a big deal.
444
565
# arguments mandatory, and then we can depend on a new Autoconf
445
566
# release and drop the old call support.
446
567
AC_DEFUN([AM_INIT_AUTOMAKE],
447
 
[AC_PREREQ([2.62])dnl
 
568
[AC_PREREQ([2.60])dnl
448
569
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
449
570
dnl the ones we care about.
450
571
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
495
616
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
496
617
AM_MISSING_PROG(AUTOHEADER, autoheader)
497
618
AM_MISSING_PROG(MAKEINFO, makeinfo)
498
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
499
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
619
AM_PROG_INSTALL_SH
 
620
AM_PROG_INSTALL_STRIP
500
621
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
501
622
# We need awk for the "check" target.  The system "awk" is bad on
502
623
# some platforms.
504
625
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
505
626
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
506
627
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
507
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
508
 
                             [_AM_PROG_TAR([v7])])])
 
628
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
629
                             [_AM_PROG_TAR([v7])])])
509
630
_AM_IF_OPTION([no-dependencies],,
510
631
[AC_PROVIDE_IFELSE([AC_PROG_CC],
511
 
                  [_AM_DEPENDENCIES(CC)],
512
 
                  [define([AC_PROG_CC],
513
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
632
                  [_AM_DEPENDENCIES(CC)],
 
633
                  [define([AC_PROG_CC],
 
634
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
514
635
AC_PROVIDE_IFELSE([AC_PROG_CXX],
515
 
                  [_AM_DEPENDENCIES(CXX)],
516
 
                  [define([AC_PROG_CXX],
517
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
636
                  [_AM_DEPENDENCIES(CXX)],
 
637
                  [define([AC_PROG_CXX],
 
638
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
518
639
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
519
 
                  [_AM_DEPENDENCIES(OBJC)],
520
 
                  [define([AC_PROG_OBJC],
521
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
522
 
])
523
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
524
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
525
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
526
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
527
 
AC_CONFIG_COMMANDS_PRE(dnl
528
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
529
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
530
 
])
531
 
 
532
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
533
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
534
 
dnl mangled by Autoconf and run in a shell conditional statement.
535
 
m4_define([_AC_COMPILER_EXEEXT],
536
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
640
                  [_AM_DEPENDENCIES(OBJC)],
 
641
                  [define([AC_PROG_OBJC],
 
642
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
643
])
 
644
])
537
645
 
538
646
 
539
647
# When config.status generates a header, we must update the stamp-h file.
557
665
done
558
666
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
559
667
 
560
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
668
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
561
669
#
562
670
# This file is free software; the Free Software Foundation
563
671
# gives unlimited permission to copy and/or distribute it,
568
676
# Define $install_sh.
569
677
AC_DEFUN([AM_PROG_INSTALL_SH],
570
678
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571
 
if test x"${install_sh}" != xset; then
572
 
  case $am_aux_dir in
573
 
  *\ * | *\     *)
574
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575
 
  *)
576
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
577
 
  esac
578
 
fi
 
679
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
579
680
AC_SUBST(install_sh)])
580
681
 
581
682
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
602
703
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
603
704
# From Jim Meyering
604
705
 
605
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
706
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
606
707
# Free Software Foundation, Inc.
607
708
#
608
709
# This file is free software; the Free Software Foundation
609
710
# gives unlimited permission to copy and/or distribute it,
610
711
# with or without modifications, as long as this notice is preserved.
611
712
 
612
 
# serial 5
 
713
# serial 4
613
714
 
614
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
615
 
# ----------------------------------
616
 
# Control maintainer-specific portions of Makefiles.
617
 
# Default is to disable them, unless `enable' is passed literally.
618
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
619
 
# can override the default with the --enable/--disable switch.
620
715
AC_DEFUN([AM_MAINTAINER_MODE],
621
 
[m4_case(m4_default([$1], [disable]),
622
 
       [enable], [m4_define([am_maintainer_other], [disable])],
623
 
       [disable], [m4_define([am_maintainer_other], [enable])],
624
 
       [m4_define([am_maintainer_other], [enable])
625
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
627
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628
 
  AC_ARG_ENABLE([maintainer-mode],
629
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
716
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
717
  dnl maintainer-mode is disabled by default
 
718
  AC_ARG_ENABLE(maintainer-mode,
 
719
[  --enable-maintainer-mode  enable make rules and dependencies not useful
630
720
                          (and sometimes confusing) to the casual installer],
631
 
      [USE_MAINTAINER_MODE=$enableval],
632
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
721
      USE_MAINTAINER_MODE=$enableval,
 
722
      USE_MAINTAINER_MODE=no)
633
723
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
724
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
635
725
  MAINT=$MAINTAINER_MODE_TRUE
636
 
  AC_SUBST([MAINT])dnl
 
726
  AC_SUBST(MAINT)dnl
637
727
]
638
728
)
639
729
 
641
731
 
642
732
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
643
733
 
644
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
734
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
645
735
#
646
736
# This file is free software; the Free Software Foundation
647
737
# gives unlimited permission to copy and/or distribute it,
648
738
# with or without modifications, as long as this notice is preserved.
649
739
 
650
 
# serial 4
 
740
# serial 3
651
741
 
652
742
# AM_MAKE_INCLUDE()
653
743
# -----------------
656
746
[am_make=${MAKE-make}
657
747
cat > confinc << 'END'
658
748
am__doit:
659
 
        @echo this is the am__doit target
 
749
        @echo done
660
750
.PHONY: am__doit
661
751
END
662
752
# If we don't find an include directive, just comment out the code.
666
756
_am_result=none
667
757
# First try GNU make style include.
668
758
echo "include confinc" > confmf
669
 
# Ignore all kinds of additional output from `make'.
670
 
case `$am_make -s -f confmf 2> /dev/null` in #(
671
 
*the\ am__doit\ target*)
672
 
  am__include=include
673
 
  am__quote=
674
 
  _am_result=GNU
675
 
  ;;
676
 
esac
 
759
# We grep out `Entering directory' and `Leaving directory'
 
760
# messages which can occur if `w' ends up in MAKEFLAGS.
 
761
# In particular we don't look at `^make:' because GNU make might
 
762
# be invoked under some other name (usually "gmake"), in which
 
763
# case it prints its new name instead of `make'.
 
764
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
765
   am__include=include
 
766
   am__quote=
 
767
   _am_result=GNU
 
768
fi
677
769
# Now try BSD make style include.
678
770
if test "$am__include" = "#"; then
679
771
   echo '.include "confinc"' > confmf
680
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
681
 
   *the\ am__doit\ target*)
682
 
     am__include=.include
683
 
     am__quote="\""
684
 
     _am_result=BSD
685
 
     ;;
686
 
   esac
 
772
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
773
      am__include=.include
 
774
      am__quote="\""
 
775
      _am_result=BSD
 
776
   fi
687
777
fi
688
778
AC_SUBST([am__include])
689
779
AC_SUBST([am__quote])
693
783
 
694
784
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
695
785
 
696
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
786
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
697
787
# Free Software Foundation, Inc.
698
788
#
699
789
# This file is free software; the Free Software Foundation
700
790
# gives unlimited permission to copy and/or distribute it,
701
791
# with or without modifications, as long as this notice is preserved.
702
792
 
703
 
# serial 6
 
793
# serial 5
704
794
 
705
795
# AM_MISSING_PROG(NAME, PROGRAM)
706
796
# ------------------------------
717
807
AC_DEFUN([AM_MISSING_HAS_RUN],
718
808
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719
809
AC_REQUIRE_AUX_FILE([missing])dnl
720
 
if test x"${MISSING+set}" != xset; then
721
 
  case $am_aux_dir in
722
 
  *\ * | *\     *)
723
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
724
 
  *)
725
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
726
 
  esac
727
 
fi
 
810
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
728
811
# Use eval to expand $SHELL
729
812
if eval "$MISSING --run true"; then
730
813
  am_missing_run="$MISSING --run "
793
876
AC_DEFUN([_AM_IF_OPTION],
794
877
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
795
878
 
 
879
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
880
#
 
881
# This file is free software; the Free Software Foundation
 
882
# gives unlimited permission to copy and/or distribute it,
 
883
# with or without modifications, as long as this notice is preserved.
 
884
 
 
885
# AM_RUN_LOG(COMMAND)
 
886
# -------------------
 
887
# Run COMMAND, save the exit status in ac_status, and log it.
 
888
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
889
AC_DEFUN([AM_RUN_LOG],
 
890
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
891
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
892
   ac_status=$?
 
893
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
894
   (exit $ac_status); }])
 
895
 
796
896
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
797
897
 
798
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
898
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
799
899
# Free Software Foundation, Inc.
800
900
#
801
901
# This file is free software; the Free Software Foundation
802
902
# gives unlimited permission to copy and/or distribute it,
803
903
# with or without modifications, as long as this notice is preserved.
804
904
 
805
 
# serial 5
 
905
# serial 4
806
906
 
807
907
# AM_SANITY_CHECK
808
908
# ---------------
811
911
# Just in case
812
912
sleep 1
813
913
echo timestamp > conftest.file
814
 
# Reject unsafe characters in $srcdir or the absolute working directory
815
 
# name.  Accept space and tab only in the latter.
816
 
am_lf='
817
 
'
818
 
case `pwd` in
819
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
820
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
821
 
esac
822
 
case $srcdir in
823
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
824
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
825
 
esac
826
 
 
827
914
# Do `set' in a subshell so we don't clobber the current shell's
828
915
# arguments.  Must try -L first in case configure is actually a
829
916
# symlink; some systems play weird games with the mod time of symlinks
830
917
# (eg FreeBSD returns the mod time of the symlink's containing
831
918
# directory).
832
919
if (
833
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
920
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
834
921
   if test "$[*]" = "X"; then
835
922
      # -L didn't work.
836
 
      set X `ls -t "$srcdir/configure" conftest.file`
 
923
      set X `ls -t $srcdir/configure conftest.file`
837
924
   fi
838
925
   rm -f conftest.file
839
926
   if test "$[*]" != "X $srcdir/configure conftest.file" \
886
973
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
887
974
AC_SUBST([INSTALL_STRIP_PROGRAM])])
888
975
 
889
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
976
# Copyright (C) 2006  Free Software Foundation, Inc.
890
977
#
891
978
# This file is free software; the Free Software Foundation
892
979
# gives unlimited permission to copy and/or distribute it,
893
980
# with or without modifications, as long as this notice is preserved.
894
981
 
895
 
# serial 2
896
 
 
897
982
# _AM_SUBST_NOTMAKE(VARIABLE)
898
983
# ---------------------------
899
984
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
900
985
# This macro is traced by Automake.
901
986
AC_DEFUN([_AM_SUBST_NOTMAKE])
902
987
 
903
 
# AM_SUBST_NOTMAKE(VARIABLE)
904
 
# ---------------------------
905
 
# Public sister of _AM_SUBST_NOTMAKE.
906
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
907
 
 
908
988
# Check how to create a tarball.                            -*- Autoconf -*-
909
989
 
910
990
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1001
1081
AC_SUBST([am__untar])
1002
1082
]) # _AM_PROG_TAR
1003
1083
 
1004
 
m4_include([scripts/c_std.m4])
1005
 
m4_include([scripts/cxx.m4])
1006
 
m4_include([scripts/cxx_std.m4])
1007
 
m4_include([scripts/dk-feature.m4])
1008
 
m4_include([scripts/dk-warn.m4])
1009
 
m4_include([scripts/docgen.m4])
1010
 
m4_include([scripts/macros.m4])
1011
 
m4_include([scripts/reduced.m4])
1012
 
m4_include([scripts/sun.m4])
1013
 
dnl
1014
 
dnl Some macros needed for autoconf
1015
 
dnl
1016
 
 
1017
 
 
1018
 
AC_DEFUN([GLIBMM_CV_PERL_VERSION],[glibmm_cv_perl_version_[]m4_translit([$1],[.${}],[____])])
1019
 
 
1020
 
 
1021
 
AC_DEFUN([GLIBMM_CHECK_PERL],
1022
 
[
1023
 
  glibmm_perl_result=no
1024
 
 
1025
 
  AC_PATH_PROGS([PERL_PATH], [perl perl5], [not found])
1026
 
 
1027
 
  if test "x$PERL_PATH" != "xnot found"; then
1028
 
  {
1029
 
    AC_CACHE_CHECK(
1030
 
      [whether Perl is new enough],
1031
 
      GLIBMM_CV_PERL_VERSION([$1]),
1032
 
    [
1033
 
      ]GLIBMM_CV_PERL_VERSION([$1])[=no
1034
 
      "$PERL_PATH" -e "require v$1; exit 0;" >/dev/null 2>&1 && ]GLIBMM_CV_PERL_VERSION([$1])[=yes
1035
 
    ])
1036
 
    test "x${GLIBMM_CV_PERL_VERSION([$1])}" = xyes && glibmm_perl_result=yes
1037
 
  }
1038
 
  else
1039
 
  {
1040
 
    # Make sure we have something sensible, even if it doesn't work.
1041
 
    PERL_PATH=perl
1042
 
  }
1043
 
  fi
1044
 
 
1045
 
  if test "x$glibmm_perl_result" = xno && test "x$USE_MAINTAINER_MODE" = xyes; then
1046
 
  {
1047
 
    AC_MSG_ERROR([[
1048
 
*** Perl >= ]$1[ is required for building $PACKAGE in maintainer-mode.
1049
 
]])
1050
 
  }
1051
 
  fi
1052
 
 
1053
 
  AC_SUBST([PERL_PATH])
1054
 
])
1055
 
 
1056
 
 
1057
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1058
 
 
1059
 
# serial 52 AC_PROG_LIBTOOL
1060
 
 
1061
 
 
1062
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1063
 
# -----------------------------------------------------------
1064
 
# If this macro is not defined by Autoconf, define it here.
1065
 
m4_ifdef([AC_PROVIDE_IFELSE],
1066
 
         [],
1067
 
         [m4_define([AC_PROVIDE_IFELSE],
1068
 
                 [m4_ifdef([AC_PROVIDE_$1],
1069
 
                           [$2], [$3])])])
1070
 
 
1071
 
 
1072
 
# AC_PROG_LIBTOOL
1073
 
# ---------------
1074
 
AC_DEFUN([AC_PROG_LIBTOOL],
1075
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1076
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1077
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1078
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
1079
 
    [AC_LIBTOOL_CXX],
1080
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1081
 
  ])])
1082
 
dnl And a similar setup for Fortran 77 support
1083
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
1084
 
    [AC_LIBTOOL_F77],
1085
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1086
 
])])
1087
 
 
1088
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1089
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1090
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1091
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1092
 
    [AC_LIBTOOL_GCJ],
1093
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1094
 
      [AC_LIBTOOL_GCJ],
1095
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1096
 
        [AC_LIBTOOL_GCJ],
1097
 
      [ifdef([AC_PROG_GCJ],
1098
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1099
 
       ifdef([A][M_PROG_GCJ],
1100
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1101
 
       ifdef([LT_AC_PROG_GCJ],
1102
 
             [define([LT_AC_PROG_GCJ],
1103
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1104
 
])])# AC_PROG_LIBTOOL
1105
 
 
1106
 
 
1107
 
# _AC_PROG_LIBTOOL
1108
 
# ----------------
1109
 
AC_DEFUN([_AC_PROG_LIBTOOL],
1110
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1111
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1112
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1113
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1114
 
 
1115
 
# This can be used to rebuild libtool when needed
1116
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1117
 
 
1118
 
# Always use our own libtool.
1119
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1120
 
AC_SUBST(LIBTOOL)dnl
1121
 
 
1122
 
# Prevent multiple expansion
1123
 
define([AC_PROG_LIBTOOL], [])
1124
 
])# _AC_PROG_LIBTOOL
1125
 
 
1126
 
 
1127
 
# AC_LIBTOOL_SETUP
1128
 
# ----------------
1129
 
AC_DEFUN([AC_LIBTOOL_SETUP],
1130
 
[AC_PREREQ(2.50)dnl
1131
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1132
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1133
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1134
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1135
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1136
 
AC_REQUIRE([AC_PROG_CC])dnl
1137
 
AC_REQUIRE([AC_PROG_LD])dnl
1138
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1139
 
AC_REQUIRE([AC_PROG_NM])dnl
1140
 
 
1141
 
AC_REQUIRE([AC_PROG_LN_S])dnl
1142
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1143
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1144
 
AC_REQUIRE([AC_OBJEXT])dnl
1145
 
AC_REQUIRE([AC_EXEEXT])dnl
1146
 
dnl
1147
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
1148
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1149
 
AC_LIBTOOL_OBJDIR
1150
 
 
1151
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1152
 
_LT_AC_PROG_ECHO_BACKSLASH
1153
 
 
1154
 
case $host_os in
1155
 
aix3*)
1156
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
1157
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1158
 
  # vanish in a puff of smoke.
1159
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
1160
 
    COLLECT_NAMES=
1161
 
    export COLLECT_NAMES
1162
 
  fi
1163
 
  ;;
1164
 
esac
1165
 
 
1166
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1167
 
# metacharacters that are still active within double-quoted strings.
1168
 
Xsed='sed -e 1s/^X//'
1169
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1170
 
 
1171
 
# Same as above, but do not quote variable references.
1172
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1173
 
 
1174
 
# Sed substitution to delay expansion of an escaped shell variable in a
1175
 
# double_quote_subst'ed string.
1176
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1177
 
 
1178
 
# Sed substitution to avoid accidental globbing in evaled expressions
1179
 
no_glob_subst='s/\*/\\\*/g'
1180
 
 
1181
 
# Constants:
1182
 
rm="rm -f"
1183
 
 
1184
 
# Global variables:
1185
 
default_ofile=libtool
1186
 
can_build_shared=yes
1187
 
 
1188
 
# All known linkers require a `.a' archive for static linking (except MSVC,
1189
 
# which needs '.lib').
1190
 
libext=a
1191
 
ltmain="$ac_aux_dir/ltmain.sh"
1192
 
ofile="$default_ofile"
1193
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
1194
 
 
1195
 
AC_CHECK_TOOL(AR, ar, false)
1196
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1197
 
AC_CHECK_TOOL(STRIP, strip, :)
1198
 
 
1199
 
old_CC="$CC"
1200
 
old_CFLAGS="$CFLAGS"
1201
 
 
1202
 
# Set sane defaults for various variables
1203
 
test -z "$AR" && AR=ar
1204
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1205
 
test -z "$AS" && AS=as
1206
 
test -z "$CC" && CC=cc
1207
 
test -z "$LTCC" && LTCC=$CC
1208
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1209
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1210
 
test -z "$LD" && LD=ld
1211
 
test -z "$LN_S" && LN_S="ln -s"
1212
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1213
 
test -z "$NM" && NM=nm
1214
 
test -z "$SED" && SED=sed
1215
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1216
 
test -z "$RANLIB" && RANLIB=:
1217
 
test -z "$STRIP" && STRIP=:
1218
 
test -z "$ac_objext" && ac_objext=o
1219
 
 
1220
 
# Determine commands to create old-style static archives.
1221
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1222
 
old_postinstall_cmds='chmod 644 $oldlib'
1223
 
old_postuninstall_cmds=
1224
 
 
1225
 
if test -n "$RANLIB"; then
1226
 
  case $host_os in
1227
 
  openbsd*)
1228
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1229
 
    ;;
1230
 
  *)
1231
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1232
 
    ;;
1233
 
  esac
1234
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1235
 
fi
1236
 
 
1237
 
_LT_CC_BASENAME([$compiler])
1238
 
 
1239
 
# Only perform the check for file, if the check method requires it
1240
 
case $deplibs_check_method in
1241
 
file_magic*)
1242
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1243
 
    AC_PATH_MAGIC
1244
 
  fi
1245
 
  ;;
1246
 
esac
1247
 
 
1248
 
_LT_REQUIRED_DARWIN_CHECKS
1249
 
 
1250
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1251
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1252
 
enable_win32_dll=yes, enable_win32_dll=no)
1253
 
 
1254
 
AC_ARG_ENABLE([libtool-lock],
1255
 
    [AC_HELP_STRING([--disable-libtool-lock],
1256
 
        [avoid locking (might break parallel builds)])])
1257
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1258
 
 
1259
 
AC_ARG_WITH([pic],
1260
 
    [AC_HELP_STRING([--with-pic],
1261
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1262
 
    [pic_mode="$withval"],
1263
 
    [pic_mode=default])
1264
 
test -z "$pic_mode" && pic_mode=default
1265
 
 
1266
 
# Use C for the default configuration in the libtool script
1267
 
tagname=
1268
 
AC_LIBTOOL_LANG_C_CONFIG
1269
 
_LT_AC_TAGCONFIG
1270
 
])# AC_LIBTOOL_SETUP
1271
 
 
1272
 
 
1273
 
# _LT_AC_SYS_COMPILER
1274
 
# -------------------
1275
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
1276
 
[AC_REQUIRE([AC_PROG_CC])dnl
1277
 
 
1278
 
# If no C compiler was specified, use CC.
1279
 
LTCC=${LTCC-"$CC"}
1280
 
 
1281
 
# If no C compiler flags were specified, use CFLAGS.
1282
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1283
 
 
1284
 
# Allow CC to be a program name with arguments.
1285
 
compiler=$CC
1286
 
])# _LT_AC_SYS_COMPILER
1287
 
 
1288
 
 
1289
 
# _LT_CC_BASENAME(CC)
1290
 
# -------------------
1291
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1292
 
AC_DEFUN([_LT_CC_BASENAME],
1293
 
[for cc_temp in $1""; do
1294
 
  case $cc_temp in
1295
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1296
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1297
 
    \-*) ;;
1298
 
    *) break;;
1299
 
  esac
1300
 
done
1301
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1302
 
])
1303
 
 
1304
 
 
1305
 
# _LT_COMPILER_BOILERPLATE
1306
 
# ------------------------
1307
 
# Check for compiler boilerplate output or warnings with
1308
 
# the simple compiler test code.
1309
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1310
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1311
 
ac_outfile=conftest.$ac_objext
1312
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1313
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1314
 
_lt_compiler_boilerplate=`cat conftest.err`
1315
 
$rm conftest*
1316
 
])# _LT_COMPILER_BOILERPLATE
1317
 
 
1318
 
 
1319
 
# _LT_LINKER_BOILERPLATE
1320
 
# ----------------------
1321
 
# Check for linker boilerplate output or warnings with
1322
 
# the simple link test code.
1323
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1324
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1325
 
ac_outfile=conftest.$ac_objext
1326
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1327
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1328
 
_lt_linker_boilerplate=`cat conftest.err`
1329
 
$rm -r conftest*
1330
 
])# _LT_LINKER_BOILERPLATE
1331
 
 
1332
 
# _LT_REQUIRED_DARWIN_CHECKS
1333
 
# --------------------------
1334
 
# Check for some things on darwin
1335
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1336
 
  case $host_os in
1337
 
    rhapsody* | darwin*)
1338
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1339
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1340
 
 
1341
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1342
 
      [lt_cv_apple_cc_single_mod=no
1343
 
      if test -z "${LT_MULTI_MODULE}"; then
1344
 
   # By default we will add the -single_module flag. You can override
1345
 
   # by either setting the environment variable LT_MULTI_MODULE
1346
 
   # non-empty at configure time, or by adding -multi_module to the
1347
 
   # link flags.
1348
 
   echo "int foo(void){return 1;}" > conftest.c
1349
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1350
 
     -dynamiclib ${wl}-single_module conftest.c
1351
 
   if test -f libconftest.dylib; then
1352
 
     lt_cv_apple_cc_single_mod=yes
1353
 
     rm -rf libconftest.dylib*
1354
 
   fi
1355
 
   rm conftest.c
1356
 
      fi])
1357
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1358
 
      [lt_cv_ld_exported_symbols_list],
1359
 
      [lt_cv_ld_exported_symbols_list=no
1360
 
      save_LDFLAGS=$LDFLAGS
1361
 
      echo "_main" > conftest.sym
1362
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1363
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1364
 
   [lt_cv_ld_exported_symbols_list=yes],
1365
 
   [lt_cv_ld_exported_symbols_list=no])
1366
 
   LDFLAGS="$save_LDFLAGS"
1367
 
    ])
1368
 
    case $host_os in
1369
 
    rhapsody* | darwin1.[[0123]])
1370
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1371
 
    darwin1.*)
1372
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1373
 
    darwin*)
1374
 
      # if running on 10.5 or later, the deployment target defaults
1375
 
      # to the OS version, if on x86, and 10.4, the deployment
1376
 
      # target defaults to 10.4. Don't you love it?
1377
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1378
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1379
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1380
 
   10.[[012]]*)
1381
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1382
 
   10.*)
1383
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1384
 
      esac
1385
 
    ;;
1386
 
  esac
1387
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1388
 
      _lt_dar_single_mod='$single_module'
1389
 
    fi
1390
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1391
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1392
 
    else
1393
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1394
 
    fi
1395
 
    if test "$DSYMUTIL" != ":"; then
1396
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
1397
 
    else
1398
 
      _lt_dsymutil=
1399
 
    fi
1400
 
    ;;
1401
 
  esac
1402
 
])
1403
 
 
1404
 
# _LT_AC_SYS_LIBPATH_AIX
1405
 
# ----------------------
1406
 
# Links a minimal program and checks the executable
1407
 
# for the system default hardcoded library path. In most cases,
1408
 
# this is /usr/lib:/lib, but when the MPI compilers are used
1409
 
# the location of the communication and MPI libs are included too.
1410
 
# If we don't find anything, use the default library path according
1411
 
# to the aix ld manual.
1412
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1413
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1414
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1415
 
lt_aix_libpath_sed='
1416
 
    /Import File Strings/,/^$/ {
1417
 
        /^0/ {
1418
 
            s/^0  *\(.*\)$/\1/
1419
 
            p
1420
 
        }
1421
 
    }'
1422
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1423
 
# Check for a 64-bit object if we didn't find anything.
1424
 
if test -z "$aix_libpath"; then
1425
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1426
 
fi],[])
1427
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1428
 
])# _LT_AC_SYS_LIBPATH_AIX
1429
 
 
1430
 
 
1431
 
# _LT_AC_SHELL_INIT(ARG)
1432
 
# ----------------------
1433
 
AC_DEFUN([_LT_AC_SHELL_INIT],
1434
 
[ifdef([AC_DIVERSION_NOTICE],
1435
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1436
 
         [AC_DIVERT_PUSH(NOTICE)])
1437
 
$1
1438
 
AC_DIVERT_POP
1439
 
])# _LT_AC_SHELL_INIT
1440
 
 
1441
 
 
1442
 
# _LT_AC_PROG_ECHO_BACKSLASH
1443
 
# --------------------------
1444
 
# Add some code to the start of the generated configure script which
1445
 
# will find an echo command which doesn't interpret backslashes.
1446
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1447
 
[_LT_AC_SHELL_INIT([
1448
 
# Check that we are running under the correct shell.
1449
 
SHELL=${CONFIG_SHELL-/bin/sh}
1450
 
 
1451
 
case X$ECHO in
1452
 
X*--fallback-echo)
1453
 
  # Remove one level of quotation (which was required for Make).
1454
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1455
 
  ;;
1456
 
esac
1457
 
 
1458
 
echo=${ECHO-echo}
1459
 
if test "X[$]1" = X--no-reexec; then
1460
 
  # Discard the --no-reexec flag, and continue.
1461
 
  shift
1462
 
elif test "X[$]1" = X--fallback-echo; then
1463
 
  # Avoid inline document here, it may be left over
1464
 
  :
1465
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1466
 
  # Yippee, $echo works!
1467
 
  :
1468
 
else
1469
 
  # Restart under the correct shell.
1470
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1471
 
fi
1472
 
 
1473
 
if test "X[$]1" = X--fallback-echo; then
1474
 
  # used as fallback echo
1475
 
  shift
1476
 
  cat <<EOF
1477
 
[$]*
1478
 
EOF
1479
 
  exit 0
1480
 
fi
1481
 
 
1482
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1483
 
# if CDPATH is set.
1484
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1485
 
 
1486
 
if test -z "$ECHO"; then
1487
 
if test "X${echo_test_string+set}" != Xset; then
1488
 
# find a string as large as possible, as long as the shell can cope with it
1489
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1490
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1491
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1492
 
       echo_test_string=`eval $cmd` &&
1493
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1494
 
    then
1495
 
      break
1496
 
    fi
1497
 
  done
1498
 
fi
1499
 
 
1500
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1501
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1502
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1503
 
  :
1504
 
else
1505
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1506
 
  # backslashes.  This makes it impossible to quote backslashes using
1507
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1508
 
  #
1509
 
  # So, first we look for a working echo in the user's PATH.
1510
 
 
1511
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1512
 
  for dir in $PATH /usr/ucb; do
1513
 
    IFS="$lt_save_ifs"
1514
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1515
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1516
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1517
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1518
 
      echo="$dir/echo"
1519
 
      break
1520
 
    fi
1521
 
  done
1522
 
  IFS="$lt_save_ifs"
1523
 
 
1524
 
  if test "X$echo" = Xecho; then
1525
 
    # We didn't find a better echo, so look for alternatives.
1526
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1527
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1528
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1529
 
      # This shell has a builtin print -r that does the trick.
1530
 
      echo='print -r'
1531
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1532
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1533
 
      # If we have ksh, try running configure again with it.
1534
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1535
 
      export ORIGINAL_CONFIG_SHELL
1536
 
      CONFIG_SHELL=/bin/ksh
1537
 
      export CONFIG_SHELL
1538
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1539
 
    else
1540
 
      # Try using printf.
1541
 
      echo='printf %s\n'
1542
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1543
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1544
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1545
 
        # Cool, printf works
1546
 
        :
1547
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1548
 
           test "X$echo_testing_string" = 'X\t' &&
1549
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1550
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1551
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1552
 
        export CONFIG_SHELL
1553
 
        SHELL="$CONFIG_SHELL"
1554
 
        export SHELL
1555
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1556
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1557
 
           test "X$echo_testing_string" = 'X\t' &&
1558
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1559
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1560
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1561
 
      else
1562
 
        # maybe with a smaller string...
1563
 
        prev=:
1564
 
 
1565
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1566
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1567
 
          then
1568
 
            break
1569
 
          fi
1570
 
          prev="$cmd"
1571
 
        done
1572
 
 
1573
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1574
 
          echo_test_string=`eval $prev`
1575
 
          export echo_test_string
1576
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1577
 
        else
1578
 
          # Oops.  We lost completely, so just stick with echo.
1579
 
          echo=echo
1580
 
        fi
1581
 
      fi
1582
 
    fi
1583
 
  fi
1584
 
fi
1585
 
fi
1586
 
 
1587
 
# Copy echo and quote the copy suitably for passing to libtool from
1588
 
# the Makefile, instead of quoting the original, which is used later.
1589
 
ECHO=$echo
1590
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1591
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1592
 
fi
1593
 
 
1594
 
AC_SUBST(ECHO)
1595
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1596
 
 
1597
 
 
1598
 
# _LT_AC_LOCK
1599
 
# -----------
1600
 
AC_DEFUN([_LT_AC_LOCK],
1601
 
[AC_ARG_ENABLE([libtool-lock],
1602
 
    [AC_HELP_STRING([--disable-libtool-lock],
1603
 
        [avoid locking (might break parallel builds)])])
1604
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1605
 
 
1606
 
# Some flags need to be propagated to the compiler or linker for good
1607
 
# libtool support.
1608
 
case $host in
1609
 
ia64-*-hpux*)
1610
 
  # Find out which ABI we are using.
1611
 
  echo 'int i;' > conftest.$ac_ext
1612
 
  if AC_TRY_EVAL(ac_compile); then
1613
 
    case `/usr/bin/file conftest.$ac_objext` in
1614
 
    *ELF-32*)
1615
 
      HPUX_IA64_MODE="32"
1616
 
      ;;
1617
 
    *ELF-64*)
1618
 
      HPUX_IA64_MODE="64"
1619
 
      ;;
1620
 
    esac
1621
 
  fi
1622
 
  rm -rf conftest*
1623
 
  ;;
1624
 
*-*-irix6*)
1625
 
  # Find out which ABI we are using.
1626
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1627
 
  if AC_TRY_EVAL(ac_compile); then
1628
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1629
 
    case `/usr/bin/file conftest.$ac_objext` in
1630
 
    *32-bit*)
1631
 
      LD="${LD-ld} -melf32bsmip"
1632
 
      ;;
1633
 
    *N32*)
1634
 
      LD="${LD-ld} -melf32bmipn32"
1635
 
      ;;
1636
 
    *64-bit*)
1637
 
      LD="${LD-ld} -melf64bmip"
1638
 
      ;;
1639
 
    esac
1640
 
   else
1641
 
    case `/usr/bin/file conftest.$ac_objext` in
1642
 
    *32-bit*)
1643
 
      LD="${LD-ld} -32"
1644
 
      ;;
1645
 
    *N32*)
1646
 
      LD="${LD-ld} -n32"
1647
 
      ;;
1648
 
    *64-bit*)
1649
 
      LD="${LD-ld} -64"
1650
 
      ;;
1651
 
    esac
1652
 
   fi
1653
 
  fi
1654
 
  rm -rf conftest*
1655
 
  ;;
1656
 
 
1657
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1658
 
s390*-*linux*|sparc*-*linux*)
1659
 
  # Find out which ABI we are using.
1660
 
  echo 'int i;' > conftest.$ac_ext
1661
 
  if AC_TRY_EVAL(ac_compile); then
1662
 
    case `/usr/bin/file conftest.o` in
1663
 
    *32-bit*)
1664
 
      case $host in
1665
 
        x86_64-*kfreebsd*-gnu)
1666
 
          LD="${LD-ld} -m elf_i386_fbsd"
1667
 
          ;;
1668
 
        x86_64-*linux*)
1669
 
          LD="${LD-ld} -m elf_i386"
1670
 
          ;;
1671
 
        ppc64-*linux*|powerpc64-*linux*)
1672
 
          LD="${LD-ld} -m elf32ppclinux"
1673
 
          ;;
1674
 
        s390x-*linux*)
1675
 
          LD="${LD-ld} -m elf_s390"
1676
 
          ;;
1677
 
        sparc64-*linux*)
1678
 
          LD="${LD-ld} -m elf32_sparc"
1679
 
          ;;
1680
 
      esac
1681
 
      ;;
1682
 
    *64-bit*)
1683
 
      libsuff=64
1684
 
      case $host in
1685
 
        x86_64-*kfreebsd*-gnu)
1686
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1687
 
          ;;
1688
 
        x86_64-*linux*)
1689
 
          LD="${LD-ld} -m elf_x86_64"
1690
 
          ;;
1691
 
        ppc*-*linux*|powerpc*-*linux*)
1692
 
          LD="${LD-ld} -m elf64ppc"
1693
 
          ;;
1694
 
        s390*-*linux*)
1695
 
          LD="${LD-ld} -m elf64_s390"
1696
 
          ;;
1697
 
        sparc*-*linux*)
1698
 
          LD="${LD-ld} -m elf64_sparc"
1699
 
          ;;
1700
 
      esac
1701
 
      ;;
1702
 
    esac
1703
 
  fi
1704
 
  rm -rf conftest*
1705
 
  ;;
1706
 
 
1707
 
*-*-sco3.2v5*)
1708
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1709
 
  SAVE_CFLAGS="$CFLAGS"
1710
 
  CFLAGS="$CFLAGS -belf"
1711
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1712
 
    [AC_LANG_PUSH(C)
1713
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1714
 
     AC_LANG_POP])
1715
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1716
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1717
 
    CFLAGS="$SAVE_CFLAGS"
1718
 
  fi
1719
 
  ;;
1720
 
sparc*-*solaris*)
1721
 
  # Find out which ABI we are using.
1722
 
  echo 'int i;' > conftest.$ac_ext
1723
 
  if AC_TRY_EVAL(ac_compile); then
1724
 
    case `/usr/bin/file conftest.o` in
1725
 
    *64-bit*)
1726
 
      case $lt_cv_prog_gnu_ld in
1727
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1728
 
      *)
1729
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1730
 
          LD="${LD-ld} -64"
1731
 
        fi
1732
 
        ;;
1733
 
      esac
1734
 
      ;;
1735
 
    esac
1736
 
  fi
1737
 
  rm -rf conftest*
1738
 
  ;;
1739
 
 
1740
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1741
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1742
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1743
 
  AC_CHECK_TOOL(AS, as, false)
1744
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1745
 
  ;;
1746
 
  ])
1747
 
esac
1748
 
 
1749
 
need_locks="$enable_libtool_lock"
1750
 
 
1751
 
])# _LT_AC_LOCK
1752
 
 
1753
 
 
1754
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1755
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1756
 
# ----------------------------------------------------------------
1757
 
# Check whether the given compiler option works
1758
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1759
 
[AC_REQUIRE([LT_AC_PROG_SED])
1760
 
AC_CACHE_CHECK([$1], [$2],
1761
 
  [$2=no
1762
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1763
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1764
 
   lt_compiler_flag="$3"
1765
 
   # Insert the option either (1) after the last *FLAGS variable, or
1766
 
   # (2) before a word containing "conftest.", or (3) at the end.
1767
 
   # Note that $ac_compile itself does not contain backslashes and begins
1768
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1769
 
   # The option is referenced via a variable to avoid confusing sed.
1770
 
   lt_compile=`echo "$ac_compile" | $SED \
1771
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1772
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1773
 
   -e 's:$: $lt_compiler_flag:'`
1774
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1775
 
   (eval "$lt_compile" 2>conftest.err)
1776
 
   ac_status=$?
1777
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
1778
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1779
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
1780
 
     # The compiler can only warn and ignore the option if not recognized
1781
 
     # So say no if there are warnings other than the usual output.
1782
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1783
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1784
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1785
 
       $2=yes
1786
 
     fi
1787
 
   fi
1788
 
   $rm conftest*
1789
 
])
1790
 
 
1791
 
if test x"[$]$2" = xyes; then
1792
 
    ifelse([$5], , :, [$5])
1793
 
else
1794
 
    ifelse([$6], , :, [$6])
1795
 
fi
1796
 
])# AC_LIBTOOL_COMPILER_OPTION
1797
 
 
1798
 
 
1799
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1800
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1801
 
# ------------------------------------------------------------
1802
 
# Check whether the given compiler option works
1803
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1804
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1805
 
AC_CACHE_CHECK([$1], [$2],
1806
 
  [$2=no
1807
 
   save_LDFLAGS="$LDFLAGS"
1808
 
   LDFLAGS="$LDFLAGS $3"
1809
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1810
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1811
 
     # The linker can only warn and ignore the option if not recognized
1812
 
     # So say no if there are warnings
1813
 
     if test -s conftest.err; then
1814
 
       # Append any errors to the config.log.
1815
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1816
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1817
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1818
 
       if diff conftest.exp conftest.er2 >/dev/null; then
1819
 
         $2=yes
1820
 
       fi
1821
 
     else
1822
 
       $2=yes
1823
 
     fi
1824
 
   fi
1825
 
   $rm -r conftest*
1826
 
   LDFLAGS="$save_LDFLAGS"
1827
 
])
1828
 
 
1829
 
if test x"[$]$2" = xyes; then
1830
 
    ifelse([$4], , :, [$4])
1831
 
else
1832
 
    ifelse([$5], , :, [$5])
1833
 
fi
1834
 
])# AC_LIBTOOL_LINKER_OPTION
1835
 
 
1836
 
 
1837
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1838
 
# --------------------------
1839
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1840
 
[# find the maximum length of command line arguments
1841
 
AC_MSG_CHECKING([the maximum length of command line arguments])
1842
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1843
 
  i=0
1844
 
  teststring="ABCD"
1845
 
 
1846
 
  case $build_os in
1847
 
  msdosdjgpp*)
1848
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
1849
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
1850
 
    # during glob expansion).  Even if it were fixed, the result of this
1851
 
    # check would be larger than it should be.
1852
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1853
 
    ;;
1854
 
 
1855
 
  gnu*)
1856
 
    # Under GNU Hurd, this test is not required because there is
1857
 
    # no limit to the length of command line arguments.
1858
 
    # Libtool will interpret -1 as no limit whatsoever
1859
 
    lt_cv_sys_max_cmd_len=-1;
1860
 
    ;;
1861
 
 
1862
 
  cygwin* | mingw*)
1863
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1864
 
    # about 5 minutes as the teststring grows exponentially.
1865
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
1866
 
    # you end up with a "frozen" computer, even though with patience
1867
 
    # the test eventually succeeds (with a max line length of 256k).
1868
 
    # Instead, let's just punt: use the minimum linelength reported by
1869
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
1870
 
    lt_cv_sys_max_cmd_len=8192;
1871
 
    ;;
1872
 
 
1873
 
  amigaos*)
1874
 
    # On AmigaOS with pdksh, this test takes hours, literally.
1875
 
    # So we just punt and use a minimum line length of 8192.
1876
 
    lt_cv_sys_max_cmd_len=8192;
1877
 
    ;;
1878
 
 
1879
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1880
 
    # This has been around since 386BSD, at least.  Likely further.
1881
 
    if test -x /sbin/sysctl; then
1882
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1883
 
    elif test -x /usr/sbin/sysctl; then
1884
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1885
 
    else
1886
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1887
 
    fi
1888
 
    # And add a safety zone
1889
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1890
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1891
 
    ;;
1892
 
 
1893
 
  interix*)
1894
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1895
 
    lt_cv_sys_max_cmd_len=196608
1896
 
    ;;
1897
 
 
1898
 
  osf*)
1899
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1900
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1901
 
    # nice to cause kernel panics so lets avoid the loop below.
1902
 
    # First set a reasonable default.
1903
 
    lt_cv_sys_max_cmd_len=16384
1904
 
    #
1905
 
    if test -x /sbin/sysconfig; then
1906
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1907
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1908
 
      esac
1909
 
    fi
1910
 
    ;;
1911
 
  sco3.2v5*)
1912
 
    lt_cv_sys_max_cmd_len=102400
1913
 
    ;;
1914
 
  sysv5* | sco5v6* | sysv4.2uw2*)
1915
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1916
 
    if test -n "$kargmax"; then
1917
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
1918
 
    else
1919
 
      lt_cv_sys_max_cmd_len=32768
1920
 
    fi
1921
 
    ;;
1922
 
  *)
1923
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1924
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
1925
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1926
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1927
 
    else
1928
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1929
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1930
 
               = "XX$teststring") >/dev/null 2>&1 &&
1931
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1932
 
              lt_cv_sys_max_cmd_len=$new_result &&
1933
 
              test $i != 17 # 1/2 MB should be enough
1934
 
      do
1935
 
        i=`expr $i + 1`
1936
 
        teststring=$teststring$teststring
1937
 
      done
1938
 
      teststring=
1939
 
      # Add a significant safety factor because C++ compilers can tack on massive
1940
 
      # amounts of additional arguments before passing them to the linker.
1941
 
      # It appears as though 1/2 is a usable value.
1942
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1943
 
    fi
1944
 
    ;;
1945
 
  esac
1946
 
])
1947
 
if test -n $lt_cv_sys_max_cmd_len ; then
1948
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1949
 
else
1950
 
  AC_MSG_RESULT(none)
1951
 
fi
1952
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1953
 
 
1954
 
 
1955
 
# _LT_AC_CHECK_DLFCN
1956
 
# ------------------
1957
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1958
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1959
 
])# _LT_AC_CHECK_DLFCN
1960
 
 
1961
 
 
1962
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1963
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1964
 
# ---------------------------------------------------------------------
1965
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1966
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1967
 
if test "$cross_compiling" = yes; then :
1968
 
  [$4]
1969
 
else
1970
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1971
 
  lt_status=$lt_dlunknown
1972
 
  cat > conftest.$ac_ext <<EOF
1973
 
[#line __oline__ "configure"
1974
 
#include "confdefs.h"
1975
 
 
1976
 
#if HAVE_DLFCN_H
1977
 
#include <dlfcn.h>
1978
 
#endif
1979
 
 
1980
 
#include <stdio.h>
1981
 
 
1982
 
#ifdef RTLD_GLOBAL
1983
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
1984
 
#else
1985
 
#  ifdef DL_GLOBAL
1986
 
#    define LT_DLGLOBAL         DL_GLOBAL
1987
 
#  else
1988
 
#    define LT_DLGLOBAL         0
1989
 
#  endif
1990
 
#endif
1991
 
 
1992
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1993
 
   find out it does not work in some platform. */
1994
 
#ifndef LT_DLLAZY_OR_NOW
1995
 
#  ifdef RTLD_LAZY
1996
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
1997
 
#  else
1998
 
#    ifdef DL_LAZY
1999
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
2000
 
#    else
2001
 
#      ifdef RTLD_NOW
2002
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
2003
 
#      else
2004
 
#        ifdef DL_NOW
2005
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
2006
 
#        else
2007
 
#          define LT_DLLAZY_OR_NOW      0
2008
 
#        endif
2009
 
#      endif
2010
 
#    endif
2011
 
#  endif
2012
 
#endif
2013
 
 
2014
 
#ifdef __cplusplus
2015
 
extern "C" void exit (int);
2016
 
#endif
2017
 
 
2018
 
void fnord() { int i=42;}
2019
 
int main ()
2020
 
{
2021
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2022
 
  int status = $lt_dlunknown;
2023
 
 
2024
 
  if (self)
2025
 
    {
2026
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2027
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2028
 
      /* dlclose (self); */
2029
 
    }
2030
 
  else
2031
 
    puts (dlerror ());
2032
 
 
2033
 
    exit (status);
2034
 
}]
2035
 
EOF
2036
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2037
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2038
 
    lt_status=$?
2039
 
    case x$lt_status in
2040
 
      x$lt_dlno_uscore) $1 ;;
2041
 
      x$lt_dlneed_uscore) $2 ;;
2042
 
      x$lt_dlunknown|x*) $3 ;;
2043
 
    esac
2044
 
  else :
2045
 
    # compilation failed
2046
 
    $3
2047
 
  fi
2048
 
fi
2049
 
rm -fr conftest*
2050
 
])# _LT_AC_TRY_DLOPEN_SELF
2051
 
 
2052
 
 
2053
 
# AC_LIBTOOL_DLOPEN_SELF
2054
 
# ----------------------
2055
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2056
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2057
 
if test "x$enable_dlopen" != xyes; then
2058
 
  enable_dlopen=unknown
2059
 
  enable_dlopen_self=unknown
2060
 
  enable_dlopen_self_static=unknown
2061
 
else
2062
 
  lt_cv_dlopen=no
2063
 
  lt_cv_dlopen_libs=
2064
 
 
2065
 
  case $host_os in
2066
 
  beos*)
2067
 
    lt_cv_dlopen="load_add_on"
2068
 
    lt_cv_dlopen_libs=
2069
 
    lt_cv_dlopen_self=yes
2070
 
    ;;
2071
 
 
2072
 
  mingw* | pw32*)
2073
 
    lt_cv_dlopen="LoadLibrary"
2074
 
    lt_cv_dlopen_libs=
2075
 
   ;;
2076
 
 
2077
 
  cygwin*)
2078
 
    lt_cv_dlopen="dlopen"
2079
 
    lt_cv_dlopen_libs=
2080
 
   ;;
2081
 
 
2082
 
  darwin*)
2083
 
  # if libdl is installed we need to link against it
2084
 
    AC_CHECK_LIB([dl], [dlopen],
2085
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2086
 
    lt_cv_dlopen="dyld"
2087
 
    lt_cv_dlopen_libs=
2088
 
    lt_cv_dlopen_self=yes
2089
 
    ])
2090
 
   ;;
2091
 
 
2092
 
  *)
2093
 
    AC_CHECK_FUNC([shl_load],
2094
 
          [lt_cv_dlopen="shl_load"],
2095
 
      [AC_CHECK_LIB([dld], [shl_load],
2096
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2097
 
        [AC_CHECK_FUNC([dlopen],
2098
 
              [lt_cv_dlopen="dlopen"],
2099
 
          [AC_CHECK_LIB([dl], [dlopen],
2100
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2101
 
            [AC_CHECK_LIB([svld], [dlopen],
2102
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2103
 
              [AC_CHECK_LIB([dld], [dld_link],
2104
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2105
 
              ])
2106
 
            ])
2107
 
          ])
2108
 
        ])
2109
 
      ])
2110
 
    ;;
2111
 
  esac
2112
 
 
2113
 
  if test "x$lt_cv_dlopen" != xno; then
2114
 
    enable_dlopen=yes
2115
 
  else
2116
 
    enable_dlopen=no
2117
 
  fi
2118
 
 
2119
 
  case $lt_cv_dlopen in
2120
 
  dlopen)
2121
 
    save_CPPFLAGS="$CPPFLAGS"
2122
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2123
 
 
2124
 
    save_LDFLAGS="$LDFLAGS"
2125
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2126
 
 
2127
 
    save_LIBS="$LIBS"
2128
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
2129
 
 
2130
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
2131
 
          lt_cv_dlopen_self, [dnl
2132
 
          _LT_AC_TRY_DLOPEN_SELF(
2133
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2134
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2135
 
    ])
2136
 
 
2137
 
    if test "x$lt_cv_dlopen_self" = xyes; then
2138
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2139
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2140
 
          lt_cv_dlopen_self_static, [dnl
2141
 
          _LT_AC_TRY_DLOPEN_SELF(
2142
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2143
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2144
 
      ])
2145
 
    fi
2146
 
 
2147
 
    CPPFLAGS="$save_CPPFLAGS"
2148
 
    LDFLAGS="$save_LDFLAGS"
2149
 
    LIBS="$save_LIBS"
2150
 
    ;;
2151
 
  esac
2152
 
 
2153
 
  case $lt_cv_dlopen_self in
2154
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2155
 
  *) enable_dlopen_self=unknown ;;
2156
 
  esac
2157
 
 
2158
 
  case $lt_cv_dlopen_self_static in
2159
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2160
 
  *) enable_dlopen_self_static=unknown ;;
2161
 
  esac
2162
 
fi
2163
 
])# AC_LIBTOOL_DLOPEN_SELF
2164
 
 
2165
 
 
2166
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2167
 
# ---------------------------------
2168
 
# Check to see if options -c and -o are simultaneously supported by compiler
2169
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2170
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2171
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2172
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2173
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2174
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2175
 
   $rm -r conftest 2>/dev/null
2176
 
   mkdir conftest
2177
 
   cd conftest
2178
 
   mkdir out
2179
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2180
 
 
2181
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2182
 
   # Insert the option either (1) after the last *FLAGS variable, or
2183
 
   # (2) before a word containing "conftest.", or (3) at the end.
2184
 
   # Note that $ac_compile itself does not contain backslashes and begins
2185
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2186
 
   lt_compile=`echo "$ac_compile" | $SED \
2187
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2188
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2189
 
   -e 's:$: $lt_compiler_flag:'`
2190
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2191
 
   (eval "$lt_compile" 2>out/conftest.err)
2192
 
   ac_status=$?
2193
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2194
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2195
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2196
 
   then
2197
 
     # The compiler can only warn and ignore the option if not recognized
2198
 
     # So say no if there are warnings
2199
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2200
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2201
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2202
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2203
 
     fi
2204
 
   fi
2205
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2206
 
   $rm conftest*
2207
 
   # SGI C++ compiler will create directory out/ii_files/ for
2208
 
   # template instantiation
2209
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2210
 
   $rm out/* && rmdir out
2211
 
   cd ..
2212
 
   rmdir conftest
2213
 
   $rm conftest*
2214
 
])
2215
 
])# AC_LIBTOOL_PROG_CC_C_O
2216
 
 
2217
 
 
2218
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2219
 
# -----------------------------------------
2220
 
# Check to see if we can do hard links to lock some files if needed
2221
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2222
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
2223
 
 
2224
 
hard_links="nottested"
2225
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2226
 
  # do not overwrite the value of need_locks provided by the user
2227
 
  AC_MSG_CHECKING([if we can lock with hard links])
2228
 
  hard_links=yes
2229
 
  $rm conftest*
2230
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2231
 
  touch conftest.a
2232
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
2233
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2234
 
  AC_MSG_RESULT([$hard_links])
2235
 
  if test "$hard_links" = no; then
2236
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2237
 
    need_locks=warn
2238
 
  fi
2239
 
else
2240
 
  need_locks=no
2241
 
fi
2242
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2243
 
 
2244
 
 
2245
 
# AC_LIBTOOL_OBJDIR
2246
 
# -----------------
2247
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2248
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2249
 
[rm -f .libs 2>/dev/null
2250
 
mkdir .libs 2>/dev/null
2251
 
if test -d .libs; then
2252
 
  lt_cv_objdir=.libs
2253
 
else
2254
 
  # MS-DOS does not allow filenames that begin with a dot.
2255
 
  lt_cv_objdir=_libs
2256
 
fi
2257
 
rmdir .libs 2>/dev/null])
2258
 
objdir=$lt_cv_objdir
2259
 
])# AC_LIBTOOL_OBJDIR
2260
 
 
2261
 
 
2262
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2263
 
# ----------------------------------------------
2264
 
# Check hardcoding attributes.
2265
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2266
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2267
 
_LT_AC_TAGVAR(hardcode_action, $1)=
2268
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2269
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2270
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2271
 
 
2272
 
  # We can hardcode non-existant directories.
2273
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2274
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2275
 
     # have to relink, otherwise we might link with an installed library
2276
 
     # when we should be linking with a yet-to-be-installed one
2277
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2278
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2279
 
    # Linking always hardcodes the temporary library directory.
2280
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2281
 
  else
2282
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2283
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2284
 
  fi
2285
 
else
2286
 
  # We cannot hardcode anything, or else we can only hardcode existing
2287
 
  # directories.
2288
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2289
 
fi
2290
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2291
 
 
2292
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2293
 
  # Fast installation is not supported
2294
 
  enable_fast_install=no
2295
 
elif test "$shlibpath_overrides_runpath" = yes ||
2296
 
     test "$enable_shared" = no; then
2297
 
  # Fast installation is not necessary
2298
 
  enable_fast_install=needless
2299
 
fi
2300
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2301
 
 
2302
 
 
2303
 
# AC_LIBTOOL_SYS_LIB_STRIP
2304
 
# ------------------------
2305
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2306
 
[striplib=
2307
 
old_striplib=
2308
 
AC_MSG_CHECKING([whether stripping libraries is possible])
2309
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2310
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2311
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2312
 
  AC_MSG_RESULT([yes])
2313
 
else
2314
 
# FIXME - insert some real tests, host_os isn't really good enough
2315
 
  case $host_os in
2316
 
   darwin*)
2317
 
       if test -n "$STRIP" ; then
2318
 
         striplib="$STRIP -x"
2319
 
         old_striplib="$STRIP -S"
2320
 
         AC_MSG_RESULT([yes])
2321
 
       else
2322
 
  AC_MSG_RESULT([no])
2323
 
fi
2324
 
       ;;
2325
 
   *)
2326
 
  AC_MSG_RESULT([no])
2327
 
    ;;
2328
 
  esac
2329
 
fi
2330
 
])# AC_LIBTOOL_SYS_LIB_STRIP
2331
 
 
2332
 
 
2333
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2334
 
# -----------------------------
2335
 
# PORTME Fill in your ld.so characteristics
2336
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2337
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2338
 
AC_MSG_CHECKING([dynamic linker characteristics])
2339
 
library_names_spec=
2340
 
libname_spec='lib$name'
2341
 
soname_spec=
2342
 
shrext_cmds=".so"
2343
 
postinstall_cmds=
2344
 
postuninstall_cmds=
2345
 
finish_cmds=
2346
 
finish_eval=
2347
 
shlibpath_var=
2348
 
shlibpath_overrides_runpath=unknown
2349
 
version_type=none
2350
 
dynamic_linker="$host_os ld.so"
2351
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2352
 
m4_if($1,[],[
2353
 
if test "$GCC" = yes; then
2354
 
  case $host_os in
2355
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2356
 
    *) lt_awk_arg="/^libraries:/" ;;
2357
 
  esac
2358
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2359
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2360
 
    # if the path contains ";" then we assume it to be the separator
2361
 
    # otherwise default to the standard path separator (i.e. ":") - it is
2362
 
    # assumed that no part of a normal pathname contains ";" but that should
2363
 
    # okay in the real world where ";" in dirpaths is itself problematic.
2364
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2365
 
  else
2366
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2367
 
  fi
2368
 
  # Ok, now we have the path, separated by spaces, we can step through it
2369
 
  # and add multilib dir if necessary.
2370
 
  lt_tmp_lt_search_path_spec=
2371
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2372
 
  for lt_sys_path in $lt_search_path_spec; do
2373
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2374
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2375
 
    else
2376
 
      test -d "$lt_sys_path" && \
2377
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2378
 
    fi
2379
 
  done
2380
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2381
 
BEGIN {RS=" "; FS="/|\n";} {
2382
 
  lt_foo="";
2383
 
  lt_count=0;
2384
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
2385
 
    if ($lt_i != "" && $lt_i != ".") {
2386
 
      if ($lt_i == "..") {
2387
 
        lt_count++;
2388
 
      } else {
2389
 
        if (lt_count == 0) {
2390
 
          lt_foo="/" $lt_i lt_foo;
2391
 
        } else {
2392
 
          lt_count--;
2393
 
        }
2394
 
      }
2395
 
    }
2396
 
  }
2397
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2398
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2399
 
}'`
2400
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2401
 
else
2402
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2403
 
fi])
2404
 
need_lib_prefix=unknown
2405
 
hardcode_into_libs=no
2406
 
 
2407
 
# when you set need_version to no, make sure it does not cause -set_version
2408
 
# flags to be left without arguments
2409
 
need_version=unknown
2410
 
 
2411
 
case $host_os in
2412
 
aix3*)
2413
 
  version_type=linux
2414
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2415
 
  shlibpath_var=LIBPATH
2416
 
 
2417
 
  # AIX 3 has no versioning support, so we append a major version to the name.
2418
 
  soname_spec='${libname}${release}${shared_ext}$major'
2419
 
  ;;
2420
 
 
2421
 
aix[[4-9]]*)
2422
 
  version_type=linux
2423
 
  need_lib_prefix=no
2424
 
  need_version=no
2425
 
  hardcode_into_libs=yes
2426
 
  if test "$host_cpu" = ia64; then
2427
 
    # AIX 5 supports IA64
2428
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2429
 
    shlibpath_var=LD_LIBRARY_PATH
2430
 
  else
2431
 
    # With GCC up to 2.95.x, collect2 would create an import file
2432
 
    # for dependence libraries.  The import file would start with
2433
 
    # the line `#! .'.  This would cause the generated library to
2434
 
    # depend on `.', always an invalid library.  This was fixed in
2435
 
    # development snapshots of GCC prior to 3.0.
2436
 
    case $host_os in
2437
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2438
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2439
 
           echo ' yes '
2440
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2441
 
        :
2442
 
      else
2443
 
        can_build_shared=no
2444
 
      fi
2445
 
      ;;
2446
 
    esac
2447
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2448
 
    # soname into executable. Probably we can add versioning support to
2449
 
    # collect2, so additional links can be useful in future.
2450
 
    if test "$aix_use_runtimelinking" = yes; then
2451
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2452
 
      # instead of lib<name>.a to let people know that these are not
2453
 
      # typical AIX shared libraries.
2454
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2455
 
    else
2456
 
      # We preserve .a as extension for shared libraries through AIX4.2
2457
 
      # and later when we are not doing run time linking.
2458
 
      library_names_spec='${libname}${release}.a $libname.a'
2459
 
      soname_spec='${libname}${release}${shared_ext}$major'
2460
 
    fi
2461
 
    shlibpath_var=LIBPATH
2462
 
  fi
2463
 
  ;;
2464
 
 
2465
 
amigaos*)
2466
 
  library_names_spec='$libname.ixlibrary $libname.a'
2467
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2468
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2469
 
  ;;
2470
 
 
2471
 
beos*)
2472
 
  library_names_spec='${libname}${shared_ext}'
2473
 
  dynamic_linker="$host_os ld.so"
2474
 
  shlibpath_var=LIBRARY_PATH
2475
 
  ;;
2476
 
 
2477
 
bsdi[[45]]*)
2478
 
  version_type=linux
2479
 
  need_version=no
2480
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2481
 
  soname_spec='${libname}${release}${shared_ext}$major'
2482
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2483
 
  shlibpath_var=LD_LIBRARY_PATH
2484
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2485
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2486
 
  # the default ld.so.conf also contains /usr/contrib/lib and
2487
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2488
 
  # libtool to hard-code these into programs
2489
 
  ;;
2490
 
 
2491
 
cygwin* | mingw* | pw32*)
2492
 
  version_type=windows
2493
 
  shrext_cmds=".dll"
2494
 
  need_version=no
2495
 
  need_lib_prefix=no
2496
 
 
2497
 
  case $GCC,$host_os in
2498
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
2499
 
    library_names_spec='$libname.dll.a'
2500
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2501
 
    postinstall_cmds='base_file=`basename \${file}`~
2502
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2503
 
      dldir=$destdir/`dirname \$dlpath`~
2504
 
      test -d \$dldir || mkdir -p \$dldir~
2505
 
      $install_prog $dir/$dlname \$dldir/$dlname~
2506
 
      chmod a+x \$dldir/$dlname'
2507
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2508
 
      dlpath=$dir/\$dldll~
2509
 
       $rm \$dlpath'
2510
 
    shlibpath_overrides_runpath=yes
2511
 
 
2512
 
    case $host_os in
2513
 
    cygwin*)
2514
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2515
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2516
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2517
 
      ;;
2518
 
    mingw*)
2519
 
      # MinGW DLLs use traditional 'lib' prefix
2520
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2521
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2522
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2523
 
        # It is most probably a Windows format PATH printed by
2524
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2525
 
        # path with ; separators, and with drive letters. We can handle the
2526
 
        # drive letters (cygwin fileutils understands them), so leave them,
2527
 
        # especially as we might pass files found there to a mingw objdump,
2528
 
        # which wouldn't understand a cygwinified path. Ahh.
2529
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2530
 
      else
2531
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2532
 
      fi
2533
 
      ;;
2534
 
    pw32*)
2535
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2536
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2537
 
      ;;
2538
 
    esac
2539
 
    ;;
2540
 
 
2541
 
  *)
2542
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2543
 
    ;;
2544
 
  esac
2545
 
  dynamic_linker='Win32 ld.exe'
2546
 
  # FIXME: first we should search . and the directory the executable is in
2547
 
  shlibpath_var=PATH
2548
 
  ;;
2549
 
 
2550
 
darwin* | rhapsody*)
2551
 
  dynamic_linker="$host_os dyld"
2552
 
  version_type=darwin
2553
 
  need_lib_prefix=no
2554
 
  need_version=no
2555
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2556
 
  soname_spec='${libname}${release}${major}$shared_ext'
2557
 
  shlibpath_overrides_runpath=yes
2558
 
  shlibpath_var=DYLD_LIBRARY_PATH
2559
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2560
 
  m4_if([$1], [],[
2561
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2562
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2563
 
  ;;
2564
 
 
2565
 
dgux*)
2566
 
  version_type=linux
2567
 
  need_lib_prefix=no
2568
 
  need_version=no
2569
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2570
 
  soname_spec='${libname}${release}${shared_ext}$major'
2571
 
  shlibpath_var=LD_LIBRARY_PATH
2572
 
  ;;
2573
 
 
2574
 
freebsd1*)
2575
 
  dynamic_linker=no
2576
 
  ;;
2577
 
 
2578
 
freebsd* | dragonfly*)
2579
 
  # DragonFly does not have aout.  When/if they implement a new
2580
 
  # versioning mechanism, adjust this.
2581
 
  if test -x /usr/bin/objformat; then
2582
 
    objformat=`/usr/bin/objformat`
2583
 
  else
2584
 
    case $host_os in
2585
 
    freebsd[[123]]*) objformat=aout ;;
2586
 
    *) objformat=elf ;;
2587
 
    esac
2588
 
  fi
2589
 
  version_type=freebsd-$objformat
2590
 
  case $version_type in
2591
 
    freebsd-elf*)
2592
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2593
 
      need_version=no
2594
 
      need_lib_prefix=no
2595
 
      ;;
2596
 
    freebsd-*)
2597
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2598
 
      need_version=yes
2599
 
      ;;
2600
 
  esac
2601
 
  shlibpath_var=LD_LIBRARY_PATH
2602
 
  case $host_os in
2603
 
  freebsd2*)
2604
 
    shlibpath_overrides_runpath=yes
2605
 
    ;;
2606
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2607
 
    shlibpath_overrides_runpath=yes
2608
 
    hardcode_into_libs=yes
2609
 
    ;;
2610
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2611
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2612
 
    shlibpath_overrides_runpath=no
2613
 
    hardcode_into_libs=yes
2614
 
    ;;
2615
 
  *) # from 4.6 on, and DragonFly
2616
 
    shlibpath_overrides_runpath=yes
2617
 
    hardcode_into_libs=yes
2618
 
    ;;
2619
 
  esac
2620
 
  ;;
2621
 
 
2622
 
gnu*)
2623
 
  version_type=linux
2624
 
  need_lib_prefix=no
2625
 
  need_version=no
2626
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2627
 
  soname_spec='${libname}${release}${shared_ext}$major'
2628
 
  shlibpath_var=LD_LIBRARY_PATH
2629
 
  hardcode_into_libs=yes
2630
 
  ;;
2631
 
 
2632
 
hpux9* | hpux10* | hpux11*)
2633
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
2634
 
  # link against other versions.
2635
 
  version_type=sunos
2636
 
  need_lib_prefix=no
2637
 
  need_version=no
2638
 
  case $host_cpu in
2639
 
  ia64*)
2640
 
    shrext_cmds='.so'
2641
 
    hardcode_into_libs=yes
2642
 
    dynamic_linker="$host_os dld.so"
2643
 
    shlibpath_var=LD_LIBRARY_PATH
2644
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2645
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2646
 
    soname_spec='${libname}${release}${shared_ext}$major'
2647
 
    if test "X$HPUX_IA64_MODE" = X32; then
2648
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2649
 
    else
2650
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2651
 
    fi
2652
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2653
 
    ;;
2654
 
   hppa*64*)
2655
 
     shrext_cmds='.sl'
2656
 
     hardcode_into_libs=yes
2657
 
     dynamic_linker="$host_os dld.sl"
2658
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2659
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2660
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2661
 
     soname_spec='${libname}${release}${shared_ext}$major'
2662
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2663
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2664
 
     ;;
2665
 
   *)
2666
 
    shrext_cmds='.sl'
2667
 
    dynamic_linker="$host_os dld.sl"
2668
 
    shlibpath_var=SHLIB_PATH
2669
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2670
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2671
 
    soname_spec='${libname}${release}${shared_ext}$major'
2672
 
    ;;
2673
 
  esac
2674
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2675
 
  postinstall_cmds='chmod 555 $lib'
2676
 
  ;;
2677
 
 
2678
 
interix[[3-9]]*)
2679
 
  version_type=linux
2680
 
  need_lib_prefix=no
2681
 
  need_version=no
2682
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2683
 
  soname_spec='${libname}${release}${shared_ext}$major'
2684
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2685
 
  shlibpath_var=LD_LIBRARY_PATH
2686
 
  shlibpath_overrides_runpath=no
2687
 
  hardcode_into_libs=yes
2688
 
  ;;
2689
 
 
2690
 
irix5* | irix6* | nonstopux*)
2691
 
  case $host_os in
2692
 
    nonstopux*) version_type=nonstopux ;;
2693
 
    *)
2694
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
2695
 
                version_type=linux
2696
 
        else
2697
 
                version_type=irix
2698
 
        fi ;;
2699
 
  esac
2700
 
  need_lib_prefix=no
2701
 
  need_version=no
2702
 
  soname_spec='${libname}${release}${shared_ext}$major'
2703
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2704
 
  case $host_os in
2705
 
  irix5* | nonstopux*)
2706
 
    libsuff= shlibsuff=
2707
 
    ;;
2708
 
  *)
2709
 
    case $LD in # libtool.m4 will add one of these switches to LD
2710
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2711
 
      libsuff= shlibsuff= libmagic=32-bit;;
2712
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2713
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
2714
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2715
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2716
 
    *) libsuff= shlibsuff= libmagic=never-match;;
2717
 
    esac
2718
 
    ;;
2719
 
  esac
2720
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2721
 
  shlibpath_overrides_runpath=no
2722
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2723
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2724
 
  hardcode_into_libs=yes
2725
 
  ;;
2726
 
 
2727
 
# No shared lib support for Linux oldld, aout, or coff.
2728
 
linux*oldld* | linux*aout* | linux*coff*)
2729
 
  dynamic_linker=no
2730
 
  ;;
2731
 
 
2732
 
# This must be Linux ELF.
2733
 
linux* | k*bsd*-gnu)
2734
 
  version_type=linux
2735
 
  need_lib_prefix=no
2736
 
  need_version=no
2737
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2738
 
  soname_spec='${libname}${release}${shared_ext}$major'
2739
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2740
 
  shlibpath_var=LD_LIBRARY_PATH
2741
 
  shlibpath_overrides_runpath=no
2742
 
  # This implies no fast_install, which is unacceptable.
2743
 
  # Some rework will be needed to allow for fast_install
2744
 
  # before this can be enabled.
2745
 
  hardcode_into_libs=yes
2746
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2747
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2748
 
 
2749
 
  # Append ld.so.conf contents to the search path
2750
 
  if test -f /etc/ld.so.conf; then
2751
 
    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' ' '`
2752
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2753
 
  fi
2754
 
 
2755
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2756
 
  # powerpc, because MkLinux only supported shared libraries with the
2757
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
2758
 
  # most powerpc-linux boxes support dynamic linking these days and
2759
 
  # people can always --disable-shared, the test was removed, and we
2760
 
  # assume the GNU/Linux dynamic linker is in use.
2761
 
  dynamic_linker='GNU/Linux ld.so'
2762
 
  ;;
2763
 
 
2764
 
netbsd*)
2765
 
  version_type=sunos
2766
 
  need_lib_prefix=no
2767
 
  need_version=no
2768
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2769
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2770
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2771
 
    dynamic_linker='NetBSD (a.out) ld.so'
2772
 
  else
2773
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2774
 
    soname_spec='${libname}${release}${shared_ext}$major'
2775
 
    dynamic_linker='NetBSD ld.elf_so'
2776
 
  fi
2777
 
  shlibpath_var=LD_LIBRARY_PATH
2778
 
  shlibpath_overrides_runpath=yes
2779
 
  hardcode_into_libs=yes
2780
 
  ;;
2781
 
 
2782
 
newsos6)
2783
 
  version_type=linux
2784
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2785
 
  shlibpath_var=LD_LIBRARY_PATH
2786
 
  shlibpath_overrides_runpath=yes
2787
 
  ;;
2788
 
 
2789
 
nto-qnx*)
2790
 
  version_type=linux
2791
 
  need_lib_prefix=no
2792
 
  need_version=no
2793
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2794
 
  soname_spec='${libname}${release}${shared_ext}$major'
2795
 
  shlibpath_var=LD_LIBRARY_PATH
2796
 
  shlibpath_overrides_runpath=yes
2797
 
  ;;
2798
 
 
2799
 
openbsd*)
2800
 
  version_type=sunos
2801
 
  sys_lib_dlsearch_path_spec="/usr/lib"
2802
 
  need_lib_prefix=no
2803
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2804
 
  case $host_os in
2805
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2806
 
    *)                         need_version=no  ;;
2807
 
  esac
2808
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2809
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2810
 
  shlibpath_var=LD_LIBRARY_PATH
2811
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2812
 
    case $host_os in
2813
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
2814
 
        shlibpath_overrides_runpath=no
2815
 
        ;;
2816
 
      *)
2817
 
        shlibpath_overrides_runpath=yes
2818
 
        ;;
2819
 
      esac
2820
 
  else
2821
 
    shlibpath_overrides_runpath=yes
2822
 
  fi
2823
 
  ;;
2824
 
 
2825
 
os2*)
2826
 
  libname_spec='$name'
2827
 
  shrext_cmds=".dll"
2828
 
  need_lib_prefix=no
2829
 
  library_names_spec='$libname${shared_ext} $libname.a'
2830
 
  dynamic_linker='OS/2 ld.exe'
2831
 
  shlibpath_var=LIBPATH
2832
 
  ;;
2833
 
 
2834
 
osf3* | osf4* | osf5*)
2835
 
  version_type=osf
2836
 
  need_lib_prefix=no
2837
 
  need_version=no
2838
 
  soname_spec='${libname}${release}${shared_ext}$major'
2839
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2840
 
  shlibpath_var=LD_LIBRARY_PATH
2841
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2842
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2843
 
  ;;
2844
 
 
2845
 
rdos*)
2846
 
  dynamic_linker=no
2847
 
  ;;
2848
 
 
2849
 
solaris*)
2850
 
  version_type=linux
2851
 
  need_lib_prefix=no
2852
 
  need_version=no
2853
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2854
 
  soname_spec='${libname}${release}${shared_ext}$major'
2855
 
  shlibpath_var=LD_LIBRARY_PATH
2856
 
  shlibpath_overrides_runpath=yes
2857
 
  hardcode_into_libs=yes
2858
 
  # ldd complains unless libraries are executable
2859
 
  postinstall_cmds='chmod +x $lib'
2860
 
  ;;
2861
 
 
2862
 
sunos4*)
2863
 
  version_type=sunos
2864
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2865
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2866
 
  shlibpath_var=LD_LIBRARY_PATH
2867
 
  shlibpath_overrides_runpath=yes
2868
 
  if test "$with_gnu_ld" = yes; then
2869
 
    need_lib_prefix=no
2870
 
  fi
2871
 
  need_version=yes
2872
 
  ;;
2873
 
 
2874
 
sysv4 | sysv4.3*)
2875
 
  version_type=linux
2876
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2877
 
  soname_spec='${libname}${release}${shared_ext}$major'
2878
 
  shlibpath_var=LD_LIBRARY_PATH
2879
 
  case $host_vendor in
2880
 
    sni)
2881
 
      shlibpath_overrides_runpath=no
2882
 
      need_lib_prefix=no
2883
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2884
 
      runpath_var=LD_RUN_PATH
2885
 
      ;;
2886
 
    siemens)
2887
 
      need_lib_prefix=no
2888
 
      ;;
2889
 
    motorola)
2890
 
      need_lib_prefix=no
2891
 
      need_version=no
2892
 
      shlibpath_overrides_runpath=no
2893
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2894
 
      ;;
2895
 
  esac
2896
 
  ;;
2897
 
 
2898
 
sysv4*MP*)
2899
 
  if test -d /usr/nec ;then
2900
 
    version_type=linux
2901
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2902
 
    soname_spec='$libname${shared_ext}.$major'
2903
 
    shlibpath_var=LD_LIBRARY_PATH
2904
 
  fi
2905
 
  ;;
2906
 
 
2907
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2908
 
  version_type=freebsd-elf
2909
 
  need_lib_prefix=no
2910
 
  need_version=no
2911
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2912
 
  soname_spec='${libname}${release}${shared_ext}$major'
2913
 
  shlibpath_var=LD_LIBRARY_PATH
2914
 
  hardcode_into_libs=yes
2915
 
  if test "$with_gnu_ld" = yes; then
2916
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2917
 
    shlibpath_overrides_runpath=no
2918
 
  else
2919
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2920
 
    shlibpath_overrides_runpath=yes
2921
 
    case $host_os in
2922
 
      sco3.2v5*)
2923
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2924
 
        ;;
2925
 
    esac
2926
 
  fi
2927
 
  sys_lib_dlsearch_path_spec='/usr/lib'
2928
 
  ;;
2929
 
 
2930
 
uts4*)
2931
 
  version_type=linux
2932
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2933
 
  soname_spec='${libname}${release}${shared_ext}$major'
2934
 
  shlibpath_var=LD_LIBRARY_PATH
2935
 
  ;;
2936
 
 
2937
 
*)
2938
 
  dynamic_linker=no
2939
 
  ;;
2940
 
esac
2941
 
AC_MSG_RESULT([$dynamic_linker])
2942
 
test "$dynamic_linker" = no && can_build_shared=no
2943
 
 
2944
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2945
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2946
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2947
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2948
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2949
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2950
 
 
2951
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2952
 
if test "$GCC" = yes; then
2953
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2954
 
fi
2955
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2956
 
 
2957
 
 
2958
 
# _LT_AC_TAGCONFIG
2959
 
# ----------------
2960
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2961
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2962
 
AC_ARG_WITH([tags],
2963
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2964
 
        [include additional configurations @<:@automatic@:>@])],
2965
 
    [tagnames="$withval"])
2966
 
 
2967
 
if test -f "$ltmain" && test -n "$tagnames"; then
2968
 
  if test ! -f "${ofile}"; then
2969
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2970
 
  fi
2971
 
 
2972
 
  if test -z "$LTCC"; then
2973
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2974
 
    if test -z "$LTCC"; then
2975
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2976
 
    else
2977
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2978
 
    fi
2979
 
  fi
2980
 
  if test -z "$LTCFLAGS"; then
2981
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2982
 
  fi
2983
 
 
2984
 
  # Extract list of available tagged configurations in $ofile.
2985
 
  # Note that this assumes the entire list is on one line.
2986
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2987
 
 
2988
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2989
 
  for tagname in $tagnames; do
2990
 
    IFS="$lt_save_ifs"
2991
 
    # Check whether tagname contains only valid characters
2992
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2993
 
    "") ;;
2994
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2995
 
        ;;
2996
 
    esac
2997
 
 
2998
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2999
 
    then
3000
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
3001
 
    fi
3002
 
 
3003
 
    # Update the list of available tags.
3004
 
    if test -n "$tagname"; then
3005
 
      echo appending configuration tag \"$tagname\" to $ofile
3006
 
 
3007
 
      case $tagname in
3008
 
      CXX)
3009
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3010
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3011
 
            (test "X$CXX" != "Xg++"))) ; then
3012
 
          AC_LIBTOOL_LANG_CXX_CONFIG
3013
 
        else
3014
 
          tagname=""
3015
 
        fi
3016
 
        ;;
3017
 
 
3018
 
      F77)
3019
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
3020
 
          AC_LIBTOOL_LANG_F77_CONFIG
3021
 
        else
3022
 
          tagname=""
3023
 
        fi
3024
 
        ;;
3025
 
 
3026
 
      GCJ)
3027
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3028
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
3029
 
        else
3030
 
          tagname=""
3031
 
        fi
3032
 
        ;;
3033
 
 
3034
 
      RC)
3035
 
        AC_LIBTOOL_LANG_RC_CONFIG
3036
 
        ;;
3037
 
 
3038
 
      *)
3039
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
3040
 
        ;;
3041
 
      esac
3042
 
 
3043
 
      # Append the new tag name to the list of available tags.
3044
 
      if test -n "$tagname" ; then
3045
 
      available_tags="$available_tags $tagname"
3046
 
    fi
3047
 
    fi
3048
 
  done
3049
 
  IFS="$lt_save_ifs"
3050
 
 
3051
 
  # Now substitute the updated list of available tags.
3052
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3053
 
    mv "${ofile}T" "$ofile"
3054
 
    chmod +x "$ofile"
3055
 
  else
3056
 
    rm -f "${ofile}T"
3057
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
3058
 
  fi
3059
 
fi
3060
 
])# _LT_AC_TAGCONFIG
3061
 
 
3062
 
 
3063
 
# AC_LIBTOOL_DLOPEN
3064
 
# -----------------
3065
 
# enable checks for dlopen support
3066
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
3067
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3068
 
])# AC_LIBTOOL_DLOPEN
3069
 
 
3070
 
 
3071
 
# AC_LIBTOOL_WIN32_DLL
3072
 
# --------------------
3073
 
# declare package support for building win32 DLLs
3074
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3075
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3076
 
])# AC_LIBTOOL_WIN32_DLL
3077
 
 
3078
 
 
3079
 
# AC_ENABLE_SHARED([DEFAULT])
3080
 
# ---------------------------
3081
 
# implement the --enable-shared flag
3082
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3083
 
AC_DEFUN([AC_ENABLE_SHARED],
3084
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3085
 
AC_ARG_ENABLE([shared],
3086
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3087
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3088
 
    [p=${PACKAGE-default}
3089
 
    case $enableval in
3090
 
    yes) enable_shared=yes ;;
3091
 
    no) enable_shared=no ;;
3092
 
    *)
3093
 
      enable_shared=no
3094
 
      # Look at the argument we got.  We use all the common list separators.
3095
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3096
 
      for pkg in $enableval; do
3097
 
        IFS="$lt_save_ifs"
3098
 
        if test "X$pkg" = "X$p"; then
3099
 
          enable_shared=yes
3100
 
        fi
3101
 
      done
3102
 
      IFS="$lt_save_ifs"
3103
 
      ;;
3104
 
    esac],
3105
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3106
 
])# AC_ENABLE_SHARED
3107
 
 
3108
 
 
3109
 
# AC_DISABLE_SHARED
3110
 
# -----------------
3111
 
# set the default shared flag to --disable-shared
3112
 
AC_DEFUN([AC_DISABLE_SHARED],
3113
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3114
 
AC_ENABLE_SHARED(no)
3115
 
])# AC_DISABLE_SHARED
3116
 
 
3117
 
 
3118
 
# AC_ENABLE_STATIC([DEFAULT])
3119
 
# ---------------------------
3120
 
# implement the --enable-static flag
3121
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3122
 
AC_DEFUN([AC_ENABLE_STATIC],
3123
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3124
 
AC_ARG_ENABLE([static],
3125
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3126
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3127
 
    [p=${PACKAGE-default}
3128
 
    case $enableval in
3129
 
    yes) enable_static=yes ;;
3130
 
    no) enable_static=no ;;
3131
 
    *)
3132
 
     enable_static=no
3133
 
      # Look at the argument we got.  We use all the common list separators.
3134
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3135
 
      for pkg in $enableval; do
3136
 
        IFS="$lt_save_ifs"
3137
 
        if test "X$pkg" = "X$p"; then
3138
 
          enable_static=yes
3139
 
        fi
3140
 
      done
3141
 
      IFS="$lt_save_ifs"
3142
 
      ;;
3143
 
    esac],
3144
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3145
 
])# AC_ENABLE_STATIC
3146
 
 
3147
 
 
3148
 
# AC_DISABLE_STATIC
3149
 
# -----------------
3150
 
# set the default static flag to --disable-static
3151
 
AC_DEFUN([AC_DISABLE_STATIC],
3152
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3153
 
AC_ENABLE_STATIC(no)
3154
 
])# AC_DISABLE_STATIC
3155
 
 
3156
 
 
3157
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3158
 
# ---------------------------------
3159
 
# implement the --enable-fast-install flag
3160
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3161
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3162
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3163
 
AC_ARG_ENABLE([fast-install],
3164
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3165
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3166
 
    [p=${PACKAGE-default}
3167
 
    case $enableval in
3168
 
    yes) enable_fast_install=yes ;;
3169
 
    no) enable_fast_install=no ;;
3170
 
    *)
3171
 
      enable_fast_install=no
3172
 
      # Look at the argument we got.  We use all the common list separators.
3173
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3174
 
      for pkg in $enableval; do
3175
 
        IFS="$lt_save_ifs"
3176
 
        if test "X$pkg" = "X$p"; then
3177
 
          enable_fast_install=yes
3178
 
        fi
3179
 
      done
3180
 
      IFS="$lt_save_ifs"
3181
 
      ;;
3182
 
    esac],
3183
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3184
 
])# AC_ENABLE_FAST_INSTALL
3185
 
 
3186
 
 
3187
 
# AC_DISABLE_FAST_INSTALL
3188
 
# -----------------------
3189
 
# set the default to --disable-fast-install
3190
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3191
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3192
 
AC_ENABLE_FAST_INSTALL(no)
3193
 
])# AC_DISABLE_FAST_INSTALL
3194
 
 
3195
 
 
3196
 
# AC_LIBTOOL_PICMODE([MODE])
3197
 
# --------------------------
3198
 
# implement the --with-pic flag
3199
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3200
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
3201
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3202
 
pic_mode=ifelse($#,1,$1,default)
3203
 
])# AC_LIBTOOL_PICMODE
3204
 
 
3205
 
 
3206
 
# AC_PROG_EGREP
3207
 
# -------------
3208
 
# This is predefined starting with Autoconf 2.54, so this conditional
3209
 
# definition can be removed once we require Autoconf 2.54 or later.
3210
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3211
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3212
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3213
 
    then ac_cv_prog_egrep='grep -E'
3214
 
    else ac_cv_prog_egrep='egrep'
3215
 
    fi])
3216
 
 EGREP=$ac_cv_prog_egrep
3217
 
 AC_SUBST([EGREP])
3218
 
])])
3219
 
 
3220
 
 
3221
 
# AC_PATH_TOOL_PREFIX
3222
 
# -------------------
3223
 
# find a file program which can recognize shared library
3224
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3225
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
3226
 
AC_MSG_CHECKING([for $1])
3227
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3228
 
[case $MAGIC_CMD in
3229
 
[[\\/*] |  ?:[\\/]*])
3230
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3231
 
  ;;
3232
 
*)
3233
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3234
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3235
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
3236
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
3237
 
dnl not every word.  This closes a longstanding sh security hole.
3238
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
3239
 
  for ac_dir in $ac_dummy; do
3240
 
    IFS="$lt_save_ifs"
3241
 
    test -z "$ac_dir" && ac_dir=.
3242
 
    if test -f $ac_dir/$1; then
3243
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3244
 
      if test -n "$file_magic_test_file"; then
3245
 
        case $deplibs_check_method in
3246
 
        "file_magic "*)
3247
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3248
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3249
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3250
 
            $EGREP "$file_magic_regex" > /dev/null; then
3251
 
            :
3252
 
          else
3253
 
            cat <<EOF 1>&2
3254
 
 
3255
 
*** Warning: the command libtool uses to detect shared libraries,
3256
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3257
 
*** The result is that libtool may fail to recognize shared libraries
3258
 
*** as such.  This will affect the creation of libtool libraries that
3259
 
*** depend on shared libraries, but programs linked with such libtool
3260
 
*** libraries will work regardless of this problem.  Nevertheless, you
3261
 
*** may want to report the problem to your system manager and/or to
3262
 
*** bug-libtool@gnu.org
3263
 
 
3264
 
EOF
3265
 
          fi ;;
3266
 
        esac
3267
 
      fi
3268
 
      break
3269
 
    fi
3270
 
  done
3271
 
  IFS="$lt_save_ifs"
3272
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
3273
 
  ;;
3274
 
esac])
3275
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3276
 
if test -n "$MAGIC_CMD"; then
3277
 
  AC_MSG_RESULT($MAGIC_CMD)
3278
 
else
3279
 
  AC_MSG_RESULT(no)
3280
 
fi
3281
 
])# AC_PATH_TOOL_PREFIX
3282
 
 
3283
 
 
3284
 
# AC_PATH_MAGIC
3285
 
# -------------
3286
 
# find a file program which can recognize a shared library
3287
 
AC_DEFUN([AC_PATH_MAGIC],
3288
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3289
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3290
 
  if test -n "$ac_tool_prefix"; then
3291
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3292
 
  else
3293
 
    MAGIC_CMD=:
3294
 
  fi
3295
 
fi
3296
 
])# AC_PATH_MAGIC
3297
 
 
3298
 
 
3299
 
# AC_PROG_LD
3300
 
# ----------
3301
 
# find the pathname to the GNU or non-GNU linker
3302
 
AC_DEFUN([AC_PROG_LD],
3303
 
[AC_ARG_WITH([gnu-ld],
3304
 
    [AC_HELP_STRING([--with-gnu-ld],
3305
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3306
 
    [test "$withval" = no || with_gnu_ld=yes],
3307
 
    [with_gnu_ld=no])
3308
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
3309
 
AC_REQUIRE([AC_PROG_CC])dnl
3310
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3311
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3312
 
ac_prog=ld
3313
 
if test "$GCC" = yes; then
3314
 
  # Check if gcc -print-prog-name=ld gives a path.
3315
 
  AC_MSG_CHECKING([for ld used by $CC])
3316
 
  case $host in
3317
 
  *-*-mingw*)
3318
 
    # gcc leaves a trailing carriage return which upsets mingw
3319
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3320
 
  *)
3321
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3322
 
  esac
3323
 
  case $ac_prog in
3324
 
    # Accept absolute paths.
3325
 
    [[\\/]]* | ?:[[\\/]]*)
3326
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
3327
 
      # Canonicalize the pathname of ld
3328
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3331
 
      done
3332
 
      test -z "$LD" && LD="$ac_prog"
3333
 
      ;;
3334
 
  "")
3335
 
    # If it fails, then pretend we aren't using GCC.
3336
 
    ac_prog=ld
3337
 
    ;;
3338
 
  *)
3339
 
    # If it is relative, then search for the first ld in PATH.
3340
 
    with_gnu_ld=unknown
3341
 
    ;;
3342
 
  esac
3343
 
elif test "$with_gnu_ld" = yes; then
3344
 
  AC_MSG_CHECKING([for GNU ld])
3345
 
else
3346
 
  AC_MSG_CHECKING([for non-GNU ld])
3347
 
fi
3348
 
AC_CACHE_VAL(lt_cv_path_LD,
3349
 
[if test -z "$LD"; then
3350
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3351
 
  for ac_dir in $PATH; do
3352
 
    IFS="$lt_save_ifs"
3353
 
    test -z "$ac_dir" && ac_dir=.
3354
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3355
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3356
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3357
 
      # but apparently some variants of GNU ld only accept -v.
3358
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3359
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3360
 
      *GNU* | *'with BFD'*)
3361
 
        test "$with_gnu_ld" != no && break
3362
 
        ;;
3363
 
      *)
3364
 
        test "$with_gnu_ld" != yes && break
3365
 
        ;;
3366
 
      esac
3367
 
    fi
3368
 
  done
3369
 
  IFS="$lt_save_ifs"
3370
 
else
3371
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3372
 
fi])
3373
 
LD="$lt_cv_path_LD"
3374
 
if test -n "$LD"; then
3375
 
  AC_MSG_RESULT($LD)
3376
 
else
3377
 
  AC_MSG_RESULT(no)
3378
 
fi
3379
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3380
 
AC_PROG_LD_GNU
3381
 
])# AC_PROG_LD
3382
 
 
3383
 
 
3384
 
# AC_PROG_LD_GNU
3385
 
# --------------
3386
 
AC_DEFUN([AC_PROG_LD_GNU],
3387
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
3388
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3389
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3390
 
case `$LD -v 2>&1 </dev/null` in
3391
 
*GNU* | *'with BFD'*)
3392
 
  lt_cv_prog_gnu_ld=yes
3393
 
  ;;
3394
 
*)
3395
 
  lt_cv_prog_gnu_ld=no
3396
 
  ;;
3397
 
esac])
3398
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3399
 
])# AC_PROG_LD_GNU
3400
 
 
3401
 
 
3402
 
# AC_PROG_LD_RELOAD_FLAG
3403
 
# ----------------------
3404
 
# find reload flag for linker
3405
 
#   -- PORTME Some linkers may need a different reload flag.
3406
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3407
 
[AC_CACHE_CHECK([for $LD option to reload object files],
3408
 
  lt_cv_ld_reload_flag,
3409
 
  [lt_cv_ld_reload_flag='-r'])
3410
 
reload_flag=$lt_cv_ld_reload_flag
3411
 
case $reload_flag in
3412
 
"" | " "*) ;;
3413
 
*) reload_flag=" $reload_flag" ;;
3414
 
esac
3415
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3416
 
case $host_os in
3417
 
  darwin*)
3418
 
    if test "$GCC" = yes; then
3419
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3420
 
    else
3421
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3422
 
    fi
3423
 
    ;;
3424
 
esac
3425
 
])# AC_PROG_LD_RELOAD_FLAG
3426
 
 
3427
 
 
3428
 
# AC_DEPLIBS_CHECK_METHOD
3429
 
# -----------------------
3430
 
# how to check for library dependencies
3431
 
#  -- PORTME fill in with the dynamic library characteristics
3432
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3433
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
3434
 
lt_cv_deplibs_check_method,
3435
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3436
 
lt_cv_file_magic_test_file=
3437
 
lt_cv_deplibs_check_method='unknown'
3438
 
# Need to set the preceding variable on all platforms that support
3439
 
# interlibrary dependencies.
3440
 
# 'none' -- dependencies not supported.
3441
 
# `unknown' -- same as none, but documents that we really don't know.
3442
 
# 'pass_all' -- all dependencies passed with no checks.
3443
 
# 'test_compile' -- check by making test program.
3444
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3445
 
# which responds to the $file_magic_cmd with a given extended regex.
3446
 
# If you have `file' or equivalent on your system and you're not sure
3447
 
# whether `pass_all' will *always* work, you probably want this one.
3448
 
 
3449
 
case $host_os in
3450
 
aix[[4-9]]*)
3451
 
  lt_cv_deplibs_check_method=pass_all
3452
 
  ;;
3453
 
 
3454
 
beos*)
3455
 
  lt_cv_deplibs_check_method=pass_all
3456
 
  ;;
3457
 
 
3458
 
bsdi[[45]]*)
3459
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3460
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3461
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3462
 
  ;;
3463
 
 
3464
 
cygwin*)
3465
 
  # func_win32_libid is a shell function defined in ltmain.sh
3466
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3467
 
  lt_cv_file_magic_cmd='func_win32_libid'
3468
 
  ;;
3469
 
 
3470
 
mingw* | pw32*)
3471
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
3472
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3473
 
  # unless we find 'file', for example because we are cross-compiling.
3474
 
  if ( file / ) >/dev/null 2>&1; then
3475
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3476
 
    lt_cv_file_magic_cmd='func_win32_libid'
3477
 
  else
3478
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3479
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3480
 
  fi
3481
 
  ;;
3482
 
 
3483
 
darwin* | rhapsody*)
3484
 
  lt_cv_deplibs_check_method=pass_all
3485
 
  ;;
3486
 
 
3487
 
freebsd* | dragonfly*)
3488
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3489
 
    case $host_cpu in
3490
 
    i*86 )
3491
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3492
 
      # Let's accept both of them until this is cleared up.
3493
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3494
 
      lt_cv_file_magic_cmd=/usr/bin/file
3495
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3496
 
      ;;
3497
 
    esac
3498
 
  else
3499
 
    lt_cv_deplibs_check_method=pass_all
3500
 
  fi
3501
 
  ;;
3502
 
 
3503
 
gnu*)
3504
 
  lt_cv_deplibs_check_method=pass_all
3505
 
  ;;
3506
 
 
3507
 
hpux10.20* | hpux11*)
3508
 
  lt_cv_file_magic_cmd=/usr/bin/file
3509
 
  case $host_cpu in
3510
 
  ia64*)
3511
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3512
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3513
 
    ;;
3514
 
  hppa*64*)
3515
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3516
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3517
 
    ;;
3518
 
  *)
3519
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3520
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3521
 
    ;;
3522
 
  esac
3523
 
  ;;
3524
 
 
3525
 
interix[[3-9]]*)
3526
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3527
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3528
 
  ;;
3529
 
 
3530
 
irix5* | irix6* | nonstopux*)
3531
 
  case $LD in
3532
 
  *-32|*"-32 ") libmagic=32-bit;;
3533
 
  *-n32|*"-n32 ") libmagic=N32;;
3534
 
  *-64|*"-64 ") libmagic=64-bit;;
3535
 
  *) libmagic=never-match;;
3536
 
  esac
3537
 
  lt_cv_deplibs_check_method=pass_all
3538
 
  ;;
3539
 
 
3540
 
# This must be Linux ELF.
3541
 
linux* | k*bsd*-gnu)
3542
 
  lt_cv_deplibs_check_method=pass_all
3543
 
  ;;
3544
 
 
3545
 
netbsd*)
3546
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3547
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3548
 
  else
3549
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3550
 
  fi
3551
 
  ;;
3552
 
 
3553
 
newos6*)
3554
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3555
 
  lt_cv_file_magic_cmd=/usr/bin/file
3556
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3557
 
  ;;
3558
 
 
3559
 
nto-qnx*)
3560
 
  lt_cv_deplibs_check_method=unknown
3561
 
  ;;
3562
 
 
3563
 
openbsd*)
3564
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3565
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3566
 
  else
3567
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3568
 
  fi
3569
 
  ;;
3570
 
 
3571
 
osf3* | osf4* | osf5*)
3572
 
  lt_cv_deplibs_check_method=pass_all
3573
 
  ;;
3574
 
 
3575
 
rdos*)
3576
 
  lt_cv_deplibs_check_method=pass_all
3577
 
  ;;
3578
 
 
3579
 
solaris*)
3580
 
  lt_cv_deplibs_check_method=pass_all
3581
 
  ;;
3582
 
 
3583
 
sysv4 | sysv4.3*)
3584
 
  case $host_vendor in
3585
 
  motorola)
3586
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3587
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3588
 
    ;;
3589
 
  ncr)
3590
 
    lt_cv_deplibs_check_method=pass_all
3591
 
    ;;
3592
 
  sequent)
3593
 
    lt_cv_file_magic_cmd='/bin/file'
3594
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3595
 
    ;;
3596
 
  sni)
3597
 
    lt_cv_file_magic_cmd='/bin/file'
3598
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3599
 
    lt_cv_file_magic_test_file=/lib/libc.so
3600
 
    ;;
3601
 
  siemens)
3602
 
    lt_cv_deplibs_check_method=pass_all
3603
 
    ;;
3604
 
  pc)
3605
 
    lt_cv_deplibs_check_method=pass_all
3606
 
    ;;
3607
 
  esac
3608
 
  ;;
3609
 
 
3610
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3611
 
  lt_cv_deplibs_check_method=pass_all
3612
 
  ;;
3613
 
esac
3614
 
])
3615
 
file_magic_cmd=$lt_cv_file_magic_cmd
3616
 
deplibs_check_method=$lt_cv_deplibs_check_method
3617
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3618
 
])# AC_DEPLIBS_CHECK_METHOD
3619
 
 
3620
 
 
3621
 
# AC_PROG_NM
3622
 
# ----------
3623
 
# find the pathname to a BSD-compatible name lister
3624
 
AC_DEFUN([AC_PROG_NM],
3625
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3626
 
[if test -n "$NM"; then
3627
 
  # Let the user override the test.
3628
 
  lt_cv_path_NM="$NM"
3629
 
else
3630
 
  lt_nm_to_check="${ac_tool_prefix}nm"
3631
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3632
 
    lt_nm_to_check="$lt_nm_to_check nm"
3633
 
  fi
3634
 
  for lt_tmp_nm in $lt_nm_to_check; do
3635
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3636
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3637
 
      IFS="$lt_save_ifs"
3638
 
      test -z "$ac_dir" && ac_dir=.
3639
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
3640
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3641
 
        # Check to see if the nm accepts a BSD-compat flag.
3642
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3643
 
        #   nm: unknown option "B" ignored
3644
 
        # Tru64's nm complains that /dev/null is an invalid object file
3645
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3646
 
        */dev/null* | *'Invalid file or object type'*)
3647
 
          lt_cv_path_NM="$tmp_nm -B"
3648
 
          break
3649
 
          ;;
3650
 
        *)
3651
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3652
 
          */dev/null*)
3653
 
            lt_cv_path_NM="$tmp_nm -p"
3654
 
            break
3655
 
            ;;
3656
 
          *)
3657
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3658
 
            continue # so that we can try to find one that supports BSD flags
3659
 
            ;;
3660
 
          esac
3661
 
          ;;
3662
 
        esac
3663
 
      fi
3664
 
    done
3665
 
    IFS="$lt_save_ifs"
3666
 
  done
3667
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3668
 
fi])
3669
 
NM="$lt_cv_path_NM"
3670
 
])# AC_PROG_NM
3671
 
 
3672
 
 
3673
 
# AC_CHECK_LIBM
3674
 
# -------------
3675
 
# check for math library
3676
 
AC_DEFUN([AC_CHECK_LIBM],
3677
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3678
 
LIBM=
3679
 
case $host in
3680
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3681
 
  # These system don't have libm, or don't need it
3682
 
  ;;
3683
 
*-ncr-sysv4.3*)
3684
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3685
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3686
 
  ;;
3687
 
*)
3688
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3689
 
  ;;
3690
 
esac
3691
 
])# AC_CHECK_LIBM
3692
 
 
3693
 
 
3694
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3695
 
# -----------------------------------
3696
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3697
 
# LTDLINCL to the include flags for the libltdl header and adds
3698
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3699
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3700
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3701
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3702
 
# (note the single quotes!).  If your package is not flat and you're not
3703
 
# using automake, define top_builddir and top_srcdir appropriately in
3704
 
# the Makefiles.
3705
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3706
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3707
 
  case $enable_ltdl_convenience in
3708
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3709
 
  "") enable_ltdl_convenience=yes
3710
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3711
 
  esac
3712
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3713
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3714
 
  # For backwards non-gettext consistent compatibility...
3715
 
  INCLTDL="$LTDLINCL"
3716
 
])# AC_LIBLTDL_CONVENIENCE
3717
 
 
3718
 
 
3719
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3720
 
# -----------------------------------
3721
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3722
 
# LTDLINCL to the include flags for the libltdl header and adds
3723
 
# --enable-ltdl-install to the configure arguments.  Note that
3724
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3725
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3726
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3727
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3728
 
# flat and you're not using automake, define top_builddir and top_srcdir
3729
 
# appropriately in the Makefiles.
3730
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3731
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3732
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3733
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3734
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3735
 
  [if test x"$enable_ltdl_install" = xno; then
3736
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3737
 
   else
3738
 
     enable_ltdl_install=yes
3739
 
   fi
3740
 
  ])
3741
 
  if test x"$enable_ltdl_install" = x"yes"; then
3742
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3743
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3744
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3745
 
  else
3746
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3747
 
    LIBLTDL="-lltdl"
3748
 
    LTDLINCL=
3749
 
  fi
3750
 
  # For backwards non-gettext consistent compatibility...
3751
 
  INCLTDL="$LTDLINCL"
3752
 
])# AC_LIBLTDL_INSTALLABLE
3753
 
 
3754
 
 
3755
 
# AC_LIBTOOL_CXX
3756
 
# --------------
3757
 
# enable support for C++ libraries
3758
 
AC_DEFUN([AC_LIBTOOL_CXX],
3759
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3760
 
])# AC_LIBTOOL_CXX
3761
 
 
3762
 
 
3763
 
# _LT_AC_LANG_CXX
3764
 
# ---------------
3765
 
AC_DEFUN([_LT_AC_LANG_CXX],
3766
 
[AC_REQUIRE([AC_PROG_CXX])
3767
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3768
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3769
 
])# _LT_AC_LANG_CXX
3770
 
 
3771
 
# _LT_AC_PROG_CXXCPP
3772
 
# ------------------
3773
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3774
 
[
3775
 
AC_REQUIRE([AC_PROG_CXX])
3776
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3777
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3778
 
    (test "X$CXX" != "Xg++"))) ; then
3779
 
  AC_PROG_CXXCPP
3780
 
fi
3781
 
])# _LT_AC_PROG_CXXCPP
3782
 
 
3783
 
# AC_LIBTOOL_F77
3784
 
# --------------
3785
 
# enable support for Fortran 77 libraries
3786
 
AC_DEFUN([AC_LIBTOOL_F77],
3787
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3788
 
])# AC_LIBTOOL_F77
3789
 
 
3790
 
 
3791
 
# _LT_AC_LANG_F77
3792
 
# ---------------
3793
 
AC_DEFUN([_LT_AC_LANG_F77],
3794
 
[AC_REQUIRE([AC_PROG_F77])
3795
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3796
 
])# _LT_AC_LANG_F77
3797
 
 
3798
 
 
3799
 
# AC_LIBTOOL_GCJ
3800
 
# --------------
3801
 
# enable support for GCJ libraries
3802
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3803
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3804
 
])# AC_LIBTOOL_GCJ
3805
 
 
3806
 
 
3807
 
# _LT_AC_LANG_GCJ
3808
 
# ---------------
3809
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3810
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3811
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3812
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3813
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3814
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3815
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3816
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3817
 
])# _LT_AC_LANG_GCJ
3818
 
 
3819
 
 
3820
 
# AC_LIBTOOL_RC
3821
 
# -------------
3822
 
# enable support for Windows resource files
3823
 
AC_DEFUN([AC_LIBTOOL_RC],
3824
 
[AC_REQUIRE([LT_AC_PROG_RC])
3825
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3826
 
])# AC_LIBTOOL_RC
3827
 
 
3828
 
 
3829
 
# AC_LIBTOOL_LANG_C_CONFIG
3830
 
# ------------------------
3831
 
# Ensure that the configuration vars for the C compiler are
3832
 
# suitably defined.  Those variables are subsequently used by
3833
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3834
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3835
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3836
 
[lt_save_CC="$CC"
3837
 
AC_LANG_PUSH(C)
3838
 
 
3839
 
# Source file extension for C test sources.
3840
 
ac_ext=c
3841
 
 
3842
 
# Object file extension for compiled C test sources.
3843
 
objext=o
3844
 
_LT_AC_TAGVAR(objext, $1)=$objext
3845
 
 
3846
 
# Code to be used in simple compile tests
3847
 
lt_simple_compile_test_code="int some_variable = 0;"
3848
 
 
3849
 
# Code to be used in simple link tests
3850
 
lt_simple_link_test_code='int main(){return(0);}'
3851
 
 
3852
 
_LT_AC_SYS_COMPILER
3853
 
 
3854
 
# save warnings/boilerplate of simple test code
3855
 
_LT_COMPILER_BOILERPLATE
3856
 
_LT_LINKER_BOILERPLATE
3857
 
 
3858
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3859
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3860
 
AC_LIBTOOL_PROG_CC_C_O($1)
3861
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3862
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3863
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3864
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3865
 
AC_LIBTOOL_SYS_LIB_STRIP
3866
 
AC_LIBTOOL_DLOPEN_SELF
3867
 
 
3868
 
# Report which library types will actually be built
3869
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3870
 
AC_MSG_RESULT([$can_build_shared])
3871
 
 
3872
 
AC_MSG_CHECKING([whether to build shared libraries])
3873
 
test "$can_build_shared" = "no" && enable_shared=no
3874
 
 
3875
 
# On AIX, shared libraries and static libraries use the same namespace, and
3876
 
# are all built from PIC.
3877
 
case $host_os in
3878
 
aix3*)
3879
 
  test "$enable_shared" = yes && enable_static=no
3880
 
  if test -n "$RANLIB"; then
3881
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3882
 
    postinstall_cmds='$RANLIB $lib'
3883
 
  fi
3884
 
  ;;
3885
 
 
3886
 
aix[[4-9]]*)
3887
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3888
 
    test "$enable_shared" = yes && enable_static=no
3889
 
  fi
3890
 
    ;;
3891
 
esac
3892
 
AC_MSG_RESULT([$enable_shared])
3893
 
 
3894
 
AC_MSG_CHECKING([whether to build static libraries])
3895
 
# Make sure either enable_shared or enable_static is yes.
3896
 
test "$enable_shared" = yes || enable_static=yes
3897
 
AC_MSG_RESULT([$enable_static])
3898
 
 
3899
 
AC_LIBTOOL_CONFIG($1)
3900
 
 
3901
 
AC_LANG_POP
3902
 
CC="$lt_save_CC"
3903
 
])# AC_LIBTOOL_LANG_C_CONFIG
3904
 
 
3905
 
 
3906
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3907
 
# --------------------------
3908
 
# Ensure that the configuration vars for the C compiler are
3909
 
# suitably defined.  Those variables are subsequently used by
3910
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3911
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3912
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3913
 
[AC_LANG_PUSH(C++)
3914
 
AC_REQUIRE([AC_PROG_CXX])
3915
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3916
 
 
3917
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3918
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3919
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3920
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3921
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3922
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3923
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3924
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3925
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3926
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3927
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3928
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3929
 
_LT_AC_TAGVAR(module_cmds, $1)=
3930
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3931
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3932
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3933
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3934
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3935
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3936
 
 
3937
 
# Dependencies to place before and after the object being linked:
3938
 
_LT_AC_TAGVAR(predep_objects, $1)=
3939
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3940
 
_LT_AC_TAGVAR(predeps, $1)=
3941
 
_LT_AC_TAGVAR(postdeps, $1)=
3942
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3943
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3944
 
 
3945
 
# Source file extension for C++ test sources.
3946
 
ac_ext=cpp
3947
 
 
3948
 
# Object file extension for compiled C++ test sources.
3949
 
objext=o
3950
 
_LT_AC_TAGVAR(objext, $1)=$objext
3951
 
 
3952
 
# Code to be used in simple compile tests
3953
 
lt_simple_compile_test_code="int some_variable = 0;"
3954
 
 
3955
 
# Code to be used in simple link tests
3956
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3957
 
 
3958
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3959
 
_LT_AC_SYS_COMPILER
3960
 
 
3961
 
# save warnings/boilerplate of simple test code
3962
 
_LT_COMPILER_BOILERPLATE
3963
 
_LT_LINKER_BOILERPLATE
3964
 
 
3965
 
# Allow CC to be a program name with arguments.
3966
 
lt_save_CC=$CC
3967
 
lt_save_LD=$LD
3968
 
lt_save_GCC=$GCC
3969
 
GCC=$GXX
3970
 
lt_save_with_gnu_ld=$with_gnu_ld
3971
 
lt_save_path_LD=$lt_cv_path_LD
3972
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3973
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3974
 
else
3975
 
  $as_unset lt_cv_prog_gnu_ld
3976
 
fi
3977
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3978
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3979
 
else
3980
 
  $as_unset lt_cv_path_LD
3981
 
fi
3982
 
test -z "${LDCXX+set}" || LD=$LDCXX
3983
 
CC=${CXX-"c++"}
3984
 
compiler=$CC
3985
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3986
 
_LT_CC_BASENAME([$compiler])
3987
 
 
3988
 
# We don't want -fno-exception wen compiling C++ code, so set the
3989
 
# no_builtin_flag separately
3990
 
if test "$GXX" = yes; then
3991
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3992
 
else
3993
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3994
 
fi
3995
 
 
3996
 
if test "$GXX" = yes; then
3997
 
  # Set up default GNU C++ configuration
3998
 
 
3999
 
  AC_PROG_LD
4000
 
 
4001
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
4002
 
  # archiving commands below assume that GNU ld is being used.
4003
 
  if test "$with_gnu_ld" = yes; then
4004
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4005
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4006
 
 
4007
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4008
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4009
 
 
4010
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
4011
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4012
 
    #     investigate it a little bit more. (MM)
4013
 
    wlarc='${wl}'
4014
 
 
4015
 
    # ancient GNU ld didn't support --whole-archive et. al.
4016
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4017
 
        grep 'no-whole-archive' > /dev/null; then
4018
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4019
 
    else
4020
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4021
 
    fi
4022
 
  else
4023
 
    with_gnu_ld=no
4024
 
    wlarc=
4025
 
 
4026
 
    # A generic and very simple default shared library creation
4027
 
    # command for GNU C++ for the case where it uses the native
4028
 
    # linker, instead of GNU ld.  If possible, this setting should
4029
 
    # overridden to take advantage of the native linker features on
4030
 
    # the platform it is being used on.
4031
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4032
 
  fi
4033
 
 
4034
 
  # Commands to make compiler produce verbose output that lists
4035
 
  # what "hidden" libraries, object files and flags are used when
4036
 
  # linking a shared library.
4037
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4038
 
 
4039
 
else
4040
 
  GXX=no
4041
 
  with_gnu_ld=no
4042
 
  wlarc=
4043
 
fi
4044
 
 
4045
 
# PORTME: fill in a description of your system's C++ link characteristics
4046
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4047
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4048
 
case $host_os in
4049
 
  aix3*)
4050
 
    # FIXME: insert proper C++ library support
4051
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4052
 
    ;;
4053
 
  aix[[4-9]]*)
4054
 
    if test "$host_cpu" = ia64; then
4055
 
      # On IA64, the linker does run time linking by default, so we don't
4056
 
      # have to do anything special.
4057
 
      aix_use_runtimelinking=no
4058
 
      exp_sym_flag='-Bexport'
4059
 
      no_entry_flag=""
4060
 
    else
4061
 
      aix_use_runtimelinking=no
4062
 
 
4063
 
      # Test if we are trying to use run time linking or normal
4064
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4065
 
      # need to do runtime linking.
4066
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4067
 
        for ld_flag in $LDFLAGS; do
4068
 
          case $ld_flag in
4069
 
          *-brtl*)
4070
 
            aix_use_runtimelinking=yes
4071
 
            break
4072
 
            ;;
4073
 
          esac
4074
 
        done
4075
 
        ;;
4076
 
      esac
4077
 
 
4078
 
      exp_sym_flag='-bexport'
4079
 
      no_entry_flag='-bnoentry'
4080
 
    fi
4081
 
 
4082
 
    # When large executables or shared objects are built, AIX ld can
4083
 
    # have problems creating the table of contents.  If linking a library
4084
 
    # or program results in "error TOC overflow" add -mminimal-toc to
4085
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4086
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4087
 
 
4088
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
4089
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4090
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4091
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4092
 
 
4093
 
    if test "$GXX" = yes; then
4094
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
4095
 
      # We only want to do this on AIX 4.2 and lower, the check
4096
 
      # below for broken collect2 doesn't work under 4.3+
4097
 
        collect2name=`${CC} -print-prog-name=collect2`
4098
 
        if test -f "$collect2name" && \
4099
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
4100
 
        then
4101
 
          # We have reworked collect2
4102
 
          :
4103
 
        else
4104
 
          # We have old collect2
4105
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4106
 
          # It fails to find uninstalled libraries when the uninstalled
4107
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
4108
 
          # to unsupported forces relinking
4109
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4110
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4111
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4112
 
        fi
4113
 
        ;;
4114
 
      esac
4115
 
      shared_flag='-shared'
4116
 
      if test "$aix_use_runtimelinking" = yes; then
4117
 
        shared_flag="$shared_flag "'${wl}-G'
4118
 
      fi
4119
 
    else
4120
 
      # not using gcc
4121
 
      if test "$host_cpu" = ia64; then
4122
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4123
 
        # chokes on -Wl,-G. The following line is correct:
4124
 
        shared_flag='-G'
4125
 
      else
4126
 
        if test "$aix_use_runtimelinking" = yes; then
4127
 
          shared_flag='${wl}-G'
4128
 
        else
4129
 
          shared_flag='${wl}-bM:SRE'
4130
 
        fi
4131
 
      fi
4132
 
    fi
4133
 
 
4134
 
    # It seems that -bexpall does not export symbols beginning with
4135
 
    # underscore (_), so it is better to generate a list of symbols to export.
4136
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4137
 
    if test "$aix_use_runtimelinking" = yes; then
4138
 
      # Warning - without using the other runtime loading flags (-brtl),
4139
 
      # -berok will link without error, but may produce a broken library.
4140
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4141
 
      # Determine the default libpath from the value encoded in an empty executable.
4142
 
      _LT_AC_SYS_LIBPATH_AIX
4143
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4144
 
 
4145
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4146
 
     else
4147
 
      if test "$host_cpu" = ia64; then
4148
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4149
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4150
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4151
 
      else
4152
 
        # Determine the default libpath from the value encoded in an empty executable.
4153
 
        _LT_AC_SYS_LIBPATH_AIX
4154
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4155
 
        # Warning - without using the other run time loading flags,
4156
 
        # -berok will link without error, but may produce a broken library.
4157
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4158
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4159
 
        # Exported symbols can be pulled into shared objects from archives
4160
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4161
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4162
 
        # This is similar to how AIX traditionally builds its shared libraries.
4163
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4164
 
      fi
4165
 
    fi
4166
 
    ;;
4167
 
 
4168
 
  beos*)
4169
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4170
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4171
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4172
 
      # support --undefined.  This deserves some investigation.  FIXME
4173
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4174
 
    else
4175
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4176
 
    fi
4177
 
    ;;
4178
 
 
4179
 
  chorus*)
4180
 
    case $cc_basename in
4181
 
      *)
4182
 
        # FIXME: insert proper C++ library support
4183
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4184
 
        ;;
4185
 
    esac
4186
 
    ;;
4187
 
 
4188
 
  cygwin* | mingw* | pw32*)
4189
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4190
 
    # as there is no search path for DLLs.
4191
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4192
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4193
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
4194
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4195
 
 
4196
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4197
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4198
 
      # If the export-symbols file already is a .def file (1st line
4199
 
      # is EXPORTS), use it as is; otherwise, prepend...
4200
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4201
 
        cp $export_symbols $output_objdir/$soname.def;
4202
 
      else
4203
 
        echo EXPORTS > $output_objdir/$soname.def;
4204
 
        cat $export_symbols >> $output_objdir/$soname.def;
4205
 
      fi~
4206
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4207
 
    else
4208
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4209
 
    fi
4210
 
  ;;
4211
 
      darwin* | rhapsody*)
4212
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4213
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4214
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4215
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4216
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4217
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4218
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4219
 
      if test "$GXX" = yes ; then
4220
 
      output_verbose_link_cmd='echo'
4221
 
      _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}"
4222
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4223
 
      _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}"
4224
 
      _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}"
4225
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4226
 
        _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}"
4227
 
        _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}"
4228
 
      fi
4229
 
      else
4230
 
      case $cc_basename in
4231
 
        xlc*)
4232
 
         output_verbose_link_cmd='echo'
4233
 
          _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'
4234
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4235
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4236
 
          _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}'
4237
 
          _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}'
4238
 
          ;;
4239
 
       *)
4240
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4241
 
          ;;
4242
 
      esac
4243
 
      fi
4244
 
        ;;
4245
 
 
4246
 
  dgux*)
4247
 
    case $cc_basename in
4248
 
      ec++*)
4249
 
        # FIXME: insert proper C++ library support
4250
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4251
 
        ;;
4252
 
      ghcx*)
4253
 
        # Green Hills C++ Compiler
4254
 
        # FIXME: insert proper C++ library support
4255
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4256
 
        ;;
4257
 
      *)
4258
 
        # FIXME: insert proper C++ library support
4259
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4260
 
        ;;
4261
 
    esac
4262
 
    ;;
4263
 
  freebsd[[12]]*)
4264
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
4265
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4266
 
    ;;
4267
 
  freebsd-elf*)
4268
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4269
 
    ;;
4270
 
  freebsd* | dragonfly*)
4271
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4272
 
    # conventions
4273
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4274
 
    ;;
4275
 
  gnu*)
4276
 
    ;;
4277
 
  hpux9*)
4278
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4279
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4280
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4281
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4282
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4283
 
                                # but as the default
4284
 
                                # location of the library.
4285
 
 
4286
 
    case $cc_basename in
4287
 
    CC*)
4288
 
      # FIXME: insert proper C++ library support
4289
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4290
 
      ;;
4291
 
    aCC*)
4292
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4293
 
      # Commands to make compiler produce verbose output that lists
4294
 
      # what "hidden" libraries, object files and flags are used when
4295
 
      # linking a shared library.
4296
 
      #
4297
 
      # There doesn't appear to be a way to prevent this compiler from
4298
 
      # explicitly linking system object files so we need to strip them
4299
 
      # from the output so that they don't get included in the library
4300
 
      # dependencies.
4301
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4302
 
      ;;
4303
 
    *)
4304
 
      if test "$GXX" = yes; then
4305
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4306
 
      else
4307
 
        # FIXME: insert proper C++ library support
4308
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4309
 
      fi
4310
 
      ;;
4311
 
    esac
4312
 
    ;;
4313
 
  hpux10*|hpux11*)
4314
 
    if test $with_gnu_ld = no; then
4315
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4316
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4317
 
 
4318
 
      case $host_cpu in
4319
 
      hppa*64*|ia64*) ;;
4320
 
      *)
4321
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4322
 
        ;;
4323
 
      esac
4324
 
    fi
4325
 
    case $host_cpu in
4326
 
    hppa*64*|ia64*)
4327
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4328
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4329
 
      ;;
4330
 
    *)
4331
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4332
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4333
 
                                              # but as the default
4334
 
                                              # location of the library.
4335
 
      ;;
4336
 
    esac
4337
 
 
4338
 
    case $cc_basename in
4339
 
      CC*)
4340
 
        # FIXME: insert proper C++ library support
4341
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4342
 
        ;;
4343
 
      aCC*)
4344
 
        case $host_cpu in
4345
 
        hppa*64*)
4346
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4347
 
          ;;
4348
 
        ia64*)
4349
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4350
 
          ;;
4351
 
        *)
4352
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4353
 
          ;;
4354
 
        esac
4355
 
        # Commands to make compiler produce verbose output that lists
4356
 
        # what "hidden" libraries, object files and flags are used when
4357
 
        # linking a shared library.
4358
 
        #
4359
 
        # There doesn't appear to be a way to prevent this compiler from
4360
 
        # explicitly linking system object files so we need to strip them
4361
 
        # from the output so that they don't get included in the library
4362
 
        # dependencies.
4363
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4364
 
        ;;
4365
 
      *)
4366
 
        if test "$GXX" = yes; then
4367
 
          if test $with_gnu_ld = no; then
4368
 
            case $host_cpu in
4369
 
            hppa*64*)
4370
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4371
 
              ;;
4372
 
            ia64*)
4373
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4374
 
              ;;
4375
 
            *)
4376
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4377
 
              ;;
4378
 
            esac
4379
 
          fi
4380
 
        else
4381
 
          # FIXME: insert proper C++ library support
4382
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4383
 
        fi
4384
 
        ;;
4385
 
    esac
4386
 
    ;;
4387
 
  interix[[3-9]]*)
4388
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4389
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4390
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4391
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4392
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4393
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
4394
 
    # default) and relocated if they conflict, which is a slow very memory
4395
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
4396
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4397
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4398
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4399
 
    _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'
4400
 
    ;;
4401
 
  irix5* | irix6*)
4402
 
    case $cc_basename in
4403
 
      CC*)
4404
 
        # SGI C++
4405
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4406
 
 
4407
 
        # Archives containing C++ object files must be created using
4408
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4409
 
        # necessary to make sure instantiated templates are included
4410
 
        # in the archive.
4411
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4412
 
        ;;
4413
 
      *)
4414
 
        if test "$GXX" = yes; then
4415
 
          if test "$with_gnu_ld" = no; then
4416
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4417
 
          else
4418
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4419
 
          fi
4420
 
        fi
4421
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4422
 
        ;;
4423
 
    esac
4424
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4425
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4426
 
    ;;
4427
 
  linux* | k*bsd*-gnu)
4428
 
    case $cc_basename in
4429
 
      KCC*)
4430
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4431
 
 
4432
 
        # KCC will only create a shared library if the output file
4433
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4434
 
        # to its proper name (with version) after linking.
4435
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4436
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4437
 
        # Commands to make compiler produce verbose output that lists
4438
 
        # what "hidden" libraries, object files and flags are used when
4439
 
        # linking a shared library.
4440
 
        #
4441
 
        # There doesn't appear to be a way to prevent this compiler from
4442
 
        # explicitly linking system object files so we need to strip them
4443
 
        # from the output so that they don't get included in the library
4444
 
        # dependencies.
4445
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4446
 
 
4447
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4448
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4449
 
 
4450
 
        # Archives containing C++ object files must be created using
4451
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4452
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4453
 
        ;;
4454
 
      icpc*)
4455
 
        # Intel C++
4456
 
        with_gnu_ld=yes
4457
 
        # version 8.0 and above of icpc choke on multiply defined symbols
4458
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
4459
 
        # earlier do not add the objects themselves.
4460
 
        case `$CC -V 2>&1` in
4461
 
        *"Version 7."*)
4462
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4463
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4464
 
          ;;
4465
 
        *)  # Version 8.0 or newer
4466
 
          tmp_idyn=
4467
 
          case $host_cpu in
4468
 
            ia64*) tmp_idyn=' -i_dynamic';;
4469
 
          esac
4470
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4472
 
          ;;
4473
 
        esac
4474
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4475
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4476
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4477
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4478
 
        ;;
4479
 
      pgCC* | pgcpp*)
4480
 
        # Portland Group C++ compiler
4481
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4482
 
        _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'
4483
 
 
4484
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4485
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4486
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4487
 
        ;;
4488
 
      cxx*)
4489
 
        # Compaq C++
4490
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4491
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4492
 
 
4493
 
        runpath_var=LD_RUN_PATH
4494
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4495
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4496
 
 
4497
 
        # Commands to make compiler produce verbose output that lists
4498
 
        # what "hidden" libraries, object files and flags are used when
4499
 
        # linking a shared library.
4500
 
        #
4501
 
        # There doesn't appear to be a way to prevent this compiler from
4502
 
        # explicitly linking system object files so we need to strip them
4503
 
        # from the output so that they don't get included in the library
4504
 
        # dependencies.
4505
 
        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'
4506
 
        ;;
4507
 
      *)
4508
 
        case `$CC -V 2>&1 | sed 5q` in
4509
 
        *Sun\ C*)
4510
 
          # Sun C++ 5.9
4511
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4512
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4513
 
          _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'
4514
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4515
 
          _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'
4516
 
 
4517
 
          # Not sure whether something based on
4518
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4519
 
          # would be better.
4520
 
          output_verbose_link_cmd='echo'
4521
 
 
4522
 
          # Archives containing C++ object files must be created using
4523
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4524
 
          # necessary to make sure instantiated templates are included
4525
 
          # in the archive.
4526
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4527
 
          ;;
4528
 
        esac
4529
 
        ;;
4530
 
    esac
4531
 
    ;;
4532
 
  lynxos*)
4533
 
    # FIXME: insert proper C++ library support
4534
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4535
 
    ;;
4536
 
  m88k*)
4537
 
    # FIXME: insert proper C++ library support
4538
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4539
 
    ;;
4540
 
  mvs*)
4541
 
    case $cc_basename in
4542
 
      cxx*)
4543
 
        # FIXME: insert proper C++ library support
4544
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4545
 
        ;;
4546
 
      *)
4547
 
        # FIXME: insert proper C++ library support
4548
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4549
 
        ;;
4550
 
    esac
4551
 
    ;;
4552
 
  netbsd*)
4553
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4554
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4555
 
      wlarc=
4556
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4557
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4558
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4559
 
    fi
4560
 
    # Workaround some broken pre-1.5 toolchains
4561
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4562
 
    ;;
4563
 
  openbsd2*)
4564
 
    # C++ shared libraries are fairly broken
4565
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4566
 
    ;;
4567
 
  openbsd*)
4568
 
    if test -f /usr/libexec/ld.so; then
4569
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4570
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4571
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4572
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4573
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4574
 
        _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'
4575
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4576
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4577
 
      fi
4578
 
      output_verbose_link_cmd='echo'
4579
 
    else
4580
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4581
 
    fi
4582
 
    ;;
4583
 
  osf3*)
4584
 
    case $cc_basename in
4585
 
      KCC*)
4586
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4587
 
 
4588
 
        # KCC will only create a shared library if the output file
4589
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4590
 
        # to its proper name (with version) after linking.
4591
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4592
 
 
4593
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4594
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4595
 
 
4596
 
        # Archives containing C++ object files must be created using
4597
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4598
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4599
 
 
4600
 
        ;;
4601
 
      RCC*)
4602
 
        # Rational C++ 2.4.1
4603
 
        # FIXME: insert proper C++ library support
4604
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4605
 
        ;;
4606
 
      cxx*)
4607
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4608
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4609
 
 
4610
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4611
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4612
 
 
4613
 
        # Commands to make compiler produce verbose output that lists
4614
 
        # what "hidden" libraries, object files and flags are used when
4615
 
        # linking a shared library.
4616
 
        #
4617
 
        # There doesn't appear to be a way to prevent this compiler from
4618
 
        # explicitly linking system object files so we need to strip them
4619
 
        # from the output so that they don't get included in the library
4620
 
        # dependencies.
4621
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
4622
 
        ;;
4623
 
      *)
4624
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4625
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4626
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4627
 
 
4628
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4629
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4630
 
 
4631
 
          # Commands to make compiler produce verbose output that lists
4632
 
          # what "hidden" libraries, object files and flags are used when
4633
 
          # linking a shared library.
4634
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4635
 
 
4636
 
        else
4637
 
          # FIXME: insert proper C++ library support
4638
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4639
 
        fi
4640
 
        ;;
4641
 
    esac
4642
 
    ;;
4643
 
  osf4* | osf5*)
4644
 
    case $cc_basename in
4645
 
      KCC*)
4646
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4647
 
 
4648
 
        # KCC will only create a shared library if the output file
4649
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4650
 
        # to its proper name (with version) after linking.
4651
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4652
 
 
4653
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4654
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4655
 
 
4656
 
        # Archives containing C++ object files must be created using
4657
 
        # the KAI C++ compiler.
4658
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4659
 
        ;;
4660
 
      RCC*)
4661
 
        # Rational C++ 2.4.1
4662
 
        # FIXME: insert proper C++ library support
4663
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4664
 
        ;;
4665
 
      cxx*)
4666
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4667
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4668
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4669
 
          echo "-hidden">> $lib.exp~
4670
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4671
 
          $rm $lib.exp'
4672
 
 
4673
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4674
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4675
 
 
4676
 
        # Commands to make compiler produce verbose output that lists
4677
 
        # what "hidden" libraries, object files and flags are used when
4678
 
        # linking a shared library.
4679
 
        #
4680
 
        # There doesn't appear to be a way to prevent this compiler from
4681
 
        # explicitly linking system object files so we need to strip them
4682
 
        # from the output so that they don't get included in the library
4683
 
        # dependencies.
4684
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
4685
 
        ;;
4686
 
      *)
4687
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4688
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4689
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4690
 
 
4691
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4692
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4693
 
 
4694
 
          # Commands to make compiler produce verbose output that lists
4695
 
          # what "hidden" libraries, object files and flags are used when
4696
 
          # linking a shared library.
4697
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4698
 
 
4699
 
        else
4700
 
          # FIXME: insert proper C++ library support
4701
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4702
 
        fi
4703
 
        ;;
4704
 
    esac
4705
 
    ;;
4706
 
  psos*)
4707
 
    # FIXME: insert proper C++ library support
4708
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4709
 
    ;;
4710
 
  sunos4*)
4711
 
    case $cc_basename in
4712
 
      CC*)
4713
 
        # Sun C++ 4.x
4714
 
        # FIXME: insert proper C++ library support
4715
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4716
 
        ;;
4717
 
      lcc*)
4718
 
        # Lucid
4719
 
        # FIXME: insert proper C++ library support
4720
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4721
 
        ;;
4722
 
      *)
4723
 
        # FIXME: insert proper C++ library support
4724
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4725
 
        ;;
4726
 
    esac
4727
 
    ;;
4728
 
  solaris*)
4729
 
    case $cc_basename in
4730
 
      CC*)
4731
 
        # Sun C++ 4.2, 5.x and Centerline C++
4732
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4733
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4734
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4735
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4736
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4737
 
 
4738
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4739
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4740
 
        case $host_os in
4741
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4742
 
          *)
4743
 
            # The compiler driver will combine and reorder linker options,
4744
 
            # but understands `-z linker_flag'.
4745
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4746
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4747
 
            ;;
4748
 
        esac
4749
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4750
 
 
4751
 
        output_verbose_link_cmd='echo'
4752
 
 
4753
 
        # Archives containing C++ object files must be created using
4754
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4755
 
        # necessary to make sure instantiated templates are included
4756
 
        # in the archive.
4757
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4758
 
        ;;
4759
 
      gcx*)
4760
 
        # Green Hills C++ Compiler
4761
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4762
 
 
4763
 
        # The C++ compiler must be used to create the archive.
4764
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4765
 
        ;;
4766
 
      *)
4767
 
        # GNU C++ compiler with Solaris linker
4768
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4769
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4770
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4771
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4772
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4773
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4774
 
 
4775
 
            # Commands to make compiler produce verbose output that lists
4776
 
            # what "hidden" libraries, object files and flags are used when
4777
 
            # linking a shared library.
4778
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4779
 
          else
4780
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4781
 
            # platform.
4782
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4783
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4784
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4785
 
 
4786
 
            # Commands to make compiler produce verbose output that lists
4787
 
            # what "hidden" libraries, object files and flags are used when
4788
 
            # linking a shared library.
4789
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4790
 
          fi
4791
 
 
4792
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4793
 
          case $host_os in
4794
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4795
 
          *)
4796
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4797
 
            ;;
4798
 
          esac
4799
 
        fi
4800
 
        ;;
4801
 
    esac
4802
 
    ;;
4803
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4804
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4805
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4806
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4807
 
    runpath_var='LD_RUN_PATH'
4808
 
 
4809
 
    case $cc_basename in
4810
 
      CC*)
4811
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4812
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4813
 
        ;;
4814
 
      *)
4815
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4816
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4817
 
        ;;
4818
 
    esac
4819
 
    ;;
4820
 
  sysv5* | sco3.2v5* | sco5v6*)
4821
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4822
 
    # link with -lc, and that would cause any symbols used from libc to
4823
 
    # always be unresolved, which means just about no library would
4824
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4825
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4826
 
    # as -z defs.
4827
 
    # For security reasons, it is highly recommended that you always
4828
 
    # use absolute paths for naming shared libraries, and exclude the
4829
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4830
 
    # requires that you compile everything twice, which is a pain.
4831
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4832
 
    # non-empty value in the environment.  Most likely only useful for
4833
 
    # creating official distributions of packages.
4834
 
    # This is a hack until libtool officially supports absolute path
4835
 
    # names for shared libraries.
4836
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4837
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4838
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4839
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4840
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4841
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4842
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4843
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4844
 
    runpath_var='LD_RUN_PATH'
4845
 
 
4846
 
    case $cc_basename in
4847
 
      CC*)
4848
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4849
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4850
 
        ;;
4851
 
      *)
4852
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4853
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4854
 
        ;;
4855
 
    esac
4856
 
    ;;
4857
 
  tandem*)
4858
 
    case $cc_basename in
4859
 
      NCC*)
4860
 
        # NonStop-UX NCC 3.20
4861
 
        # FIXME: insert proper C++ library support
4862
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4863
 
        ;;
4864
 
      *)
4865
 
        # FIXME: insert proper C++ library support
4866
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4867
 
        ;;
4868
 
    esac
4869
 
    ;;
4870
 
  vxworks*)
4871
 
    # FIXME: insert proper C++ library support
4872
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4873
 
    ;;
4874
 
  *)
4875
 
    # FIXME: insert proper C++ library support
4876
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4877
 
    ;;
4878
 
esac
4879
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4880
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4881
 
 
4882
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4883
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4884
 
 
4885
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4886
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4887
 
AC_LIBTOOL_PROG_CC_C_O($1)
4888
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4889
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4890
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4891
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4892
 
 
4893
 
AC_LIBTOOL_CONFIG($1)
4894
 
 
4895
 
AC_LANG_POP
4896
 
CC=$lt_save_CC
4897
 
LDCXX=$LD
4898
 
LD=$lt_save_LD
4899
 
GCC=$lt_save_GCC
4900
 
with_gnu_ldcxx=$with_gnu_ld
4901
 
with_gnu_ld=$lt_save_with_gnu_ld
4902
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4903
 
lt_cv_path_LD=$lt_save_path_LD
4904
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4905
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4906
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4907
 
 
4908
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4909
 
# ------------------------------------
4910
 
# Figure out "hidden" library dependencies from verbose
4911
 
# compiler output when linking a shared library.
4912
 
# Parse the compiler output and extract the necessary
4913
 
# objects, libraries and library flags.
4914
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4915
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4916
 
dnl we can't use the lt_simple_compile_test_code here,
4917
 
dnl because it contains code intended for an executable,
4918
 
dnl not a library.  It's possible we should let each
4919
 
dnl tag define a new lt_????_link_test_code variable,
4920
 
dnl but it's only used here...
4921
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4922
 
int a;
4923
 
void foo (void) { a = 0; }
4924
 
EOF
4925
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4926
 
class Foo
4927
 
{
4928
 
public:
4929
 
  Foo (void) { a = 0; }
4930
 
private:
4931
 
  int a;
4932
 
};
4933
 
EOF
4934
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4935
 
      subroutine foo
4936
 
      implicit none
4937
 
      integer*4 a
4938
 
      a=0
4939
 
      return
4940
 
      end
4941
 
EOF
4942
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4943
 
public class foo {
4944
 
  private int a;
4945
 
  public void bar (void) {
4946
 
    a = 0;
4947
 
  }
4948
 
};
4949
 
EOF
4950
 
])
4951
 
dnl Parse the compiler output and extract the necessary
4952
 
dnl objects, libraries and library flags.
4953
 
if AC_TRY_EVAL(ac_compile); then
4954
 
  # Parse the compiler output and extract the necessary
4955
 
  # objects, libraries and library flags.
4956
 
 
4957
 
  # Sentinel used to keep track of whether or not we are before
4958
 
  # the conftest object file.
4959
 
  pre_test_object_deps_done=no
4960
 
 
4961
 
  # The `*' in the case matches for architectures that use `case' in
4962
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4963
 
  # eval without this substitution.
4964
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4965
 
 
4966
 
  for p in `eval $output_verbose_link_cmd`; do
4967
 
    case $p in
4968
 
 
4969
 
    -L* | -R* | -l*)
4970
 
       # Some compilers place space between "-{L,R}" and the path.
4971
 
       # Remove the space.
4972
 
       if test $p = "-L" \
4973
 
          || test $p = "-R"; then
4974
 
         prev=$p
4975
 
         continue
4976
 
       else
4977
 
         prev=
4978
 
       fi
4979
 
 
4980
 
       if test "$pre_test_object_deps_done" = no; then
4981
 
         case $p in
4982
 
         -L* | -R*)
4983
 
           # Internal compiler library paths should come after those
4984
 
           # provided the user.  The postdeps already come after the
4985
 
           # user supplied libs so there is no need to process them.
4986
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4987
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4988
 
           else
4989
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4990
 
           fi
4991
 
           ;;
4992
 
         # The "-l" case would never come before the object being
4993
 
         # linked, so don't bother handling this case.
4994
 
         esac
4995
 
       else
4996
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4997
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4998
 
         else
4999
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5000
 
         fi
5001
 
       fi
5002
 
       ;;
5003
 
 
5004
 
    *.$objext)
5005
 
       # This assumes that the test object file only shows up
5006
 
       # once in the compiler output.
5007
 
       if test "$p" = "conftest.$objext"; then
5008
 
         pre_test_object_deps_done=yes
5009
 
         continue
5010
 
       fi
5011
 
 
5012
 
       if test "$pre_test_object_deps_done" = no; then
5013
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5014
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
5015
 
         else
5016
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5017
 
         fi
5018
 
       else
5019
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5020
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5021
 
         else
5022
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5023
 
         fi
5024
 
       fi
5025
 
       ;;
5026
 
 
5027
 
    *) ;; # Ignore the rest.
5028
 
 
5029
 
    esac
5030
 
  done
5031
 
 
5032
 
  # Clean up.
5033
 
  rm -f a.out a.exe
5034
 
else
5035
 
  echo "libtool.m4: error: problem compiling $1 test program"
5036
 
fi
5037
 
 
5038
 
$rm -f confest.$objext
5039
 
 
5040
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5041
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5042
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
5043
 
fi
5044
 
 
5045
 
# PORTME: override above test on systems where it is broken
5046
 
ifelse([$1],[CXX],
5047
 
[case $host_os in
5048
 
interix[[3-9]]*)
5049
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
5050
 
  # hack all around it, let's just trust "g++" to DTRT.
5051
 
  _LT_AC_TAGVAR(predep_objects,$1)=
5052
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
5053
 
  _LT_AC_TAGVAR(postdeps,$1)=
5054
 
  ;;
5055
 
 
5056
 
linux*)
5057
 
  case `$CC -V 2>&1 | sed 5q` in
5058
 
  *Sun\ C*)
5059
 
    # Sun C++ 5.9
5060
 
    #
5061
 
    # The more standards-conforming stlport4 library is
5062
 
    # incompatible with the Cstd library. Avoid specifying
5063
 
    # it if it's in CXXFLAGS. Ignore libCrun as
5064
 
    # -library=stlport4 depends on it.
5065
 
    case " $CXX $CXXFLAGS " in
5066
 
    *" -library=stlport4 "*)
5067
 
      solaris_use_stlport4=yes
5068
 
      ;;
5069
 
    esac
5070
 
    if test "$solaris_use_stlport4" != yes; then
5071
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5072
 
    fi
5073
 
    ;;
5074
 
  esac
5075
 
  ;;
5076
 
 
5077
 
solaris*)
5078
 
  case $cc_basename in
5079
 
  CC*)
5080
 
    # The more standards-conforming stlport4 library is
5081
 
    # incompatible with the Cstd library. Avoid specifying
5082
 
    # it if it's in CXXFLAGS. Ignore libCrun as
5083
 
    # -library=stlport4 depends on it.
5084
 
    case " $CXX $CXXFLAGS " in
5085
 
    *" -library=stlport4 "*)
5086
 
      solaris_use_stlport4=yes
5087
 
      ;;
5088
 
    esac
5089
 
 
5090
 
    # Adding this requires a known-good setup of shared libraries for
5091
 
    # Sun compiler versions before 5.6, else PIC objects from an old
5092
 
    # archive will be linked into the output, leading to subtle bugs.
5093
 
    if test "$solaris_use_stlport4" != yes; then
5094
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5095
 
    fi
5096
 
    ;;
5097
 
  esac
5098
 
  ;;
5099
 
esac
5100
 
])
5101
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5102
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5103
 
esac
5104
 
])# AC_LIBTOOL_POSTDEP_PREDEP
5105
 
 
5106
 
# AC_LIBTOOL_LANG_F77_CONFIG
5107
 
# --------------------------
5108
 
# Ensure that the configuration vars for the C compiler are
5109
 
# suitably defined.  Those variables are subsequently used by
5110
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5111
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5112
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5113
 
[AC_REQUIRE([AC_PROG_F77])
5114
 
AC_LANG_PUSH(Fortran 77)
5115
 
 
5116
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5117
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5118
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5119
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5120
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5121
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5122
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5123
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5124
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5125
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5126
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5127
 
_LT_AC_TAGVAR(module_cmds, $1)=
5128
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5129
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5130
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5131
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5132
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5133
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5134
 
 
5135
 
# Source file extension for f77 test sources.
5136
 
ac_ext=f
5137
 
 
5138
 
# Object file extension for compiled f77 test sources.
5139
 
objext=o
5140
 
_LT_AC_TAGVAR(objext, $1)=$objext
5141
 
 
5142
 
# Code to be used in simple compile tests
5143
 
lt_simple_compile_test_code="\
5144
 
      subroutine t
5145
 
      return
5146
 
      end
5147
 
"
5148
 
 
5149
 
# Code to be used in simple link tests
5150
 
lt_simple_link_test_code="\
5151
 
      program t
5152
 
      end
5153
 
"
5154
 
 
5155
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5156
 
_LT_AC_SYS_COMPILER
5157
 
 
5158
 
# save warnings/boilerplate of simple test code
5159
 
_LT_COMPILER_BOILERPLATE
5160
 
_LT_LINKER_BOILERPLATE
5161
 
 
5162
 
# Allow CC to be a program name with arguments.
5163
 
lt_save_CC="$CC"
5164
 
CC=${F77-"f77"}
5165
 
compiler=$CC
5166
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5167
 
_LT_CC_BASENAME([$compiler])
5168
 
 
5169
 
AC_MSG_CHECKING([if libtool supports shared libraries])
5170
 
AC_MSG_RESULT([$can_build_shared])
5171
 
 
5172
 
AC_MSG_CHECKING([whether to build shared libraries])
5173
 
test "$can_build_shared" = "no" && enable_shared=no
5174
 
 
5175
 
# On AIX, shared libraries and static libraries use the same namespace, and
5176
 
# are all built from PIC.
5177
 
case $host_os in
5178
 
aix3*)
5179
 
  test "$enable_shared" = yes && enable_static=no
5180
 
  if test -n "$RANLIB"; then
5181
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5182
 
    postinstall_cmds='$RANLIB $lib'
5183
 
  fi
5184
 
  ;;
5185
 
aix[[4-9]]*)
5186
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5187
 
    test "$enable_shared" = yes && enable_static=no
5188
 
  fi
5189
 
  ;;
5190
 
esac
5191
 
AC_MSG_RESULT([$enable_shared])
5192
 
 
5193
 
AC_MSG_CHECKING([whether to build static libraries])
5194
 
# Make sure either enable_shared or enable_static is yes.
5195
 
test "$enable_shared" = yes || enable_static=yes
5196
 
AC_MSG_RESULT([$enable_static])
5197
 
 
5198
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
5199
 
_LT_AC_TAGVAR(LD, $1)="$LD"
5200
 
 
5201
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5202
 
AC_LIBTOOL_PROG_CC_C_O($1)
5203
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5204
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5205
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5206
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5207
 
 
5208
 
AC_LIBTOOL_CONFIG($1)
5209
 
 
5210
 
AC_LANG_POP
5211
 
CC="$lt_save_CC"
5212
 
])# AC_LIBTOOL_LANG_F77_CONFIG
5213
 
 
5214
 
 
5215
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
5216
 
# --------------------------
5217
 
# Ensure that the configuration vars for the C compiler are
5218
 
# suitably defined.  Those variables are subsequently used by
5219
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5220
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5221
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5222
 
[AC_LANG_SAVE
5223
 
 
5224
 
# Source file extension for Java test sources.
5225
 
ac_ext=java
5226
 
 
5227
 
# Object file extension for compiled Java test sources.
5228
 
objext=o
5229
 
_LT_AC_TAGVAR(objext, $1)=$objext
5230
 
 
5231
 
# Code to be used in simple compile tests
5232
 
lt_simple_compile_test_code="class foo {}"
5233
 
 
5234
 
# Code to be used in simple link tests
5235
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5236
 
 
5237
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5238
 
_LT_AC_SYS_COMPILER
5239
 
 
5240
 
# save warnings/boilerplate of simple test code
5241
 
_LT_COMPILER_BOILERPLATE
5242
 
_LT_LINKER_BOILERPLATE
5243
 
 
5244
 
# Allow CC to be a program name with arguments.
5245
 
lt_save_CC="$CC"
5246
 
CC=${GCJ-"gcj"}
5247
 
compiler=$CC
5248
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5249
 
_LT_CC_BASENAME([$compiler])
5250
 
 
5251
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5252
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5253
 
 
5254
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5255
 
 
5256
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5257
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5258
 
AC_LIBTOOL_PROG_CC_C_O($1)
5259
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5260
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5261
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5262
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5263
 
 
5264
 
AC_LIBTOOL_CONFIG($1)
5265
 
 
5266
 
AC_LANG_RESTORE
5267
 
CC="$lt_save_CC"
5268
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5269
 
 
5270
 
 
5271
 
# AC_LIBTOOL_LANG_RC_CONFIG
5272
 
# -------------------------
5273
 
# Ensure that the configuration vars for the Windows resource compiler are
5274
 
# suitably defined.  Those variables are subsequently used by
5275
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5276
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5277
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5278
 
[AC_LANG_SAVE
5279
 
 
5280
 
# Source file extension for RC test sources.
5281
 
ac_ext=rc
5282
 
 
5283
 
# Object file extension for compiled RC test sources.
5284
 
objext=o
5285
 
_LT_AC_TAGVAR(objext, $1)=$objext
5286
 
 
5287
 
# Code to be used in simple compile tests
5288
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5289
 
 
5290
 
# Code to be used in simple link tests
5291
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
5292
 
 
5293
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5294
 
_LT_AC_SYS_COMPILER
5295
 
 
5296
 
# save warnings/boilerplate of simple test code
5297
 
_LT_COMPILER_BOILERPLATE
5298
 
_LT_LINKER_BOILERPLATE
5299
 
 
5300
 
# Allow CC to be a program name with arguments.
5301
 
lt_save_CC="$CC"
5302
 
CC=${RC-"windres"}
5303
 
compiler=$CC
5304
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5305
 
_LT_CC_BASENAME([$compiler])
5306
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5307
 
 
5308
 
AC_LIBTOOL_CONFIG($1)
5309
 
 
5310
 
AC_LANG_RESTORE
5311
 
CC="$lt_save_CC"
5312
 
])# AC_LIBTOOL_LANG_RC_CONFIG
5313
 
 
5314
 
 
5315
 
# AC_LIBTOOL_CONFIG([TAGNAME])
5316
 
# ----------------------------
5317
 
# If TAGNAME is not passed, then create an initial libtool script
5318
 
# with a default configuration from the untagged config vars.  Otherwise
5319
 
# add code to config.status for appending the configuration named by
5320
 
# TAGNAME from the matching tagged config vars.
5321
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
5322
 
[# The else clause should only fire when bootstrapping the
5323
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
5324
 
# with your package, and you will get complaints that there are
5325
 
# no rules to generate ltmain.sh.
5326
 
if test -f "$ltmain"; then
5327
 
  # See if we are running on zsh, and set the options which allow our commands through
5328
 
  # without removal of \ escapes.
5329
 
  if test -n "${ZSH_VERSION+set}" ; then
5330
 
    setopt NO_GLOB_SUBST
5331
 
  fi
5332
 
  # Now quote all the things that may contain metacharacters while being
5333
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5334
 
  # variables and quote the copies for generation of the libtool script.
5335
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5336
 
    SED SHELL STRIP \
5337
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5338
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5339
 
    deplibs_check_method reload_flag reload_cmds need_locks \
5340
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5341
 
    lt_cv_sys_global_symbol_to_c_name_address \
5342
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5343
 
    old_postinstall_cmds old_postuninstall_cmds \
5344
 
    _LT_AC_TAGVAR(compiler, $1) \
5345
 
    _LT_AC_TAGVAR(CC, $1) \
5346
 
    _LT_AC_TAGVAR(LD, $1) \
5347
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5348
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5349
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5350
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5351
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5352
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5353
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5354
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5355
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
5356
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5357
 
    _LT_AC_TAGVAR(predep_objects, $1) \
5358
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
5359
 
    _LT_AC_TAGVAR(predeps, $1) \
5360
 
    _LT_AC_TAGVAR(postdeps, $1) \
5361
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5362
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5363
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
5364
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5365
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5366
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5367
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5368
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5369
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
5370
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5371
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5372
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5373
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5374
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
5375
 
    _LT_AC_TAGVAR(module_cmds, $1) \
5376
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5377
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5378
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5379
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5380
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
5381
 
 
5382
 
    case $var in
5383
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5384
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5385
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
5386
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5387
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
5388
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5389
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5390
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5391
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5392
 
    postinstall_cmds | postuninstall_cmds | \
5393
 
    old_postinstall_cmds | old_postuninstall_cmds | \
5394
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5395
 
      # Double-quote double-evaled strings.
5396
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5397
 
      ;;
5398
 
    *)
5399
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5400
 
      ;;
5401
 
    esac
5402
 
  done
5403
 
 
5404
 
  case $lt_echo in
5405
 
  *'\[$]0 --fallback-echo"')
5406
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5407
 
    ;;
5408
 
  esac
5409
 
 
5410
 
ifelse([$1], [],
5411
 
  [cfgfile="${ofile}T"
5412
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5413
 
  $rm -f "$cfgfile"
5414
 
  AC_MSG_NOTICE([creating $ofile])],
5415
 
  [cfgfile="$ofile"])
5416
 
 
5417
 
  cat <<__EOF__ >> "$cfgfile"
5418
 
ifelse([$1], [],
5419
 
[#! $SHELL
5420
 
 
5421
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5422
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5423
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5424
 
#
5425
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5426
 
# Free Software Foundation, Inc.
5427
 
#
5428
 
# This file is part of GNU Libtool:
5429
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5430
 
#
5431
 
# This program is free software; you can redistribute it and/or modify
5432
 
# it under the terms of the GNU General Public License as published by
5433
 
# the Free Software Foundation; either version 2 of the License, or
5434
 
# (at your option) any later version.
5435
 
#
5436
 
# This program is distributed in the hope that it will be useful, but
5437
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
5438
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5439
 
# General Public License for more details.
5440
 
#
5441
 
# You should have received a copy of the GNU General Public License
5442
 
# along with this program; if not, write to the Free Software
5443
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5444
 
#
5445
 
# As a special exception to the GNU General Public License, if you
5446
 
# distribute this file as part of a program that contains a
5447
 
# configuration script generated by Autoconf, you may include it under
5448
 
# the same distribution terms that you use for the rest of that program.
5449
 
 
5450
 
# A sed program that does not truncate output.
5451
 
SED=$lt_SED
5452
 
 
5453
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5454
 
Xsed="$SED -e 1s/^X//"
5455
 
 
5456
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
5457
 
# if CDPATH is set.
5458
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5459
 
 
5460
 
# The names of the tagged configurations supported by this script.
5461
 
available_tags=
5462
 
 
5463
 
# ### BEGIN LIBTOOL CONFIG],
5464
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5465
 
 
5466
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5467
 
 
5468
 
# Shell to use when invoking shell scripts.
5469
 
SHELL=$lt_SHELL
5470
 
 
5471
 
# Whether or not to build shared libraries.
5472
 
build_libtool_libs=$enable_shared
5473
 
 
5474
 
# Whether or not to build static libraries.
5475
 
build_old_libs=$enable_static
5476
 
 
5477
 
# Whether or not to add -lc for building shared libraries.
5478
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5479
 
 
5480
 
# Whether or not to disallow shared libs when runtime libs are static
5481
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5482
 
 
5483
 
# Whether or not to optimize for fast installation.
5484
 
fast_install=$enable_fast_install
5485
 
 
5486
 
# The host system.
5487
 
host_alias=$host_alias
5488
 
host=$host
5489
 
host_os=$host_os
5490
 
 
5491
 
# The build system.
5492
 
build_alias=$build_alias
5493
 
build=$build
5494
 
build_os=$build_os
5495
 
 
5496
 
# An echo program that does not interpret backslashes.
5497
 
echo=$lt_echo
5498
 
 
5499
 
# The archiver.
5500
 
AR=$lt_AR
5501
 
AR_FLAGS=$lt_AR_FLAGS
5502
 
 
5503
 
# A C compiler.
5504
 
LTCC=$lt_LTCC
5505
 
 
5506
 
# LTCC compiler flags.
5507
 
LTCFLAGS=$lt_LTCFLAGS
5508
 
 
5509
 
# A language-specific compiler.
5510
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5511
 
 
5512
 
# Is the compiler the GNU C compiler?
5513
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5514
 
 
5515
 
# An ERE matcher.
5516
 
EGREP=$lt_EGREP
5517
 
 
5518
 
# The linker used to build libraries.
5519
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5520
 
 
5521
 
# Whether we need hard or soft links.
5522
 
LN_S=$lt_LN_S
5523
 
 
5524
 
# A BSD-compatible nm program.
5525
 
NM=$lt_NM
5526
 
 
5527
 
# A symbol stripping program
5528
 
STRIP=$lt_STRIP
5529
 
 
5530
 
# Used to examine libraries when file_magic_cmd begins "file"
5531
 
MAGIC_CMD=$MAGIC_CMD
5532
 
 
5533
 
# Used on cygwin: DLL creation program.
5534
 
DLLTOOL="$DLLTOOL"
5535
 
 
5536
 
# Used on cygwin: object dumper.
5537
 
OBJDUMP="$OBJDUMP"
5538
 
 
5539
 
# Used on cygwin: assembler.
5540
 
AS="$AS"
5541
 
 
5542
 
# The name of the directory that contains temporary libtool files.
5543
 
objdir=$objdir
5544
 
 
5545
 
# How to create reloadable object files.
5546
 
reload_flag=$lt_reload_flag
5547
 
reload_cmds=$lt_reload_cmds
5548
 
 
5549
 
# How to pass a linker flag through the compiler.
5550
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5551
 
 
5552
 
# Object file suffix (normally "o").
5553
 
objext="$ac_objext"
5554
 
 
5555
 
# Old archive suffix (normally "a").
5556
 
libext="$libext"
5557
 
 
5558
 
# Shared library suffix (normally ".so").
5559
 
shrext_cmds='$shrext_cmds'
5560
 
 
5561
 
# Executable file suffix (normally "").
5562
 
exeext="$exeext"
5563
 
 
5564
 
# Additional compiler flags for building library objects.
5565
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5566
 
pic_mode=$pic_mode
5567
 
 
5568
 
# What is the maximum length of a command?
5569
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5570
 
 
5571
 
# Does compiler simultaneously support -c and -o options?
5572
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5573
 
 
5574
 
# Must we lock files when doing compilation?
5575
 
need_locks=$lt_need_locks
5576
 
 
5577
 
# Do we need the lib prefix for modules?
5578
 
need_lib_prefix=$need_lib_prefix
5579
 
 
5580
 
# Do we need a version for libraries?
5581
 
need_version=$need_version
5582
 
 
5583
 
# Whether dlopen is supported.
5584
 
dlopen_support=$enable_dlopen
5585
 
 
5586
 
# Whether dlopen of programs is supported.
5587
 
dlopen_self=$enable_dlopen_self
5588
 
 
5589
 
# Whether dlopen of statically linked programs is supported.
5590
 
dlopen_self_static=$enable_dlopen_self_static
5591
 
 
5592
 
# Compiler flag to prevent dynamic linking.
5593
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5594
 
 
5595
 
# Compiler flag to turn off builtin functions.
5596
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5597
 
 
5598
 
# Compiler flag to allow reflexive dlopens.
5599
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5600
 
 
5601
 
# Compiler flag to generate shared objects directly from archives.
5602
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5603
 
 
5604
 
# Compiler flag to generate thread-safe objects.
5605
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5606
 
 
5607
 
# Library versioning type.
5608
 
version_type=$version_type
5609
 
 
5610
 
# Format of library name prefix.
5611
 
libname_spec=$lt_libname_spec
5612
 
 
5613
 
# List of archive names.  First name is the real one, the rest are links.
5614
 
# The last name is the one that the linker finds with -lNAME.
5615
 
library_names_spec=$lt_library_names_spec
5616
 
 
5617
 
# The coded name of the library, if different from the real name.
5618
 
soname_spec=$lt_soname_spec
5619
 
 
5620
 
# Commands used to build and install an old-style archive.
5621
 
RANLIB=$lt_RANLIB
5622
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5623
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5624
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5625
 
 
5626
 
# Create an old-style archive from a shared archive.
5627
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5628
 
 
5629
 
# Create a temporary old-style archive to link instead of a shared archive.
5630
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5631
 
 
5632
 
# Commands used to build and install a shared archive.
5633
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5634
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5635
 
postinstall_cmds=$lt_postinstall_cmds
5636
 
postuninstall_cmds=$lt_postuninstall_cmds
5637
 
 
5638
 
# Commands used to build a loadable module (assumed same as above if empty)
5639
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5640
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5641
 
 
5642
 
# Commands to strip libraries.
5643
 
old_striplib=$lt_old_striplib
5644
 
striplib=$lt_striplib
5645
 
 
5646
 
# Dependencies to place before the objects being linked to create a
5647
 
# shared library.
5648
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5649
 
 
5650
 
# Dependencies to place after the objects being linked to create a
5651
 
# shared library.
5652
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5653
 
 
5654
 
# Dependencies to place before the objects being linked to create a
5655
 
# shared library.
5656
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5657
 
 
5658
 
# Dependencies to place after the objects being linked to create a
5659
 
# shared library.
5660
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5661
 
 
5662
 
# The directories searched by this compiler when creating a shared
5663
 
# library
5664
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5665
 
 
5666
 
# The library search path used internally by the compiler when linking
5667
 
# a shared library.
5668
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5669
 
 
5670
 
# Method to check whether dependent libraries are shared objects.
5671
 
deplibs_check_method=$lt_deplibs_check_method
5672
 
 
5673
 
# Command to use when deplibs_check_method == file_magic.
5674
 
file_magic_cmd=$lt_file_magic_cmd
5675
 
 
5676
 
# Flag that allows shared libraries with undefined symbols to be built.
5677
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5678
 
 
5679
 
# Flag that forces no undefined symbols.
5680
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5681
 
 
5682
 
# Commands used to finish a libtool library installation in a directory.
5683
 
finish_cmds=$lt_finish_cmds
5684
 
 
5685
 
# Same as above, but a single script fragment to be evaled but not shown.
5686
 
finish_eval=$lt_finish_eval
5687
 
 
5688
 
# Take the output of nm and produce a listing of raw symbols and C names.
5689
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5690
 
 
5691
 
# Transform the output of nm in a proper C declaration
5692
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5693
 
 
5694
 
# Transform the output of nm in a C name address pair
5695
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5696
 
 
5697
 
# This is the shared library runtime path variable.
5698
 
runpath_var=$runpath_var
5699
 
 
5700
 
# This is the shared library path variable.
5701
 
shlibpath_var=$shlibpath_var
5702
 
 
5703
 
# Is shlibpath searched before the hard-coded library search path?
5704
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5705
 
 
5706
 
# How to hardcode a shared library path into an executable.
5707
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5708
 
 
5709
 
# Whether we should hardcode library paths into libraries.
5710
 
hardcode_into_libs=$hardcode_into_libs
5711
 
 
5712
 
# Flag to hardcode \$libdir into a binary during linking.
5713
 
# This must work even if \$libdir does not exist.
5714
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5715
 
 
5716
 
# If ld is used when linking, flag to hardcode \$libdir into
5717
 
# a binary during linking. This must work even if \$libdir does
5718
 
# not exist.
5719
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5720
 
 
5721
 
# Whether we need a single -rpath flag with a separated argument.
5722
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5723
 
 
5724
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5725
 
# resulting binary.
5726
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5727
 
 
5728
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5729
 
# resulting binary.
5730
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5731
 
 
5732
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5733
 
# the resulting binary.
5734
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5735
 
 
5736
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5737
 
# and all subsequent libraries and executables linked against it.
5738
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5739
 
 
5740
 
# Variables whose values should be saved in libtool wrapper scripts and
5741
 
# restored at relink time.
5742
 
variables_saved_for_relink="$variables_saved_for_relink"
5743
 
 
5744
 
# Whether libtool must link a program against all its dependency libraries.
5745
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5746
 
 
5747
 
# Compile-time system search path for libraries
5748
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5749
 
 
5750
 
# Run-time system search path for libraries
5751
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5752
 
 
5753
 
# Fix the shell variable \$srcfile for the compiler.
5754
 
fix_srcfile_path=$lt_fix_srcfile_path
5755
 
 
5756
 
# Set to yes if exported symbols are required.
5757
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5758
 
 
5759
 
# The commands to list exported symbols.
5760
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5761
 
 
5762
 
# The commands to extract the exported symbol list from a shared archive.
5763
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5764
 
 
5765
 
# Symbols that should not be listed in the preloaded symbols.
5766
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5767
 
 
5768
 
# Symbols that must always be exported.
5769
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5770
 
 
5771
 
ifelse([$1],[],
5772
 
[# ### END LIBTOOL CONFIG],
5773
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5774
 
 
5775
 
__EOF__
5776
 
 
5777
 
ifelse([$1],[], [
5778
 
  case $host_os in
5779
 
  aix3*)
5780
 
    cat <<\EOF >> "$cfgfile"
5781
 
 
5782
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5783
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5784
 
# vanish in a puff of smoke.
5785
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5786
 
  COLLECT_NAMES=
5787
 
  export COLLECT_NAMES
5788
 
fi
5789
 
EOF
5790
 
    ;;
5791
 
  esac
5792
 
 
5793
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5794
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5795
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5796
 
  # is reportedly fixed, but why not run on old versions too?
5797
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5798
 
 
5799
 
  mv -f "$cfgfile" "$ofile" || \
5800
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5801
 
  chmod +x "$ofile"
5802
 
])
5803
 
else
5804
 
  # If there is no Makefile yet, we rely on a make rule to execute
5805
 
  # `config.status --recheck' to rerun these tests and create the
5806
 
  # libtool script then.
5807
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5808
 
  if test -f "$ltmain_in"; then
5809
 
    test -f Makefile && make "$ltmain"
5810
 
  fi
5811
 
fi
5812
 
])# AC_LIBTOOL_CONFIG
5813
 
 
5814
 
 
5815
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5816
 
# -------------------------------------------
5817
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5818
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5819
 
 
5820
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5821
 
 
5822
 
if test "$GCC" = yes; then
5823
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5824
 
 
5825
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5826
 
    lt_cv_prog_compiler_rtti_exceptions,
5827
 
    [-fno-rtti -fno-exceptions], [],
5828
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5829
 
fi
5830
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5831
 
 
5832
 
 
5833
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5834
 
# ---------------------------------
5835
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5836
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5837
 
AC_REQUIRE([LT_AC_PROG_SED])
5838
 
AC_REQUIRE([AC_PROG_NM])
5839
 
AC_REQUIRE([AC_OBJEXT])
5840
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5841
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5842
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5843
 
[
5844
 
# These are sane defaults that work on at least a few old systems.
5845
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5846
 
 
5847
 
# Character class describing NM global symbol codes.
5848
 
symcode='[[BCDEGRST]]'
5849
 
 
5850
 
# Regexp to match symbols that can be accessed directly from C.
5851
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5852
 
 
5853
 
# Transform an extracted symbol line into a proper C declaration
5854
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5855
 
 
5856
 
# Transform an extracted symbol line into symbol name and symbol address
5857
 
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'"
5858
 
 
5859
 
# Define system-specific variables.
5860
 
case $host_os in
5861
 
aix*)
5862
 
  symcode='[[BCDT]]'
5863
 
  ;;
5864
 
cygwin* | mingw* | pw32*)
5865
 
  symcode='[[ABCDGISTW]]'
5866
 
  ;;
5867
 
hpux*) # Its linker distinguishes data from code symbols
5868
 
  if test "$host_cpu" = ia64; then
5869
 
    symcode='[[ABCDEGRST]]'
5870
 
  fi
5871
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5872
 
  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'"
5873
 
  ;;
5874
 
linux* | k*bsd*-gnu)
5875
 
  if test "$host_cpu" = ia64; then
5876
 
    symcode='[[ABCDGIRSTW]]'
5877
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5878
 
    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'"
5879
 
  fi
5880
 
  ;;
5881
 
irix* | nonstopux*)
5882
 
  symcode='[[BCDEGRST]]'
5883
 
  ;;
5884
 
osf*)
5885
 
  symcode='[[BCDEGQRST]]'
5886
 
  ;;
5887
 
solaris*)
5888
 
  symcode='[[BDRT]]'
5889
 
  ;;
5890
 
sco3.2v5*)
5891
 
  symcode='[[DT]]'
5892
 
  ;;
5893
 
sysv4.2uw2*)
5894
 
  symcode='[[DT]]'
5895
 
  ;;
5896
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5897
 
  symcode='[[ABDT]]'
5898
 
  ;;
5899
 
sysv4)
5900
 
  symcode='[[DFNSTU]]'
5901
 
  ;;
5902
 
esac
5903
 
 
5904
 
# Handle CRLF in mingw tool chain
5905
 
opt_cr=
5906
 
case $build_os in
5907
 
mingw*)
5908
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5909
 
  ;;
5910
 
esac
5911
 
 
5912
 
# If we're using GNU nm, then use its standard symbol codes.
5913
 
case `$NM -V 2>&1` in
5914
 
*GNU* | *'with BFD'*)
5915
 
  symcode='[[ABCDGIRSTW]]' ;;
5916
 
esac
5917
 
 
5918
 
# Try without a prefix undercore, then with it.
5919
 
for ac_symprfx in "" "_"; do
5920
 
 
5921
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5922
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5923
 
 
5924
 
  # Write the raw and C identifiers.
5925
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5926
 
 
5927
 
  # Check to see that the pipe works correctly.
5928
 
  pipe_works=no
5929
 
 
5930
 
  rm -f conftest*
5931
 
  cat > conftest.$ac_ext <<EOF
5932
 
#ifdef __cplusplus
5933
 
extern "C" {
5934
 
#endif
5935
 
char nm_test_var;
5936
 
void nm_test_func(){}
5937
 
#ifdef __cplusplus
5938
 
}
5939
 
#endif
5940
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5941
 
EOF
5942
 
 
5943
 
  if AC_TRY_EVAL(ac_compile); then
5944
 
    # Now try to grab the symbols.
5945
 
    nlist=conftest.nm
5946
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5947
 
      # Try sorting and uniquifying the output.
5948
 
      if sort "$nlist" | uniq > "$nlist"T; then
5949
 
        mv -f "$nlist"T "$nlist"
5950
 
      else
5951
 
        rm -f "$nlist"T
5952
 
      fi
5953
 
 
5954
 
      # Make sure that we snagged all the symbols we need.
5955
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5956
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5957
 
          cat <<EOF > conftest.$ac_ext
5958
 
#ifdef __cplusplus
5959
 
extern "C" {
5960
 
#endif
5961
 
 
5962
 
EOF
5963
 
          # Now generate the symbol file.
5964
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5965
 
 
5966
 
          cat <<EOF >> conftest.$ac_ext
5967
 
#if defined (__STDC__) && __STDC__
5968
 
# define lt_ptr_t void *
5969
 
#else
5970
 
# define lt_ptr_t char *
5971
 
# define const
5972
 
#endif
5973
 
 
5974
 
/* The mapping between symbol names and symbols. */
5975
 
const struct {
5976
 
  const char *name;
5977
 
  lt_ptr_t address;
5978
 
}
5979
 
lt_preloaded_symbols[[]] =
5980
 
{
5981
 
EOF
5982
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5983
 
          cat <<\EOF >> conftest.$ac_ext
5984
 
  {0, (lt_ptr_t) 0}
5985
 
};
5986
 
 
5987
 
#ifdef __cplusplus
5988
 
}
5989
 
#endif
5990
 
EOF
5991
 
          # Now try linking the two files.
5992
 
          mv conftest.$ac_objext conftstm.$ac_objext
5993
 
          lt_save_LIBS="$LIBS"
5994
 
          lt_save_CFLAGS="$CFLAGS"
5995
 
          LIBS="conftstm.$ac_objext"
5996
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5997
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5998
 
            pipe_works=yes
5999
 
          fi
6000
 
          LIBS="$lt_save_LIBS"
6001
 
          CFLAGS="$lt_save_CFLAGS"
6002
 
        else
6003
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6004
 
        fi
6005
 
      else
6006
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6007
 
      fi
6008
 
    else
6009
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6010
 
    fi
6011
 
  else
6012
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6013
 
    cat conftest.$ac_ext >&5
6014
 
  fi
6015
 
  rm -rf conftest* conftst*
6016
 
 
6017
 
  # Do not use the global_symbol_pipe unless it works.
6018
 
  if test "$pipe_works" = yes; then
6019
 
    break
6020
 
  else
6021
 
    lt_cv_sys_global_symbol_pipe=
6022
 
  fi
6023
 
done
6024
 
])
6025
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6026
 
  lt_cv_sys_global_symbol_to_cdecl=
6027
 
fi
6028
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6029
 
  AC_MSG_RESULT(failed)
6030
 
else
6031
 
  AC_MSG_RESULT(ok)
6032
 
fi
6033
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6034
 
 
6035
 
 
6036
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6037
 
# ---------------------------------------
6038
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6039
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6040
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6041
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6042
 
 
6043
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
6044
 
 ifelse([$1],[CXX],[
6045
 
  # C++ specific cases for pic, static, wl, etc.
6046
 
  if test "$GXX" = yes; then
6047
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6048
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6049
 
 
6050
 
    case $host_os in
6051
 
    aix*)
6052
 
      # All AIX code is PIC.
6053
 
      if test "$host_cpu" = ia64; then
6054
 
        # AIX 5 now supports IA64 processor
6055
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6056
 
      fi
6057
 
      ;;
6058
 
    amigaos*)
6059
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6060
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6061
 
      # like `-m68040'.
6062
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6063
 
      ;;
6064
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6065
 
      # PIC is the default for these OSes.
6066
 
      ;;
6067
 
    mingw* | cygwin* | os2* | pw32*)
6068
 
      # This hack is so that the source file can tell whether it is being
6069
 
      # built for inclusion in a dll (and should export symbols for example).
6070
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6071
 
      # (--disable-auto-import) libraries
6072
 
      m4_if([$1], [GCJ], [],
6073
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6074
 
      ;;
6075
 
    darwin* | rhapsody*)
6076
 
      # PIC is the default on this platform
6077
 
      # Common symbols not allowed in MH_DYLIB files
6078
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6079
 
      ;;
6080
 
    *djgpp*)
6081
 
      # DJGPP does not support shared libraries at all
6082
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6083
 
      ;;
6084
 
    interix[[3-9]]*)
6085
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6086
 
      # Instead, we relocate shared libraries at runtime.
6087
 
      ;;
6088
 
    sysv4*MP*)
6089
 
      if test -d /usr/nec; then
6090
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6091
 
      fi
6092
 
      ;;
6093
 
    hpux*)
6094
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6095
 
      # not for PA HP-UX.
6096
 
      case $host_cpu in
6097
 
      hppa*64*|ia64*)
6098
 
        ;;
6099
 
      *)
6100
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6101
 
        ;;
6102
 
      esac
6103
 
      ;;
6104
 
    *)
6105
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6106
 
      ;;
6107
 
    esac
6108
 
  else
6109
 
    case $host_os in
6110
 
      aix[[4-9]]*)
6111
 
        # All AIX code is PIC.
6112
 
        if test "$host_cpu" = ia64; then
6113
 
          # AIX 5 now supports IA64 processor
6114
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6115
 
        else
6116
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6117
 
        fi
6118
 
        ;;
6119
 
      chorus*)
6120
 
        case $cc_basename in
6121
 
        cxch68*)
6122
 
          # Green Hills C++ Compiler
6123
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6124
 
          ;;
6125
 
        esac
6126
 
        ;;
6127
 
       darwin*)
6128
 
         # PIC is the default on this platform
6129
 
         # Common symbols not allowed in MH_DYLIB files
6130
 
         case $cc_basename in
6131
 
           xlc*)
6132
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6133
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6134
 
           ;;
6135
 
         esac
6136
 
       ;;
6137
 
      dgux*)
6138
 
        case $cc_basename in
6139
 
          ec++*)
6140
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6141
 
            ;;
6142
 
          ghcx*)
6143
 
            # Green Hills C++ Compiler
6144
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6145
 
            ;;
6146
 
          *)
6147
 
            ;;
6148
 
        esac
6149
 
        ;;
6150
 
      freebsd* | dragonfly*)
6151
 
        # FreeBSD uses GNU C++
6152
 
        ;;
6153
 
      hpux9* | hpux10* | hpux11*)
6154
 
        case $cc_basename in
6155
 
          CC*)
6156
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6157
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6158
 
            if test "$host_cpu" != ia64; then
6159
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6160
 
            fi
6161
 
            ;;
6162
 
          aCC*)
6163
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6164
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6165
 
            case $host_cpu in
6166
 
            hppa*64*|ia64*)
6167
 
              # +Z the default
6168
 
              ;;
6169
 
            *)
6170
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6171
 
              ;;
6172
 
            esac
6173
 
            ;;
6174
 
          *)
6175
 
            ;;
6176
 
        esac
6177
 
        ;;
6178
 
      interix*)
6179
 
        # This is c89, which is MS Visual C++ (no shared libs)
6180
 
        # Anyone wants to do a port?
6181
 
        ;;
6182
 
      irix5* | irix6* | nonstopux*)
6183
 
        case $cc_basename in
6184
 
          CC*)
6185
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6186
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6187
 
            # CC pic flag -KPIC is the default.
6188
 
            ;;
6189
 
          *)
6190
 
            ;;
6191
 
        esac
6192
 
        ;;
6193
 
      linux* | k*bsd*-gnu)
6194
 
        case $cc_basename in
6195
 
          KCC*)
6196
 
            # KAI C++ Compiler
6197
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6198
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6199
 
            ;;
6200
 
          icpc* | ecpc*)
6201
 
            # Intel C++
6202
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6203
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6204
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6205
 
            ;;
6206
 
          pgCC* | pgcpp*)
6207
 
            # Portland Group C++ compiler.
6208
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6209
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6210
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6211
 
            ;;
6212
 
          cxx*)
6213
 
            # Compaq C++
6214
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
6215
 
            # Linux and Compaq Tru64 Unix objects are PIC.
6216
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6217
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6218
 
            ;;
6219
 
          *)
6220
 
            case `$CC -V 2>&1 | sed 5q` in
6221
 
            *Sun\ C*)
6222
 
              # Sun C++ 5.9
6223
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6224
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6225
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6226
 
              ;;
6227
 
            esac
6228
 
            ;;
6229
 
        esac
6230
 
        ;;
6231
 
      lynxos*)
6232
 
        ;;
6233
 
      m88k*)
6234
 
        ;;
6235
 
      mvs*)
6236
 
        case $cc_basename in
6237
 
          cxx*)
6238
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6239
 
            ;;
6240
 
          *)
6241
 
            ;;
6242
 
        esac
6243
 
        ;;
6244
 
      netbsd*)
6245
 
        ;;
6246
 
      osf3* | osf4* | osf5*)
6247
 
        case $cc_basename in
6248
 
          KCC*)
6249
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6250
 
            ;;
6251
 
          RCC*)
6252
 
            # Rational C++ 2.4.1
6253
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6254
 
            ;;
6255
 
          cxx*)
6256
 
            # Digital/Compaq C++
6257
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6258
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
6259
 
            # Linux and Compaq Tru64 Unix objects are PIC.
6260
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6261
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6262
 
            ;;
6263
 
          *)
6264
 
            ;;
6265
 
        esac
6266
 
        ;;
6267
 
      psos*)
6268
 
        ;;
6269
 
      solaris*)
6270
 
        case $cc_basename in
6271
 
          CC*)
6272
 
            # Sun C++ 4.2, 5.x and Centerline C++
6273
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6274
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6275
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6276
 
            ;;
6277
 
          gcx*)
6278
 
            # Green Hills C++ Compiler
6279
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6280
 
            ;;
6281
 
          *)
6282
 
            ;;
6283
 
        esac
6284
 
        ;;
6285
 
      sunos4*)
6286
 
        case $cc_basename in
6287
 
          CC*)
6288
 
            # Sun C++ 4.x
6289
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6290
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6291
 
            ;;
6292
 
          lcc*)
6293
 
            # Lucid
6294
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6295
 
            ;;
6296
 
          *)
6297
 
            ;;
6298
 
        esac
6299
 
        ;;
6300
 
      tandem*)
6301
 
        case $cc_basename in
6302
 
          NCC*)
6303
 
            # NonStop-UX NCC 3.20
6304
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6305
 
            ;;
6306
 
          *)
6307
 
            ;;
6308
 
        esac
6309
 
        ;;
6310
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6311
 
        case $cc_basename in
6312
 
          CC*)
6313
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6314
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6315
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6316
 
            ;;
6317
 
        esac
6318
 
        ;;
6319
 
      vxworks*)
6320
 
        ;;
6321
 
      *)
6322
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6323
 
        ;;
6324
 
    esac
6325
 
  fi
6326
 
],
6327
 
[
6328
 
  if test "$GCC" = yes; then
6329
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6330
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6331
 
 
6332
 
    case $host_os in
6333
 
      aix*)
6334
 
      # All AIX code is PIC.
6335
 
      if test "$host_cpu" = ia64; then
6336
 
        # AIX 5 now supports IA64 processor
6337
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6338
 
      fi
6339
 
      ;;
6340
 
 
6341
 
    amigaos*)
6342
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6343
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6344
 
      # like `-m68040'.
6345
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6346
 
      ;;
6347
 
 
6348
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6349
 
      # PIC is the default for these OSes.
6350
 
      ;;
6351
 
 
6352
 
    mingw* | cygwin* | pw32* | os2*)
6353
 
      # This hack is so that the source file can tell whether it is being
6354
 
      # built for inclusion in a dll (and should export symbols for example).
6355
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6356
 
      # (--disable-auto-import) libraries
6357
 
      m4_if([$1], [GCJ], [],
6358
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6359
 
      ;;
6360
 
 
6361
 
    darwin* | rhapsody*)
6362
 
      # PIC is the default on this platform
6363
 
      # Common symbols not allowed in MH_DYLIB files
6364
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6365
 
      ;;
6366
 
 
6367
 
    interix[[3-9]]*)
6368
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6369
 
      # Instead, we relocate shared libraries at runtime.
6370
 
      ;;
6371
 
 
6372
 
    msdosdjgpp*)
6373
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6374
 
      # on systems that don't support them.
6375
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6376
 
      enable_shared=no
6377
 
      ;;
6378
 
 
6379
 
    sysv4*MP*)
6380
 
      if test -d /usr/nec; then
6381
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6382
 
      fi
6383
 
      ;;
6384
 
 
6385
 
    hpux*)
6386
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6387
 
      # not for PA HP-UX.
6388
 
      case $host_cpu in
6389
 
      hppa*64*|ia64*)
6390
 
        # +Z the default
6391
 
        ;;
6392
 
      *)
6393
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6394
 
        ;;
6395
 
      esac
6396
 
      ;;
6397
 
 
6398
 
    *)
6399
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6400
 
      ;;
6401
 
    esac
6402
 
  else
6403
 
    # PORTME Check for flag to pass linker flags through the system compiler.
6404
 
    case $host_os in
6405
 
    aix*)
6406
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6407
 
      if test "$host_cpu" = ia64; then
6408
 
        # AIX 5 now supports IA64 processor
6409
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6410
 
      else
6411
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6412
 
      fi
6413
 
      ;;
6414
 
      darwin*)
6415
 
        # PIC is the default on this platform
6416
 
        # Common symbols not allowed in MH_DYLIB files
6417
 
       case $cc_basename in
6418
 
         xlc*)
6419
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6420
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6421
 
         ;;
6422
 
       esac
6423
 
       ;;
6424
 
 
6425
 
    mingw* | cygwin* | pw32* | os2*)
6426
 
      # This hack is so that the source file can tell whether it is being
6427
 
      # built for inclusion in a dll (and should export symbols for example).
6428
 
      m4_if([$1], [GCJ], [],
6429
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6430
 
      ;;
6431
 
 
6432
 
    hpux9* | hpux10* | hpux11*)
6433
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6434
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6435
 
      # not for PA HP-UX.
6436
 
      case $host_cpu in
6437
 
      hppa*64*|ia64*)
6438
 
        # +Z the default
6439
 
        ;;
6440
 
      *)
6441
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6442
 
        ;;
6443
 
      esac
6444
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6445
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6446
 
      ;;
6447
 
 
6448
 
    irix5* | irix6* | nonstopux*)
6449
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6450
 
      # PIC (with -KPIC) is the default.
6451
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6452
 
      ;;
6453
 
 
6454
 
    newsos6)
6455
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6456
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6457
 
      ;;
6458
 
 
6459
 
    linux* | k*bsd*-gnu)
6460
 
      case $cc_basename in
6461
 
      icc* | ecc*)
6462
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6463
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6464
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6465
 
        ;;
6466
 
      pgcc* | pgf77* | pgf90* | pgf95*)
6467
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
6468
 
        # which looks to be a dead project)
6469
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6470
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6471
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6472
 
        ;;
6473
 
      ccc*)
6474
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6475
 
        # All Alpha code is PIC.
6476
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6477
 
        ;;
6478
 
      *)
6479
 
        case `$CC -V 2>&1 | sed 5q` in
6480
 
        *Sun\ C*)
6481
 
          # Sun C 5.9
6482
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6483
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6484
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6485
 
          ;;
6486
 
        *Sun\ F*)
6487
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6488
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6489
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6490
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6491
 
          ;;
6492
 
        esac
6493
 
        ;;
6494
 
      esac
6495
 
      ;;
6496
 
 
6497
 
    osf3* | osf4* | osf5*)
6498
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6499
 
      # All OSF/1 code is PIC.
6500
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6501
 
      ;;
6502
 
 
6503
 
    rdos*)
6504
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6505
 
      ;;
6506
 
 
6507
 
    solaris*)
6508
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6509
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6510
 
      case $cc_basename in
6511
 
      f77* | f90* | f95*)
6512
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6513
 
      *)
6514
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6515
 
      esac
6516
 
      ;;
6517
 
 
6518
 
    sunos4*)
6519
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6520
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6521
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6522
 
      ;;
6523
 
 
6524
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
6525
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6526
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6527
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6528
 
      ;;
6529
 
 
6530
 
    sysv4*MP*)
6531
 
      if test -d /usr/nec ;then
6532
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6533
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6534
 
      fi
6535
 
      ;;
6536
 
 
6537
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6538
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6539
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6540
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6541
 
      ;;
6542
 
 
6543
 
    unicos*)
6544
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6545
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6546
 
      ;;
6547
 
 
6548
 
    uts4*)
6549
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6550
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6551
 
      ;;
6552
 
 
6553
 
    *)
6554
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6555
 
      ;;
6556
 
    esac
6557
 
  fi
6558
 
])
6559
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6560
 
 
6561
 
#
6562
 
# Check to make sure the PIC flag actually works.
6563
 
#
6564
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6565
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6566
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6567
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6568
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6569
 
     "" | " "*) ;;
6570
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6571
 
     esac],
6572
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6573
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6574
 
fi
6575
 
case $host_os in
6576
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6577
 
  *djgpp*)
6578
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6579
 
    ;;
6580
 
  *)
6581
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6582
 
    ;;
6583
 
esac
6584
 
 
6585
 
#
6586
 
# Check to make sure the static flag actually works.
6587
 
#
6588
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6589
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6590
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6591
 
  $lt_tmp_static_flag,
6592
 
  [],
6593
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6594
 
])
6595
 
 
6596
 
 
6597
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6598
 
# ------------------------------------
6599
 
# See if the linker supports building shared libraries.
6600
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6601
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6602
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6603
 
ifelse([$1],[CXX],[
6604
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6605
 
  case $host_os in
6606
 
  aix[[4-9]]*)
6607
 
    # If we're using GNU nm, then we don't want the "-C" option.
6608
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6609
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6610
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6611
 
    else
6612
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6613
 
    fi
6614
 
    ;;
6615
 
  pw32*)
6616
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6617
 
  ;;
6618
 
  cygwin* | mingw*)
6619
 
    _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'
6620
 
  ;;
6621
 
  *)
6622
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6623
 
  ;;
6624
 
  esac
6625
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6626
 
],[
6627
 
  runpath_var=
6628
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6629
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6630
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6631
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6632
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6633
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6634
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6635
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6636
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6637
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6638
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6639
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6640
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6641
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6642
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6643
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6644
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6645
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6646
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6647
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6648
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6649
 
  # include_expsyms should be a list of space-separated symbols to be *always*
6650
 
  # included in the symbol list
6651
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
6652
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
6653
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6654
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6655
 
  # as well as any symbol that contains `d'.
6656
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6657
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6658
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
6659
 
  # the symbol is explicitly referenced.  Since portable code cannot
6660
 
  # rely on this symbol name, it's probably fine to never include it in
6661
 
  # preloaded symbol tables.
6662
 
  # Exclude shared library initialization/finalization symbols.
6663
 
dnl Note also adjust exclude_expsyms for C++ above.
6664
 
  extract_expsyms_cmds=
6665
 
  # Just being paranoid about ensuring that cc_basename is set.
6666
 
  _LT_CC_BASENAME([$compiler])
6667
 
  case $host_os in
6668
 
  cygwin* | mingw* | pw32*)
6669
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6670
 
    # When not using gcc, we currently assume that we are using
6671
 
    # Microsoft Visual C++.
6672
 
    if test "$GCC" != yes; then
6673
 
      with_gnu_ld=no
6674
 
    fi
6675
 
    ;;
6676
 
  interix*)
6677
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6678
 
    with_gnu_ld=yes
6679
 
    ;;
6680
 
  openbsd*)
6681
 
    with_gnu_ld=no
6682
 
    ;;
6683
 
  esac
6684
 
 
6685
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6686
 
  if test "$with_gnu_ld" = yes; then
6687
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6688
 
    wlarc='${wl}'
6689
 
 
6690
 
    # Set some defaults for GNU ld with shared library support. These
6691
 
    # are reset later if shared libraries are not supported. Putting them
6692
 
    # here allows them to be overridden if necessary.
6693
 
    runpath_var=LD_RUN_PATH
6694
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6695
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6696
 
    # ancient GNU ld didn't support --whole-archive et. al.
6697
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6698
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6699
 
      else
6700
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6701
 
    fi
6702
 
    supports_anon_versioning=no
6703
 
    case `$LD -v 2>/dev/null` in
6704
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6705
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6706
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6707
 
      *\ 2.11.*) ;; # other 2.11 versions
6708
 
      *) supports_anon_versioning=yes ;;
6709
 
    esac
6710
 
 
6711
 
    # See if GNU ld supports shared libraries.
6712
 
    case $host_os in
6713
 
    aix[[3-9]]*)
6714
 
      # On AIX/PPC, the GNU linker is very broken
6715
 
      if test "$host_cpu" != ia64; then
6716
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6717
 
        cat <<EOF 1>&2
6718
 
 
6719
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6720
 
*** to be unable to reliably create shared libraries on AIX.
6721
 
*** Therefore, libtool is disabling shared libraries support.  If you
6722
 
*** really care for shared libraries, you may want to modify your PATH
6723
 
*** so that a non-GNU linker is found, and then restart.
6724
 
 
6725
 
EOF
6726
 
      fi
6727
 
      ;;
6728
 
 
6729
 
    amigaos*)
6730
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6731
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6732
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6733
 
 
6734
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6735
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6736
 
      # to version 4, is to share data among multiple programs linked
6737
 
      # with the same dynamic library.  Since this doesn't match the
6738
 
      # behavior of shared libraries on other platforms, we can't use
6739
 
      # them.
6740
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6741
 
      ;;
6742
 
 
6743
 
    beos*)
6744
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6745
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6746
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6747
 
        # support --undefined.  This deserves some investigation.  FIXME
6748
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6749
 
      else
6750
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6751
 
      fi
6752
 
      ;;
6753
 
 
6754
 
    cygwin* | mingw* | pw32*)
6755
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6756
 
      # as there is no search path for DLLs.
6757
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6758
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6759
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6760
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6761
 
      _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'
6762
 
 
6763
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6764
 
        _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'
6765
 
        # If the export-symbols file already is a .def file (1st line
6766
 
        # is EXPORTS), use it as is; otherwise, prepend...
6767
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6768
 
          cp $export_symbols $output_objdir/$soname.def;
6769
 
        else
6770
 
          echo EXPORTS > $output_objdir/$soname.def;
6771
 
          cat $export_symbols >> $output_objdir/$soname.def;
6772
 
        fi~
6773
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6774
 
      else
6775
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6776
 
      fi
6777
 
      ;;
6778
 
 
6779
 
    interix[[3-9]]*)
6780
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6781
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6782
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6783
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6784
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6785
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6786
 
      # default) and relocated if they conflict, which is a slow very memory
6787
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
6788
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6789
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6790
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6791
 
      _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'
6792
 
      ;;
6793
 
 
6794
 
    gnu* | linux* | k*bsd*-gnu)
6795
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6796
 
        tmp_addflag=
6797
 
        case $cc_basename,$host_cpu in
6798
 
        pgcc*)                          # Portland Group C compiler
6799
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6800
 
          tmp_addflag=' $pic_flag'
6801
 
          ;;
6802
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6803
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6804
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
6805
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6806
 
          tmp_addflag=' -i_dynamic' ;;
6807
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6808
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6809
 
        ifc* | ifort*)                  # Intel Fortran compiler
6810
 
          tmp_addflag=' -nofor_main' ;;
6811
 
        esac
6812
 
        case `$CC -V 2>&1 | sed 5q` in
6813
 
        *Sun\ C*)                       # Sun C 5.9
6814
 
          _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'
6815
 
          tmp_sharedflag='-G' ;;
6816
 
        *Sun\ F*)                       # Sun Fortran 8.3
6817
 
          tmp_sharedflag='-G' ;;
6818
 
        *)
6819
 
          tmp_sharedflag='-shared' ;;
6820
 
        esac
6821
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6822
 
 
6823
 
        if test $supports_anon_versioning = yes; then
6824
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6825
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6826
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6827
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6828
 
        fi
6829
 
      else
6830
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6831
 
      fi
6832
 
      ;;
6833
 
 
6834
 
    netbsd*)
6835
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6836
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6837
 
        wlarc=
6838
 
      else
6839
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6840
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6841
 
      fi
6842
 
      ;;
6843
 
 
6844
 
    solaris*)
6845
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6846
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6847
 
        cat <<EOF 1>&2
6848
 
 
6849
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6850
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6851
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6852
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6853
 
*** your PATH or compiler configuration so that the native linker is
6854
 
*** used, and then restart.
6855
 
 
6856
 
EOF
6857
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6858
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6859
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6860
 
      else
6861
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6862
 
      fi
6863
 
      ;;
6864
 
 
6865
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6866
 
      case `$LD -v 2>&1` in
6867
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6868
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6869
 
        cat <<_LT_EOF 1>&2
6870
 
 
6871
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6872
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
6873
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6874
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6875
 
*** your PATH or compiler configuration so that the native linker is
6876
 
*** used, and then restart.
6877
 
 
6878
 
_LT_EOF
6879
 
        ;;
6880
 
        *)
6881
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6882
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6883
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6884
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6885
 
          else
6886
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
6887
 
          fi
6888
 
        ;;
6889
 
      esac
6890
 
      ;;
6891
 
 
6892
 
    sunos4*)
6893
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6894
 
      wlarc=
6895
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6896
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6897
 
      ;;
6898
 
 
6899
 
    *)
6900
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6901
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6902
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6903
 
      else
6904
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6905
 
      fi
6906
 
      ;;
6907
 
    esac
6908
 
 
6909
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6910
 
      runpath_var=
6911
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6912
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6913
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6914
 
    fi
6915
 
  else
6916
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6917
 
    case $host_os in
6918
 
    aix3*)
6919
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6920
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6921
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6922
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6923
 
      # are no directories specified by -L.
6924
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6925
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6926
 
        # Neither direct hardcoding nor static linking is supported with a
6927
 
        # broken collect2.
6928
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6929
 
      fi
6930
 
      ;;
6931
 
 
6932
 
    aix[[4-9]]*)
6933
 
      if test "$host_cpu" = ia64; then
6934
 
        # On IA64, the linker does run time linking by default, so we don't
6935
 
        # have to do anything special.
6936
 
        aix_use_runtimelinking=no
6937
 
        exp_sym_flag='-Bexport'
6938
 
        no_entry_flag=""
6939
 
      else
6940
 
        # If we're using GNU nm, then we don't want the "-C" option.
6941
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6942
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6943
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6944
 
        else
6945
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6946
 
        fi
6947
 
        aix_use_runtimelinking=no
6948
 
 
6949
 
        # Test if we are trying to use run time linking or normal
6950
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6951
 
        # need to do runtime linking.
6952
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6953
 
          for ld_flag in $LDFLAGS; do
6954
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6955
 
            aix_use_runtimelinking=yes
6956
 
            break
6957
 
          fi
6958
 
          done
6959
 
          ;;
6960
 
        esac
6961
 
 
6962
 
        exp_sym_flag='-bexport'
6963
 
        no_entry_flag='-bnoentry'
6964
 
      fi
6965
 
 
6966
 
      # When large executables or shared objects are built, AIX ld can
6967
 
      # have problems creating the table of contents.  If linking a library
6968
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6969
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6970
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6971
 
 
6972
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6973
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6974
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6975
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6976
 
 
6977
 
      if test "$GCC" = yes; then
6978
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6979
 
        # We only want to do this on AIX 4.2 and lower, the check
6980
 
        # below for broken collect2 doesn't work under 4.3+
6981
 
          collect2name=`${CC} -print-prog-name=collect2`
6982
 
          if test -f "$collect2name" && \
6983
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6984
 
          then
6985
 
          # We have reworked collect2
6986
 
          :
6987
 
          else
6988
 
          # We have old collect2
6989
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6990
 
          # It fails to find uninstalled libraries when the uninstalled
6991
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6992
 
          # to unsupported forces relinking
6993
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6994
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6995
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6996
 
          fi
6997
 
          ;;
6998
 
        esac
6999
 
        shared_flag='-shared'
7000
 
        if test "$aix_use_runtimelinking" = yes; then
7001
 
          shared_flag="$shared_flag "'${wl}-G'
7002
 
        fi
7003
 
      else
7004
 
        # not using gcc
7005
 
        if test "$host_cpu" = ia64; then
7006
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7007
 
        # chokes on -Wl,-G. The following line is correct:
7008
 
          shared_flag='-G'
7009
 
        else
7010
 
          if test "$aix_use_runtimelinking" = yes; then
7011
 
            shared_flag='${wl}-G'
7012
 
          else
7013
 
            shared_flag='${wl}-bM:SRE'
7014
 
          fi
7015
 
        fi
7016
 
      fi
7017
 
 
7018
 
      # It seems that -bexpall does not export symbols beginning with
7019
 
      # underscore (_), so it is better to generate a list of symbols to export.
7020
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7021
 
      if test "$aix_use_runtimelinking" = yes; then
7022
 
        # Warning - without using the other runtime loading flags (-brtl),
7023
 
        # -berok will link without error, but may produce a broken library.
7024
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7025
 
       # Determine the default libpath from the value encoded in an empty executable.
7026
 
       _LT_AC_SYS_LIBPATH_AIX
7027
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7028
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7029
 
       else
7030
 
        if test "$host_cpu" = ia64; then
7031
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7032
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7033
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7034
 
        else
7035
 
         # Determine the default libpath from the value encoded in an empty executable.
7036
 
         _LT_AC_SYS_LIBPATH_AIX
7037
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7038
 
          # Warning - without using the other run time loading flags,
7039
 
          # -berok will link without error, but may produce a broken library.
7040
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7041
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7042
 
          # Exported symbols can be pulled into shared objects from archives
7043
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7044
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7045
 
          # This is similar to how AIX traditionally builds its shared libraries.
7046
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7047
 
        fi
7048
 
      fi
7049
 
      ;;
7050
 
 
7051
 
    amigaos*)
7052
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7053
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7054
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7055
 
      # see comment about different semantics on the GNU ld section
7056
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7057
 
      ;;
7058
 
 
7059
 
    bsdi[[45]]*)
7060
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7061
 
      ;;
7062
 
 
7063
 
    cygwin* | mingw* | pw32*)
7064
 
      # When not using gcc, we currently assume that we are using
7065
 
      # Microsoft Visual C++.
7066
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7067
 
      # no search path for DLLs.
7068
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7069
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7070
 
      # Tell ltmain to make .lib files, not .a files.
7071
 
      libext=lib
7072
 
      # Tell ltmain to make .dll files, not .so files.
7073
 
      shrext_cmds=".dll"
7074
 
      # FIXME: Setting linknames here is a bad hack.
7075
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7076
 
      # The linker will automatically build a .lib file if we build a DLL.
7077
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7078
 
      # FIXME: Should let the user specify the lib program.
7079
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7080
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7081
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7082
 
      ;;
7083
 
 
7084
 
    darwin* | rhapsody*)
7085
 
      case $host_os in
7086
 
        rhapsody* | darwin1.[[012]])
7087
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7088
 
         ;;
7089
 
       *) # Darwin 1.3 on
7090
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7091
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7092
 
         else
7093
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7094
 
             10.[[012]])
7095
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7096
 
               ;;
7097
 
             10.*)
7098
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7099
 
               ;;
7100
 
           esac
7101
 
         fi
7102
 
         ;;
7103
 
      esac
7104
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7105
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
7106
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7107
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7108
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7109
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7110
 
    if test "$GCC" = yes ; then
7111
 
        output_verbose_link_cmd='echo'
7112
 
        _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}"
7113
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7114
 
        _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}"
7115
 
        _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}"
7116
 
    else
7117
 
      case $cc_basename in
7118
 
        xlc*)
7119
 
         output_verbose_link_cmd='echo'
7120
 
         _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'
7121
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7122
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7123
 
         _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}'
7124
 
          _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}'
7125
 
          ;;
7126
 
       *)
7127
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
7128
 
          ;;
7129
 
      esac
7130
 
    fi
7131
 
      ;;
7132
 
 
7133
 
    dgux*)
7134
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7135
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7136
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7137
 
      ;;
7138
 
 
7139
 
    freebsd1*)
7140
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7141
 
      ;;
7142
 
 
7143
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7144
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7145
 
    # does not break anything, and helps significantly (at the cost of a little
7146
 
    # extra space).
7147
 
    freebsd2.2*)
7148
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7149
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7150
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7151
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7152
 
      ;;
7153
 
 
7154
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7155
 
    freebsd2*)
7156
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7157
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7158
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7159
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7160
 
      ;;
7161
 
 
7162
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7163
 
    freebsd* | dragonfly*)
7164
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7165
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7166
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7167
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7168
 
      ;;
7169
 
 
7170
 
    hpux9*)
7171
 
      if test "$GCC" = yes; then
7172
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7173
 
      else
7174
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7175
 
      fi
7176
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7177
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7178
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7179
 
 
7180
 
      # hardcode_minus_L: Not really in the search PATH,
7181
 
      # but as the default location of the library.
7182
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7183
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7184
 
      ;;
7185
 
 
7186
 
    hpux10*)
7187
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7188
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7189
 
      else
7190
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7191
 
      fi
7192
 
      if test "$with_gnu_ld" = no; then
7193
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7194
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7195
 
 
7196
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7197
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7198
 
 
7199
 
        # hardcode_minus_L: Not really in the search PATH,
7200
 
        # but as the default location of the library.
7201
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7202
 
      fi
7203
 
      ;;
7204
 
 
7205
 
    hpux11*)
7206
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7207
 
        case $host_cpu in
7208
 
        hppa*64*)
7209
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7210
 
          ;;
7211
 
        ia64*)
7212
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7213
 
          ;;
7214
 
        *)
7215
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7216
 
          ;;
7217
 
        esac
7218
 
      else
7219
 
        case $host_cpu in
7220
 
        hppa*64*)
7221
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222
 
          ;;
7223
 
        ia64*)
7224
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7225
 
          ;;
7226
 
        *)
7227
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7228
 
          ;;
7229
 
        esac
7230
 
      fi
7231
 
      if test "$with_gnu_ld" = no; then
7232
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7233
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7234
 
 
7235
 
        case $host_cpu in
7236
 
        hppa*64*|ia64*)
7237
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7238
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
7239
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7240
 
          ;;
7241
 
        *)
7242
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7243
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7244
 
 
7245
 
          # hardcode_minus_L: Not really in the search PATH,
7246
 
          # but as the default location of the library.
7247
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7248
 
          ;;
7249
 
        esac
7250
 
      fi
7251
 
      ;;
7252
 
 
7253
 
    irix5* | irix6* | nonstopux*)
7254
 
      if test "$GCC" = yes; then
7255
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7256
 
      else
7257
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7258
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7259
 
      fi
7260
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7261
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7262
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7263
 
      ;;
7264
 
 
7265
 
    netbsd*)
7266
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7268
 
      else
7269
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7270
 
      fi
7271
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7272
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7273
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7274
 
      ;;
7275
 
 
7276
 
    newsos6)
7277
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7279
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7280
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7281
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7282
 
      ;;
7283
 
 
7284
 
    openbsd*)
7285
 
      if test -f /usr/libexec/ld.so; then
7286
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7287
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7288
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7289
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7290
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7291
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7292
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7293
 
        else
7294
 
          case $host_os in
7295
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7296
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7298
 
             ;;
7299
 
           *)
7300
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7301
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7302
 
             ;;
7303
 
          esac
7304
 
        fi
7305
 
      else
7306
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7307
 
      fi
7308
 
      ;;
7309
 
 
7310
 
    os2*)
7311
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7312
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7313
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7314
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7315
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7316
 
      ;;
7317
 
 
7318
 
    osf3*)
7319
 
      if test "$GCC" = yes; then
7320
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7321
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7322
 
      else
7323
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7324
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7325
 
      fi
7326
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7327
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7328
 
      ;;
7329
 
 
7330
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7331
 
      if test "$GCC" = yes; then
7332
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7333
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7334
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7335
 
      else
7336
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7337
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7338
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7339
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7340
 
 
7341
 
        # Both c and cxx compiler support -rpath directly
7342
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7343
 
      fi
7344
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7345
 
      ;;
7346
 
 
7347
 
    solaris*)
7348
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7349
 
      if test "$GCC" = yes; then
7350
 
        wlarc='${wl}'
7351
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7354
 
      else
7355
 
        wlarc=''
7356
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7358
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7359
 
      fi
7360
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7361
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7362
 
      case $host_os in
7363
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7364
 
      *)
7365
 
        # The compiler driver will combine and reorder linker options,
7366
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7367
 
        # but is careful enough not to reorder.
7368
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7369
 
        if test "$GCC" = yes; then
7370
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7371
 
        else
7372
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7373
 
        fi
7374
 
        ;;
7375
 
      esac
7376
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7377
 
      ;;
7378
 
 
7379
 
    sunos4*)
7380
 
      if test "x$host_vendor" = xsequent; then
7381
 
        # Use $CC to link under sequent, because it throws in some extra .o
7382
 
        # files that make .init and .fini sections work.
7383
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7384
 
      else
7385
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7386
 
      fi
7387
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7388
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7389
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7390
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7391
 
      ;;
7392
 
 
7393
 
    sysv4)
7394
 
      case $host_vendor in
7395
 
        sni)
7396
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7398
 
        ;;
7399
 
        siemens)
7400
 
          ## LD is ld it makes a PLAMLIB
7401
 
          ## CC just makes a GrossModule.
7402
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7404
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
7405
 
        ;;
7406
 
        motorola)
7407
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7409
 
        ;;
7410
 
      esac
7411
 
      runpath_var='LD_RUN_PATH'
7412
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7413
 
      ;;
7414
 
 
7415
 
    sysv4.3*)
7416
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7418
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7419
 
      ;;
7420
 
 
7421
 
    sysv4*MP*)
7422
 
      if test -d /usr/nec; then
7423
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7425
 
        runpath_var=LD_RUN_PATH
7426
 
        hardcode_runpath_var=yes
7427
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7428
 
      fi
7429
 
      ;;
7430
 
 
7431
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7432
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7433
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7434
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7435
 
      runpath_var='LD_RUN_PATH'
7436
 
 
7437
 
      if test "$GCC" = yes; then
7438
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7439
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7440
 
      else
7441
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7442
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7443
 
      fi
7444
 
      ;;
7445
 
 
7446
 
    sysv5* | sco3.2v5* | sco5v6*)
7447
 
      # Note: We can NOT use -z defs as we might desire, because we do not
7448
 
      # link with -lc, and that would cause any symbols used from libc to
7449
 
      # always be unresolved, which means just about no library would
7450
 
      # ever link correctly.  If we're not using GNU ld we use -z text
7451
 
      # though, which does catch some bad symbols but isn't as heavy-handed
7452
 
      # as -z defs.
7453
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7454
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7455
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7456
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7457
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7458
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7459
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7460
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7461
 
      runpath_var='LD_RUN_PATH'
7462
 
 
7463
 
      if test "$GCC" = yes; then
7464
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7465
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7466
 
      else
7467
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7468
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7469
 
      fi
7470
 
      ;;
7471
 
 
7472
 
    uts4*)
7473
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7474
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7475
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7476
 
      ;;
7477
 
 
7478
 
    *)
7479
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7480
 
      ;;
7481
 
    esac
7482
 
  fi
7483
 
])
7484
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7485
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7486
 
 
7487
 
#
7488
 
# Do we need to explicitly link libc?
7489
 
#
7490
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7491
 
x|xyes)
7492
 
  # Assume -lc should be added
7493
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7494
 
 
7495
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7496
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
7497
 
    *'~'*)
7498
 
      # FIXME: we may have to deal with multi-command sequences.
7499
 
      ;;
7500
 
    '$CC '*)
7501
 
      # Test whether the compiler implicitly links with -lc since on some
7502
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7503
 
      # to ld, don't add -lc before -lgcc.
7504
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7505
 
      $rm conftest*
7506
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7507
 
 
7508
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7509
 
        soname=conftest
7510
 
        lib=conftest
7511
 
        libobjs=conftest.$ac_objext
7512
 
        deplibs=
7513
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7514
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7515
 
        compiler_flags=-v
7516
 
        linker_flags=-v
7517
 
        verstring=
7518
 
        output_objdir=.
7519
 
        libname=conftest
7520
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7521
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7522
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7523
 
        then
7524
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7525
 
        else
7526
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7527
 
        fi
7528
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7529
 
      else
7530
 
        cat conftest.err 1>&5
7531
 
      fi
7532
 
      $rm conftest*
7533
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7534
 
      ;;
7535
 
    esac
7536
 
  fi
7537
 
  ;;
7538
 
esac
7539
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7540
 
 
7541
 
 
7542
 
# _LT_AC_FILE_LTDLL_C
7543
 
# -------------------
7544
 
# Be careful that the start marker always follows a newline.
7545
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7546
 
# /* ltdll.c starts here */
7547
 
# #define WIN32_LEAN_AND_MEAN
7548
 
# #include <windows.h>
7549
 
# #undef WIN32_LEAN_AND_MEAN
7550
 
# #include <stdio.h>
7551
 
#
7552
 
# #ifndef __CYGWIN__
7553
 
# #  ifdef __CYGWIN32__
7554
 
# #    define __CYGWIN__ __CYGWIN32__
7555
 
# #  endif
7556
 
# #endif
7557
 
#
7558
 
# #ifdef __cplusplus
7559
 
# extern "C" {
7560
 
# #endif
7561
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7562
 
# #ifdef __cplusplus
7563
 
# }
7564
 
# #endif
7565
 
#
7566
 
# #ifdef __CYGWIN__
7567
 
# #include <cygwin/cygwin_dll.h>
7568
 
# DECLARE_CYGWIN_DLL( DllMain );
7569
 
# #endif
7570
 
# HINSTANCE __hDllInstance_base;
7571
 
#
7572
 
# BOOL APIENTRY
7573
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7574
 
# {
7575
 
#   __hDllInstance_base = hInst;
7576
 
#   return TRUE;
7577
 
# }
7578
 
# /* ltdll.c ends here */
7579
 
])# _LT_AC_FILE_LTDLL_C
7580
 
 
7581
 
 
7582
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7583
 
# ---------------------------------
7584
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7585
 
 
7586
 
 
7587
 
# old names
7588
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7589
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7590
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7591
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7592
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7593
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7594
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7595
 
 
7596
 
# This is just to silence aclocal about the macro not being used
7597
 
ifelse([AC_DISABLE_FAST_INSTALL])
7598
 
 
7599
 
AC_DEFUN([LT_AC_PROG_GCJ],
7600
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7601
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7602
 
  AC_SUBST(GCJFLAGS)
7603
 
])
7604
 
 
7605
 
AC_DEFUN([LT_AC_PROG_RC],
7606
 
[AC_CHECK_TOOL(RC, windres, no)
7607
 
])
7608
 
 
7609
 
 
7610
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7611
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7612
 
 
7613
 
# _AS_TEST_PREPARE
7614
 
# ----------------
7615
 
m4_ifndef([_AS_TEST_PREPARE],
7616
 
[m4_defun([_AS_TEST_PREPARE],
7617
 
[if test -x / >/dev/null 2>&1; then
7618
 
  as_executable_p='test -x'
7619
 
else
7620
 
  as_executable_p='test -f'
7621
 
fi
7622
 
])])# _AS_TEST_PREPARE
7623
 
 
7624
 
# AS_EXECUTABLE_P
7625
 
# ---------------
7626
 
# Check whether a file is executable.
7627
 
m4_ifndef([AS_EXECUTABLE_P],
7628
 
[m4_defun([AS_EXECUTABLE_P],
7629
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7630
 
$as_executable_p $1[]dnl
7631
 
])])# AS_EXECUTABLE_P
7632
 
 
7633
 
# NOTE: This macro has been submitted for inclusion into   #
7634
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7635
 
#  a released version of Autoconf we should remove this    #
7636
 
#  macro and use it instead.                               #
7637
 
# LT_AC_PROG_SED
7638
 
# --------------
7639
 
# Check for a fully-functional sed program, that truncates
7640
 
# as few characters as possible.  Prefer GNU sed if found.
7641
 
AC_DEFUN([LT_AC_PROG_SED],
7642
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
7643
 
AC_CACHE_VAL(lt_cv_path_SED,
7644
 
[# Loop through the user's path and test for sed and gsed.
7645
 
# Then use that list of sed's as ones to test for truncation.
7646
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647
 
for as_dir in $PATH
7648
 
do
7649
 
  IFS=$as_save_IFS
7650
 
  test -z "$as_dir" && as_dir=.
7651
 
  for lt_ac_prog in sed gsed; do
7652
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7653
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7654
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7655
 
      fi
7656
 
    done
7657
 
  done
7658
 
done
7659
 
IFS=$as_save_IFS
7660
 
lt_ac_max=0
7661
 
lt_ac_count=0
7662
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7663
 
# along with /bin/sed that truncates output.
7664
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7665
 
  test ! -f $lt_ac_sed && continue
7666
 
  cat /dev/null > conftest.in
7667
 
  lt_ac_count=0
7668
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7669
 
  # Check for GNU sed and select it if it is found.
7670
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7671
 
    lt_cv_path_SED=$lt_ac_sed
7672
 
    break
7673
 
  fi
7674
 
  while true; do
7675
 
    cat conftest.in conftest.in >conftest.tmp
7676
 
    mv conftest.tmp conftest.in
7677
 
    cp conftest.in conftest.nl
7678
 
    echo >>conftest.nl
7679
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7680
 
    cmp -s conftest.out conftest.nl || break
7681
 
    # 10000 chars as input seems more than enough
7682
 
    test $lt_ac_count -gt 10 && break
7683
 
    lt_ac_count=`expr $lt_ac_count + 1`
7684
 
    if test $lt_ac_count -gt $lt_ac_max; then
7685
 
      lt_ac_max=$lt_ac_count
7686
 
      lt_cv_path_SED=$lt_ac_sed
7687
 
    fi
7688
 
  done
7689
 
done
7690
 
])
7691
 
SED=$lt_cv_path_SED
7692
 
AC_SUBST([SED])
7693
 
AC_MSG_RESULT([$SED])
7694
 
])
7695
 
 
7696
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7697
 
7698
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7699
 
#
7700
 
# This program is free software; you can redistribute it and/or modify
7701
 
# it under the terms of the GNU General Public License as published by
7702
 
# the Free Software Foundation; either version 2 of the License, or
7703
 
# (at your option) any later version.
7704
 
#
7705
 
# This program is distributed in the hope that it will be useful, but
7706
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
7707
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7708
 
# General Public License for more details.
7709
 
#
7710
 
# You should have received a copy of the GNU General Public License
7711
 
# along with this program; if not, write to the Free Software
7712
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7713
 
#
7714
 
# As a special exception to the GNU General Public License, if you
7715
 
# distribute this file as part of a program that contains a
7716
 
# configuration script generated by Autoconf, you may include it under
7717
 
# the same distribution terms that you use for the rest of that program.
7718
 
 
7719
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7720
 
# ----------------------------------
7721
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7722
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7723
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7724
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7725
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7726
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7727
 
fi
7728
 
if test -n "$PKG_CONFIG"; then
7729
 
        _pkg_min_version=m4_default([$1], [0.9.0])
7730
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7731
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7732
 
                AC_MSG_RESULT([yes])
7733
 
        else
7734
 
                AC_MSG_RESULT([no])
7735
 
                PKG_CONFIG=""
7736
 
        fi
7737
 
                
7738
 
fi[]dnl
7739
 
])# PKG_PROG_PKG_CONFIG
7740
 
 
7741
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7742
 
#
7743
 
# Check to see whether a particular set of modules exists.  Similar
7744
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7745
 
#
7746
 
#
7747
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7748
 
# this or PKG_CHECK_MODULES is called, or make sure to call
7749
 
# PKG_CHECK_EXISTS manually
7750
 
# --------------------------------------------------------------
7751
 
AC_DEFUN([PKG_CHECK_EXISTS],
7752
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7753
 
if test -n "$PKG_CONFIG" && \
7754
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7755
 
  m4_ifval([$2], [$2], [:])
7756
 
m4_ifvaln([$3], [else
7757
 
  $3])dnl
7758
 
fi])
7759
 
 
7760
 
 
7761
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7762
 
# ---------------------------------------------
7763
 
m4_define([_PKG_CONFIG],
7764
 
[if test -n "$$1"; then
7765
 
    pkg_cv_[]$1="$$1"
7766
 
 elif test -n "$PKG_CONFIG"; then
7767
 
    PKG_CHECK_EXISTS([$3],
7768
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7769
 
                     [pkg_failed=yes])
7770
 
 else
7771
 
    pkg_failed=untried
7772
 
fi[]dnl
7773
 
])# _PKG_CONFIG
7774
 
 
7775
 
# _PKG_SHORT_ERRORS_SUPPORTED
7776
 
# -----------------------------
7777
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7778
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7779
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7780
 
        _pkg_short_errors_supported=yes
7781
 
else
7782
 
        _pkg_short_errors_supported=no
7783
 
fi[]dnl
7784
 
])# _PKG_SHORT_ERRORS_SUPPORTED
7785
 
 
7786
 
 
7787
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7788
 
# [ACTION-IF-NOT-FOUND])
7789
 
#
7790
 
#
7791
 
# Note that if there is a possibility the first call to
7792
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7793
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7794
 
#
7795
 
#
7796
 
# --------------------------------------------------------------
7797
 
AC_DEFUN([PKG_CHECK_MODULES],
7798
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7799
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7800
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7801
 
 
7802
 
pkg_failed=no
7803
 
AC_MSG_CHECKING([for $1])
7804
 
 
7805
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7806
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7807
 
 
7808
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7809
 
and $1[]_LIBS to avoid the need to call pkg-config.
7810
 
See the pkg-config man page for more details.])
7811
 
 
7812
 
if test $pkg_failed = yes; then
7813
 
        _PKG_SHORT_ERRORS_SUPPORTED
7814
 
        if test $_pkg_short_errors_supported = yes; then
7815
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
7816
 
        else 
7817
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
7818
 
        fi
7819
 
        # Put the nasty error message in config.log where it belongs
7820
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7821
 
 
7822
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
7823
 
[Package requirements ($2) were not met:
7824
 
 
7825
 
$$1_PKG_ERRORS
7826
 
 
7827
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7828
 
installed software in a non-standard prefix.
7829
 
 
7830
 
_PKG_TEXT
7831
 
])],
7832
 
                [AC_MSG_RESULT([no])
7833
 
                $4])
7834
 
elif test $pkg_failed = untried; then
7835
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
7836
 
[The pkg-config script could not be found or is too old.  Make sure it
7837
 
is in your PATH or set the PKG_CONFIG environment variable to the full
7838
 
path to pkg-config.
7839
 
 
7840
 
_PKG_TEXT
7841
 
 
7842
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7843
 
                [$4])
7844
 
else
7845
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7846
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7847
 
        AC_MSG_RESULT([yes])
7848
 
        ifelse([$3], , :, [$3])
7849
 
fi[]dnl
7850
 
])# PKG_CHECK_MODULES
7851
 
 
 
1084
 
 
1085
#serial 20090814
 
1086
 
 
1087
AC_DEFUN([_MM_PRE_INIT], [m4_pattern_forbid([^_?MM_])])
 
1088
 
 
1089
m4_define([_MM_PREREQ],
 
1090
[dnl
 
1091
m4_if(m4_quote(m4_version_compare([$2], [$3])), [-1],
 
1092
      [m4_fatal([$4 requires $1 $3 (version $2 is installed)])])[]dnl
 
1093
])
 
1094
 
 
1095
AC_DEFUN([MM_PREREQ],
 
1096
[dnl
 
1097
m4_assert([$# >= 1])[]dnl
 
1098
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1099
_MM_PREREQ([mm-common], [0.7.1], [$1], m4_defn([AC_PACKAGE_NAME]))[]dnl
 
1100
])
 
1101
 
 
1102
 
 
1103
#serial 20090817
 
1104
 
 
1105
m4_define([_MM_ARG_DISABLE_DEPRECATED_API_OPTION],
 
1106
[dnl
 
1107
AC_PROVIDE([$0])[]dnl
 
1108
AC_ARG_ENABLE([deprecated-api],
 
1109
              [AS_HELP_STRING([--disable-deprecated-api],
 
1110
                              [omit deprecated API from the library])],
 
1111
              [mm_enable_deprecated_api=$enableval],
 
1112
              [mm_enable_deprecated_api=yes])[]dnl
 
1113
AS_IF([test "x$mm_enable_deprecated_api" = xno],
 
1114
      [AC_MSG_WARN([[Deprecated API will not be built, breaking compatibility.
 
1115
Do not use this option for distribution packages.]])],
 
1116
      [AC_MSG_NOTICE([[Deprecated API will be built, for backwards-compatibility.]])])
 
1117
AM_CONDITIONAL([DISABLE_DEPRECATED_API], [test "x$mm_enable_deprecated_api" = xno])[]dnl
 
1118
])
 
1119
 
 
1120
m4_define([_MM_ARG_DISABLE_DEPRECATED_API_DEFINE],
 
1121
[m4_foreach_w([mm_prefix], [$1],
 
1122
[AC_DEFINE(m4_defn([mm_prefix])[_DISABLE_DEPRECATED], [1],
 
1123
           [Define to omit deprecated API from the library.])
 
1124
])])
 
1125
 
 
1126
AC_DEFUN([MM_ARG_DISABLE_DEPRECATED_API],
 
1127
[dnl
 
1128
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1129
AC_REQUIRE([_MM_ARG_DISABLE_DEPRECATED_API_OPTION])[]dnl
 
1130
AS_IF([test "x$mm_enable_deprecated_api" = xno],
 
1131
      [_MM_ARG_DISABLE_DEPRECATED_API_DEFINE(
 
1132
        m4_ifval([$1], [[$1]], [AS_TR_CPP(m4_defn([AC_PACKAGE_TARNAME]))]))])[]dnl
 
1133
])
 
1134
 
 
1135
 
 
1136
#serial 20090828
 
1137
 
 
1138
m4_define([_MM_CONFIG_DOCTOOL_DIR],
 
1139
[dnl
 
1140
AC_PROVIDE([$0])[]dnl
 
1141
AC_REQUIRE([PKG_PROG_PKG_CONFIG])[]dnl
 
1142
dnl
 
1143
AC_MSG_CHECKING([location of documentation utilities])
 
1144
AS_IF([test "x$MMDOCTOOLDIR" = x],
 
1145
[
 
1146
  MMDOCTOOLDIR=`$PKG_CONFIG --variable=doctooldir glibmm-2.4 2>&AS_MESSAGE_LOG_FD`
 
1147
  AS_IF([test "[$]?" -ne 0],
 
1148
        [AC_MSG_ERROR([[not found
 
1149
The required module glibmm could not be found on this system.  If you
 
1150
are running a binary distribution and the glibmm package is installed,
 
1151
make sure that any separate development package for glibmm is installed
 
1152
as well.  If you built glibmm yourself, it may be necessary to adjust
 
1153
the PKG_CONFIG_PATH environment variable for pkg-config to find it.
 
1154
]])])
 
1155
])
 
1156
AC_MSG_RESULT([$MMDOCTOOLDIR])[]dnl
 
1157
])
 
1158
 
 
1159
AC_DEFUN([MM_CONFIG_DOCTOOL_DIR],
 
1160
[dnl
 
1161
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1162
AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl
 
1163
m4_ifval([$1], [MMDOCTOOLDIR='[$]{top_srcdir}/$1'], [AC_REQUIRE([_MM_CONFIG_DOCTOOL_DIR])])
 
1164
AC_SUBST([MMDOCTOOLDIR])[]dnl
 
1165
])
 
1166
 
 
1167
m4_define([_MM_ARG_ENABLE_DOCUMENTATION],
 
1168
[dnl
 
1169
AC_PROVIDE([$0])[]dnl
 
1170
dnl
 
1171
AC_ARG_VAR([DOT], [path to dot utility])[]dnl
 
1172
AC_ARG_VAR([DOXYGEN], [path to Doxygen utility])[]dnl
 
1173
AC_ARG_VAR([XSLTPROC], [path to xsltproc utility])[]dnl
 
1174
dnl
 
1175
AC_PATH_PROG([DOT], [dot], [dot])
 
1176
AC_PATH_PROG([DOXYGEN], [doxygen], [doxygen])
 
1177
AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
 
1178
dnl
 
1179
AC_ARG_ENABLE([documentation],
 
1180
              [AS_HELP_STRING([--disable-documentation],
 
1181
                              [do not build or install the documentation])],
 
1182
              [ENABLE_DOCUMENTATION=$enableval],
 
1183
              [ENABLE_DOCUMENTATION=auto])
 
1184
AS_IF([test "x$ENABLE_DOCUMENTATION" != xno],
 
1185
[
 
1186
  mm_err=
 
1187
  AS_IF([test "x$MMDOCTOOLDIR" = x], [mm_err='dnl
 
1188
The glibmm module is available, but the installation of glibmm on this
 
1189
machine is missing the shared documentation utilities of the GNOME C++
 
1190
bindings.  It may be necessary to upgrade to a more recent release of
 
1191
glibmm in order to build '$PACKAGE_NAME' and install the documentation.'],
 
1192
        [test "x$PERL" = xperl], [mm_err='Perl is required for installing the documentation.'],
 
1193
        [test "x$USE_MAINTAINER_MODE" != xno],
 
1194
  [
 
1195
    test "x$DOT" != xdot || mm_err=' dot'
 
1196
    test "x$DOXYGEN" != xdoxygen || mm_err="$mm_err doxygen"
 
1197
    test "x$XSLTPROC" != xxsltproc || mm_err="$mm_err xsltproc"
 
1198
    test -z "$mm_err" || mm_err='The documentation cannot be generated because
 
1199
not all of the required tools are available:'$mm_err
 
1200
  ])
 
1201
  AS_IF([test -z "$mm_err"], [ENABLE_DOCUMENTATION=yes],
 
1202
        [test "x$ENABLE_DOCUMENTATION" = xyes], [AC_MSG_FAILURE([[$mm_err]])],
 
1203
        [ENABLE_DOCUMENTATION=no; AC_MSG_WARN([[$mm_err]])])
 
1204
])
 
1205
AM_CONDITIONAL([ENABLE_DOCUMENTATION], [test "x$ENABLE_DOCUMENTATION" = xyes])
 
1206
AC_SUBST([DOXYGEN_TAGFILES], [[]])
 
1207
AC_SUBST([DOCINSTALL_FLAGS], [[]])[]dnl
 
1208
])
 
1209
 
 
1210
AC_DEFUN([MM_ARG_ENABLE_DOCUMENTATION],
 
1211
[dnl
 
1212
AC_BEFORE([$0], [MM_ARG_WITH_TAGFILE_DOC])[]dnl
 
1213
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1214
AC_REQUIRE([MM_CONFIG_DOCTOOL_DIR])[]dnl
 
1215
AC_REQUIRE([MM_PATH_PERL])[]dnl
 
1216
AC_REQUIRE([_MM_ARG_ENABLE_DOCUMENTATION])[]dnl
 
1217
])
 
1218
 
 
1219
m4_define([_MM_TR_URI],
 
1220
[dnl
 
1221
[`expr "X$1" : 'X\(.*[^\\/]\)[\\/]*' 2>&]AS_MESSAGE_LOG_FD[ |]dnl
 
1222
[ sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&]AS_MESSAGE_LOG_FD[`]dnl
 
1223
])
 
1224
 
 
1225
m4_define([_MM_ARG_WITH_TAGFILE_DOC],
 
1226
[dnl
 
1227
  AC_MSG_CHECKING([for $1 documentation])
 
1228
  AC_ARG_WITH([$1-doc],
 
1229
              [AS_HELP_STRING([[--with-$1-doc=[TAGFILE@]HTMLREFDIR]],
 
1230
                              [Link to external $1 documentation]m4_ifval([$4], [[ [auto]]]))],
 
1231
  [
 
1232
    mm_htmlrefdir=`[expr "@$withval" : '.*@\(.*\)' 2>&]AS_MESSAGE_LOG_FD`
 
1233
    mm_tagname=`[expr "/$withval" : '[^@]*[\\/]\([^\\/@]*\)@' 2>&]AS_MESSAGE_LOG_FD`
 
1234
    mm_tagpath=`[expr "X$withval" : 'X\([^@]*\)@' 2>&]AS_MESSAGE_LOG_FD`
 
1235
    test "x$mm_tagname" != x || mm_tagname="$3"
 
1236
    test "x$mm_tagpath" != x || mm_tagpath=$mm_tagname[]dnl
 
1237
  ], [
 
1238
    mm_htmlrefdir=
 
1239
    mm_tagname="$3"
 
1240
    mm_tagpath=$mm_tagname[]dnl
 
1241
  ])
 
1242
  # Prepend working direcory if the tag file path starts with ./ or ../
 
1243
  AS_CASE([$mm_tagpath], [[.[\\/]*|..[\\/]*]], [mm_tagpath=`pwd`/$mm_tagpath])
 
1244
 
 
1245
m4_ifval([$4], [dnl
 
1246
  # If no local directory was specified, get the default from the .pc file
 
1247
  AS_IF([test "x$mm_htmlrefdir" = x],
 
1248
  [
 
1249
    mm_htmlrefdir=`$PKG_CONFIG --variable=htmlrefdir "$4" 2>&AS_MESSAGE_LOG_FD`dnl
 
1250
  ])
 
1251
  # If the user specified a Web URL, allow it to override the public location
 
1252
  AS_CASE([$mm_htmlrefdir], [[http://*|https://*]], [mm_htmlrefpub=$mm_htmlrefdir],
 
1253
  [
 
1254
    mm_htmlrefpub=`$PKG_CONFIG --variable=htmlrefpub "$4" 2>&AS_MESSAGE_LOG_FD`
 
1255
    test "x$mm_htmlrefpub" != x || mm_htmlrefpub=$mm_htmlrefdir
 
1256
    test "x$mm_htmlrefdir" != x || mm_htmlrefdir=$mm_htmlrefpub
 
1257
  ])
 
1258
  # The user-supplied tag-file name takes precedence if it includes the path
 
1259
  AS_CASE([$mm_tagpath], [[*[\\/]*]],,
 
1260
  [
 
1261
    mm_doxytagfile=`$PKG_CONFIG --variable=doxytagfile "$4" 2>&AS_MESSAGE_LOG_FD`
 
1262
    test "x$mm_doxytagfile" = x || mm_tagpath=$mm_doxytagfile
 
1263
  ])
 
1264
  # Remove trailing slashes and translate to URI
 
1265
  mm_htmlrefpub=_MM_TR_URI([$mm_htmlrefpub])
 
1266
])[]dnl
 
1267
  mm_htmlrefdir=_MM_TR_URI([$mm_htmlrefdir])
 
1268
 
 
1269
  AC_MSG_RESULT([$mm_tagpath@$mm_htmlrefdir])
 
1270
 
 
1271
  AS_IF([test "x$USE_MAINTAINER_MODE" != xno && test ! -f "$mm_tagpath"],
 
1272
        [AC_MSG_WARN([Doxygen tag file $3 not found])])
 
1273
  AS_IF([test "x$mm_htmlrefdir" = x],
 
1274
        [AC_MSG_WARN([Location of external $1 documentation not set])],
 
1275
        [AS_IF([test "x$DOCINSTALL_FLAGS" = x],
 
1276
               [DOCINSTALL_FLAGS="-l '$mm_tagname@$mm_htmlrefdir/'"],
 
1277
               [DOCINSTALL_FLAGS="$DOCINSTALL_FLAGS -l '$mm_tagname@$mm_htmlrefdir/'"])])
 
1278
 
 
1279
  AS_IF([test "x$mm_$2" = x], [mm_val=$mm_tagpath], [mm_val="$mm_tagpath=$mm_$2"])
 
1280
  AS_IF([test "x$DOXYGEN_TAGFILES" = x],
 
1281
        [DOXYGEN_TAGFILES=[\]"$mm_val[\]"],
 
1282
        [DOXYGEN_TAGFILES="$DOXYGEN_TAGFILES "[\]"$mm_val[\]"])[]dnl
 
1283
])
 
1284
 
 
1285
AC_DEFUN([MM_ARG_WITH_TAGFILE_DOC],
 
1286
[dnl
 
1287
m4_assert([$# >= 1])[]dnl
 
1288
m4_ifval([$2], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])])[]dnl
 
1289
AC_REQUIRE([MM_CONFIG_DOCTOOL_DIR])[]dnl
 
1290
AC_REQUIRE([_MM_ARG_ENABLE_DOCUMENTATION])[]dnl
 
1291
dnl
 
1292
AS_IF([test "x$ENABLE_DOCUMENTATION" != xno],
 
1293
      [_MM_ARG_WITH_TAGFILE_DOC(m4_quote(m4_bpatsubst([$1], [[+]*\([-+][0123456789]\|[._]\).*$])),
 
1294
                                [htmlref]m4_ifval([$2], [[pub]], [[dir]]), [$1], [$2])])[]dnl
 
1295
])
 
1296
 
 
1297
 
 
1298
#serial 20090822
 
1299
 
 
1300
m4_define([_MM_INIT_MODULE_VERSION],
 
1301
[dnl
 
1302
m4_ifval([$3],
 
1303
[AC_SUBST([$2][_MAJOR_VERSION], [$3])
 
1304
AC_DEFINE([$2][_MAJOR_VERSION], [$3], [Major version number of $1.])
 
1305
])[]dnl
 
1306
m4_ifval([$4],
 
1307
[AC_SUBST([$2][_MINOR_VERSION], [$4])
 
1308
AC_DEFINE([$2][_MINOR_VERSION], [$4], [Minor version number of $1.])
 
1309
])[]dnl
 
1310
m4_ifval([$5],
 
1311
[AC_SUBST([$2][_MICRO_VERSION], [$5])
 
1312
AC_DEFINE([$2][_MICRO_VERSION], [$5], [Micro version number of $1.])
 
1313
])[]dnl
 
1314
])
 
1315
 
 
1316
m4_define([_MM_INIT_MODULE_SUBST],
 
1317
[dnl
 
1318
AC_SUBST([$5][_MODULE_NAME], ['$1'])
 
1319
AC_SUBST([$5][_VERSION], ['$2'])
 
1320
m4_ifval([$4],
 
1321
[AC_SUBST([$5][_API_VERSION], ['$4'])
 
1322
])[]dnl
 
1323
_MM_INIT_MODULE_VERSION([$3], [$5], m4_bpatsubst([$2], [[^0123456789]+], [,]))[]dnl
 
1324
])
 
1325
 
 
1326
m4_define([_MM_INIT_MODULE_BASENAME],
 
1327
          [_MM_INIT_MODULE_SUBST([$1], [$2], [$3], [$4],
 
1328
                                 m4_quote(AS_TR_CPP(m4_quote(m4_translit([$3], [+], [X])))))])
 
1329
 
 
1330
AC_DEFUN([MM_INIT_MODULE],
 
1331
[dnl
 
1332
m4_assert([$# >= 1])[]dnl
 
1333
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1334
AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl
 
1335
_MM_INIT_MODULE_BASENAME([$1],
 
1336
                 m4_quote(m4_ifval([$2], [$2], m4_defn([AC_PACKAGE_VERSION]))),
 
1337
                 m4_quote(m4_bpatsubst([$1], [-[.0123456789]+$])),
 
1338
                 m4_quote(m4_bregexp([$1], [-\([.0123456789]+\)$], [\1])))[]dnl
 
1339
])
 
1340
 
 
1341
 
 
1342
#serial 20090822
 
1343
 
 
1344
m4_define([_MM_CHECK_GNU_MAKE],
 
1345
[dnl
 
1346
AC_PROVIDE([$0])[]dnl
 
1347
AC_MSG_CHECKING([whether [$]{MAKE-make} supports GNU make features])
 
1348
cat >conftest.make <<'_MMEOF'
 
1349
override reverse = [$](2)[$](subst ,, )[$](1)
 
1350
override result := [$](word 2,[$](call reverse,success,failure))
 
1351
all: ; test '[$](result)' = success
 
1352
.PHONY: all
 
1353
_MMEOF
 
1354
AS_IF([[$]{MAKE-make} -f conftest.make >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD],
 
1355
      [mm_gnu_make=yes], [mm_gnu_make=no])
 
1356
rm -f conftest.make
 
1357
AC_MSG_RESULT([$mm_gnu_make])
 
1358
AS_IF([test "x$mm_gnu_make" != xyes],
 
1359
      [AC_MSG_FAILURE([[The GNU make program is required to build $PACKAGE_NAME.]])])[]dnl
 
1360
])
 
1361
 
 
1362
AC_DEFUN([MM_CHECK_GNU_MAKE],
 
1363
[dnl
 
1364
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1365
AC_REQUIRE([_MM_CHECK_GNU_MAKE])[]dnl
 
1366
])
 
1367
 
 
1368
m4_define([_MM_PATH_PERL],
 
1369
[dnl
 
1370
AC_PROVIDE([$0])[]dnl
 
1371
AC_ARG_VAR([PERL], [path to Perl interpreter])[]dnl
 
1372
AC_PATH_PROG([PERL], [perl], [perl])[]dnl
 
1373
])
 
1374
 
 
1375
AC_DEFUN([MM_PATH_PERL],
 
1376
[dnl
 
1377
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1378
AC_REQUIRE([_MM_PATH_PERL])[]dnl
 
1379
])
 
1380
 
 
1381
m4_define([_MM_CHECK_PERL],
 
1382
[dnl
 
1383
AS_IF([$PERL -e "require v$1; exit 0;" >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD],
 
1384
      [$2], m4_ifval([$2$3], [[$3]],
 
1385
            [[AC_MSG_FAILURE([[At least Perl ]$1[ is required to build $PACKAGE_NAME.]])]]))[]dnl
 
1386
])
 
1387
 
 
1388
AC_DEFUN([MM_CHECK_PERL],
 
1389
[dnl
 
1390
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1391
AC_REQUIRE([_MM_PATH_PERL])[]dnl
 
1392
_MM_CHECK_PERL(m4_ifval([$1], [[$1]], [[5.6.0]]), [$2], [$3])[]dnl
 
1393
])
 
1394
 
 
1395
AC_DEFUN([MM_PKG_CONFIG_SUBST],
 
1396
[dnl
 
1397
m4_assert([$# >= 2])[]dnl
 
1398
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1399
AC_REQUIRE([PKG_PROG_PKG_CONFIG])[]dnl
 
1400
AC_MSG_CHECKING([for $1])
 
1401
dnl
 
1402
AS_IF([test -z "[$]{$1+set}"],
 
1403
      [$1=`$PKG_CONFIG $2 2>&AS_MESSAGE_LOG_FD`
 
1404
       AS_IF([test "[$]?" -eq 0], [$3], [$4])])
 
1405
dnl
 
1406
AC_MSG_RESULT([[$]$1])
 
1407
AC_SUBST([$1])[]dnl
 
1408
])
 
1409
 
 
1410
 
 
1411
#serial 20090814
 
1412
 
 
1413
m4_define([_MM_ARG_ENABLE_WARNINGS_OPTION],
 
1414
[dnl
 
1415
AC_PROVIDE([$0])[]dnl
 
1416
AC_ARG_ENABLE([warnings],
 
1417
              [AS_HELP_STRING([[--enable-warnings[=min|max|fatal|no]]],
 
1418
                              [set compiler pedantry level [default=min]])],
 
1419
              [mm_enable_warnings=$enableval],
 
1420
              [mm_enable_warnings=min])[]dnl
 
1421
])
 
1422
 
 
1423
AC_DEFUN([MM_ARG_ENABLE_WARNINGS],
 
1424
[dnl
 
1425
m4_assert([$# >= 3])[]dnl
 
1426
AC_REQUIRE([_MM_PRE_INIT])[]dnl
 
1427
AC_REQUIRE([_MM_ARG_ENABLE_WARNINGS_OPTION])[]dnl
 
1428
dnl
 
1429
AS_CASE([$ac_compile],
 
1430
        [[*'$CXXFLAGS '*]], [mm_lang='C++' mm_cc=$CXX mm_conftest="conftest.[$]{ac_ext-cc}"],
 
1431
        [[*'$CFLAGS '*]],   [mm_lang=C mm_cc=$CC mm_conftest="conftest.[$]{ac_ext-c}"],
 
1432
                            [AC_MSG_ERROR([[current language is neither C nor C++]])])
 
1433
dnl
 
1434
AC_MSG_CHECKING([which $mm_lang compiler warning flags to use])
 
1435
m4_ifval([$4], [mm_deprecation_flags=
 
1436
])mm_tested_flags=
 
1437
dnl
 
1438
AS_CASE([$mm_enable_warnings],
 
1439
        [no],    [mm_warning_flags=],
 
1440
        [max],   [mm_warning_flags="$3"],
 
1441
        [fatal], [mm_warning_flags="$3 -Werror"[]m4_ifval([$4], [
 
1442
         for mm_prefix in $4
 
1443
         do
 
1444
           mm_deprecation_flags="[$]{mm_deprecation_flags}-D[$]{mm_prefix}[_DISABLE_DEPRECATED ]"
 
1445
         done])],
 
1446
        [mm_warning_flags="$2"])
 
1447
dnl
 
1448
AS_IF([test "x$mm_warning_flags" != x],
 
1449
[
 
1450
  # Keep in mind that the dummy source must be devoid of any
 
1451
  # problems that might cause diagnostics.
 
1452
  AC_LANG_CONFTEST([AC_LANG_SOURCE([[
 
1453
int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
 
1454
]])])
 
1455
  for mm_flag in $mm_warning_flags
 
1456
  do
 
1457
    # Test whether the compiler accepts the flag.  Look at standard output,
 
1458
    # since GCC only shows a warning message if an option is not supported.
 
1459
    mm_cc_out=`$mm_cc $mm_tested_flags $mm_flag -c "$mm_conftest" 2>&1 || echo failed`
 
1460
    rm -f "conftest.${OBJEXT-o}"
 
1461
 
 
1462
    AS_IF([test "x$mm_cc_out" = x],
 
1463
          [AS_IF([test "x$mm_tested_flags" = x],
 
1464
                 [mm_tested_flags=$mm_flag],
 
1465
                 [mm_tested_flags="$mm_tested_flags $mm_flag"])],
 
1466
[cat <<_MMEOF >&AS_MESSAGE_LOG_FD
 
1467
$mm_cc: $mm_cc_out
 
1468
_MMEOF
 
1469
])
 
1470
  done
 
1471
  rm -f "$mm_conftest"
 
1472
])
 
1473
mm_all_flags=m4_ifval([$4], [$mm_deprecation_flags])$mm_tested_flags
 
1474
AC_SUBST([$1], [$mm_all_flags])
 
1475
dnl
 
1476
test "x$mm_all_flags" != x || mm_all_flags=none
 
1477
AC_MSG_RESULT([$mm_all_flags])[]dnl
 
1478
])
 
1479
 
 
1480
m4_include([build/c_std.m4])
 
1481
m4_include([build/cxx.m4])
 
1482
m4_include([build/cxx_std.m4])
 
1483
m4_include([build/dk-feature.m4])
 
1484
m4_include([build/libtool.m4])
 
1485
m4_include([build/ltoptions.m4])
 
1486
m4_include([build/ltsugar.m4])
 
1487
m4_include([build/ltversion.m4])
 
1488
m4_include([build/lt~obsolete.m4])
 
1489
m4_include([build/macros.m4])
 
1490
m4_include([build/reduced.m4])
 
1491
m4_include([build/sun.m4])