~ubuntu-branches/ubuntu/jaunty/libnotify/jaunty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-01-02 15:56:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060102155618-6sbpi0enbolsnng6
Tags: 0.3.0-0ubuntu1
* New upstream release
* works with new notify-daemon, contains a new (more gtk-ish) API

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2
 
 
3
 
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4
 
dnl This file is free software; the Free Software Foundation
5
 
dnl gives unlimited permission to copy and/or distribute it,
6
 
dnl with or without modifications, as long as this notice is preserved.
7
 
 
8
 
dnl This program is distributed in the hope that it will be useful,
9
 
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10
 
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
 
dnl PARTICULAR PURPOSE.
12
 
 
13
 
# lib-prefix.m4 serial 3 (gettext-0.13)
14
 
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
15
 
dnl This file is free software, distributed under the terms of the GNU
16
 
dnl General Public License.  As a special exception to the GNU General
17
 
dnl Public License, this file may be distributed as part of a program
18
 
dnl that contains a configuration script generated by Autoconf, under
19
 
dnl the same distribution terms as the rest of that program.
20
 
 
21
 
dnl From Bruno Haible.
22
 
 
23
 
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
24
 
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
25
 
dnl require excessive bracketing.
26
 
ifdef([AC_HELP_STRING],
27
 
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
28
 
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
29
 
 
30
 
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
31
 
dnl to access previously installed libraries. The basic assumption is that
32
 
dnl a user will want packages to use other packages he previously installed
33
 
dnl with the same --prefix option.
34
 
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
35
 
dnl libraries, but is otherwise very convenient.
36
 
AC_DEFUN([AC_LIB_PREFIX],
37
 
[
38
 
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
39
 
  AC_REQUIRE([AC_PROG_CC])
40
 
  AC_REQUIRE([AC_CANONICAL_HOST])
41
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
42
 
  dnl By default, look in $includedir and $libdir.
43
 
  use_additional=yes
44
 
  AC_LIB_WITH_FINAL_PREFIX([
45
 
    eval additional_includedir=\"$includedir\"
46
 
    eval additional_libdir=\"$libdir\"
47
 
  ])
48
 
  AC_LIB_ARG_WITH([lib-prefix],
49
 
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
50
 
  --without-lib-prefix    don't search for libraries in includedir and libdir],
51
 
[
52
 
    if test "X$withval" = "Xno"; then
53
 
      use_additional=no
54
 
    else
55
 
      if test "X$withval" = "X"; then
56
 
        AC_LIB_WITH_FINAL_PREFIX([
57
 
          eval additional_includedir=\"$includedir\"
58
 
          eval additional_libdir=\"$libdir\"
59
 
        ])
60
 
      else
61
 
        additional_includedir="$withval/include"
62
 
        additional_libdir="$withval/lib"
63
 
      fi
64
 
    fi
65
 
])
66
 
  if test $use_additional = yes; then
67
 
    dnl Potentially add $additional_includedir to $CPPFLAGS.
68
 
    dnl But don't add it
69
 
    dnl   1. if it's the standard /usr/include,
70
 
    dnl   2. if it's already present in $CPPFLAGS,
71
 
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
72
 
    dnl   4. if it doesn't exist as a directory.
73
 
    if test "X$additional_includedir" != "X/usr/include"; then
74
 
      haveit=
75
 
      for x in $CPPFLAGS; do
76
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
77
 
        if test "X$x" = "X-I$additional_includedir"; then
78
 
          haveit=yes
79
 
          break
80
 
        fi
81
 
      done
82
 
      if test -z "$haveit"; then
83
 
        if test "X$additional_includedir" = "X/usr/local/include"; then
84
 
          if test -n "$GCC"; then
85
 
            case $host_os in
86
 
              linux*) haveit=yes;;
87
 
            esac
88
 
          fi
89
 
        fi
90
 
        if test -z "$haveit"; then
91
 
          if test -d "$additional_includedir"; then
92
 
            dnl Really add $additional_includedir to $CPPFLAGS.
93
 
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
94
 
          fi
95
 
        fi
96
 
      fi
97
 
    fi
98
 
    dnl Potentially add $additional_libdir to $LDFLAGS.
99
 
    dnl But don't add it
100
 
    dnl   1. if it's the standard /usr/lib,
101
 
    dnl   2. if it's already present in $LDFLAGS,
102
 
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
103
 
    dnl   4. if it doesn't exist as a directory.
104
 
    if test "X$additional_libdir" != "X/usr/lib"; then
105
 
      haveit=
106
 
      for x in $LDFLAGS; do
107
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
108
 
        if test "X$x" = "X-L$additional_libdir"; then
109
 
          haveit=yes
110
 
          break
111
 
        fi
112
 
      done
113
 
      if test -z "$haveit"; then
114
 
        if test "X$additional_libdir" = "X/usr/local/lib"; then
115
 
          if test -n "$GCC"; then
116
 
            case $host_os in
117
 
              linux*) haveit=yes;;
118
 
            esac
119
 
          fi
120
 
        fi
121
 
        if test -z "$haveit"; then
122
 
          if test -d "$additional_libdir"; then
123
 
            dnl Really add $additional_libdir to $LDFLAGS.
124
 
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
125
 
          fi
126
 
        fi
127
 
      fi
128
 
    fi
129
 
  fi
130
 
])
131
 
 
132
 
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
133
 
dnl acl_final_exec_prefix, containing the values to which $prefix and
134
 
dnl $exec_prefix will expand at the end of the configure script.
135
 
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
136
 
[
137
 
  dnl Unfortunately, prefix and exec_prefix get only finally determined
138
 
  dnl at the end of configure.
139
 
  if test "X$prefix" = "XNONE"; then
140
 
    acl_final_prefix="$ac_default_prefix"
141
 
  else
142
 
    acl_final_prefix="$prefix"
143
 
  fi
144
 
  if test "X$exec_prefix" = "XNONE"; then
145
 
    acl_final_exec_prefix='${prefix}'
146
 
  else
147
 
    acl_final_exec_prefix="$exec_prefix"
148
 
  fi
149
 
  acl_save_prefix="$prefix"
150
 
  prefix="$acl_final_prefix"
151
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
152
 
  prefix="$acl_save_prefix"
153
 
])
154
 
 
155
 
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
156
 
dnl variables prefix and exec_prefix bound to the values they will have
157
 
dnl at the end of the configure script.
158
 
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
159
 
[
160
 
  acl_save_prefix="$prefix"
161
 
  prefix="$acl_final_prefix"
162
 
  acl_save_exec_prefix="$exec_prefix"
163
 
  exec_prefix="$acl_final_exec_prefix"
164
 
  $1
165
 
  exec_prefix="$acl_save_exec_prefix"
166
 
  prefix="$acl_save_prefix"
167
 
])
168
 
 
169
 
# lib-link.m4 serial 4 (gettext-0.12)
170
 
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
171
 
dnl This file is free software, distributed under the terms of the GNU
172
 
dnl General Public License.  As a special exception to the GNU General
173
 
dnl Public License, this file may be distributed as part of a program
174
 
dnl that contains a configuration script generated by Autoconf, under
175
 
dnl the same distribution terms as the rest of that program.
176
 
 
177
 
dnl From Bruno Haible.
178
 
 
179
 
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
180
 
dnl the libraries corresponding to explicit and implicit dependencies.
181
 
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
182
 
dnl augments the CPPFLAGS variable.
183
 
AC_DEFUN([AC_LIB_LINKFLAGS],
184
 
[
185
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
186
 
  AC_REQUIRE([AC_LIB_RPATH])
187
 
  define([Name],[translit([$1],[./-], [___])])
188
 
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
189
 
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
190
 
  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
191
 
    AC_LIB_LINKFLAGS_BODY([$1], [$2])
192
 
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
193
 
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
194
 
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
195
 
  ])
196
 
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
197
 
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
198
 
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
199
 
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
200
 
  AC_SUBST([LIB]NAME)
201
 
  AC_SUBST([LTLIB]NAME)
202
 
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
203
 
  dnl results of this search when this library appears as a dependency.
204
 
  HAVE_LIB[]NAME=yes
205
 
  undefine([Name])
206
 
  undefine([NAME])
207
 
])
208
 
 
209
 
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
210
 
dnl searches for libname and the libraries corresponding to explicit and
211
 
dnl implicit dependencies, together with the specified include files and
212
 
dnl the ability to compile and link the specified testcode. If found, it
213
 
dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
214
 
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
215
 
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
216
 
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
217
 
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
218
 
[
219
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
220
 
  AC_REQUIRE([AC_LIB_RPATH])
221
 
  define([Name],[translit([$1],[./-], [___])])
222
 
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
223
 
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
224
 
 
225
 
  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
226
 
  dnl accordingly.
227
 
  AC_LIB_LINKFLAGS_BODY([$1], [$2])
228
 
 
229
 
  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
230
 
  dnl because if the user has installed lib[]Name and not disabled its use
231
 
  dnl via --without-lib[]Name-prefix, he wants to use it.
232
 
  ac_save_CPPFLAGS="$CPPFLAGS"
233
 
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
234
 
 
235
 
  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
236
 
    ac_save_LIBS="$LIBS"
237
 
    LIBS="$LIBS $LIB[]NAME"
238
 
    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
239
 
    LIBS="$ac_save_LIBS"
240
 
  ])
241
 
  if test "$ac_cv_lib[]Name" = yes; then
242
 
    HAVE_LIB[]NAME=yes
243
 
    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
244
 
    AC_MSG_CHECKING([how to link with lib[]$1])
245
 
    AC_MSG_RESULT([$LIB[]NAME])
246
 
  else
247
 
    HAVE_LIB[]NAME=no
248
 
    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
249
 
    dnl $INC[]NAME either.
250
 
    CPPFLAGS="$ac_save_CPPFLAGS"
251
 
    LIB[]NAME=
252
 
    LTLIB[]NAME=
253
 
  fi
254
 
  AC_SUBST([HAVE_LIB]NAME)
255
 
  AC_SUBST([LIB]NAME)
256
 
  AC_SUBST([LTLIB]NAME)
257
 
  undefine([Name])
258
 
  undefine([NAME])
259
 
])
260
 
 
261
 
dnl Determine the platform dependent parameters needed to use rpath:
262
 
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
263
 
dnl hardcode_direct, hardcode_minus_L.
264
 
AC_DEFUN([AC_LIB_RPATH],
265
 
[
266
 
  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
267
 
  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
268
 
  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
269
 
  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
270
 
  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
271
 
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
272
 
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
273
 
    . ./conftest.sh
274
 
    rm -f ./conftest.sh
275
 
    acl_cv_rpath=done
276
 
  ])
277
 
  wl="$acl_cv_wl"
278
 
  libext="$acl_cv_libext"
279
 
  shlibext="$acl_cv_shlibext"
280
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
281
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
282
 
  hardcode_direct="$acl_cv_hardcode_direct"
283
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
284
 
  dnl Determine whether the user wants rpath handling at all.
285
 
  AC_ARG_ENABLE(rpath,
286
 
    [  --disable-rpath         do not hardcode runtime library paths],
287
 
    :, enable_rpath=yes)
288
 
])
289
 
 
290
 
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
291
 
dnl the libraries corresponding to explicit and implicit dependencies.
292
 
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
293
 
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
294
 
[
295
 
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
296
 
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
297
 
  dnl By default, look in $includedir and $libdir.
298
 
  use_additional=yes
299
 
  AC_LIB_WITH_FINAL_PREFIX([
300
 
    eval additional_includedir=\"$includedir\"
301
 
    eval additional_libdir=\"$libdir\"
302
 
  ])
303
 
  AC_LIB_ARG_WITH([lib$1-prefix],
304
 
[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
305
 
  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
306
 
[
307
 
    if test "X$withval" = "Xno"; then
308
 
      use_additional=no
309
 
    else
310
 
      if test "X$withval" = "X"; then
311
 
        AC_LIB_WITH_FINAL_PREFIX([
312
 
          eval additional_includedir=\"$includedir\"
313
 
          eval additional_libdir=\"$libdir\"
314
 
        ])
315
 
      else
316
 
        additional_includedir="$withval/include"
317
 
        additional_libdir="$withval/lib"
318
 
      fi
319
 
    fi
320
 
])
321
 
  dnl Search the library and its dependencies in $additional_libdir and
322
 
  dnl $LDFLAGS. Using breadth-first-seach.
323
 
  LIB[]NAME=
324
 
  LTLIB[]NAME=
325
 
  INC[]NAME=
326
 
  rpathdirs=
327
 
  ltrpathdirs=
328
 
  names_already_handled=
329
 
  names_next_round='$1 $2'
330
 
  while test -n "$names_next_round"; do
331
 
    names_this_round="$names_next_round"
332
 
    names_next_round=
333
 
    for name in $names_this_round; do
334
 
      already_handled=
335
 
      for n in $names_already_handled; do
336
 
        if test "$n" = "$name"; then
337
 
          already_handled=yes
338
 
          break
339
 
        fi
340
 
      done
341
 
      if test -z "$already_handled"; then
342
 
        names_already_handled="$names_already_handled $name"
343
 
        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
344
 
        dnl or AC_LIB_HAVE_LINKFLAGS call.
345
 
        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
346
 
        eval value=\"\$HAVE_LIB$uppername\"
347
 
        if test -n "$value"; then
348
 
          if test "$value" = yes; then
349
 
            eval value=\"\$LIB$uppername\"
350
 
            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
351
 
            eval value=\"\$LTLIB$uppername\"
352
 
            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
353
 
          else
354
 
            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
355
 
            dnl that this library doesn't exist. So just drop it.
356
 
            :
357
 
          fi
358
 
        else
359
 
          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
360
 
          dnl and the already constructed $LIBNAME/$LTLIBNAME.
361
 
          found_dir=
362
 
          found_la=
363
 
          found_so=
364
 
          found_a=
365
 
          if test $use_additional = yes; then
366
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
367
 
              found_dir="$additional_libdir"
368
 
              found_so="$additional_libdir/lib$name.$shlibext"
369
 
              if test -f "$additional_libdir/lib$name.la"; then
370
 
                found_la="$additional_libdir/lib$name.la"
371
 
              fi
372
 
            else
373
 
              if test -f "$additional_libdir/lib$name.$libext"; then
374
 
                found_dir="$additional_libdir"
375
 
                found_a="$additional_libdir/lib$name.$libext"
376
 
                if test -f "$additional_libdir/lib$name.la"; then
377
 
                  found_la="$additional_libdir/lib$name.la"
378
 
                fi
379
 
              fi
380
 
            fi
381
 
          fi
382
 
          if test "X$found_dir" = "X"; then
383
 
            for x in $LDFLAGS $LTLIB[]NAME; do
384
 
              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
385
 
              case "$x" in
386
 
                -L*)
387
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
388
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
389
 
                    found_dir="$dir"
390
 
                    found_so="$dir/lib$name.$shlibext"
391
 
                    if test -f "$dir/lib$name.la"; then
392
 
                      found_la="$dir/lib$name.la"
393
 
                    fi
394
 
                  else
395
 
                    if test -f "$dir/lib$name.$libext"; then
396
 
                      found_dir="$dir"
397
 
                      found_a="$dir/lib$name.$libext"
398
 
                      if test -f "$dir/lib$name.la"; then
399
 
                        found_la="$dir/lib$name.la"
400
 
                      fi
401
 
                    fi
402
 
                  fi
403
 
                  ;;
404
 
              esac
405
 
              if test "X$found_dir" != "X"; then
406
 
                break
407
 
              fi
408
 
            done
409
 
          fi
410
 
          if test "X$found_dir" != "X"; then
411
 
            dnl Found the library.
412
 
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
413
 
            if test "X$found_so" != "X"; then
414
 
              dnl Linking with a shared library. We attempt to hardcode its
415
 
              dnl directory into the executable's runpath, unless it's the
416
 
              dnl standard /usr/lib.
417
 
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
418
 
                dnl No hardcoding is needed.
419
 
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
420
 
              else
421
 
                dnl Use an explicit option to hardcode DIR into the resulting
422
 
                dnl binary.
423
 
                dnl Potentially add DIR to ltrpathdirs.
424
 
                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
425
 
                haveit=
426
 
                for x in $ltrpathdirs; do
427
 
                  if test "X$x" = "X$found_dir"; then
428
 
                    haveit=yes
429
 
                    break
430
 
                  fi
431
 
                done
432
 
                if test -z "$haveit"; then
433
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
434
 
                fi
435
 
                dnl The hardcoding into $LIBNAME is system dependent.
436
 
                if test "$hardcode_direct" = yes; then
437
 
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
438
 
                  dnl resulting binary.
439
 
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
440
 
                else
441
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
442
 
                    dnl Use an explicit option to hardcode DIR into the resulting
443
 
                    dnl binary.
444
 
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
445
 
                    dnl Potentially add DIR to rpathdirs.
446
 
                    dnl The rpathdirs will be appended to $LIBNAME at the end.
447
 
                    haveit=
448
 
                    for x in $rpathdirs; do
449
 
                      if test "X$x" = "X$found_dir"; then
450
 
                        haveit=yes
451
 
                        break
452
 
                      fi
453
 
                    done
454
 
                    if test -z "$haveit"; then
455
 
                      rpathdirs="$rpathdirs $found_dir"
456
 
                    fi
457
 
                  else
458
 
                    dnl Rely on "-L$found_dir".
459
 
                    dnl But don't add it if it's already contained in the LDFLAGS
460
 
                    dnl or the already constructed $LIBNAME
461
 
                    haveit=
462
 
                    for x in $LDFLAGS $LIB[]NAME; do
463
 
                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
464
 
                      if test "X$x" = "X-L$found_dir"; then
465
 
                        haveit=yes
466
 
                        break
467
 
                      fi
468
 
                    done
469
 
                    if test -z "$haveit"; then
470
 
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
471
 
                    fi
472
 
                    if test "$hardcode_minus_L" != no; then
473
 
                      dnl FIXME: Not sure whether we should use
474
 
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
475
 
                      dnl here.
476
 
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
477
 
                    else
478
 
                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
479
 
                      dnl here, because this doesn't fit in flags passed to the
480
 
                      dnl compiler. So give up. No hardcoding. This affects only
481
 
                      dnl very old systems.
482
 
                      dnl FIXME: Not sure whether we should use
483
 
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
484
 
                      dnl here.
485
 
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
486
 
                    fi
487
 
                  fi
488
 
                fi
489
 
              fi
490
 
            else
491
 
              if test "X$found_a" != "X"; then
492
 
                dnl Linking with a static library.
493
 
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
494
 
              else
495
 
                dnl We shouldn't come here, but anyway it's good to have a
496
 
                dnl fallback.
497
 
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
498
 
              fi
499
 
            fi
500
 
            dnl Assume the include files are nearby.
501
 
            additional_includedir=
502
 
            case "$found_dir" in
503
 
              */lib | */lib/)
504
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
505
 
                additional_includedir="$basedir/include"
506
 
                ;;
507
 
            esac
508
 
            if test "X$additional_includedir" != "X"; then
509
 
              dnl Potentially add $additional_includedir to $INCNAME.
510
 
              dnl But don't add it
511
 
              dnl   1. if it's the standard /usr/include,
512
 
              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
513
 
              dnl   3. if it's already present in $CPPFLAGS or the already
514
 
              dnl      constructed $INCNAME,
515
 
              dnl   4. if it doesn't exist as a directory.
516
 
              if test "X$additional_includedir" != "X/usr/include"; then
517
 
                haveit=
518
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
519
 
                  if test -n "$GCC"; then
520
 
                    case $host_os in
521
 
                      linux*) haveit=yes;;
522
 
                    esac
523
 
                  fi
524
 
                fi
525
 
                if test -z "$haveit"; then
526
 
                  for x in $CPPFLAGS $INC[]NAME; do
527
 
                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
528
 
                    if test "X$x" = "X-I$additional_includedir"; then
529
 
                      haveit=yes
530
 
                      break
531
 
                    fi
532
 
                  done
533
 
                  if test -z "$haveit"; then
534
 
                    if test -d "$additional_includedir"; then
535
 
                      dnl Really add $additional_includedir to $INCNAME.
536
 
                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
537
 
                    fi
538
 
                  fi
539
 
                fi
540
 
              fi
541
 
            fi
542
 
            dnl Look for dependencies.
543
 
            if test -n "$found_la"; then
544
 
              dnl Read the .la file. It defines the variables
545
 
              dnl dlname, library_names, old_library, dependency_libs, current,
546
 
              dnl age, revision, installed, dlopen, dlpreopen, libdir.
547
 
              save_libdir="$libdir"
548
 
              case "$found_la" in
549
 
                */* | *\\*) . "$found_la" ;;
550
 
                *) . "./$found_la" ;;
551
 
              esac
552
 
              libdir="$save_libdir"
553
 
              dnl We use only dependency_libs.
554
 
              for dep in $dependency_libs; do
555
 
                case "$dep" in
556
 
                  -L*)
557
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
558
 
                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
559
 
                    dnl But don't add it
560
 
                    dnl   1. if it's the standard /usr/lib,
561
 
                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
562
 
                    dnl   3. if it's already present in $LDFLAGS or the already
563
 
                    dnl      constructed $LIBNAME,
564
 
                    dnl   4. if it doesn't exist as a directory.
565
 
                    if test "X$additional_libdir" != "X/usr/lib"; then
566
 
                      haveit=
567
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
568
 
                        if test -n "$GCC"; then
569
 
                          case $host_os in
570
 
                            linux*) haveit=yes;;
571
 
                          esac
572
 
                        fi
573
 
                      fi
574
 
                      if test -z "$haveit"; then
575
 
                        haveit=
576
 
                        for x in $LDFLAGS $LIB[]NAME; do
577
 
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
578
 
                          if test "X$x" = "X-L$additional_libdir"; then
579
 
                            haveit=yes
580
 
                            break
581
 
                          fi
582
 
                        done
583
 
                        if test -z "$haveit"; then
584
 
                          if test -d "$additional_libdir"; then
585
 
                            dnl Really add $additional_libdir to $LIBNAME.
586
 
                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
587
 
                          fi
588
 
                        fi
589
 
                        haveit=
590
 
                        for x in $LDFLAGS $LTLIB[]NAME; do
591
 
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
592
 
                          if test "X$x" = "X-L$additional_libdir"; then
593
 
                            haveit=yes
594
 
                            break
595
 
                          fi
596
 
                        done
597
 
                        if test -z "$haveit"; then
598
 
                          if test -d "$additional_libdir"; then
599
 
                            dnl Really add $additional_libdir to $LTLIBNAME.
600
 
                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
601
 
                          fi
602
 
                        fi
603
 
                      fi
604
 
                    fi
605
 
                    ;;
606
 
                  -R*)
607
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
608
 
                    if test "$enable_rpath" != no; then
609
 
                      dnl Potentially add DIR to rpathdirs.
610
 
                      dnl The rpathdirs will be appended to $LIBNAME at the end.
611
 
                      haveit=
612
 
                      for x in $rpathdirs; do
613
 
                        if test "X$x" = "X$dir"; then
614
 
                          haveit=yes
615
 
                          break
616
 
                        fi
617
 
                      done
618
 
                      if test -z "$haveit"; then
619
 
                        rpathdirs="$rpathdirs $dir"
620
 
                      fi
621
 
                      dnl Potentially add DIR to ltrpathdirs.
622
 
                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
623
 
                      haveit=
624
 
                      for x in $ltrpathdirs; do
625
 
                        if test "X$x" = "X$dir"; then
626
 
                          haveit=yes
627
 
                          break
628
 
                        fi
629
 
                      done
630
 
                      if test -z "$haveit"; then
631
 
                        ltrpathdirs="$ltrpathdirs $dir"
632
 
                      fi
633
 
                    fi
634
 
                    ;;
635
 
                  -l*)
636
 
                    dnl Handle this in the next round.
637
 
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
638
 
                    ;;
639
 
                  *.la)
640
 
                    dnl Handle this in the next round. Throw away the .la's
641
 
                    dnl directory; it is already contained in a preceding -L
642
 
                    dnl option.
643
 
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
644
 
                    ;;
645
 
                  *)
646
 
                    dnl Most likely an immediate library name.
647
 
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
648
 
                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
649
 
                    ;;
650
 
                esac
651
 
              done
652
 
            fi
653
 
          else
654
 
            dnl Didn't find the library; assume it is in the system directories
655
 
            dnl known to the linker and runtime loader. (All the system
656
 
            dnl directories known to the linker should also be known to the
657
 
            dnl runtime loader, otherwise the system is severely misconfigured.)
658
 
            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
659
 
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
660
 
          fi
661
 
        fi
662
 
      fi
663
 
    done
664
 
  done
665
 
  if test "X$rpathdirs" != "X"; then
666
 
    if test -n "$hardcode_libdir_separator"; then
667
 
      dnl Weird platform: only the last -rpath option counts, the user must
668
 
      dnl pass all path elements in one option. We can arrange that for a
669
 
      dnl single library, but not when more than one $LIBNAMEs are used.
670
 
      alldirs=
671
 
      for found_dir in $rpathdirs; do
672
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
673
 
      done
674
 
      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
675
 
      acl_save_libdir="$libdir"
676
 
      libdir="$alldirs"
677
 
      eval flag=\"$hardcode_libdir_flag_spec\"
678
 
      libdir="$acl_save_libdir"
679
 
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
680
 
    else
681
 
      dnl The -rpath options are cumulative.
682
 
      for found_dir in $rpathdirs; do
683
 
        acl_save_libdir="$libdir"
684
 
        libdir="$found_dir"
685
 
        eval flag=\"$hardcode_libdir_flag_spec\"
686
 
        libdir="$acl_save_libdir"
687
 
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
688
 
      done
689
 
    fi
690
 
  fi
691
 
  if test "X$ltrpathdirs" != "X"; then
692
 
    dnl When using libtool, the option that works for both libraries and
693
 
    dnl executables is -R. The -R options are cumulative.
694
 
    for found_dir in $ltrpathdirs; do
695
 
      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
696
 
    done
697
 
  fi
698
 
])
699
 
 
700
 
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
701
 
dnl unless already present in VAR.
702
 
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
703
 
dnl contains two or three consecutive elements that belong together.
704
 
AC_DEFUN([AC_LIB_APPENDTOVAR],
705
 
[
706
 
  for element in [$2]; do
707
 
    haveit=
708
 
    for x in $[$1]; do
709
 
      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
710
 
      if test "X$x" = "X$element"; then
711
 
        haveit=yes
712
 
        break
713
 
      fi
714
 
    done
715
 
    if test -z "$haveit"; then
716
 
      [$1]="${[$1]}${[$1]:+ }$element"
717
 
    fi
718
 
  done
719
 
])
720
 
 
721
 
# lib-ld.m4 serial 3 (gettext-0.13)
722
 
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
723
 
dnl This file is free software, distributed under the terms of the GNU
724
 
dnl General Public License.  As a special exception to the GNU General
725
 
dnl Public License, this file may be distributed as part of a program
726
 
dnl that contains a configuration script generated by Autoconf, under
727
 
dnl the same distribution terms as the rest of that program.
728
 
 
729
 
dnl Subroutines of libtool.m4,
730
 
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
731
 
dnl with libtool.m4.
732
 
 
733
 
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
734
 
AC_DEFUN([AC_LIB_PROG_LD_GNU],
735
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
736
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
737
 
case `$LD -v 2>&1 </dev/null` in
738
 
*GNU* | *'with BFD'*)
739
 
  acl_cv_prog_gnu_ld=yes ;;
740
 
*)
741
 
  acl_cv_prog_gnu_ld=no ;;
742
 
esac])
743
 
with_gnu_ld=$acl_cv_prog_gnu_ld
744
 
])
745
 
 
746
 
dnl From libtool-1.4. Sets the variable LD.
747
 
AC_DEFUN([AC_LIB_PROG_LD],
748
 
[AC_ARG_WITH(gnu-ld,
749
 
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
750
 
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
751
 
AC_REQUIRE([AC_PROG_CC])dnl
752
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
753
 
# Prepare PATH_SEPARATOR.
754
 
# The user is always right.
755
 
if test "${PATH_SEPARATOR+set}" != set; then
756
 
  echo "#! /bin/sh" >conf$$.sh
757
 
  echo  "exit 0"   >>conf$$.sh
758
 
  chmod +x conf$$.sh
759
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
760
 
    PATH_SEPARATOR=';'
761
 
  else
762
 
    PATH_SEPARATOR=:
763
 
  fi
764
 
  rm -f conf$$.sh
765
 
fi
766
 
ac_prog=ld
767
 
if test "$GCC" = yes; then
768
 
  # Check if gcc -print-prog-name=ld gives a path.
769
 
  AC_MSG_CHECKING([for ld used by GCC])
770
 
  case $host in
771
 
  *-*-mingw*)
772
 
    # gcc leaves a trailing carriage return which upsets mingw
773
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
774
 
  *)
775
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
776
 
  esac
777
 
  case $ac_prog in
778
 
    # Accept absolute paths.
779
 
    [[\\/]* | [A-Za-z]:[\\/]*)]
780
 
      [re_direlt='/[^/][^/]*/\.\./']
781
 
      # Canonicalize the path of ld
782
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
783
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
784
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
785
 
      done
786
 
      test -z "$LD" && LD="$ac_prog"
787
 
      ;;
788
 
  "")
789
 
    # If it fails, then pretend we aren't using GCC.
790
 
    ac_prog=ld
791
 
    ;;
792
 
  *)
793
 
    # If it is relative, then search for the first ld in PATH.
794
 
    with_gnu_ld=unknown
795
 
    ;;
796
 
  esac
797
 
elif test "$with_gnu_ld" = yes; then
798
 
  AC_MSG_CHECKING([for GNU ld])
799
 
else
800
 
  AC_MSG_CHECKING([for non-GNU ld])
801
 
fi
802
 
AC_CACHE_VAL(acl_cv_path_LD,
803
 
[if test -z "$LD"; then
804
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
805
 
  for ac_dir in $PATH; do
806
 
    test -z "$ac_dir" && ac_dir=.
807
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
808
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
809
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
810
 
      # but apparently some GNU ld's only accept -v.
811
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
812
 
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
813
 
      *GNU* | *'with BFD'*)
814
 
        test "$with_gnu_ld" != no && break ;;
815
 
      *)
816
 
        test "$with_gnu_ld" != yes && break ;;
817
 
      esac
818
 
    fi
819
 
  done
820
 
  IFS="$ac_save_ifs"
821
 
else
822
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
823
 
fi])
824
 
LD="$acl_cv_path_LD"
825
 
if test -n "$LD"; then
826
 
  AC_MSG_RESULT($LD)
827
 
else
828
 
  AC_MSG_RESULT(no)
829
 
fi
830
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
831
 
AC_LIB_PROG_LD_GNU
832
 
])
833
 
 
834
 
# Do all the work for Automake.  This macro actually does too much --
835
 
# some checks are only needed if your package does certain things.
836
 
# But this isn't really a big deal.
837
 
 
838
 
# serial 1
839
 
 
840
 
dnl Usage:
841
 
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
842
 
 
843
 
AC_DEFUN([AM_INIT_AUTOMAKE],
844
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
845
 
AC_REQUIRE([AC_PROG_INSTALL])
846
 
PACKAGE=[$1]
847
 
AC_SUBST(PACKAGE)
848
 
VERSION=[$2]
849
 
AC_SUBST(VERSION)
850
 
dnl test to see if srcdir already configured
851
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
852
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
853
 
fi
854
 
ifelse([$3],,
855
 
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
856
 
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
857
 
AC_REQUIRE([AM_SANITY_CHECK])
858
 
AC_REQUIRE([AC_ARG_PROGRAM])
859
 
dnl FIXME This is truly gross.
860
 
missing_dir=`cd $ac_aux_dir && pwd`
861
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
862
 
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
863
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
864
 
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
865
 
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
866
 
AC_REQUIRE([AC_PROG_MAKE_SET])])
867
 
 
868
 
# Copyright 2002  Free Software Foundation, Inc.
869
 
 
870
 
# This program is free software; you can redistribute it and/or modify
871
 
# it under the terms of the GNU General Public License as published by
872
 
# the Free Software Foundation; either version 2, or (at your option)
873
 
# any later version.
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005  Free Software Foundation, Inc.
 
5
# This file is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
874
8
 
875
9
# This program is distributed in the hope that it will be useful,
876
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
877
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
878
 
# GNU General Public License for more details.
879
 
 
880
 
# You should have received a copy of the GNU General Public License
881
 
# along with this program; if not, write to the Free Software
882
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
883
 
 
884
 
# AM_AUTOMAKE_VERSION(VERSION)
885
 
# ----------------------------
886
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
887
 
# generated from the m4 files accompanying Automake X.Y.
888
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
889
 
 
890
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
891
 
# -------------------------------
892
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
893
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
894
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
895
 
         [AM_AUTOMAKE_VERSION([1.4-p6])])
896
 
 
897
 
#
898
 
# Check to make sure that the build environment is sane.
899
 
#
900
 
 
901
 
AC_DEFUN([AM_SANITY_CHECK],
902
 
[AC_MSG_CHECKING([whether build environment is sane])
903
 
# Just in case
904
 
sleep 1
905
 
echo timestamp > conftestfile
906
 
# Do `set' in a subshell so we don't clobber the current shell's
907
 
# arguments.  Must try -L first in case configure is actually a
908
 
# symlink; some systems play weird games with the mod time of symlinks
909
 
# (eg FreeBSD returns the mod time of the symlink's containing
910
 
# directory).
911
 
if (
912
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
913
 
   if test "[$]*" = "X"; then
914
 
      # -L didn't work.
915
 
      set X `ls -t $srcdir/configure conftestfile`
916
 
   fi
917
 
   if test "[$]*" != "X $srcdir/configure conftestfile" \
918
 
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
919
 
 
920
 
      # If neither matched, then we have a broken ls.  This can happen
921
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
922
 
      # broken ls alias from the environment.  This has actually
923
 
      # happened.  Such a system could not be considered "sane".
924
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
925
 
alias in your environment])
926
 
   fi
927
 
 
928
 
   test "[$]2" = conftestfile
929
 
   )
930
 
then
931
 
   # Ok.
932
 
   :
933
 
else
934
 
   AC_MSG_ERROR([newly created file is older than distributed files!
935
 
Check your system clock])
936
 
fi
937
 
rm -f conftest*
938
 
AC_MSG_RESULT(yes)])
939
 
 
940
 
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
941
 
dnl The program must properly implement --version.
942
 
AC_DEFUN([AM_MISSING_PROG],
943
 
[AC_MSG_CHECKING(for working $2)
944
 
# Run test in a subshell; some versions of sh will print an error if
945
 
# an executable is not found, even if stderr is redirected.
946
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
947
 
if ($2 --version) < /dev/null > /dev/null 2>&1; then
948
 
   $1=$2
949
 
   AC_MSG_RESULT(found)
950
 
else
951
 
   $1="$3/missing $2"
952
 
   AC_MSG_RESULT(missing)
953
 
fi
954
 
AC_SUBST($1)])
955
 
 
956
 
# Like AC_CONFIG_HEADER, but automatically create stamp file.
957
 
 
958
 
AC_DEFUN([AM_CONFIG_HEADER],
959
 
[AC_PREREQ([2.12])
960
 
AC_CONFIG_HEADER([$1])
961
 
dnl When config.status generates a header, we must update the stamp-h file.
962
 
dnl This file resides in the same directory as the config header
963
 
dnl that is generated.  We must strip everything past the first ":",
964
 
dnl and everything past the last "/".
965
 
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
966
 
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
967
 
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
968
 
<<am_indx=1
969
 
for am_file in <<$1>>; do
970
 
  case " <<$>>CONFIG_HEADERS " in
971
 
  *" <<$>>am_file "*<<)>>
972
 
    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
973
 
    ;;
974
 
  esac
975
 
  am_indx=`expr "<<$>>am_indx" + 1`
976
 
done<<>>dnl>>)
977
 
changequote([,]))])
 
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
12
# PARTICULAR PURPOSE.
978
13
 
979
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
980
15
 
981
16
# serial 47 AC_PROG_LIBTOOL
982
 
# Debian $Rev: 214 $
983
17
 
984
18
 
985
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1089
123
 
1090
124
# Sed substitution that helps us do robust quoting.  It backslashifies
1091
125
# metacharacters that are still active within double-quoted strings.
1092
 
Xsed='sed -e s/^X//'
 
126
Xsed='sed -e 1s/^X//'
1093
127
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1094
128
 
1095
129
# Same as above, but do not quote variable references.
1109
143
default_ofile=libtool
1110
144
can_build_shared=yes
1111
145
 
1112
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
146
# All known linkers require a `.a' archive for static linking (except MSVC,
1113
147
# which needs '.lib').
1114
148
libext=a
1115
149
ltmain="$ac_aux_dir/ltmain.sh"
1157
191
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1158
192
fi
1159
193
 
 
194
_LT_CC_BASENAME([$compiler])
 
195
 
1160
196
# Only perform the check for file, if the check method requires it
1161
197
case $deplibs_check_method in
1162
198
file_magic*)
1202
238
])# _LT_AC_SYS_COMPILER
1203
239
 
1204
240
 
 
241
# _LT_CC_BASENAME(CC)
 
242
# -------------------
 
243
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
244
AC_DEFUN([_LT_CC_BASENAME],
 
245
[for cc_temp in $1""; do
 
246
  case $cc_temp in
 
247
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
248
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
249
    \-*) ;;
 
250
    *) break;;
 
251
  esac
 
252
done
 
253
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
254
])
 
255
 
 
256
 
 
257
# _LT_COMPILER_BOILERPLATE
 
258
# ------------------------
 
259
# Check for compiler boilerplate output or warnings with
 
260
# the simple compiler test code.
 
261
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
262
[ac_outfile=conftest.$ac_objext
 
263
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
264
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
265
_lt_compiler_boilerplate=`cat conftest.err`
 
266
$rm conftest*
 
267
])# _LT_COMPILER_BOILERPLATE
 
268
 
 
269
 
 
270
# _LT_LINKER_BOILERPLATE
 
271
# ----------------------
 
272
# Check for linker boilerplate output or warnings with
 
273
# the simple link test code.
 
274
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
275
[ac_outfile=conftest.$ac_objext
 
276
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
277
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
278
_lt_linker_boilerplate=`cat conftest.err`
 
279
$rm conftest*
 
280
])# _LT_LINKER_BOILERPLATE
 
281
 
 
282
 
1205
283
# _LT_AC_SYS_LIBPATH_AIX
1206
284
# ----------------------
1207
285
# Links a minimal program and checks the executable
1274
352
 
1275
353
# The HP-UX ksh and POSIX shell print the target directory to stdout
1276
354
# if CDPATH is set.
1277
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
355
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1278
356
 
1279
357
if test -z "$ECHO"; then
1280
358
if test "X${echo_test_string+set}" != Xset; then
1281
359
# find a string as large as possible, as long as the shell can cope with it
1282
360
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1283
361
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1284
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1285
 
       echo_test_string="`eval $cmd`" &&
 
362
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
363
       echo_test_string=`eval $cmd` &&
1286
364
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1287
365
    then
1288
366
      break
1451
529
  # Find out which ABI we are using.
1452
530
  echo 'int i;' > conftest.$ac_ext
1453
531
  if AC_TRY_EVAL(ac_compile); then
1454
 
    case "`/usr/bin/file conftest.o`" in
 
532
    case `/usr/bin/file conftest.o` in
1455
533
    *32-bit*)
1456
534
      case $host in
1457
535
        x86_64-*linux*)
1533
611
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1534
612
   # The option is referenced via a variable to avoid confusing sed.
1535
613
   lt_compile=`echo "$ac_compile" | $SED \
1536
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
614
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1537
615
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1538
616
   -e 's:$: $lt_compiler_flag:'`
1539
617
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1543
621
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1544
622
   if (exit $ac_status) && test -s "$ac_outfile"; then
1545
623
     # The compiler can only warn and ignore the option if not recognized
1546
 
     # So say no if there are warnings
1547
 
     if test ! -s conftest.err; then
 
624
     # So say no if there are warnings other than the usual output.
 
625
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
626
     $SED '/^$/d' conftest.err >conftest.er2
 
627
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1548
628
       $2=yes
1549
629
     fi
1550
630
   fi
1570
650
   LDFLAGS="$LDFLAGS $3"
1571
651
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1572
652
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1573
 
     # The compiler can only warn and ignore the option if not recognized
 
653
     # The linker can only warn and ignore the option if not recognized
1574
654
     # So say no if there are warnings
1575
655
     if test -s conftest.err; then
1576
656
       # Append any errors to the config.log.
1577
657
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
658
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
659
       $SED '/^$/d' conftest.err >conftest.er2
 
660
       if diff conftest.exp conftest.er2 >/dev/null; then
 
661
         $2=yes
 
662
       fi
1578
663
     else
1579
664
       $2=yes
1580
665
     fi
1633
718
    lt_cv_sys_max_cmd_len=8192;
1634
719
    ;;
1635
720
 
1636
 
 *)
 
721
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
722
    # This has been around since 386BSD, at least.  Likely further.
 
723
    if test -x /sbin/sysctl; then
 
724
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
725
    elif test -x /usr/sbin/sysctl; then
 
726
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
727
    else
 
728
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
729
    fi
 
730
    # And add a safety zone
 
731
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
732
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
733
    ;;
 
734
  osf*)
 
735
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
736
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
737
    # nice to cause kernel panics so lets avoid the loop below.
 
738
    # First set a reasonable default.
 
739
    lt_cv_sys_max_cmd_len=16384
 
740
    #
 
741
    if test -x /sbin/sysconfig; then
 
742
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
743
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
744
      esac
 
745
    fi
 
746
    ;;
 
747
  *)
1637
748
    # If test is not a shell built-in, we'll probably end up computing a
1638
749
    # maximum length that is only half of the actual maximum length, but
1639
750
    # we can't tell.
1640
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
751
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
752
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1641
753
               = "XX$teststring") >/dev/null 2>&1 &&
1642
754
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1643
755
            lt_cv_sys_max_cmd_len=$new_result &&
1742
854
}]
1743
855
EOF
1744
856
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1745
 
    (./conftest; exit; ) 2>/dev/null
 
857
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1746
858
    lt_status=$?
1747
859
    case x$lt_status in
1748
860
      x$lt_dlno_uscore) $1 ;;
1891
1003
   # Note that $ac_compile itself does not contain backslashes and begins
1892
1004
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1893
1005
   lt_compile=`echo "$ac_compile" | $SED \
1894
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1006
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1895
1007
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1896
1008
   -e 's:$: $lt_compiler_flag:'`
1897
1009
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1903
1015
   then
1904
1016
     # The compiler can only warn and ignore the option if not recognized
1905
1017
     # So say no if there are warnings
1906
 
     if test ! -s out/conftest.err; then
 
1018
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
1019
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
1020
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1907
1021
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1908
1022
     fi
1909
1023
   fi
1910
 
   chmod u+w .
 
1024
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1911
1025
   $rm conftest*
1912
1026
   # SGI C++ compiler will create directory out/ii_files/ for
1913
1027
   # template instantiation
1971
1085
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1972
1086
_LT_AC_TAGVAR(hardcode_action, $1)=
1973
1087
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1974
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1975
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1088
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1089
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1976
1090
 
1977
1091
  # We can hardcode non-existant directories.
1978
1092
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2139
1253
  shlibpath_var=LIBRARY_PATH
2140
1254
  ;;
2141
1255
 
2142
 
bsdi4*)
 
1256
bsdi[[45]]*)
2143
1257
  version_type=linux
2144
1258
  need_version=no
2145
1259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2167
1281
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2168
1282
      dldir=$destdir/`dirname \$dlpath`~
2169
1283
      test -d \$dldir || mkdir -p \$dldir~
2170
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1284
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1285
      chmod a+x \$dldir/$dlname'
2171
1286
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2172
1287
      dlpath=$dir/\$dldll~
2173
1288
       $rm \$dlpath'
2197
1312
      ;;
2198
1313
    pw32*)
2199
1314
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2200
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1315
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2201
1316
      ;;
2202
1317
    esac
2203
1318
    ;;
2220
1335
  soname_spec='${libname}${release}${major}$shared_ext'
2221
1336
  shlibpath_overrides_runpath=yes
2222
1337
  shlibpath_var=DYLD_LIBRARY_PATH
2223
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1338
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2224
1339
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2225
1340
  if test "$GCC" = yes; then
2226
1341
    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"`
2255
1370
  dynamic_linker='GNU ld.so'
2256
1371
  ;;
2257
1372
 
2258
 
freebsd*)
2259
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1373
freebsd* | dragonfly*)
 
1374
  # DragonFly does not have aout.  When/if they implement a new
 
1375
  # versioning mechanism, adjust this.
 
1376
  if test -x /usr/bin/objformat; then
 
1377
    objformat=`/usr/bin/objformat`
 
1378
  else
 
1379
    case $host_os in
 
1380
    freebsd[[123]]*) objformat=aout ;;
 
1381
    *) objformat=elf ;;
 
1382
    esac
 
1383
  fi
2260
1384
  version_type=freebsd-$objformat
2261
1385
  case $version_type in
2262
1386
    freebsd-elf*)
2274
1398
  freebsd2*)
2275
1399
    shlibpath_overrides_runpath=yes
2276
1400
    ;;
2277
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1401
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2278
1402
    shlibpath_overrides_runpath=yes
2279
1403
    hardcode_into_libs=yes
2280
1404
    ;;
2301
1425
  version_type=sunos
2302
1426
  need_lib_prefix=no
2303
1427
  need_version=no
2304
 
  case "$host_cpu" in
 
1428
  case $host_cpu in
2305
1429
  ia64*)
2306
1430
    shrext_cmds='.so'
2307
1431
    hardcode_into_libs=yes
2398
1522
  # before this can be enabled.
2399
1523
  hardcode_into_libs=yes
2400
1524
 
 
1525
  # find out which ABI we are using
 
1526
  libsuff=
 
1527
  case "$host_cpu" in
 
1528
  x86_64*|s390x*|powerpc64*)
 
1529
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1530
    if AC_TRY_EVAL(ac_compile); then
 
1531
      case `/usr/bin/file conftest.$ac_objext` in
 
1532
      *64-bit*)
 
1533
        libsuff=64
 
1534
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
1535
        ;;
 
1536
      esac
 
1537
    fi
 
1538
    rm -rf conftest*
 
1539
    ;;
 
1540
  esac
 
1541
 
2401
1542
  # Append ld.so.conf contents to the search path
2402
1543
  if test -f /etc/ld.so.conf; then
2403
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2404
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
1544
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1545
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
2405
1546
  fi
2406
1547
 
2407
1548
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2413
1554
  dynamic_linker='GNU/Linux ld.so'
2414
1555
  ;;
2415
1556
 
2416
 
netbsdelf*-gnu)
2417
 
  version_type=linux
2418
 
  need_lib_prefix=no
2419
 
  need_version=no
2420
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2421
 
  soname_spec='${libname}${release}${shared_ext}$major'
2422
 
  shlibpath_var=LD_LIBRARY_PATH
2423
 
  shlibpath_overrides_runpath=no
2424
 
  hardcode_into_libs=yes
2425
 
  dynamic_linker='NetBSD ld.elf_so'
2426
 
  ;;
2427
 
 
2428
1557
knetbsd*-gnu)
2429
1558
  version_type=linux
2430
1559
  need_lib_prefix=no
2475
1604
openbsd*)
2476
1605
  version_type=sunos
2477
1606
  need_lib_prefix=no
2478
 
  need_version=yes
 
1607
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1608
  case $host_os in
 
1609
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1610
    *)                         need_version=no  ;;
 
1611
  esac
2479
1612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2480
1613
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2481
1614
  shlibpath_var=LD_LIBRARY_PATH
2641
1774
 
2642
1775
      case $tagname in
2643
1776
      CXX)
2644
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1777
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1778
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1779
            (test "X$CXX" != "Xg++"))) ; then
2645
1780
          AC_LIBTOOL_LANG_CXX_CONFIG
2646
1781
        else
2647
1782
          tagname=""
2703
1838
 
2704
1839
# AC_LIBTOOL_WIN32_DLL
2705
1840
# --------------------
2706
 
# declare package support for building win32 dll's
 
1841
# declare package support for building win32 DLLs
2707
1842
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2708
1843
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2709
1844
])# AC_LIBTOOL_WIN32_DLL
2877
2012
      if test -n "$file_magic_test_file"; then
2878
2013
        case $deplibs_check_method in
2879
2014
        "file_magic "*)
2880
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2015
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2881
2016
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2882
2017
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2883
2018
            $EGREP "$file_magic_regex" > /dev/null; then
2987
2122
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2988
2123
      lt_cv_path_LD="$ac_dir/$ac_prog"
2989
2124
      # Check to see if the program is GNU ld.  I'd rather use --version,
2990
 
      # but apparently some GNU ld's only accept -v.
 
2125
      # but apparently some variants of GNU ld only accept -v.
2991
2126
      # Break only if it was the GNU/non-GNU ld that we prefer.
2992
2127
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2993
2128
      *GNU* | *'with BFD'*)
3019
2154
AC_DEFUN([AC_PROG_LD_GNU],
3020
2155
[AC_REQUIRE([AC_PROG_EGREP])dnl
3021
2156
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3022
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2157
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3023
2158
case `$LD -v 2>&1 </dev/null` in
3024
2159
*GNU* | *'with BFD'*)
3025
2160
  lt_cv_prog_gnu_ld=yes
3046
2181
*) reload_flag=" $reload_flag" ;;
3047
2182
esac
3048
2183
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2184
case $host_os in
 
2185
  darwin*)
 
2186
    if test "$GCC" = yes; then
 
2187
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2188
    else
 
2189
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2190
    fi
 
2191
    ;;
 
2192
esac
3049
2193
])# AC_PROG_LD_RELOAD_FLAG
3050
2194
 
3051
2195
 
3079
2223
  lt_cv_deplibs_check_method=pass_all
3080
2224
  ;;
3081
2225
 
3082
 
bsdi4*)
 
2226
bsdi[[45]]*)
3083
2227
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3084
2228
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3085
2229
  lt_cv_file_magic_test_file=/shlib/libc.so
3102
2246
  lt_cv_deplibs_check_method=pass_all
3103
2247
  ;;
3104
2248
 
3105
 
freebsd* | kfreebsd*-gnu)
 
2249
freebsd* | kfreebsd*-gnu | dragonfly*)
3106
2250
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3107
2251
    case $host_cpu in
3108
2252
    i*86 )
3109
2253
      # Not sure whether the presence of OpenBSD here was a mistake.
3110
2254
      # Let's accept both of them until this is cleared up.
3111
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2255
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3112
2256
      lt_cv_file_magic_cmd=/usr/bin/file
3113
2257
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3114
2258
      ;;
3124
2268
 
3125
2269
hpux10.20* | hpux11*)
3126
2270
  lt_cv_file_magic_cmd=/usr/bin/file
3127
 
  case "$host_cpu" in
 
2271
  case $host_cpu in
3128
2272
  ia64*)
3129
2273
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3130
2274
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3155
2299
  lt_cv_deplibs_check_method=pass_all
3156
2300
  ;;
3157
2301
 
3158
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2302
netbsd*)
3159
2303
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3160
2304
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3161
2305
  else
3174
2318
  ;;
3175
2319
 
3176
2320
openbsd*)
3177
 
  lt_cv_file_magic_cmd=/usr/bin/file
3178
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3179
2321
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3180
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2322
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3181
2323
  else
3182
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2324
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3183
2325
  fi
3184
2326
  ;;
3185
2327
 
3300
2442
# -----------------------------------
3301
2443
# sets LIBLTDL to the link flags for the libltdl convenience library and
3302
2444
# LTDLINCL to the include flags for the libltdl header and adds
3303
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3304
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3305
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3306
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3307
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3308
 
# flat and you're not using automake, define top_builddir and
3309
 
# top_srcdir appropriately in the Makefiles.
 
2445
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2446
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2447
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2448
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2449
# (note the single quotes!).  If your package is not flat and you're not
 
2450
# using automake, define top_builddir and top_srcdir appropriately in
 
2451
# the Makefiles.
3310
2452
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3311
2453
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3312
2454
  case $enable_ltdl_convenience in
3325
2467
# -----------------------------------
3326
2468
# sets LIBLTDL to the link flags for the libltdl installable library and
3327
2469
# LTDLINCL to the include flags for the libltdl header and adds
3328
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3329
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3330
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
3331
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3332
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3333
 
# quotes!).  If your package is not flat and you're not using automake,
3334
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2470
# --enable-ltdl-install to the configure arguments.  Note that
 
2471
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2472
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2473
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2474
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2475
# flat and you're not using automake, define top_builddir and top_srcdir
 
2476
# appropriately in the Makefiles.
3335
2477
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3336
2478
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3337
2479
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3369
2511
# ---------------
3370
2512
AC_DEFUN([_LT_AC_LANG_CXX],
3371
2513
[AC_REQUIRE([AC_PROG_CXX])
3372
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2514
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3373
2515
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3374
2516
])# _LT_AC_LANG_CXX
3375
2517
 
 
2518
# _LT_AC_PROG_CXXCPP
 
2519
# ---------------
 
2520
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2521
[
 
2522
AC_REQUIRE([AC_PROG_CXX])
 
2523
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2524
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2525
    (test "X$CXX" != "Xg++"))) ; then
 
2526
  AC_PROG_CXXCPP
 
2527
fi
 
2528
])# _LT_AC_PROG_CXXCPP
3376
2529
 
3377
2530
# AC_LIBTOOL_F77
3378
2531
# --------------
3445
2598
 
3446
2599
_LT_AC_SYS_COMPILER
3447
2600
 
 
2601
# save warnings/boilerplate of simple test code
 
2602
_LT_COMPILER_BOILERPLATE
 
2603
_LT_LINKER_BOILERPLATE
 
2604
 
3448
2605
#
3449
2606
# Check for any special shared library compilation flags.
3450
2607
#
3495
2652
 
3496
2653
# On AIX, shared libraries and static libraries use the same namespace, and
3497
2654
# are all built from PIC.
3498
 
case "$host_os" in
 
2655
case $host_os in
3499
2656
aix3*)
3500
2657
  test "$enable_shared" = yes && enable_static=no
3501
2658
  if test -n "$RANLIB"; then
3508
2665
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3509
2666
    test "$enable_shared" = yes && enable_static=no
3510
2667
  fi
3511
 
  ;;
3512
 
  darwin* | rhapsody*)
3513
 
  if test "$GCC" = yes; then
3514
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3515
 
    case "$host_os" in
3516
 
    rhapsody* | darwin1.[[012]])
3517
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3518
 
      ;;
3519
 
    *) # Darwin 1.3 on
3520
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3521
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3522
 
      else
3523
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3524
 
          10.[[012]])
3525
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3526
 
            ;;
3527
 
          10.*)
3528
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3529
 
            ;;
3530
 
        esac
3531
 
      fi
3532
 
      ;;
3533
 
    esac
3534
 
    output_verbose_link_cmd='echo'
3535
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3536
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3537
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3538
 
    _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}'
3539
 
    _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}'
3540
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3541
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3542
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3543
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3544
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3545
 
  else
3546
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3547
 
  fi
3548
2668
    ;;
3549
2669
esac
3550
2670
AC_MSG_RESULT([$enable_shared])
3570
2690
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3571
2691
[AC_LANG_PUSH(C++)
3572
2692
AC_REQUIRE([AC_PROG_CXX])
3573
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2693
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3574
2694
 
3575
2695
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3576
2696
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3599
2719
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3600
2720
 
3601
2721
# Source file extension for C++ test sources.
3602
 
ac_ext=cc
 
2722
ac_ext=cpp
3603
2723
 
3604
2724
# Object file extension for compiled C++ test sources.
3605
2725
objext=o
3614
2734
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3615
2735
_LT_AC_SYS_COMPILER
3616
2736
 
 
2737
# save warnings/boilerplate of simple test code
 
2738
_LT_COMPILER_BOILERPLATE
 
2739
_LT_LINKER_BOILERPLATE
 
2740
 
3617
2741
# Allow CC to be a program name with arguments.
3618
2742
lt_save_CC=$CC
3619
2743
lt_save_LD=$LD
3635
2759
CC=${CXX-"c++"}
3636
2760
compiler=$CC
3637
2761
_LT_AC_TAGVAR(compiler, $1)=$CC
3638
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2762
_LT_CC_BASENAME([$compiler])
3639
2763
 
3640
2764
# We don't want -fno-exception wen compiling C++ code, so set the
3641
2765
# no_builtin_flag separately
3742
2866
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3743
2867
 
3744
2868
    if test "$GXX" = yes; then
3745
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
2869
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3746
2870
      # We only want to do this on AIX 4.2 and lower, the check
3747
2871
      # below for broken collect2 doesn't work under 4.3+
3748
2872
        collect2name=`${CC} -print-prog-name=collect2`
3763
2887
        fi
3764
2888
      esac
3765
2889
      shared_flag='-shared'
 
2890
      if test "$aix_use_runtimelinking" = yes; then
 
2891
        shared_flag="$shared_flag "'${wl}-G'
 
2892
      fi
3766
2893
    else
3767
2894
      # not using gcc
3768
2895
      if test "$host_cpu" = ia64; then
3808
2935
        # Exported symbols can be pulled into shared objects from archives
3809
2936
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3810
2937
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3811
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
2938
        # This is similar to how AIX traditionally builds its shared libraries.
3812
2939
        _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'
3813
2940
      fi
3814
2941
    fi
3822
2949
    esac
3823
2950
    ;;
3824
2951
 
 
2952
 
3825
2953
  cygwin* | mingw* | pw32*)
3826
2954
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3827
2955
    # as there is no search path for DLLs.
3845
2973
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3846
2974
    fi
3847
2975
  ;;
3848
 
 
3849
 
  darwin* | rhapsody*)
3850
 
  if test "$GXX" = yes; then
3851
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3852
 
    case "$host_os" in
3853
 
    rhapsody* | darwin1.[[012]])
3854
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3855
 
      ;;
3856
 
    *) # Darwin 1.3 on
3857
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3858
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3859
 
      else
3860
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3861
 
          10.[[012]])
3862
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3863
 
            ;;
3864
 
          10.*)
3865
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3866
 
            ;;
 
2976
      darwin* | rhapsody*)
 
2977
        case $host_os in
 
2978
        rhapsody* | darwin1.[[012]])
 
2979
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
2980
         ;;
 
2981
       *) # Darwin 1.3 on
 
2982
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2983
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2984
         else
 
2985
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
2986
             10.[[012]])
 
2987
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2988
               ;;
 
2989
             10.*)
 
2990
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
2991
               ;;
 
2992
           esac
 
2993
         fi
 
2994
         ;;
3867
2995
        esac
3868
 
      fi
3869
 
      ;;
3870
 
    esac
3871
 
    lt_int_apple_cc_single_mod=no
3872
 
    output_verbose_link_cmd='echo'
3873
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3874
 
      lt_int_apple_cc_single_mod=yes
3875
 
    fi
3876
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3877
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3878
 
    else
3879
 
      _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'
3880
 
    fi
3881
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
2996
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2997
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2998
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
2999
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3000
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3001
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3882
3002
 
3883
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3884
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3885
 
      _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}'
3886
 
    else
3887
 
      _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}'
3888
 
    fi
3889
 
    _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}'
3890
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3891
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3892
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3893
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3894
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3895
 
  else
3896
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3897
 
  fi
3898
 
    ;;
 
3003
    if test "$GXX" = yes ; then
 
3004
      lt_int_apple_cc_single_mod=no
 
3005
      output_verbose_link_cmd='echo'
 
3006
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3007
       lt_int_apple_cc_single_mod=yes
 
3008
      fi
 
3009
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3010
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3011
      else
 
3012
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3013
        fi
 
3014
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3015
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3016
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3017
            _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}'
 
3018
          else
 
3019
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3020
          fi
 
3021
            _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}'
 
3022
      else
 
3023
      case $cc_basename in
 
3024
        xlc*)
 
3025
         output_verbose_link_cmd='echo'
 
3026
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3027
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3028
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3029
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3030
          _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}'
 
3031
          ;;
 
3032
       *)
 
3033
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3034
          ;;
 
3035
      esac
 
3036
      fi
 
3037
        ;;
3899
3038
 
3900
3039
  dgux*)
3901
3040
    case $cc_basename in
3902
 
      ec++)
 
3041
      ec++*)
3903
3042
        # FIXME: insert proper C++ library support
3904
3043
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3905
3044
        ;;
3906
 
      ghcx)
 
3045
      ghcx*)
3907
3046
        # Green Hills C++ Compiler
3908
3047
        # FIXME: insert proper C++ library support
3909
3048
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3914
3053
        ;;
3915
3054
    esac
3916
3055
    ;;
3917
 
  freebsd[12]*)
 
3056
  freebsd[[12]]*)
3918
3057
    # C++ shared libraries reported to be fairly broken before switch to ELF
3919
3058
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3920
3059
    ;;
3921
3060
  freebsd-elf*)
3922
3061
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3923
3062
    ;;
3924
 
  freebsd* | kfreebsd*-gnu)
 
3063
  freebsd* | kfreebsd*-gnu | dragonfly*)
3925
3064
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3926
3065
    # conventions
3927
3066
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3938
3077
                                # location of the library.
3939
3078
 
3940
3079
    case $cc_basename in
3941
 
    CC)
 
3080
    CC*)
3942
3081
      # FIXME: insert proper C++ library support
3943
3082
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3944
3083
      ;;
3945
 
    aCC)
 
3084
    aCC*)
3946
3085
      _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'
3947
3086
      # Commands to make compiler produce verbose output that lists
3948
3087
      # what "hidden" libraries, object files and flags are used when
3952
3091
      # explicitly linking system object files so we need to strip them
3953
3092
      # from the output so that they don't get included in the library
3954
3093
      # dependencies.
3955
 
      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'
 
3094
      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'
3956
3095
      ;;
3957
3096
    *)
3958
3097
      if test "$GXX" = yes; then
3966
3105
    ;;
3967
3106
  hpux10*|hpux11*)
3968
3107
    if test $with_gnu_ld = no; then
3969
 
      case "$host_cpu" in
 
3108
      case $host_cpu in
3970
3109
      hppa*64*)
3971
3110
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3972
3111
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3982
3121
        ;;
3983
3122
      esac
3984
3123
    fi
3985
 
    case "$host_cpu" in
 
3124
    case $host_cpu in
3986
3125
    hppa*64*)
3987
3126
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3988
3127
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4003
3142
    esac
4004
3143
 
4005
3144
    case $cc_basename in
4006
 
      CC)
 
3145
      CC*)
4007
3146
        # FIXME: insert proper C++ library support
4008
3147
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4009
3148
        ;;
4010
 
      aCC)
4011
 
        case "$host_cpu" in
 
3149
      aCC*)
 
3150
        case $host_cpu in
4012
3151
        hppa*64*|ia64*)
4013
3152
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4014
3153
          ;;
4029
3168
      *)
4030
3169
        if test "$GXX" = yes; then
4031
3170
          if test $with_gnu_ld = no; then
4032
 
            case "$host_cpu" in
 
3171
            case $host_cpu in
4033
3172
            ia64*|hppa*64*)
4034
3173
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4035
3174
              ;;
4047
3186
    ;;
4048
3187
  irix5* | irix6*)
4049
3188
    case $cc_basename in
4050
 
      CC)
 
3189
      CC*)
4051
3190
        # SGI C++
4052
 
        _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'
 
3191
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4053
3192
 
4054
3193
        # Archives containing C++ object files must be created using
4055
3194
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4060
3199
      *)
4061
3200
        if test "$GXX" = yes; then
4062
3201
          if test "$with_gnu_ld" = no; then
4063
 
            _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'
 
3202
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4064
3203
          else
4065
3204
            _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'
4066
3205
          fi
4073
3212
    ;;
4074
3213
  linux*)
4075
3214
    case $cc_basename in
4076
 
      KCC)
 
3215
      KCC*)
4077
3216
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4078
3217
 
4079
3218
        # KCC will only create a shared library if the output file
4098
3237
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4099
3238
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4100
3239
        ;;
4101
 
      icpc)
 
3240
      icpc*)
4102
3241
        # Intel C++
4103
3242
        with_gnu_ld=yes
 
3243
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3244
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3245
        # earlier do not add the objects themselves.
 
3246
        case `$CC -V 2>&1` in
 
3247
        *"Version 7."*)
 
3248
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3249
          _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'
 
3250
          ;;
 
3251
        *)  # Version 8.0 or newer
 
3252
          tmp_idyn=
 
3253
          case $host_cpu in
 
3254
            ia64*) tmp_idyn=' -i_dynamic';;
 
3255
          esac
 
3256
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3257
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3258
          ;;
 
3259
        esac
4104
3260
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4105
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4106
 
        _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'
4107
3261
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4108
3262
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4109
3263
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4110
3264
        ;;
4111
 
      cxx)
 
3265
      pgCC*)
 
3266
        # Portland Group C++ compiler
 
3267
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3268
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3269
 
 
3270
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3271
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3272
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3273
        ;;
 
3274
      cxx*)
4112
3275
        # Compaq C++
4113
3276
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4114
3277
        _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'
4139
3302
    ;;
4140
3303
  mvs*)
4141
3304
    case $cc_basename in
4142
 
      cxx)
 
3305
      cxx*)
4143
3306
        # FIXME: insert proper C++ library support
4144
3307
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4145
3308
        ;;
4149
3312
        ;;
4150
3313
    esac
4151
3314
    ;;
4152
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3315
  netbsd*)
4153
3316
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4154
3317
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4155
3318
      wlarc=
4160
3323
    # Workaround some broken pre-1.5 toolchains
4161
3324
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4162
3325
    ;;
 
3326
  openbsd2*)
 
3327
    # C++ shared libraries are fairly broken
 
3328
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3329
    ;;
 
3330
  openbsd*)
 
3331
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3332
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3333
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3334
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3335
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3336
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3337
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3338
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3339
    fi
 
3340
    output_verbose_link_cmd='echo'
 
3341
    ;;
4163
3342
  osf3*)
4164
3343
    case $cc_basename in
4165
 
      KCC)
 
3344
      KCC*)
4166
3345
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4167
3346
 
4168
3347
        # KCC will only create a shared library if the output file
4178
3357
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4179
3358
 
4180
3359
        ;;
4181
 
      RCC)
 
3360
      RCC*)
4182
3361
        # Rational C++ 2.4.1
4183
3362
        # FIXME: insert proper C++ library support
4184
3363
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4185
3364
        ;;
4186
 
      cxx)
 
3365
      cxx*)
4187
3366
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4188
 
        _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'
 
3367
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4189
3368
 
4190
3369
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4191
3370
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4203
3382
      *)
4204
3383
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4205
3384
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4206
 
          _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'
 
3385
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4207
3386
 
4208
3387
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4209
3388
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4222
3401
    ;;
4223
3402
  osf4* | osf5*)
4224
3403
    case $cc_basename in
4225
 
      KCC)
 
3404
      KCC*)
4226
3405
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4227
3406
 
4228
3407
        # KCC will only create a shared library if the output file
4237
3416
        # the KAI C++ compiler.
4238
3417
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4239
3418
        ;;
4240
 
      RCC)
 
3419
      RCC*)
4241
3420
        # Rational C++ 2.4.1
4242
3421
        # FIXME: insert proper C++ library support
4243
3422
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4244
3423
        ;;
4245
 
      cxx)
 
3424
      cxx*)
4246
3425
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4247
 
        _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'
 
3426
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4248
3427
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4249
3428
          echo "-hidden">> $lib.exp~
4250
 
          $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~
 
3429
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4251
3430
          $rm $lib.exp'
4252
3431
 
4253
3432
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4266
3445
      *)
4267
3446
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4268
3447
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4269
 
         _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'
 
3448
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4270
3449
 
4271
3450
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4272
3451
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4290
3469
  sco*)
4291
3470
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4292
3471
    case $cc_basename in
4293
 
      CC)
 
3472
      CC*)
4294
3473
        # FIXME: insert proper C++ library support
4295
3474
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4296
3475
        ;;
4302
3481
    ;;
4303
3482
  sunos4*)
4304
3483
    case $cc_basename in
4305
 
      CC)
 
3484
      CC*)
4306
3485
        # Sun C++ 4.x
4307
3486
        # FIXME: insert proper C++ library support
4308
3487
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4309
3488
        ;;
4310
 
      lcc)
 
3489
      lcc*)
4311
3490
        # Lucid
4312
3491
        # FIXME: insert proper C++ library support
4313
3492
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4320
3499
    ;;
4321
3500
  solaris*)
4322
3501
    case $cc_basename in
4323
 
      CC)
 
3502
      CC*)
4324
3503
        # Sun C++ 4.2, 5.x and Centerline C++
 
3504
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4325
3505
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4326
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3506
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4327
3507
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4328
 
        $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'
 
3508
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4329
3509
 
4330
3510
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4331
3511
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4332
3512
        case $host_os in
4333
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3513
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4334
3514
          *)
4335
3515
            # The C++ compiler is used as linker so we must use $wl
4336
3516
            # flag to pass the commands to the underlying system
4337
 
            # linker.
 
3517
            # linker. We must also pass each convience library through
 
3518
            # to the system linker between allextract/defaultextract.
 
3519
            # The C++ compiler will combine linker options so we
 
3520
            # cannot just pass the convience library names through
 
3521
            # without $wl.
4338
3522
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4339
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3523
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4340
3524
            ;;
4341
3525
        esac
4342
3526
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4343
3527
 
4344
 
        # Commands to make compiler produce verbose output that lists
4345
 
        # what "hidden" libraries, object files and flags are used when
4346
 
        # linking a shared library.
4347
 
        #
4348
 
        # There doesn't appear to be a way to prevent this compiler from
4349
 
        # explicitly linking system object files so we need to strip them
4350
 
        # from the output so that they don't get included in the library
4351
 
        # dependencies.
4352
 
        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'
 
3528
        output_verbose_link_cmd='echo'
4353
3529
 
4354
3530
        # Archives containing C++ object files must be created using
4355
3531
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4357
3533
        # in the archive.
4358
3534
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4359
3535
        ;;
4360
 
      gcx)
 
3536
      gcx*)
4361
3537
        # Green Hills C++ Compiler
4362
3538
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4363
3539
 
4400
3576
    ;;
4401
3577
  tandem*)
4402
3578
    case $cc_basename in
4403
 
      NCC)
 
3579
      NCC*)
4404
3580
        # NonStop-UX NCC 3.20
4405
3581
        # FIXME: insert proper C++ library support
4406
3582
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4506
3682
  # The `*' in the case matches for architectures that use `case' in
4507
3683
  # $output_verbose_cmd can trigger glob expansion during the loop
4508
3684
  # eval without this substitution.
4509
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3685
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4510
3686
 
4511
3687
  for p in `eval $output_verbose_link_cmd`; do
4512
3688
    case $p in
4582
3758
 
4583
3759
$rm -f confest.$objext
4584
3760
 
 
3761
# PORTME: override above test on systems where it is broken
 
3762
ifelse([$1],[CXX],
 
3763
[case $host_os in
 
3764
solaris*)
 
3765
  case $cc_basename in
 
3766
  CC*)
 
3767
    # Adding this requires a known-good setup of shared libraries for
 
3768
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3769
    # archive will be linked into the output, leading to subtle bugs.
 
3770
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3771
    ;;
 
3772
  esac
 
3773
esac
 
3774
])
 
3775
 
4585
3776
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4586
3777
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4587
3778
esac
4632
3823
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4633
3824
_LT_AC_SYS_COMPILER
4634
3825
 
 
3826
# save warnings/boilerplate of simple test code
 
3827
_LT_COMPILER_BOILERPLATE
 
3828
_LT_LINKER_BOILERPLATE
 
3829
 
4635
3830
# Allow CC to be a program name with arguments.
4636
3831
lt_save_CC="$CC"
4637
3832
CC=${F77-"f77"}
4638
3833
compiler=$CC
4639
3834
_LT_AC_TAGVAR(compiler, $1)=$CC
4640
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3835
_LT_CC_BASENAME([$compiler])
4641
3836
 
4642
3837
AC_MSG_CHECKING([if libtool supports shared libraries])
4643
3838
AC_MSG_RESULT([$can_build_shared])
4647
3842
 
4648
3843
# On AIX, shared libraries and static libraries use the same namespace, and
4649
3844
# are all built from PIC.
4650
 
case "$host_os" in
 
3845
case $host_os in
4651
3846
aix3*)
4652
3847
  test "$enable_shared" = yes && enable_static=no
4653
3848
  if test -n "$RANLIB"; then
4656
3851
  fi
4657
3852
  ;;
4658
3853
aix4* | aix5*)
4659
 
  test "$enable_shared" = yes && enable_static=no
 
3854
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3855
    test "$enable_shared" = yes && enable_static=no
 
3856
  fi
4660
3857
  ;;
4661
3858
esac
4662
3859
AC_MSG_RESULT([$enable_shared])
4707
3904
lt_simple_compile_test_code="class foo {}\n"
4708
3905
 
4709
3906
# Code to be used in simple link tests
4710
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
3907
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4711
3908
 
4712
3909
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4713
3910
_LT_AC_SYS_COMPILER
4714
3911
 
 
3912
# save warnings/boilerplate of simple test code
 
3913
_LT_COMPILER_BOILERPLATE
 
3914
_LT_LINKER_BOILERPLATE
 
3915
 
4715
3916
# Allow CC to be a program name with arguments.
4716
3917
lt_save_CC="$CC"
4717
3918
CC=${GCJ-"gcj"}
4718
3919
compiler=$CC
4719
3920
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3921
_LT_CC_BASENAME([$compiler])
4720
3922
 
4721
3923
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4722
3924
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4723
3925
 
 
3926
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3927
 
4724
3928
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4725
3929
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4726
3930
AC_LIBTOOL_PROG_CC_C_O($1)
4763
3967
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4764
3968
_LT_AC_SYS_COMPILER
4765
3969
 
 
3970
# save warnings/boilerplate of simple test code
 
3971
_LT_COMPILER_BOILERPLATE
 
3972
_LT_LINKER_BOILERPLATE
 
3973
 
4766
3974
# Allow CC to be a program name with arguments.
4767
3975
lt_save_CC="$CC"
4768
3976
CC=${RC-"windres"}
4769
3977
compiler=$CC
4770
3978
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3979
_LT_CC_BASENAME([$compiler])
4771
3980
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4772
3981
 
4773
3982
AC_LIBTOOL_CONFIG($1)
4903
4112
#
4904
4113
# You should have received a copy of the GNU General Public License
4905
4114
# along with this program; if not, write to the Free Software
4906
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4115
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4907
4116
#
4908
4117
# As a special exception to the GNU General Public License, if you
4909
4118
# distribute this file as part of a program that contains a
4914
4123
SED=$lt_SED
4915
4124
 
4916
4125
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4917
 
Xsed="$SED -e s/^X//"
 
4126
Xsed="$SED -e 1s/^X//"
4918
4127
 
4919
4128
# The HP-UX ksh and POSIX shell print the target directory to stdout
4920
4129
# if CDPATH is set.
4921
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4130
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4922
4131
 
4923
4132
# The names of the tagged configurations supported by this script.
4924
4133
available_tags=
4949
4158
# The host system.
4950
4159
host_alias=$host_alias
4951
4160
host=$host
 
4161
host_os=$host_os
 
4162
 
 
4163
# The build system.
 
4164
build_alias=$build_alias
 
4165
build=$build
 
4166
build_os=$build_os
4952
4167
 
4953
4168
# An echo program that does not interpret backslashes.
4954
4169
echo=$lt_echo
5025
4240
# Does compiler simultaneously support -c and -o options?
5026
4241
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5027
4242
 
5028
 
# Must we lock files when doing compilation ?
 
4243
# Must we lock files when doing compilation?
5029
4244
need_locks=$lt_need_locks
5030
4245
 
5031
4246
# Do we need the lib prefix for modules?
5299
4514
# Regexp to match symbols that can be accessed directly from C.
5300
4515
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5301
4516
 
5302
 
# Transform the above into a raw symbol and a C symbol.
5303
 
symxfrm='\1 \2\3 \3'
5304
 
 
5305
4517
# Transform an extracted symbol line into a proper C declaration
5306
4518
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5307
4519
 
5323
4535
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5324
4536
  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'"
5325
4537
  ;;
 
4538
linux*)
 
4539
  if test "$host_cpu" = ia64; then
 
4540
    symcode='[[ABCDGIRSTW]]'
 
4541
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4542
    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'"
 
4543
  fi
 
4544
  ;;
5326
4545
irix* | nonstopux*)
5327
4546
  symcode='[[BCDEGRST]]'
5328
4547
  ;;
5354
4573
# Try without a prefix undercore, then with it.
5355
4574
for ac_symprfx in "" "_"; do
5356
4575
 
 
4576
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4577
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4578
 
5357
4579
  # Write the raw and C identifiers.
5358
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4580
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5359
4581
 
5360
4582
  # Check to see that the pipe works correctly.
5361
4583
  pipe_works=no
5519
4741
    hpux*)
5520
4742
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5521
4743
      # not for PA HP-UX.
5522
 
      case "$host_cpu" in
 
4744
      case $host_cpu in
5523
4745
      hppa*64*|ia64*)
5524
4746
        ;;
5525
4747
      *)
5544
4766
        ;;
5545
4767
      chorus*)
5546
4768
        case $cc_basename in
5547
 
        cxch68)
 
4769
        cxch68*)
5548
4770
          # Green Hills C++ Compiler
5549
4771
          # _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"
5550
4772
          ;;
5551
4773
        esac
5552
4774
        ;;
 
4775
       darwin*)
 
4776
         # PIC is the default on this platform
 
4777
         # Common symbols not allowed in MH_DYLIB files
 
4778
         case $cc_basename in
 
4779
           xlc*)
 
4780
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4781
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4782
           ;;
 
4783
         esac
 
4784
       ;;
5553
4785
      dgux*)
5554
4786
        case $cc_basename in
5555
 
          ec++)
 
4787
          ec++*)
5556
4788
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5557
4789
            ;;
5558
 
          ghcx)
 
4790
          ghcx*)
5559
4791
            # Green Hills C++ Compiler
5560
4792
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5561
4793
            ;;
5563
4795
            ;;
5564
4796
        esac
5565
4797
        ;;
5566
 
      freebsd* | kfreebsd*-gnu)
 
4798
      freebsd* | kfreebsd*-gnu | dragonfly*)
5567
4799
        # FreeBSD uses GNU C++
5568
4800
        ;;
5569
4801
      hpux9* | hpux10* | hpux11*)
5570
4802
        case $cc_basename in
5571
 
          CC)
 
4803
          CC*)
5572
4804
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5573
4805
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5574
4806
            if test "$host_cpu" != ia64; then
5575
4807
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5576
4808
            fi
5577
4809
            ;;
5578
 
          aCC)
 
4810
          aCC*)
5579
4811
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5580
4812
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5581
 
            case "$host_cpu" in
 
4813
            case $host_cpu in
5582
4814
            hppa*64*|ia64*)
5583
4815
              # +Z the default
5584
4816
              ;;
5593
4825
        ;;
5594
4826
      irix5* | irix6* | nonstopux*)
5595
4827
        case $cc_basename in
5596
 
          CC)
 
4828
          CC*)
5597
4829
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5598
4830
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5599
4831
            # CC pic flag -KPIC is the default.
5604
4836
        ;;
5605
4837
      linux*)
5606
4838
        case $cc_basename in
5607
 
          KCC)
 
4839
          KCC*)
5608
4840
            # KAI C++ Compiler
5609
4841
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5610
4842
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5611
4843
            ;;
5612
 
          icpc)
 
4844
          icpc* | ecpc*)
5613
4845
            # Intel C++
5614
4846
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5615
4847
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5616
4848
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5617
4849
            ;;
5618
 
          cxx)
 
4850
          pgCC*)
 
4851
            # Portland Group C++ compiler.
 
4852
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4853
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4854
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4855
            ;;
 
4856
          cxx*)
5619
4857
            # Compaq C++
5620
4858
            # Make sure the PIC flag is empty.  It appears that all Alpha
5621
4859
            # Linux and Compaq Tru64 Unix objects are PIC.
5632
4870
        ;;
5633
4871
      mvs*)
5634
4872
        case $cc_basename in
5635
 
          cxx)
 
4873
          cxx*)
5636
4874
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5637
4875
            ;;
5638
4876
          *)
5639
4877
            ;;
5640
4878
        esac
5641
4879
        ;;
5642
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4880
      netbsd*)
5643
4881
        ;;
5644
4882
      osf3* | osf4* | osf5*)
5645
4883
        case $cc_basename in
5646
 
          KCC)
 
4884
          KCC*)
5647
4885
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5648
4886
            ;;
5649
 
          RCC)
 
4887
          RCC*)
5650
4888
            # Rational C++ 2.4.1
5651
4889
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5652
4890
            ;;
5653
 
          cxx)
 
4891
          cxx*)
5654
4892
            # Digital/Compaq C++
5655
4893
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5656
4894
            # Make sure the PIC flag is empty.  It appears that all Alpha
5666
4904
        ;;
5667
4905
      sco*)
5668
4906
        case $cc_basename in
5669
 
          CC)
 
4907
          CC*)
5670
4908
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5671
4909
            ;;
5672
4910
          *)
5675
4913
        ;;
5676
4914
      solaris*)
5677
4915
        case $cc_basename in
5678
 
          CC)
 
4916
          CC*)
5679
4917
            # Sun C++ 4.2, 5.x and Centerline C++
5680
4918
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5681
4919
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5682
4920
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5683
4921
            ;;
5684
 
          gcx)
 
4922
          gcx*)
5685
4923
            # Green Hills C++ Compiler
5686
4924
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5687
4925
            ;;
5691
4929
        ;;
5692
4930
      sunos4*)
5693
4931
        case $cc_basename in
5694
 
          CC)
 
4932
          CC*)
5695
4933
            # Sun C++ 4.x
5696
4934
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5697
4935
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5698
4936
            ;;
5699
 
          lcc)
 
4937
          lcc*)
5700
4938
            # Lucid
5701
4939
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5702
4940
            ;;
5706
4944
        ;;
5707
4945
      tandem*)
5708
4946
        case $cc_basename in
5709
 
          NCC)
 
4947
          NCC*)
5710
4948
            # NonStop-UX NCC 3.20
5711
4949
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5712
4950
            ;;
5777
5015
    hpux*)
5778
5016
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5779
5017
      # not for PA HP-UX.
5780
 
      case "$host_cpu" in
 
5018
      case $host_cpu in
5781
5019
      hppa*64*|ia64*)
5782
5020
        # +Z the default
5783
5021
        ;;
5803
5041
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5804
5042
      fi
5805
5043
      ;;
 
5044
      darwin*)
 
5045
        # PIC is the default on this platform
 
5046
        # Common symbols not allowed in MH_DYLIB files
 
5047
       case $cc_basename in
 
5048
         xlc*)
 
5049
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5050
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5051
         ;;
 
5052
       esac
 
5053
       ;;
5806
5054
 
5807
5055
    mingw* | pw32* | os2*)
5808
5056
      # This hack is so that the source file can tell whether it is being
5814
5062
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5815
5063
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5816
5064
      # not for PA HP-UX.
5817
 
      case "$host_cpu" in
 
5065
      case $host_cpu in
5818
5066
      hppa*64*|ia64*)
5819
5067
        # +Z the default
5820
5068
        ;;
5838
5086
      ;;
5839
5087
 
5840
5088
    linux*)
5841
 
      case $CC in
 
5089
      case $cc_basename in
5842
5090
      icc* | ecc*)
5843
5091
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5844
5092
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5845
5093
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5846
5094
        ;;
 
5095
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5096
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5097
        # which looks to be a dead project)
 
5098
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5099
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5100
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5101
        ;;
5847
5102
      ccc*)
5848
5103
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5849
5104
        # All Alpha code is PIC.
5864
5119
      ;;
5865
5120
 
5866
5121
    solaris*)
5867
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5868
5122
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5869
5123
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5124
      case $cc_basename in
 
5125
      f77* | f90* | f95*)
 
5126
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5127
      *)
 
5128
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5129
      esac
5870
5130
      ;;
5871
5131
 
5872
5132
    sunos4*)
5888
5148
      fi
5889
5149
      ;;
5890
5150
 
 
5151
    unicos*)
 
5152
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5153
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5154
      ;;
 
5155
 
5891
5156
    uts4*)
5892
5157
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5893
5158
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5915
5180
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5916
5181
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5917
5182
fi
5918
 
case "$host_os" in
 
5183
case $host_os in
5919
5184
  # For platforms which do not support PIC, -DPIC is meaningless:
5920
5185
  *djgpp*)
5921
5186
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5948
5213
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5949
5214
  ;;
5950
5215
  cygwin* | mingw*)
5951
 
    _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'
5952
 
  ;;
5953
 
  linux*)
5954
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5216
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5955
5217
  ;;
5956
5218
  *)
5957
5219
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5994
5256
  # rely on this symbol name, it's probably fine to never include it in
5995
5257
  # preloaded symbol tables.
5996
5258
  extract_expsyms_cmds=
5997
 
 
 
5259
  # Just being paranoid about ensuring that cc_basename is set.
 
5260
  _LT_CC_BASENAME([$compiler])
5998
5261
  case $host_os in
5999
5262
  cygwin* | mingw* | pw32*)
6000
5263
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6014
5277
    # If archive_cmds runs LD, not CC, wlarc should be empty
6015
5278
    wlarc='${wl}'
6016
5279
 
 
5280
    # Set some defaults for GNU ld with shared library support. These
 
5281
    # are reset later if shared libraries are not supported. Putting them
 
5282
    # here allows them to be overridden if necessary.
 
5283
    runpath_var=LD_RUN_PATH
 
5284
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5285
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5286
    # ancient GNU ld didn't support --whole-archive et. al.
 
5287
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5288
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5289
      else
 
5290
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5291
    fi
 
5292
    supports_anon_versioning=no
 
5293
    case `$LD -v 2>/dev/null` in
 
5294
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5295
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5296
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5297
      *\ 2.11.*) ;; # other 2.11 versions
 
5298
      *) supports_anon_versioning=yes ;;
 
5299
    esac
 
5300
 
6017
5301
    # See if GNU ld supports shared libraries.
6018
5302
    case $host_os in
6019
5303
    aix3* | aix4* | aix5*)
6064
5348
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6065
5349
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6066
5350
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6067
 
      _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'
 
5351
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6068
5352
 
6069
5353
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6070
5354
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6078
5362
        fi~
6079
5363
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6080
5364
      else
6081
 
        ld_shlibs=no
6082
 
      fi
6083
 
      ;;
6084
 
 
6085
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5365
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5366
      fi
 
5367
      ;;
 
5368
 
 
5369
    linux*)
 
5370
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5371
        tmp_addflag=
 
5372
        case $cc_basename,$host_cpu in
 
5373
        pgcc*)                          # Portland Group C compiler
 
5374
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5375
          tmp_addflag=' $pic_flag'
 
5376
          ;;
 
5377
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5378
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5379
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5380
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5381
          tmp_addflag=' -i_dynamic' ;;
 
5382
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5383
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5384
        ifc* | ifort*)                  # Intel Fortran compiler
 
5385
          tmp_addflag=' -nofor_main' ;;
 
5386
        esac
 
5387
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5388
 
 
5389
        if test $supports_anon_versioning = yes; then
 
5390
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5391
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5392
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5393
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5394
        fi
 
5395
      else
 
5396
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5397
      fi
 
5398
      ;;
 
5399
 
 
5400
    netbsd*)
6086
5401
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087
5402
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6088
5403
        wlarc=
6120
5435
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6121
5436
      ;;
6122
5437
 
6123
 
  linux*)
6124
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6125
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6127
 
      supports_anon_versioning=no
6128
 
      case `$LD -v 2>/dev/null` in
6129
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6130
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6131
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6132
 
        *\ 2.11.*) ;; # other 2.11 versions
6133
 
        *) supports_anon_versioning=yes ;;
6134
 
      esac
6135
 
      if test $supports_anon_versioning = yes; then
6136
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6137
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6138
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6139
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6140
 
      else
6141
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6142
 
      fi
6143
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6144
 
    else
6145
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6146
 
    fi
6147
 
    ;;
6148
 
 
6149
5438
    *)
6150
5439
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6151
5440
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6156
5445
      ;;
6157
5446
    esac
6158
5447
 
6159
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6160
 
      runpath_var=LD_RUN_PATH
6161
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6162
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6163
 
      # ancient GNU ld didn't support --whole-archive et. al.
6164
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6165
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6166
 
      else
6167
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6168
 
      fi
 
5448
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5449
      runpath_var=
 
5450
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5451
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5452
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6169
5453
    fi
6170
5454
  else
6171
5455
    # PORTME fill in a description of your system's linker (not GNU ld)
6229
5513
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6230
5514
 
6231
5515
      if test "$GCC" = yes; then
6232
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5516
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6233
5517
        # We only want to do this on AIX 4.2 and lower, the check
6234
5518
        # below for broken collect2 doesn't work under 4.3+
6235
5519
          collect2name=`${CC} -print-prog-name=collect2`
6250
5534
          fi
6251
5535
        esac
6252
5536
        shared_flag='-shared'
 
5537
        if test "$aix_use_runtimelinking" = yes; then
 
5538
          shared_flag="$shared_flag "'${wl}-G'
 
5539
        fi
6253
5540
      else
6254
5541
        # not using gcc
6255
5542
        if test "$host_cpu" = ia64; then
6294
5581
          # Exported symbols can be pulled into shared objects from archives
6295
5582
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6296
5583
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6297
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
5584
          # This is similar to how AIX traditionally builds its shared libraries.
6298
5585
          _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'
6299
5586
        fi
6300
5587
      fi
6308
5595
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6309
5596
      ;;
6310
5597
 
6311
 
    bsdi4*)
 
5598
    bsdi[[45]]*)
6312
5599
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6313
5600
      ;;
6314
5601
 
6329
5616
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6330
5617
      # FIXME: Should let the user specify the lib program.
6331
5618
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6332
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5619
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6333
5620
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6334
5621
      ;;
6335
5622
 
6336
5623
    darwin* | rhapsody*)
6337
 
    if test "$GXX" = yes ; then
 
5624
      case $host_os in
 
5625
        rhapsody* | darwin1.[[012]])
 
5626
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5627
         ;;
 
5628
       *) # Darwin 1.3 on
 
5629
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5630
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5631
         else
 
5632
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5633
             10.[[012]])
 
5634
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5635
               ;;
 
5636
             10.*)
 
5637
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5638
               ;;
 
5639
           esac
 
5640
         fi
 
5641
         ;;
 
5642
      esac
6338
5643
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6339
 
      case "$host_os" in
6340
 
      rhapsody* | darwin1.[[012]])
6341
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6342
 
        ;;
6343
 
      *) # Darwin 1.3 on
6344
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6345
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6346
 
      else
6347
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6348
 
          10.[[012]])
6349
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6350
 
            ;;
6351
 
          10.*)
6352
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6353
 
            ;;
6354
 
        esac
6355
 
      fi
6356
 
        ;;
6357
 
      esac
6358
 
        lt_int_apple_cc_single_mod=no
 
5644
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5645
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5646
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5647
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5648
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5649
    if test "$GCC" = yes ; then
6359
5650
        output_verbose_link_cmd='echo'
6360
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6361
 
          lt_int_apple_cc_single_mod=yes
6362
 
        fi
6363
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6364
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6365
 
        else
6366
 
        _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'
6367
 
      fi
6368
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6369
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6370
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6371
 
          _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}'
6372
 
        else
6373
 
          _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}'
6374
 
        fi
 
5651
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5652
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5653
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5654
      _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}'
 
5655
      _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}'
 
5656
    else
 
5657
      case $cc_basename in
 
5658
        xlc*)
 
5659
         output_verbose_link_cmd='echo'
 
5660
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
5661
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5662
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5663
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6375
5664
          _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}'
6376
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6377
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6378
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6379
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6380
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6381
 
    else
6382
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5665
          ;;
 
5666
       *)
 
5667
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5668
          ;;
 
5669
      esac
6383
5670
    fi
6384
5671
      ;;
6385
5672
 
6413
5700
      ;;
6414
5701
 
6415
5702
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6416
 
    freebsd* | kfreebsd*-gnu)
 
5703
    freebsd* | kfreebsd*-gnu | dragonfly*)
6417
5704
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6418
5705
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6419
5706
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6438
5725
 
6439
5726
    hpux10* | hpux11*)
6440
5727
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6441
 
        case "$host_cpu" in
 
5728
        case $host_cpu in
6442
5729
        hppa*64*|ia64*)
6443
5730
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6444
5731
          ;;
6447
5734
          ;;
6448
5735
        esac
6449
5736
      else
6450
 
        case "$host_cpu" in
 
5737
        case $host_cpu in
6451
5738
        hppa*64*|ia64*)
6452
5739
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6453
5740
          ;;
6457
5744
        esac
6458
5745
      fi
6459
5746
      if test "$with_gnu_ld" = no; then
6460
 
        case "$host_cpu" in
 
5747
        case $host_cpu in
6461
5748
        hppa*64*)
6462
5749
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6463
5750
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6500
5787
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6501
5788
      ;;
6502
5789
 
6503
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5790
    netbsd*)
6504
5791
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6505
5792
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6506
5793
      else
6524
5811
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6525
5812
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6526
5813
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5814
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6527
5815
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6528
5816
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6529
5817
      else
6569
5857
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6570
5858
        _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'
6571
5859
        _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~
6572
 
        $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'
 
5860
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6573
5861
 
6574
5862
        # Both c and cxx compiler support -rpath directly
6575
5863
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6588
5876
    solaris*)
6589
5877
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6590
5878
      if test "$GCC" = yes; then
 
5879
        wlarc='${wl}'
6591
5880
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6592
5881
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6593
5882
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6594
5883
      else
 
5884
        wlarc=''
6595
5885
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6596
5886
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6597
5887
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6600
5890
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6601
5891
      case $host_os in
6602
5892
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6603
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6604
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5893
      *)
 
5894
        # The compiler driver will combine linker options so we
 
5895
        # cannot just pass the convience library names through
 
5896
        # without $wl, iff we do not link with $LD.
 
5897
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
5898
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5899
        case $wlarc in
 
5900
        '')
 
5901
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5902
        *)
 
5903
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
5904
        esac ;;
6605
5905
      esac
6606
5906
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6607
5907
      ;;
6862
6162
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6863
6163
# along with /bin/sed that truncates output.
6864
6164
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6865
 
  test ! -f $lt_ac_sed && break
 
6165
  test ! -f $lt_ac_sed && continue
6866
6166
  cat /dev/null > conftest.in
6867
6167
  lt_ac_count=0
6868
6168
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6887
6187
    fi
6888
6188
  done
6889
6189
done
 
6190
])
6890
6191
SED=$lt_cv_path_SED
6891
 
])
6892
6192
AC_MSG_RESULT([$SED])
6893
6193
])
6894
6194
 
6895
 
 
6896
 
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6897
 
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6898
 
dnl also defines GSTUFF_PKG_ERRORS on error
6899
 
AC_DEFUN(PKG_CHECK_MODULES, [
6900
 
  succeeded=no
6901
 
 
6902
 
  if test -z "$PKG_CONFIG"; then
6903
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
6904
 
  fi
6905
 
 
6906
 
  if test "$PKG_CONFIG" = "no" ; then
6907
 
     echo "*** The pkg-config script could not be found. Make sure it is"
6908
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
6909
 
     echo "*** to the full path to pkg-config."
6910
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6911
 
  else
6912
 
     PKG_CONFIG_MIN_VERSION=0.9.0
6913
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6914
 
        AC_MSG_CHECKING(for $2)
6915
 
 
6916
 
        if $PKG_CONFIG --exists "$2" ; then
6917
 
            AC_MSG_RESULT(yes)
6918
 
            succeeded=yes
6919
 
 
6920
 
            AC_MSG_CHECKING($1_CFLAGS)
6921
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
6922
 
            AC_MSG_RESULT($$1_CFLAGS)
6923
 
 
6924
 
            AC_MSG_CHECKING($1_LIBS)
6925
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
6926
 
            AC_MSG_RESULT($$1_LIBS)
6927
 
        else
6928
 
            $1_CFLAGS=""
6929
 
            $1_LIBS=""
6930
 
            ## If we have a custom action on failure, don't print errors, but 
6931
 
            ## do set a variable so people can do so.
6932
 
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6933
 
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
 
6195
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
6196
 
6197
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
6198
#
 
6199
# This program is free software; you can redistribute it and/or modify
 
6200
# it under the terms of the GNU General Public License as published by
 
6201
# the Free Software Foundation; either version 2 of the License, or
 
6202
# (at your option) any later version.
 
6203
#
 
6204
# This program is distributed in the hope that it will be useful, but
 
6205
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
6206
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
6207
# General Public License for more details.
 
6208
#
 
6209
# You should have received a copy of the GNU General Public License
 
6210
# along with this program; if not, write to the Free Software
 
6211
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
6212
#
 
6213
# As a special exception to the GNU General Public License, if you
 
6214
# distribute this file as part of a program that contains a
 
6215
# configuration script generated by Autoconf, you may include it under
 
6216
# the same distribution terms that you use for the rest of that program.
 
6217
 
 
6218
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
6219
# ----------------------------------
 
6220
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
6221
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
6222
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
6223
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
6224
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
6225
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
6226
fi
 
6227
if test -n "$PKG_CONFIG"; then
 
6228
        _pkg_min_version=m4_default([$1], [0.9.0])
 
6229
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
6230
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
6231
                AC_MSG_RESULT([yes])
 
6232
        else
 
6233
                AC_MSG_RESULT([no])
 
6234
                PKG_CONFIG=""
 
6235
        fi
 
6236
                
 
6237
fi[]dnl
 
6238
])# PKG_PROG_PKG_CONFIG
 
6239
 
 
6240
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
6241
#
 
6242
# Check to see whether a particular set of modules exists.  Similar
 
6243
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
6244
#
 
6245
#
 
6246
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
6247
# this or PKG_CHECK_MODULES is called, or make sure to call
 
6248
# PKG_CHECK_EXISTS manually
 
6249
# --------------------------------------------------------------
 
6250
AC_DEFUN([PKG_CHECK_EXISTS],
 
6251
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6252
if test -n "$PKG_CONFIG" && \
 
6253
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
6254
  m4_ifval([$2], [$2], [:])
 
6255
m4_ifvaln([$3], [else
 
6256
  $3])dnl
 
6257
fi])
 
6258
 
 
6259
 
 
6260
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
6261
# ---------------------------------------------
 
6262
m4_define([_PKG_CONFIG],
 
6263
[if test -n "$PKG_CONFIG"; then
 
6264
    if test -n "$$1"; then
 
6265
        pkg_cv_[]$1="$$1"
 
6266
    else
 
6267
        PKG_CHECK_EXISTS([$3],
 
6268
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
6269
                         [pkg_failed=yes])
 
6270
    fi
 
6271
else
 
6272
        pkg_failed=untried
 
6273
fi[]dnl
 
6274
])# _PKG_CONFIG
 
6275
 
 
6276
# _PKG_SHORT_ERRORS_SUPPORTED
 
6277
# -----------------------------
 
6278
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
6279
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
6280
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
6281
        _pkg_short_errors_supported=yes
 
6282
else
 
6283
        _pkg_short_errors_supported=no
 
6284
fi[]dnl
 
6285
])# _PKG_SHORT_ERRORS_SUPPORTED
 
6286
 
 
6287
 
 
6288
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
6289
# [ACTION-IF-NOT-FOUND])
 
6290
#
 
6291
#
 
6292
# Note that if there is a possibility the first call to
 
6293
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
6294
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
6295
#
 
6296
#
 
6297
# --------------------------------------------------------------
 
6298
AC_DEFUN([PKG_CHECK_MODULES],
 
6299
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6300
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
6301
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
6302
 
 
6303
pkg_failed=no
 
6304
AC_MSG_CHECKING([for $1])
 
6305
 
 
6306
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
6307
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
6308
 
 
6309
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
6310
and $1[]_LIBS to avoid the need to call pkg-config.
 
6311
See the pkg-config man page for more details.])
 
6312
 
 
6313
if test $pkg_failed = yes; then
 
6314
        _PKG_SHORT_ERRORS_SUPPORTED
 
6315
        if test $_pkg_short_errors_supported = yes; then
 
6316
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
6317
        else 
 
6318
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6934
6319
        fi
6935
 
 
6936
 
        AC_SUBST($1_CFLAGS)
6937
 
        AC_SUBST($1_LIBS)
6938
 
     else
6939
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6940
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
6941
 
     fi
6942
 
  fi
6943
 
 
6944
 
  if test $succeeded = yes; then
6945
 
     ifelse([$3], , :, [$3])
6946
 
  else
6947
 
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
6948
 
  fi
 
6320
        # Put the nasty error message in config.log where it belongs
 
6321
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
6322
 
 
6323
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
6324
[Package requirements ($2) were not met:
 
6325
 
 
6326
$$1_PKG_ERRORS
 
6327
 
 
6328
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
6329
installed software in a non-standard prefix.
 
6330
 
 
6331
_PKG_TEXT
 
6332
])],
 
6333
                [$4])
 
6334
elif test $pkg_failed = untried; then
 
6335
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
6336
[The pkg-config script could not be found or is too old.  Make sure it
 
6337
is in your PATH or set the PKG_CONFIG environment variable to the full
 
6338
path to pkg-config.
 
6339
 
 
6340
_PKG_TEXT
 
6341
 
 
6342
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
6343
                [$4])
 
6344
else
 
6345
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
6346
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
6347
        AC_MSG_RESULT([yes])
 
6348
        ifelse([$3], , :, [$3])
 
6349
fi[]dnl
 
6350
])# PKG_CHECK_MODULES
 
6351
 
 
6352
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6353
#
 
6354
# This file is free software; the Free Software Foundation
 
6355
# gives unlimited permission to copy and/or distribute it,
 
6356
# with or without modifications, as long as this notice is preserved.
 
6357
 
 
6358
# AM_AUTOMAKE_VERSION(VERSION)
 
6359
# ----------------------------
 
6360
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
6361
# generated from the m4 files accompanying Automake X.Y.
 
6362
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6363
 
 
6364
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
6365
# -------------------------------
 
6366
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6367
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
6368
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
6369
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6370
 
 
6371
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6372
 
 
6373
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6374
#
 
6375
# This file is free software; the Free Software Foundation
 
6376
# gives unlimited permission to copy and/or distribute it,
 
6377
# with or without modifications, as long as this notice is preserved.
 
6378
 
 
6379
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
6380
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
6381
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
6382
#
 
6383
# Of course, Automake must honor this variable whenever it calls a
 
6384
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
6385
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
6386
# depending on how configure is run.  This is pretty annoying, since
 
6387
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
6388
# source directory, any form will work fine, but in subdirectories a
 
6389
# relative path needs to be adjusted first.
 
6390
#
 
6391
# $ac_aux_dir/missing
 
6392
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
6393
# $top_srcdir/$ac_aux_dir/missing
 
6394
#    fails if $ac_aux_dir is absolute,
 
6395
#    fails when called from a subdirectory in a VPATH build with
 
6396
#          a relative $ac_aux_dir
 
6397
#
 
6398
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
6399
# are both prefixed by $srcdir.  In an in-source build this is usually
 
6400
# harmless because $srcdir is `.', but things will broke when you
 
6401
# start a VPATH build or use an absolute $srcdir.
 
6402
#
 
6403
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
6404
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
6405
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
6406
# and then we would define $MISSING as
 
6407
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
6408
# This will work as long as MISSING is not called from configure, because
 
6409
# unfortunately $(top_srcdir) has no meaning in configure.
 
6410
# However there are other variables, like CC, which are often used in
 
6411
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
6412
#
 
6413
# Another solution, used here, is to always expand $ac_aux_dir to an
 
6414
# absolute PATH.  The drawback is that using absolute paths prevent a
 
6415
# configured tree to be moved without reconfiguration.
 
6416
 
 
6417
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
6418
[dnl Rely on autoconf to set up CDPATH properly.
 
6419
AC_PREREQ([2.50])dnl
 
6420
# expand $ac_aux_dir to an absolute path
 
6421
am_aux_dir=`cd $ac_aux_dir && pwd`
6949
6422
])
6950
6423
 
6951
 
 
6952
 
 
 
6424
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6425
 
 
6426
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6427
# Free Software Foundation, Inc.
 
6428
#
 
6429
# This file is free software; the Free Software Foundation
 
6430
# gives unlimited permission to copy and/or distribute it,
 
6431
# with or without modifications, as long as this notice is preserved.
 
6432
 
 
6433
# serial 7
 
6434
 
 
6435
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
6436
# -------------------------------------
6953
6437
# Define a conditional.
6954
 
 
6955
6438
AC_DEFUN([AM_CONDITIONAL],
6956
 
[AC_SUBST($1_TRUE)
6957
 
AC_SUBST($1_FALSE)
 
6439
[AC_PREREQ(2.52)dnl
 
6440
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
6441
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
6442
AC_SUBST([$1_TRUE])
 
6443
AC_SUBST([$1_FALSE])
6958
6444
if $2; then
6959
6445
  $1_TRUE=
6960
6446
  $1_FALSE='#'
6961
6447
else
6962
6448
  $1_TRUE='#'
6963
6449
  $1_FALSE=
6964
 
fi])
 
6450
fi
 
6451
AC_CONFIG_COMMANDS_PRE(
 
6452
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
6453
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6454
Usually this means the macro was only invoked conditionally.]])
 
6455
fi])])
 
6456
 
 
6457
 
 
6458
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6459
# Free Software Foundation, Inc.
 
6460
#
 
6461
# This file is free software; the Free Software Foundation
 
6462
# gives unlimited permission to copy and/or distribute it,
 
6463
# with or without modifications, as long as this notice is preserved.
 
6464
 
 
6465
# serial 8
 
6466
 
 
6467
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
6468
# written in clear, in which case automake, when reading aclocal.m4,
 
6469
# will think it sees a *use*, and therefore will trigger all it's
 
6470
# C support machinery.  Also note that it means that autoscan, seeing
 
6471
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
6472
 
 
6473
 
 
6474
# _AM_DEPENDENCIES(NAME)
 
6475
# ----------------------
 
6476
# See how the compiler implements dependency checking.
 
6477
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
6478
# We try a few techniques and use that to set a single cache variable.
 
6479
#
 
6480
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
6481
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
6482
# dependency, and given that the user is not expected to run this macro,
 
6483
# just rely on AC_PROG_CC.
 
6484
AC_DEFUN([_AM_DEPENDENCIES],
 
6485
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
6486
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
6487
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
6488
AC_REQUIRE([AM_DEP_TRACK])dnl
 
6489
 
 
6490
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
6491
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
6492
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6493
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
6494
                   [depcc="$$1"   am_compiler_list=])
 
6495
 
 
6496
AC_CACHE_CHECK([dependency style of $depcc],
 
6497
               [am_cv_$1_dependencies_compiler_type],
 
6498
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6499
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6500
  # making bogus files that we don't know about and never remove.  For
 
6501
  # instance it was reported that on HP-UX the gcc test will end up
 
6502
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6503
  # in D'.
 
6504
  mkdir conftest.dir
 
6505
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6506
  # using a relative directory.
 
6507
  cp "$am_depcomp" conftest.dir
 
6508
  cd conftest.dir
 
6509
  # We will build objects and dependencies in a subdirectory because
 
6510
  # it helps to detect inapplicable dependency modes.  For instance
 
6511
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6512
  # side effect of compilation, but ICC will put the dependencies in
 
6513
  # the current directory while Tru64 will put them in the object
 
6514
  # directory.
 
6515
  mkdir sub
 
6516
 
 
6517
  am_cv_$1_dependencies_compiler_type=none
 
6518
  if test "$am_compiler_list" = ""; then
 
6519
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
6520
  fi
 
6521
  for depmode in $am_compiler_list; do
 
6522
    # Setup a source with many dependencies, because some compilers
 
6523
    # like to wrap large dependency lists on column 80 (with \), and
 
6524
    # we should not choose a depcomp mode which is confused by this.
 
6525
    #
 
6526
    # We need to recreate these files for each test, as the compiler may
 
6527
    # overwrite some of them when testing with obscure command lines.
 
6528
    # This happens at least with the AIX C compiler.
 
6529
    : > sub/conftest.c
 
6530
    for i in 1 2 3 4 5 6; do
 
6531
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6532
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6533
      # Solaris 8's {/usr,}/bin/sh.
 
6534
      touch sub/conftst$i.h
 
6535
    done
 
6536
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6537
 
 
6538
    case $depmode in
 
6539
    nosideeffect)
 
6540
      # after this tag, mechanisms are not by side-effect, so they'll
 
6541
      # only be used when explicitly requested
 
6542
      if test "x$enable_dependency_tracking" = xyes; then
 
6543
        continue
 
6544
      else
 
6545
        break
 
6546
      fi
 
6547
      ;;
 
6548
    none) break ;;
 
6549
    esac
 
6550
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6551
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6552
    # handle `-M -o', and we need to detect this.
 
6553
    if depmode=$depmode \
 
6554
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6555
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6556
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6557
         >/dev/null 2>conftest.err &&
 
6558
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6559
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6560
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6561
      # icc doesn't choke on unknown options, it will just issue warnings
 
6562
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6563
      # that says an option was ignored or not supported.
 
6564
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6565
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6566
      # The diagnosis changed in icc 8.0:
 
6567
      #   icc: Command line remark: option '-MP' not supported
 
6568
      if (grep 'ignoring option' conftest.err ||
 
6569
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6570
        am_cv_$1_dependencies_compiler_type=$depmode
 
6571
        break
 
6572
      fi
 
6573
    fi
 
6574
  done
 
6575
 
 
6576
  cd ..
 
6577
  rm -rf conftest.dir
 
6578
else
 
6579
  am_cv_$1_dependencies_compiler_type=none
 
6580
fi
 
6581
])
 
6582
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
6583
AM_CONDITIONAL([am__fastdep$1], [
 
6584
  test "x$enable_dependency_tracking" != xno \
 
6585
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
6586
])
 
6587
 
 
6588
 
 
6589
# AM_SET_DEPDIR
 
6590
# -------------
 
6591
# Choose a directory name for dependency files.
 
6592
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
6593
AC_DEFUN([AM_SET_DEPDIR],
 
6594
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6595
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
6596
])
 
6597
 
 
6598
 
 
6599
# AM_DEP_TRACK
 
6600
# ------------
 
6601
AC_DEFUN([AM_DEP_TRACK],
 
6602
[AC_ARG_ENABLE(dependency-tracking,
 
6603
[  --disable-dependency-tracking  speeds up one-time build
 
6604
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
6605
if test "x$enable_dependency_tracking" != xno; then
 
6606
  am_depcomp="$ac_aux_dir/depcomp"
 
6607
  AMDEPBACKSLASH='\'
 
6608
fi
 
6609
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
6610
AC_SUBST([AMDEPBACKSLASH])
 
6611
])
 
6612
 
 
6613
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6614
 
 
6615
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6616
# Free Software Foundation, Inc.
 
6617
#
 
6618
# This file is free software; the Free Software Foundation
 
6619
# gives unlimited permission to copy and/or distribute it,
 
6620
# with or without modifications, as long as this notice is preserved.
 
6621
 
 
6622
#serial 3
 
6623
 
 
6624
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6625
# ------------------------------
 
6626
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6627
[for mf in $CONFIG_FILES; do
 
6628
  # Strip MF so we end up with the name of the file.
 
6629
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6630
  # Check whether this is an Automake generated Makefile or not.
 
6631
  # We used to match only the files named `Makefile.in', but
 
6632
  # some people rename them; so instead we look at the file content.
 
6633
  # Grep'ing the first line is not enough: some people post-process
 
6634
  # each Makefile.in and add a new line on top of each file to say so.
 
6635
  # So let's grep whole file.
 
6636
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6637
    dirpart=`AS_DIRNAME("$mf")`
 
6638
  else
 
6639
    continue
 
6640
  fi
 
6641
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6642
  # from the Makefile without running `make'.
 
6643
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
6644
  test -z "$DEPDIR" && continue
 
6645
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6646
  test -z "am__include" && continue
 
6647
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
6648
  # When using ansi2knr, U may be empty or an underscore; expand it
 
6649
  U=`sed -n 's/^U = //p' < "$mf"`
 
6650
  # Find all dependency output files, they are included files with
 
6651
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6652
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6653
  # expansion.
 
6654
  for file in `sed -n "
 
6655
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
6656
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
6657
    # Make sure the directory exists.
 
6658
    test -f "$dirpart/$file" && continue
 
6659
    fdir=`AS_DIRNAME(["$file"])`
 
6660
    AS_MKDIR_P([$dirpart/$fdir])
 
6661
    # echo "creating $dirpart/$file"
 
6662
    echo '# dummy' > "$dirpart/$file"
 
6663
  done
 
6664
done
 
6665
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6666
 
 
6667
 
 
6668
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
6669
# -----------------------------
 
6670
# This macro should only be invoked once -- use via AC_REQUIRE.
 
6671
#
 
6672
# This code is only required when automatic dependency tracking
 
6673
# is enabled.  FIXME.  This creates each `.P' file that we will
 
6674
# need in order to bootstrap the dependency handling code.
 
6675
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6676
[AC_CONFIG_COMMANDS([depfiles],
 
6677
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6678
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
6679
])
 
6680
 
 
6681
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
6682
# Free Software Foundation, Inc.
 
6683
#
 
6684
# This file is free software; the Free Software Foundation
 
6685
# gives unlimited permission to copy and/or distribute it,
 
6686
# with or without modifications, as long as this notice is preserved.
 
6687
 
 
6688
# serial 8
 
6689
 
 
6690
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
6691
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
6692
 
 
6693
# Do all the work for Automake.                             -*- Autoconf -*-
 
6694
 
 
6695
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6696
# Free Software Foundation, Inc.
 
6697
#
 
6698
# This file is free software; the Free Software Foundation
 
6699
# gives unlimited permission to copy and/or distribute it,
 
6700
# with or without modifications, as long as this notice is preserved.
 
6701
 
 
6702
# serial 12
 
6703
 
 
6704
# This macro actually does too much.  Some checks are only needed if
 
6705
# your package does certain things.  But this isn't really a big deal.
 
6706
 
 
6707
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
6708
# AM_INIT_AUTOMAKE([OPTIONS])
 
6709
# -----------------------------------------------
 
6710
# The call with PACKAGE and VERSION arguments is the old style
 
6711
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
6712
# and VERSION should now be passed to AC_INIT and removed from
 
6713
# the call to AM_INIT_AUTOMAKE.
 
6714
# We support both call styles for the transition.  After
 
6715
# the next Automake release, Autoconf can make the AC_INIT
 
6716
# arguments mandatory, and then we can depend on a new Autoconf
 
6717
# release and drop the old call support.
 
6718
AC_DEFUN([AM_INIT_AUTOMAKE],
 
6719
[AC_PREREQ([2.58])dnl
 
6720
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
6721
dnl the ones we care about.
 
6722
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
6723
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
6724
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
6725
# test to see if srcdir already configured
 
6726
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
6727
   test -f $srcdir/config.status; then
 
6728
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6729
fi
 
6730
 
 
6731
# test whether we have cygpath
 
6732
if test -z "$CYGPATH_W"; then
 
6733
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
6734
    CYGPATH_W='cygpath -w'
 
6735
  else
 
6736
    CYGPATH_W=echo
 
6737
  fi
 
6738
fi
 
6739
AC_SUBST([CYGPATH_W])
 
6740
 
 
6741
# Define the identity of the package.
 
6742
dnl Distinguish between old-style and new-style calls.
 
6743
m4_ifval([$2],
 
6744
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
6745
 AC_SUBST([PACKAGE], [$1])dnl
 
6746
 AC_SUBST([VERSION], [$2])],
 
6747
[_AM_SET_OPTIONS([$1])dnl
 
6748
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
6749
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
6750
 
 
6751
_AM_IF_OPTION([no-define],,
 
6752
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
6753
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
6754
 
 
6755
# Some tools Automake needs.
 
6756
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
6757
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
6758
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
6759
AM_MISSING_PROG(AUTOCONF, autoconf)
 
6760
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
6761
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
6762
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
6763
AM_PROG_INSTALL_SH
 
6764
AM_PROG_INSTALL_STRIP
 
6765
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
6766
# We need awk for the "check" target.  The system "awk" is bad on
 
6767
# some platforms.
 
6768
AC_REQUIRE([AC_PROG_AWK])dnl
 
6769
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
6770
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6771
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
6772
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
6773
                             [_AM_PROG_TAR([v7])])])
 
6774
_AM_IF_OPTION([no-dependencies],,
 
6775
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
6776
                  [_AM_DEPENDENCIES(CC)],
 
6777
                  [define([AC_PROG_CC],
 
6778
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
6779
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
6780
                  [_AM_DEPENDENCIES(CXX)],
 
6781
                  [define([AC_PROG_CXX],
 
6782
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
6783
])
 
6784
])
 
6785
 
 
6786
 
 
6787
# When config.status generates a header, we must update the stamp-h file.
 
6788
# This file resides in the same directory as the config header
 
6789
# that is generated.  The stamp files are numbered to have different names.
 
6790
 
 
6791
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
6792
# loop where config.status creates the headers, so we can generate
 
6793
# our stamp files there.
 
6794
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
6795
[# Compute $1's index in $config_headers.
 
6796
_am_stamp_count=1
 
6797
for _am_header in $config_headers :; do
 
6798
  case $_am_header in
 
6799
    $1 | $1:* )
 
6800
      break ;;
 
6801
    * )
 
6802
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
6803
  esac
 
6804
done
 
6805
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
6806
 
 
6807
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6808
#
 
6809
# This file is free software; the Free Software Foundation
 
6810
# gives unlimited permission to copy and/or distribute it,
 
6811
# with or without modifications, as long as this notice is preserved.
 
6812
 
 
6813
# AM_PROG_INSTALL_SH
 
6814
# ------------------
 
6815
# Define $install_sh.
 
6816
AC_DEFUN([AM_PROG_INSTALL_SH],
 
6817
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6818
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
6819
AC_SUBST(install_sh)])
 
6820
 
 
6821
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
6822
#
 
6823
# This file is free software; the Free Software Foundation
 
6824
# gives unlimited permission to copy and/or distribute it,
 
6825
# with or without modifications, as long as this notice is preserved.
 
6826
 
 
6827
# serial 2
 
6828
 
 
6829
# Check whether the underlying file-system supports filenames
 
6830
# with a leading dot.  For instance MS-DOS doesn't.
 
6831
AC_DEFUN([AM_SET_LEADING_DOT],
 
6832
[rm -rf .tst 2>/dev/null
 
6833
mkdir .tst 2>/dev/null
 
6834
if test -d .tst; then
 
6835
  am__leading_dot=.
 
6836
else
 
6837
  am__leading_dot=_
 
6838
fi
 
6839
rmdir .tst 2>/dev/null
 
6840
AC_SUBST([am__leading_dot])])
 
6841
 
 
6842
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
6843
 
 
6844
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
6845
#
 
6846
# This file is free software; the Free Software Foundation
 
6847
# gives unlimited permission to copy and/or distribute it,
 
6848
# with or without modifications, as long as this notice is preserved.
 
6849
 
 
6850
# serial 3
 
6851
 
 
6852
# AM_MAKE_INCLUDE()
 
6853
# -----------------
 
6854
# Check to see how make treats includes.
 
6855
AC_DEFUN([AM_MAKE_INCLUDE],
 
6856
[am_make=${MAKE-make}
 
6857
cat > confinc << 'END'
 
6858
am__doit:
 
6859
        @echo done
 
6860
.PHONY: am__doit
 
6861
END
 
6862
# If we don't find an include directive, just comment out the code.
 
6863
AC_MSG_CHECKING([for style of include used by $am_make])
 
6864
am__include="#"
 
6865
am__quote=
 
6866
_am_result=none
 
6867
# First try GNU make style include.
 
6868
echo "include confinc" > confmf
 
6869
# We grep out `Entering directory' and `Leaving directory'
 
6870
# messages which can occur if `w' ends up in MAKEFLAGS.
 
6871
# In particular we don't look at `^make:' because GNU make might
 
6872
# be invoked under some other name (usually "gmake"), in which
 
6873
# case it prints its new name instead of `make'.
 
6874
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
6875
   am__include=include
 
6876
   am__quote=
 
6877
   _am_result=GNU
 
6878
fi
 
6879
# Now try BSD make style include.
 
6880
if test "$am__include" = "#"; then
 
6881
   echo '.include "confinc"' > confmf
 
6882
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
6883
      am__include=.include
 
6884
      am__quote="\""
 
6885
      _am_result=BSD
 
6886
   fi
 
6887
fi
 
6888
AC_SUBST([am__include])
 
6889
AC_SUBST([am__quote])
 
6890
AC_MSG_RESULT([$_am_result])
 
6891
rm -f confinc confmf
 
6892
])
 
6893
 
 
6894
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
6895
 
 
6896
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
6897
# Free Software Foundation, Inc.
 
6898
#
 
6899
# This file is free software; the Free Software Foundation
 
6900
# gives unlimited permission to copy and/or distribute it,
 
6901
# with or without modifications, as long as this notice is preserved.
 
6902
 
 
6903
# serial 4
 
6904
 
 
6905
# AM_MISSING_PROG(NAME, PROGRAM)
 
6906
# ------------------------------
 
6907
AC_DEFUN([AM_MISSING_PROG],
 
6908
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
6909
$1=${$1-"${am_missing_run}$2"}
 
6910
AC_SUBST($1)])
 
6911
 
 
6912
 
 
6913
# AM_MISSING_HAS_RUN
 
6914
# ------------------
 
6915
# Define MISSING if not defined so far and test if it supports --run.
 
6916
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
6917
AC_DEFUN([AM_MISSING_HAS_RUN],
 
6918
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6919
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
6920
# Use eval to expand $SHELL
 
6921
if eval "$MISSING --run true"; then
 
6922
  am_missing_run="$MISSING --run "
 
6923
else
 
6924
  am_missing_run=
 
6925
  AC_MSG_WARN([`missing' script is too old or missing])
 
6926
fi
 
6927
])
 
6928
 
 
6929
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
6930
#
 
6931
# This file is free software; the Free Software Foundation
 
6932
# gives unlimited permission to copy and/or distribute it,
 
6933
# with or without modifications, as long as this notice is preserved.
 
6934
 
 
6935
# AM_PROG_MKDIR_P
 
6936
# ---------------
 
6937
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
6938
#
 
6939
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
6940
# created by `make install' are always world readable, even if the
 
6941
# installer happens to have an overly restrictive umask (e.g. 077).
 
6942
# This was a mistake.  There are at least two reasons why we must not
 
6943
# use `-m 0755':
 
6944
#   - it causes special bits like SGID to be ignored,
 
6945
#   - it may be too restrictive (some setups expect 775 directories).
 
6946
#
 
6947
# Do not use -m 0755 and let people choose whatever they expect by
 
6948
# setting umask.
 
6949
#
 
6950
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
6951
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
6952
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
6953
# concurrently, both version can detect that a/ is missing, but only
 
6954
# one can create it and the other will error out.  Consequently we
 
6955
# restrict ourselves to GNU make (using the --version option ensures
 
6956
# this.)
 
6957
AC_DEFUN([AM_PROG_MKDIR_P],
 
6958
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
6959
  # We used to keeping the `.' as first argument, in order to
 
6960
  # allow $(mkdir_p) to be used without argument.  As in
 
6961
  #   $(mkdir_p) $(somedir)
 
6962
  # where $(somedir) is conditionally defined.  However this is wrong
 
6963
  # for two reasons:
 
6964
  #  1. if the package is installed by a user who cannot write `.'
 
6965
  #     make install will fail,
 
6966
  #  2. the above comment should most certainly read
 
6967
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
6968
  #     so it does not work when $(somedir) is undefined and
 
6969
  #     $(DESTDIR) is not.
 
6970
  #  To support the latter case, we have to write
 
6971
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
6972
  #  so the `.' trick is pointless.
 
6973
  mkdir_p='mkdir -p --'
 
6974
else
 
6975
  # On NextStep and OpenStep, the `mkdir' command does not
 
6976
  # recognize any option.  It will interpret all options as
 
6977
  # directories to create, and then abort because `.' already
 
6978
  # exists.
 
6979
  for d in ./-p ./--version;
 
6980
  do
 
6981
    test -d $d && rmdir $d
 
6982
  done
 
6983
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
6984
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
6985
    mkdir_p='$(mkinstalldirs)'
 
6986
  else
 
6987
    mkdir_p='$(install_sh) -d'
 
6988
  fi
 
6989
fi
 
6990
AC_SUBST([mkdir_p])])
 
6991
 
 
6992
# Helper functions for option handling.                     -*- Autoconf -*-
 
6993
 
 
6994
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
6995
#
 
6996
# This file is free software; the Free Software Foundation
 
6997
# gives unlimited permission to copy and/or distribute it,
 
6998
# with or without modifications, as long as this notice is preserved.
 
6999
 
 
7000
# serial 3
 
7001
 
 
7002
# _AM_MANGLE_OPTION(NAME)
 
7003
# -----------------------
 
7004
AC_DEFUN([_AM_MANGLE_OPTION],
 
7005
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
7006
 
 
7007
# _AM_SET_OPTION(NAME)
 
7008
# ------------------------------
 
7009
# Set option NAME.  Presently that only means defining a flag for this option.
 
7010
AC_DEFUN([_AM_SET_OPTION],
 
7011
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
7012
 
 
7013
# _AM_SET_OPTIONS(OPTIONS)
 
7014
# ----------------------------------
 
7015
# OPTIONS is a space-separated list of Automake options.
 
7016
AC_DEFUN([_AM_SET_OPTIONS],
 
7017
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
7018
 
 
7019
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
7020
# -------------------------------------------
 
7021
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
7022
AC_DEFUN([_AM_IF_OPTION],
 
7023
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
7024
 
 
7025
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
7026
 
 
7027
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7028
# Free Software Foundation, Inc.
 
7029
#
 
7030
# This file is free software; the Free Software Foundation
 
7031
# gives unlimited permission to copy and/or distribute it,
 
7032
# with or without modifications, as long as this notice is preserved.
 
7033
 
 
7034
# serial 4
 
7035
 
 
7036
# AM_SANITY_CHECK
 
7037
# ---------------
 
7038
AC_DEFUN([AM_SANITY_CHECK],
 
7039
[AC_MSG_CHECKING([whether build environment is sane])
 
7040
# Just in case
 
7041
sleep 1
 
7042
echo timestamp > conftest.file
 
7043
# Do `set' in a subshell so we don't clobber the current shell's
 
7044
# arguments.  Must try -L first in case configure is actually a
 
7045
# symlink; some systems play weird games with the mod time of symlinks
 
7046
# (eg FreeBSD returns the mod time of the symlink's containing
 
7047
# directory).
 
7048
if (
 
7049
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
7050
   if test "$[*]" = "X"; then
 
7051
      # -L didn't work.
 
7052
      set X `ls -t $srcdir/configure conftest.file`
 
7053
   fi
 
7054
   rm -f conftest.file
 
7055
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
7056
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
7057
 
 
7058
      # If neither matched, then we have a broken ls.  This can happen
 
7059
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
7060
      # broken ls alias from the environment.  This has actually
 
7061
      # happened.  Such a system could not be considered "sane".
 
7062
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
7063
alias in your environment])
 
7064
   fi
 
7065
 
 
7066
   test "$[2]" = conftest.file
 
7067
   )
 
7068
then
 
7069
   # Ok.
 
7070
   :
 
7071
else
 
7072
   AC_MSG_ERROR([newly created file is older than distributed files!
 
7073
Check your system clock])
 
7074
fi
 
7075
AC_MSG_RESULT(yes)])
 
7076
 
 
7077
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7078
#
 
7079
# This file is free software; the Free Software Foundation
 
7080
# gives unlimited permission to copy and/or distribute it,
 
7081
# with or without modifications, as long as this notice is preserved.
 
7082
 
 
7083
# AM_PROG_INSTALL_STRIP
 
7084
# ---------------------
 
7085
# One issue with vendor `install' (even GNU) is that you can't
 
7086
# specify the program used to strip binaries.  This is especially
 
7087
# annoying in cross-compiling environments, where the build's strip
 
7088
# is unlikely to handle the host's binaries.
 
7089
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
7090
# always use install-sh in `make install-strip', and initialize
 
7091
# STRIPPROG with the value of the STRIP variable (set by the user).
 
7092
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
7093
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
7094
# Installed binaries are usually stripped using `strip' when the user
 
7095
# run `make install-strip'.  However `strip' might not be the right
 
7096
# tool to use in cross-compilation environments, therefore Automake
 
7097
# will honor the `STRIP' environment variable to overrule this program.
 
7098
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
7099
if test "$cross_compiling" != no; then
 
7100
  AC_CHECK_TOOL([STRIP], [strip], :)
 
7101
fi
 
7102
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7103
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
7104
 
 
7105
# Check how to create a tarball.                            -*- Autoconf -*-
 
7106
 
 
7107
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7108
#
 
7109
# This file is free software; the Free Software Foundation
 
7110
# gives unlimited permission to copy and/or distribute it,
 
7111
# with or without modifications, as long as this notice is preserved.
 
7112
 
 
7113
# serial 2
 
7114
 
 
7115
# _AM_PROG_TAR(FORMAT)
 
7116
# --------------------
 
7117
# Check how to create a tarball in format FORMAT.
 
7118
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7119
#
 
7120
# Substitute a variable $(am__tar) that is a command
 
7121
# writing to stdout a FORMAT-tarball containing the directory
 
7122
# $tardir.
 
7123
#     tardir=directory && $(am__tar) > result.tar
 
7124
#
 
7125
# Substitute a variable $(am__untar) that extract such
 
7126
# a tarball read from stdin.
 
7127
#     $(am__untar) < result.tar
 
7128
AC_DEFUN([_AM_PROG_TAR],
 
7129
[# Always define AMTAR for backward compatibility.
 
7130
AM_MISSING_PROG([AMTAR], [tar])
 
7131
m4_if([$1], [v7],
 
7132
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7133
     [m4_case([$1], [ustar],, [pax],,
 
7134
              [m4_fatal([Unknown tar format])])
 
7135
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7136
# Loop over all known methods to create a tar archive until one works.
 
7137
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7138
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7139
# Do not fold the above two line into one, because Tru64 sh and
 
7140
# Solaris sh will not grok spaces in the rhs of `-'.
 
7141
for _am_tool in $_am_tools
 
7142
do
 
7143
  case $_am_tool in
 
7144
  gnutar)
 
7145
    for _am_tar in tar gnutar gtar;
 
7146
    do
 
7147
      AM_RUN_LOG([$_am_tar --version]) && break
 
7148
    done
 
7149
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7150
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7151
    am__untar="$_am_tar -xf -"
 
7152
    ;;
 
7153
  plaintar)
 
7154
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7155
    # ustar tarball either.
 
7156
    (tar --version) >/dev/null 2>&1 && continue
 
7157
    am__tar='tar chf - "$$tardir"'
 
7158
    am__tar_='tar chf - "$tardir"'
 
7159
    am__untar='tar xf -'
 
7160
    ;;
 
7161
  pax)
 
7162
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7163
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7164
    am__untar='pax -r'
 
7165
    ;;
 
7166
  cpio)
 
7167
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7168
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7169
    am__untar='cpio -i -H $1 -d'
 
7170
    ;;
 
7171
  none)
 
7172
    am__tar=false
 
7173
    am__tar_=false
 
7174
    am__untar=false
 
7175
    ;;
 
7176
  esac
 
7177
 
 
7178
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7179
  # and am__untar set.
 
7180
  test -n "${am_cv_prog_tar_$1}" && break
 
7181
 
 
7182
  # tar/untar a dummy directory, and stop if the command works
 
7183
  rm -rf conftest.dir
 
7184
  mkdir conftest.dir
 
7185
  echo GrepMe > conftest.dir/file
 
7186
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7187
  rm -rf conftest.dir
 
7188
  if test -s conftest.tar; then
 
7189
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7190
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7191
  fi
 
7192
done
 
7193
rm -rf conftest.dir
 
7194
 
 
7195
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7196
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7197
AC_SUBST([am__tar])
 
7198
AC_SUBST([am__untar])
 
7199
]) # _AM_PROG_TAR
6965
7200