~ubuntu-branches/ubuntu/edgy/ggz-client-libs/edgy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut, Josef Spillner, Peter Eisentraut
  • Date: 2006-09-09 13:37:14 UTC
  • mfrom: (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060909133714-q49a9kvjfkc0wcc3
Tags: 0.0.13-3
[ Josef Spillner ]
* Change ggzcore-bin dependency from ggzmod to recommends from ggzcore
  (closes: #384671).

[ Peter Eisentraut ]
* Make package dependencies binNMU-safe through use of ${binary:Version}
  (closes: #386126)

Show diffs side-by-side

added added

removed removed

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