~ubuntu-branches/ubuntu/raring/libgail-gnome/raring

« back to all changes in this revision

Viewing changes to debian/patches/000_libgail-gnome-debian-libtool.patch

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2006-08-03 22:00:34 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 breezy)
  • Revision ID: james.westby@ubuntu.com-20060803220034-r4q4bgxkhc8317gz
Tags: 1.1.3-3
* Swith Section of libgail-gnome-dbg and libgail-gnome-dev to libdevel
  instead of devel and sync with overrides.
* Update watch file.
* Stop shipping *.la, *.so, and *.a files in libgail-gnome-dev as they were
  none...
* Drop useless debian/*.dirs.
* Set Debhelper compatibility level to 5.
* Bump up Standards-Version to 3.7.2.
* Add ${misc:Depends}.
* Convert dh_movefiles to dh_install and install in debian/tmp via DESTDIR=;
  misc cleanups permitted by this change.
* Stop shipping *.la files in libgail-gnome-module, thanks Jiri Palecek.
  (Closes: #381328)
* Drop useless dh_makeshlibs calls.
* Use dh_strip's new --dbg-package flag instead of handling debug files via
  cp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -urN -x config.guess -x config.sub libgail-gnome-1.1.3.orig/aclocal.m4 libgail-gnome-1.1.3/aclocal.m4
 
2
--- libgail-gnome-1.1.3.orig/aclocal.m4 2006-01-30 17:42:14.000000000 +0100
 
3
+++ libgail-gnome-1.1.3/aclocal.m4      2006-02-12 20:10:30.000000000 +0100
 
4
@@ -10,13 +10,11 @@
 
5
 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
6
 dnl PARTICULAR PURPOSE.
 
7
 
 
8
-# lib-prefix.m4 serial 3 (gettext-0.13)
 
9
-dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
 
10
-dnl This file is free software, distributed under the terms of the GNU
 
11
-dnl General Public License.  As a special exception to the GNU General
 
12
-dnl Public License, this file may be distributed as part of a program
 
13
-dnl that contains a configuration script generated by Autoconf, under
 
14
-dnl the same distribution terms as the rest of that program.
 
15
+# lib-prefix.m4 serial 4 (gettext-0.14.2)
 
16
+dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
 
17
+dnl This file is free software; the Free Software Foundation
 
18
+dnl gives unlimited permission to copy and/or distribute it,
 
19
+dnl with or without modifications, as long as this notice is preserved.
 
20
 
 
21
 dnl From Bruno Haible.
 
22
 
 
23
@@ -83,7 +81,7 @@
 
24
         if test "X$additional_includedir" = "X/usr/local/include"; then
 
25
           if test -n "$GCC"; then
 
26
             case $host_os in
 
27
-              linux*) haveit=yes;;
 
28
+              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
29
             esac
 
30
           fi
 
31
         fi
 
32
@@ -166,16 +164,16 @@
 
33
   prefix="$acl_save_prefix"
 
34
 ])
 
35
 
 
36
-# lib-link.m4 serial 4 (gettext-0.12)
 
37
-dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
 
38
-dnl This file is free software, distributed under the terms of the GNU
 
39
-dnl General Public License.  As a special exception to the GNU General
 
40
-dnl Public License, this file may be distributed as part of a program
 
41
-dnl that contains a configuration script generated by Autoconf, under
 
42
-dnl the same distribution terms as the rest of that program.
 
43
+# lib-link.m4 serial 6 (gettext-0.14.3)
 
44
+dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
 
45
+dnl This file is free software; the Free Software Foundation
 
46
+dnl gives unlimited permission to copy and/or distribute it,
 
47
+dnl with or without modifications, as long as this notice is preserved.
 
48
 
 
49
 dnl From Bruno Haible.
 
50
 
 
51
+AC_PREREQ(2.50)
 
52
+
 
53
 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
 
54
 dnl the libraries corresponding to explicit and implicit dependencies.
 
55
 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
 
56
@@ -263,6 +261,8 @@
 
57
 dnl hardcode_direct, hardcode_minus_L.
 
58
 AC_DEFUN([AC_LIB_RPATH],
 
59
 [
 
60
+  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
 
61
+  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
 
62
   AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
 
63
   AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
 
64
   AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
 
65
@@ -518,7 +518,7 @@
 
66
                 if test "X$additional_includedir" = "X/usr/local/include"; then
 
67
                   if test -n "$GCC"; then
 
68
                     case $host_os in
 
69
-                      linux*) haveit=yes;;
 
70
+                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
71
                     esac
 
72
                   fi
 
73
                 fi
 
74
@@ -567,7 +567,7 @@
 
75
                       if test "X$additional_libdir" = "X/usr/local/lib"; then
 
76
                         if test -n "$GCC"; then
 
77
                           case $host_os in
 
78
-                            linux*) haveit=yes;;
 
79
+                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
80
                           esac
 
81
                         fi
 
82
                       fi
 
83
@@ -720,11 +720,9 @@
 
84
 
 
85
 # lib-ld.m4 serial 3 (gettext-0.13)
 
86
 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
 
87
-dnl This file is free software, distributed under the terms of the GNU
 
88
-dnl General Public License.  As a special exception to the GNU General
 
89
-dnl Public License, this file may be distributed as part of a program
 
90
-dnl that contains a configuration script generated by Autoconf, under
 
91
-dnl the same distribution terms as the rest of that program.
 
92
+dnl This file is free software; the Free Software Foundation
 
93
+dnl gives unlimited permission to copy and/or distribute it,
 
94
+dnl with or without modifications, as long as this notice is preserved.
 
95
 
 
96
 dnl Subroutines of libtool.m4,
 
97
 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
 
98
@@ -978,7 +976,7 @@
 
99
 
 
100
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
101
 
 
102
-# serial 47 AC_PROG_LIBTOOL
 
103
+# serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL
 
104
 
 
105
 
 
106
 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
107
@@ -1128,6 +1126,7 @@
 
108
 test -z "$AS" && AS=as
 
109
 test -z "$CC" && CC=cc
 
110
 test -z "$LTCC" && LTCC=$CC
 
111
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
112
 test -z "$DLLTOOL" && DLLTOOL=dlltool
 
113
 test -z "$LD" && LD=ld
 
114
 test -z "$LN_S" && LN_S="ln -s"
 
115
@@ -1147,10 +1146,10 @@
 
116
 if test -n "$RANLIB"; then
 
117
   case $host_os in
 
118
   openbsd*)
 
119
-    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
120
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
121
     ;;
 
122
   *)
 
123
-    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
124
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
125
     ;;
 
126
   esac
 
127
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
128
@@ -1198,6 +1197,9 @@
 
129
 # If no C compiler was specified, use CC.
 
130
 LTCC=${LTCC-"$CC"}
 
131
 
 
132
+# If no C compiler flags were specified, use CFLAGS.
 
133
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
134
+
 
135
 # Allow CC to be a program name with arguments.
 
136
 compiler=$CC
 
137
 ])# _LT_AC_SYS_COMPILER
 
138
@@ -1226,7 +1228,7 @@
 
139
 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
140
 [ac_outfile=conftest.$ac_objext
 
141
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
142
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
143
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
144
 _lt_compiler_boilerplate=`cat conftest.err`
 
145
 $rm conftest*
 
146
 ])# _LT_COMPILER_BOILERPLATE
 
147
@@ -1239,7 +1241,7 @@
 
148
 AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
149
 [ac_outfile=conftest.$ac_objext
 
150
 printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
151
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
152
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
153
 _lt_linker_boilerplate=`cat conftest.err`
 
154
 $rm conftest*
 
155
 ])# _LT_LINKER_BOILERPLATE
 
156
@@ -1545,6 +1547,22 @@
 
157
     CFLAGS="$SAVE_CFLAGS"
 
158
   fi
 
159
   ;;
 
160
+sparc*-*solaris*)
 
161
+  # Find out which ABI we are using.
 
162
+  echo 'int i;' > conftest.$ac_ext
 
163
+  if AC_TRY_EVAL(ac_compile); then
 
164
+    case `/usr/bin/file conftest.o` in
 
165
+    *64-bit*)
 
166
+      case $lt_cv_prog_gnu_ld in
 
167
+      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
168
+      *)    LD="${LD-ld} -64" ;;
 
169
+      esac
 
170
+      ;;
 
171
+    esac
 
172
+  fi
 
173
+  rm -rf conftest*
 
174
+  ;;
 
175
+
 
176
 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
177
 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
178
   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
179
@@ -1587,9 +1605,9 @@
 
180
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
181
      # The compiler can only warn and ignore the option if not recognized
 
182
      # So say no if there are warnings other than the usual output.
 
183
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
184
-     $SED '/^$/d' conftest.err >conftest.er2
 
185
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
186
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
187
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
188
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
189
        $2=yes
 
190
      fi
 
191
    fi
 
192
@@ -1620,8 +1638,8 @@
 
193
      if test -s conftest.err; then
 
194
        # Append any errors to the config.log.
 
195
        cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
196
-       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
197
-       $SED '/^$/d' conftest.err >conftest.er2
 
198
+       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
199
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
200
        if diff conftest.exp conftest.er2 >/dev/null; then
 
201
          $2=yes
 
202
        fi
 
203
@@ -1696,6 +1714,12 @@
 
204
     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
205
     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
206
     ;;
 
207
+
 
208
+  interix*)
 
209
+    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
210
+    lt_cv_sys_max_cmd_len=196608
 
211
+    ;;
 
212
+
 
213
   osf*)
 
214
     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
215
     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
216
@@ -1709,6 +1733,17 @@
 
217
       esac
 
218
     fi
 
219
     ;;
 
220
+  sco3.2v5*)
 
221
+    lt_cv_sys_max_cmd_len=102400
 
222
+    ;;
 
223
+  sysv5* | sco5v6* | sysv4.2uw2*)
 
224
+    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
225
+    if test -n "$kargmax"; then
 
226
+      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
 
227
+    else
 
228
+      lt_cv_sys_max_cmd_len=32768
 
229
+    fi
 
230
+    ;;
 
231
   *)
 
232
     # If test is not a shell built-in, we'll probably end up computing a
 
233
     # maximum length that is only half of the actual maximum length, but
 
234
@@ -1740,7 +1775,7 @@
 
235
 
 
236
 
 
237
 # _LT_AC_CHECK_DLFCN
 
238
-# --------------------
 
239
+# ------------------
 
240
 AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
241
 [AC_CHECK_HEADERS(dlfcn.h)dnl
 
242
 ])# _LT_AC_CHECK_DLFCN
 
243
@@ -1748,7 +1783,7 @@
 
244
 
 
245
 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
246
 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
247
-# ------------------------------------------------------------------
 
248
+# ---------------------------------------------------------------------
 
249
 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
250
 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
251
 if test "$cross_compiling" = yes; then :
 
252
@@ -1814,6 +1849,8 @@
 
253
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
254
       /* dlclose (self); */
 
255
     }
 
256
+  else
 
257
+    puts (dlerror ());
 
258
 
 
259
     exit (status);
 
260
 }]
 
261
@@ -1824,7 +1861,7 @@
 
262
     case x$lt_status in
 
263
       x$lt_dlno_uscore) $1 ;;
 
264
       x$lt_dlneed_uscore) $2 ;;
 
265
-      x$lt_unknown|x*) $3 ;;
 
266
+      x$lt_dlunknown|x*) $3 ;;
 
267
     esac
 
268
   else :
 
269
     # compilation failed
 
270
@@ -1836,7 +1873,7 @@
 
271
 
 
272
 
 
273
 # AC_LIBTOOL_DLOPEN_SELF
 
274
-# -------------------
 
275
+# ----------------------
 
276
 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
277
 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
278
 if test "x$enable_dlopen" != xyes; then
 
279
@@ -1907,7 +1944,7 @@
 
280
     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
281
 
 
282
     save_LDFLAGS="$LDFLAGS"
 
283
-    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
284
+    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
285
 
 
286
     save_LIBS="$LIBS"
 
287
     LIBS="$lt_cv_dlopen_libs $LIBS"
 
288
@@ -1920,7 +1957,7 @@
 
289
     ])
 
290
 
 
291
     if test "x$lt_cv_dlopen_self" = xyes; then
 
292
-      LDFLAGS="$LDFLAGS $link_static_flag"
 
293
+      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
294
       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
295
          lt_cv_dlopen_self_static, [dnl
 
296
          _LT_AC_TRY_DLOPEN_SELF(
 
297
@@ -1980,9 +2017,9 @@
 
298
    then
 
299
      # The compiler can only warn and ignore the option if not recognized
 
300
      # So say no if there are warnings
 
301
-     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
302
-     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
303
-     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
304
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
305
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
306
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
307
        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
308
      fi
 
309
    fi
 
310
@@ -2367,10 +2404,15 @@
 
311
     shlibpath_overrides_runpath=yes
 
312
     hardcode_into_libs=yes
 
313
     ;;
 
314
-  *) # from 3.2 on
 
315
+  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
316
+  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
317
     shlibpath_overrides_runpath=no
 
318
     hardcode_into_libs=yes
 
319
     ;;
 
320
+  freebsd*) # from 4.6 on
 
321
+    shlibpath_overrides_runpath=yes
 
322
+    hardcode_into_libs=yes
 
323
+    ;;
 
324
   esac
 
325
   ;;
 
326
 
 
327
@@ -2430,6 +2472,18 @@
 
328
   postinstall_cmds='chmod 555 $lib'
 
329
   ;;
 
330
 
 
331
+interix3*)
 
332
+  version_type=linux
 
333
+  need_lib_prefix=no
 
334
+  need_version=no
 
335
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
336
+  soname_spec='${libname}${release}${shared_ext}$major'
 
337
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
338
+  shlibpath_var=LD_LIBRARY_PATH
 
339
+  shlibpath_overrides_runpath=no
 
340
+  hardcode_into_libs=yes
 
341
+  ;;
 
342
+
 
343
 irix5* | irix6* | nonstopux*)
 
344
   case $host_os in
 
345
     nonstopux*) version_type=nonstopux ;;
 
346
@@ -2502,6 +2556,18 @@
 
347
   dynamic_linker='GNU/Linux ld.so'
 
348
   ;;
 
349
 
 
350
+netbsdelf*-gnu)
 
351
+  version_type=linux
 
352
+  need_lib_prefix=no
 
353
+  need_version=no
 
354
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
355
+  soname_spec='${libname}${release}${shared_ext}$major'
 
356
+  shlibpath_var=LD_LIBRARY_PATH
 
357
+  shlibpath_overrides_runpath=no
 
358
+  hardcode_into_libs=yes
 
359
+  dynamic_linker='NetBSD ld.elf_so'
 
360
+  ;;
 
361
+
 
362
 knetbsd*-gnu)
 
363
   version_type=linux
 
364
   need_lib_prefix=no
 
365
@@ -2551,6 +2617,7 @@
 
366
 
 
367
 openbsd*)
 
368
   version_type=sunos
 
369
+  sys_lib_dlsearch_path_spec="/usr/lib"
 
370
   need_lib_prefix=no
 
371
   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
372
   case $host_os in
 
373
@@ -2594,13 +2661,6 @@
 
374
   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
375
   ;;
 
376
 
 
377
-sco3.2v5*)
 
378
-  version_type=osf
 
379
-  soname_spec='${libname}${release}${shared_ext}$major'
 
380
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
381
-  shlibpath_var=LD_LIBRARY_PATH
 
382
-  ;;
 
383
-
 
384
 solaris*)
 
385
   version_type=linux
 
386
   need_lib_prefix=no
 
387
@@ -2626,7 +2686,7 @@
 
388
   need_version=yes
 
389
   ;;
 
390
 
 
391
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
392
+sysv4 | sysv4.3*)
 
393
   version_type=linux
 
394
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
395
   soname_spec='${libname}${release}${shared_ext}$major'
 
396
@@ -2659,6 +2719,29 @@
 
397
   fi
 
398
   ;;
 
399
 
 
400
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
401
+  version_type=freebsd-elf
 
402
+  need_lib_prefix=no
 
403
+  need_version=no
 
404
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
405
+  soname_spec='${libname}${release}${shared_ext}$major'
 
406
+  shlibpath_var=LD_LIBRARY_PATH
 
407
+  hardcode_into_libs=yes
 
408
+  if test "$with_gnu_ld" = yes; then
 
409
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
410
+    shlibpath_overrides_runpath=no
 
411
+  else
 
412
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
413
+    shlibpath_overrides_runpath=yes
 
414
+    case $host_os in
 
415
+      sco3.2v5*)
 
416
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
417
+       ;;
 
418
+    esac
 
419
+  fi
 
420
+  sys_lib_dlsearch_path_spec='/usr/lib'
 
421
+  ;;
 
422
+
 
423
 uts4*)
 
424
   version_type=linux
 
425
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
426
@@ -2672,6 +2755,11 @@
 
427
 esac
 
428
 AC_MSG_RESULT([$dynamic_linker])
 
429
 test "$dynamic_linker" = no && can_build_shared=no
 
430
+
 
431
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
432
+if test "$GCC" = yes; then
 
433
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
434
+fi
 
435
 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
436
 
 
437
 
 
438
@@ -2696,6 +2784,9 @@
 
439
       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
440
     fi
 
441
   fi
 
442
+  if test -z "$LTCFLAGS"; then
 
443
+    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
444
+  fi
 
445
 
 
446
   # Extract list of available tagged configurations in $ofile.
 
447
   # Note that this assumes the entire list is on one line.
 
448
@@ -2824,7 +2915,7 @@
 
449
 
 
450
 # AC_DISABLE_SHARED
 
451
 # -----------------
 
452
-#- set the default shared flag to --disable-shared
 
453
+# set the default shared flag to --disable-shared
 
454
 AC_DEFUN([AC_DISABLE_SHARED],
 
455
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
456
 AC_ENABLE_SHARED(no)
 
457
@@ -3132,7 +3223,7 @@
 
458
 case $host_os in
 
459
   darwin*)
 
460
     if test "$GCC" = yes; then
 
461
-      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
462
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
463
     else
 
464
       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
465
     fi
 
466
@@ -3232,6 +3323,11 @@
 
467
   esac
 
468
   ;;
 
469
 
 
470
+interix3*)
 
471
+  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
472
+  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
473
+  ;;
 
474
+
 
475
 irix5* | irix6* | nonstopux*)
 
476
   case $LD in
 
477
   *-32|*"-32 ") libmagic=32-bit;;
 
478
@@ -3247,7 +3343,7 @@
 
479
   lt_cv_deplibs_check_method=pass_all
 
480
   ;;
 
481
 
 
482
-netbsd*)
 
483
+netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
484
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
485
     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
486
   else
 
487
@@ -3277,15 +3373,11 @@
 
488
   lt_cv_deplibs_check_method=pass_all
 
489
   ;;
 
490
 
 
491
-sco3.2v5*)
 
492
-  lt_cv_deplibs_check_method=pass_all
 
493
-  ;;
 
494
-
 
495
 solaris*)
 
496
   lt_cv_deplibs_check_method=pass_all
 
497
   ;;
 
498
 
 
499
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
500
+sysv4 | sysv4.3*)
 
501
   case $host_vendor in
 
502
   motorola)
 
503
     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 
504
@@ -3306,10 +3398,13 @@
 
505
   siemens)
 
506
     lt_cv_deplibs_check_method=pass_all
 
507
     ;;
 
508
+  pc)
 
509
+    lt_cv_deplibs_check_method=pass_all
 
510
+    ;;
 
511
   esac
 
512
   ;;
 
513
 
 
514
-sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
515
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
516
   lt_cv_deplibs_check_method=pass_all
 
517
   ;;
 
518
 esac
 
519
@@ -3329,36 +3424,43 @@
 
520
   # Let the user override the test.
 
521
   lt_cv_path_NM="$NM"
 
522
 else
 
523
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
524
-  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
525
-    IFS="$lt_save_ifs"
 
526
-    test -z "$ac_dir" && ac_dir=.
 
527
-    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
528
-    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
529
-      # Check to see if the nm accepts a BSD-compat flag.
 
530
-      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
531
-      #   nm: unknown option "B" ignored
 
532
-      # Tru64's nm complains that /dev/null is an invalid object file
 
533
-      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
534
-      */dev/null* | *'Invalid file or object type'*)
 
535
-       lt_cv_path_NM="$tmp_nm -B"
 
536
-       break
 
537
-        ;;
 
538
-      *)
 
539
-       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
540
-       */dev/null*)
 
541
-         lt_cv_path_NM="$tmp_nm -p"
 
542
+  lt_nm_to_check="${ac_tool_prefix}nm"
 
543
+  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
544
+    lt_nm_to_check="$lt_nm_to_check nm"
 
545
+  fi
 
546
+  for lt_tmp_nm in $lt_nm_to_check; do
 
547
+    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
548
+    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
549
+      IFS="$lt_save_ifs"
 
550
+      test -z "$ac_dir" && ac_dir=.
 
551
+      tmp_nm="$ac_dir/$lt_tmp_nm"
 
552
+      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
553
+       # Check to see if the nm accepts a BSD-compat flag.
 
554
+       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
555
+       #   nm: unknown option "B" ignored
 
556
+       # Tru64's nm complains that /dev/null is an invalid object file
 
557
+       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
558
+       */dev/null* | *'Invalid file or object type'*)
 
559
+         lt_cv_path_NM="$tmp_nm -B"
 
560
          break
 
561
          ;;
 
562
        *)
 
563
-         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
564
-         continue # so that we can try to find one that supports BSD flags
 
565
+         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
566
+         */dev/null*)
 
567
+           lt_cv_path_NM="$tmp_nm -p"
 
568
+           break
 
569
+           ;;
 
570
+         *)
 
571
+           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
572
+           continue # so that we can try to find one that supports BSD flags
 
573
+           ;;
 
574
+         esac
 
575
          ;;
 
576
        esac
 
577
-      esac
 
578
-    fi
 
579
+      fi
 
580
+    done
 
581
+    IFS="$lt_save_ifs"
 
582
   done
 
583
-  IFS="$lt_save_ifs"
 
584
   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
585
 fi])
 
586
 NM="$lt_cv_path_NM"
 
587
@@ -3464,7 +3566,7 @@
 
588
 ])# _LT_AC_LANG_CXX
 
589
 
 
590
 # _LT_AC_PROG_CXXCPP
 
591
-# ---------------
 
592
+# ------------------
 
593
 AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
594
 [
 
595
 AC_REQUIRE([AC_PROG_CXX])
 
596
@@ -3513,7 +3615,7 @@
 
597
 
 
598
 
 
599
 # AC_LIBTOOL_RC
 
600
-# --------------
 
601
+# -------------
 
602
 # enable support for Windows resource files
 
603
 AC_DEFUN([AC_LIBTOOL_RC],
 
604
 [AC_REQUIRE([LT_AC_PROG_RC])
 
605
@@ -3550,37 +3652,6 @@
 
606
 _LT_COMPILER_BOILERPLATE
 
607
 _LT_LINKER_BOILERPLATE
 
608
 
 
609
-#
 
610
-# Check for any special shared library compilation flags.
 
611
-#
 
612
-_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
613
-if test "$GCC" = no; then
 
614
-  case $host_os in
 
615
-  sco3.2v5*)
 
616
-    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
617
-    ;;
 
618
-  esac
 
619
-fi
 
620
-if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
621
-  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
622
-  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
 
623
-  else
 
624
-    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
625
-    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
626
-  fi
 
627
-fi
 
628
-
 
629
-
 
630
-#
 
631
-# Check to make sure the static flag actually works.
 
632
-#
 
633
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
634
-  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
635
-  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
636
-  [],
 
637
-  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
638
-
 
639
-
 
640
 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
641
 AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
642
 AC_LIBTOOL_PROG_CC_C_O($1)
 
643
@@ -3589,9 +3660,9 @@
 
644
 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
645
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
646
 AC_LIBTOOL_SYS_LIB_STRIP
 
647
-AC_LIBTOOL_DLOPEN_SELF($1)
 
648
+AC_LIBTOOL_DLOPEN_SELF
 
649
 
 
650
-# Report which librarie types wil actually be built
 
651
+# Report which library types will actually be built
 
652
 AC_MSG_CHECKING([if libtool supports shared libraries])
 
653
 AC_MSG_RESULT([$can_build_shared])
 
654
 
 
655
@@ -3650,6 +3721,7 @@
 
656
 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
657
 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
658
 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
659
+_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
660
 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
661
 _LT_AC_TAGVAR(module_cmds, $1)=
 
662
 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
663
@@ -3677,7 +3749,7 @@
 
664
 lt_simple_compile_test_code="int some_variable = 0;\n"
 
665
 
 
666
 # Code to be used in simple link tests
 
667
-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
668
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
669
 
 
670
 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
671
 _LT_AC_SYS_COMPILER
 
672
@@ -3696,12 +3768,12 @@
 
673
 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
674
   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
675
 else
 
676
-  unset lt_cv_prog_gnu_ld
 
677
+  $as_unset lt_cv_prog_gnu_ld
 
678
 fi
 
679
 if test -n "${lt_cv_path_LDCXX+set}"; then
 
680
   lt_cv_path_LD=$lt_cv_path_LDCXX
 
681
 else
 
682
-  unset lt_cv_path_LD
 
683
+  $as_unset lt_cv_path_LD
 
684
 fi
 
685
 test -z "${LDCXX+set}" || LD=$LDCXX
 
686
 CC=${CXX-"c++"}
 
687
@@ -3796,6 +3868,7 @@
 
688
            ;;
 
689
          esac
 
690
        done
 
691
+       ;;
 
692
       esac
 
693
 
 
694
       exp_sym_flag='-bexport'
 
695
@@ -3833,6 +3906,7 @@
 
696
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
697
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
698
        fi
 
699
+       ;;
 
700
       esac
 
701
       shared_flag='-shared'
 
702
       if test "$aix_use_runtimelinking" = yes; then
 
703
@@ -3864,12 +3938,12 @@
 
704
       _LT_AC_SYS_LIBPATH_AIX
 
705
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
706
 
 
707
-      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
708
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
709
      else
 
710
       if test "$host_cpu" = ia64; then
 
711
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
712
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
713
-       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
714
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
715
       else
 
716
        # Determine the default libpath from the value encoded in an empty executable.
 
717
        _LT_AC_SYS_LIBPATH_AIX
 
718
@@ -3878,16 +3952,26 @@
 
719
        # -berok will link without error, but may produce a broken library.
 
720
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
721
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
722
-       # -bexpall does not export symbols beginning with underscore (_)
 
723
-       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
724
        # Exported symbols can be pulled into shared objects from archives
 
725
-       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
726
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
727
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
728
        # This is similar to how AIX traditionally builds its shared libraries.
 
729
-       _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'
 
730
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
731
       fi
 
732
     fi
 
733
     ;;
 
734
+
 
735
+  beos*)
 
736
+    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
737
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
738
+      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
739
+      # support --undefined.  This deserves some investigation.  FIXME
 
740
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
741
+    else
 
742
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
743
+    fi
 
744
+    ;;
 
745
+
 
746
   chorus*)
 
747
     case $cc_basename in
 
748
       *)
 
749
@@ -3897,7 +3981,6 @@
 
750
     esac
 
751
     ;;
 
752
 
 
753
-
 
754
   cygwin* | mingw* | pw32*)
 
755
     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
756
     # as there is no search path for DLLs.
 
757
@@ -3907,7 +3990,7 @@
 
758
     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
759
 
 
760
     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
761
-      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
762
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
763
       # If the export-symbols file already is a .def file (1st line
 
764
       # is EXPORTS), use it as is; otherwise, prepend...
 
765
       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
766
@@ -3916,7 +3999,7 @@
 
767
        echo EXPORTS > $output_objdir/$soname.def;
 
768
        cat $export_symbols >> $output_objdir/$soname.def;
 
769
       fi~
 
770
-      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
771
+      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
772
     else
 
773
       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
774
     fi
 
775
@@ -4053,34 +4136,23 @@
 
776
     ;;
 
777
   hpux10*|hpux11*)
 
778
     if test $with_gnu_ld = no; then
 
779
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
780
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
781
+
 
782
       case $host_cpu in
 
783
-      hppa*64*)
 
784
-       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
785
+      hppa*64*|ia64*)
 
786
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
787
-       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
788
-        ;;
 
789
-      ia64*)
 
790
-       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
791
         ;;
 
792
       *)
 
793
-       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
794
-       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
795
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
796
         ;;
 
797
       esac
 
798
     fi
 
799
     case $host_cpu in
 
800
-    hppa*64*)
 
801
+    hppa*64*|ia64*)
 
802
       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
803
       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
804
       ;;
 
805
-    ia64*)
 
806
-      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
807
-      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
808
-      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
809
-                                             # but as the default
 
810
-                                             # location of the library.
 
811
-      ;;
 
812
     *)
 
813
       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
814
       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
815
@@ -4096,8 +4168,11 @@
 
816
        ;;
 
817
       aCC*)
 
818
        case $host_cpu in
 
819
-       hppa*64*|ia64*)
 
820
-         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
821
+       hppa*64*)
 
822
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
823
+         ;;
 
824
+       ia64*)
 
825
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
826
          ;;
 
827
        *)
 
828
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
829
@@ -4117,8 +4192,11 @@
 
830
        if test "$GXX" = yes; then
 
831
          if test $with_gnu_ld = no; then
 
832
            case $host_cpu in
 
833
-           ia64*|hppa*64*)
 
834
-             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
835
+           hppa*64*)
 
836
+             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
837
+             ;;
 
838
+           ia64*)
 
839
+             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
840
              ;;
 
841
            *)
 
842
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
843
@@ -4132,6 +4210,20 @@
 
844
        ;;
 
845
     esac
 
846
     ;;
 
847
+  interix3*)
 
848
+    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
849
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
850
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
851
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
852
+    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
853
+    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
854
+    # default) and relocated if they conflict, which is a slow very memory
 
855
+    # consuming and fragmenting process.  To avoid this, we pick a random,
 
856
+    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
857
+    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
858
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
859
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
860
+    ;;
 
861
   irix5* | irix6*)
 
862
     case $cc_basename in
 
863
       CC*)
 
864
@@ -4260,7 +4352,7 @@
 
865
        ;;
 
866
     esac
 
867
     ;;
 
868
-  netbsd*)
 
869
+  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
870
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
871
       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
872
       wlarc=
 
873
@@ -4414,19 +4506,6 @@
 
874
     # FIXME: insert proper C++ library support
 
875
     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
876
     ;;
 
877
-  sco*)
 
878
-    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
879
-    case $cc_basename in
 
880
-      CC*)
 
881
-       # FIXME: insert proper C++ library support
 
882
-       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
883
-       ;;
 
884
-      *)
 
885
-       # FIXME: insert proper C++ library support
 
886
-       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
887
-       ;;
 
888
-    esac
 
889
-    ;;
 
890
   sunos4*)
 
891
     case $cc_basename in
 
892
       CC*)
 
893
@@ -4519,8 +4598,59 @@
 
894
        ;;
 
895
     esac
 
896
     ;;
 
897
-  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
898
+  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
899
+    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
900
     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
901
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
902
+    runpath_var='LD_RUN_PATH'
 
903
+
 
904
+    case $cc_basename in
 
905
+      CC*)
 
906
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
907
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
908
+       ;;
 
909
+      *)
 
910
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
911
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
912
+       ;;
 
913
+    esac
 
914
+    ;;
 
915
+  sysv5* | sco3.2v5* | sco5v6*)
 
916
+    # Note: We can NOT use -z defs as we might desire, because we do not
 
917
+    # link with -lc, and that would cause any symbols used from libc to
 
918
+    # always be unresolved, which means just about no library would
 
919
+    # ever link correctly.  If we're not using GNU ld we use -z text
 
920
+    # though, which does catch some bad symbols but isn't as heavy-handed
 
921
+    # as -z defs.
 
922
+    # For security reasons, it is highly recommended that you always
 
923
+    # use absolute paths for naming shared libraries, and exclude the
 
924
+    # DT_RUNPATH tag from executables and libraries.  But doing so
 
925
+    # requires that you compile everything twice, which is a pain.
 
926
+    # So that behaviour is only enabled if SCOABSPATH is set to a
 
927
+    # non-empty value in the environment.  Most likely only useful for
 
928
+    # creating official distributions of packages.
 
929
+    # This is a hack until libtool officially supports absolute path
 
930
+    # names for shared libraries.
 
931
+    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
932
+    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
933
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
934
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
935
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
936
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
937
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
938
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
939
+    runpath_var='LD_RUN_PATH'
 
940
+
 
941
+    case $cc_basename in
 
942
+      CC*)
 
943
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
944
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
945
+       ;;
 
946
+      *)
 
947
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
948
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
949
+       ;;
 
950
+    esac
 
951
     ;;
 
952
   tandem*)
 
953
     case $cc_basename in
 
954
@@ -4557,8 +4687,6 @@
 
955
 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
956
 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
957
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
958
-AC_LIBTOOL_SYS_LIB_STRIP
 
959
-AC_LIBTOOL_DLOPEN_SELF($1)
 
960
 
 
961
 AC_LIBTOOL_CONFIG($1)
 
962
 
 
963
@@ -4576,7 +4704,7 @@
 
964
 ])# AC_LIBTOOL_LANG_CXX_CONFIG
 
965
 
 
966
 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
967
-# ------------------------
 
968
+# ------------------------------------
 
969
 # Figure out "hidden" library dependencies from verbose
 
970
 # compiler output when linking a shared library.
 
971
 # Parse the compiler output and extract the necessary
 
972
@@ -4709,6 +4837,14 @@
 
973
 # PORTME: override above test on systems where it is broken
 
974
 ifelse([$1],[CXX],
 
975
 [case $host_os in
 
976
+interix3*)
 
977
+  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
978
+  # hack all around it, let's just trust "g++" to DTRT.
 
979
+  _LT_AC_TAGVAR(predep_objects,$1)=
 
980
+  _LT_AC_TAGVAR(postdep_objects,$1)=
 
981
+  _LT_AC_TAGVAR(postdeps,$1)=
 
982
+  ;;
 
983
+
 
984
 solaris*)
 
985
   case $cc_basename in
 
986
   CC*)
 
987
@@ -4718,6 +4854,7 @@
 
988
     _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
989
     ;;
 
990
   esac
 
991
+  ;;
 
992
 esac
 
993
 ])
 
994
 
 
995
@@ -4727,7 +4864,7 @@
 
996
 ])# AC_LIBTOOL_POSTDEP_PREDEP
 
997
 
 
998
 # AC_LIBTOOL_LANG_F77_CONFIG
 
999
-# ------------------------
 
1000
+# --------------------------
 
1001
 # Ensure that the configuration vars for the C compiler are
 
1002
 # suitably defined.  Those variables are subsequently used by
 
1003
 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1004
@@ -4811,8 +4948,6 @@
 
1005
 test "$enable_shared" = yes || enable_static=yes
 
1006
 AC_MSG_RESULT([$enable_static])
 
1007
 
 
1008
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
1009
-
 
1010
 _LT_AC_TAGVAR(GCC, $1)="$G77"
 
1011
 _LT_AC_TAGVAR(LD, $1)="$LD"
 
1012
 
 
1013
@@ -4822,8 +4957,6 @@
 
1014
 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
1015
 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
1016
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
1017
-AC_LIBTOOL_SYS_LIB_STRIP
 
1018
-
 
1019
 
 
1020
 AC_LIBTOOL_CONFIG($1)
 
1021
 
 
1022
@@ -4880,8 +5013,6 @@
 
1023
 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
1024
 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
1025
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
1026
-AC_LIBTOOL_SYS_LIB_STRIP
 
1027
-AC_LIBTOOL_DLOPEN_SELF($1)
 
1028
 
 
1029
 AC_LIBTOOL_CONFIG($1)
 
1030
 
 
1031
@@ -4891,7 +5022,7 @@
 
1032
 
 
1033
 
 
1034
 # AC_LIBTOOL_LANG_RC_CONFIG
 
1035
-# --------------------------
 
1036
+# -------------------------
 
1037
 # Ensure that the configuration vars for the Windows resource compiler are
 
1038
 # suitably defined.  Those variables are subsequently used by
 
1039
 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1040
@@ -4954,7 +5085,7 @@
 
1041
   # Now quote all the things that may contain metacharacters while being
 
1042
   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
1043
   # variables and quote the copies for generation of the libtool script.
 
1044
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
1045
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
1046
     SED SHELL STRIP \
 
1047
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
1048
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
1049
@@ -5123,6 +5254,9 @@
 
1050
 # A C compiler.
 
1051
 LTCC=$lt_LTCC
 
1052
 
 
1053
+# LTCC compiler flags.
 
1054
+LTCFLAGS=$lt_LTCFLAGS
 
1055
+
 
1056
 # A language-specific compiler.
 
1057
 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
1058
 
 
1059
@@ -5496,9 +5630,18 @@
 
1060
 osf*)
 
1061
   symcode='[[BCDEGQRST]]'
 
1062
   ;;
 
1063
-solaris* | sysv5*)
 
1064
+solaris*)
 
1065
   symcode='[[BDRT]]'
 
1066
   ;;
 
1067
+sco3.2v5*)
 
1068
+  symcode='[[DT]]'
 
1069
+  ;;
 
1070
+sysv4.2uw2*)
 
1071
+  symcode='[[DT]]'
 
1072
+  ;;
 
1073
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
1074
+  symcode='[[ABDT]]'
 
1075
+  ;;
 
1076
 sysv4)
 
1077
   symcode='[[DFNSTU]]'
 
1078
   ;;
 
1079
@@ -5681,6 +5824,10 @@
 
1080
       # DJGPP does not support shared libraries at all
 
1081
       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
1082
       ;;
 
1083
+    interix3*)
 
1084
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
1085
+      # Instead, we relocate shared libraries at runtime.
 
1086
+      ;;
 
1087
     sysv4*MP*)
 
1088
       if test -d /usr/nec; then
 
1089
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
1090
@@ -5750,14 +5897,14 @@
 
1091
        case $cc_basename in
 
1092
          CC*)
 
1093
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
1094
-           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
1095
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
1096
            if test "$host_cpu" != ia64; then
 
1097
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
1098
            fi
 
1099
            ;;
 
1100
          aCC*)
 
1101
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
1102
-           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
1103
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
1104
            case $host_cpu in
 
1105
            hppa*64*|ia64*)
 
1106
              # +Z the default
 
1107
@@ -5771,6 +5918,10 @@
 
1108
            ;;
 
1109
        esac
 
1110
        ;;
 
1111
+      interix*)
 
1112
+       # This is c89, which is MS Visual C++ (no shared libs)
 
1113
+       # Anyone wants to do a port?
 
1114
+       ;;
 
1115
       irix5* | irix6* | nonstopux*)
 
1116
        case $cc_basename in
 
1117
          CC*)
 
1118
@@ -5825,7 +5976,7 @@
 
1119
            ;;
 
1120
        esac
 
1121
        ;;
 
1122
-      netbsd*)
 
1123
+      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
1124
        ;;
 
1125
       osf3* | osf4* | osf5*)
 
1126
        case $cc_basename in
 
1127
@@ -5850,15 +6001,6 @@
 
1128
        ;;
 
1129
       psos*)
 
1130
        ;;
 
1131
-      sco*)
 
1132
-       case $cc_basename in
 
1133
-         CC*)
 
1134
-           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
1135
-           ;;
 
1136
-         *)
 
1137
-           ;;
 
1138
-       esac
 
1139
-       ;;
 
1140
       solaris*)
 
1141
        case $cc_basename in
 
1142
          CC*)
 
1143
@@ -5900,7 +6042,14 @@
 
1144
            ;;
 
1145
        esac
 
1146
        ;;
 
1147
-      unixware*)
 
1148
+      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
1149
+       case $cc_basename in
 
1150
+         CC*)
 
1151
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
1152
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
1153
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
1154
+           ;;
 
1155
+       esac
 
1156
        ;;
 
1157
       vxworks*)
 
1158
        ;;
 
1159
@@ -5947,6 +6096,11 @@
 
1160
       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
1161
       ;;
 
1162
 
 
1163
+    interix3*)
 
1164
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
1165
+      # Instead, we relocate shared libraries at runtime.
 
1166
+      ;;
 
1167
+
 
1168
     msdosdjgpp*)
 
1169
       # Just because we use GCC doesn't mean we suddenly get shared libraries
 
1170
       # on systems that don't support them.
 
1171
@@ -6061,11 +6215,6 @@
 
1172
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
1173
       ;;
 
1174
 
 
1175
-    sco3.2v5*)
 
1176
-      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
1177
-      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
1178
-      ;;
 
1179
-
 
1180
     solaris*)
 
1181
       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
1182
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
1183
@@ -6083,7 +6232,7 @@
 
1184
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
1185
       ;;
 
1186
 
 
1187
-    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1188
+    sysv4 | sysv4.2uw2* | sysv4.3*)
 
1189
       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
1190
       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
1191
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
1192
@@ -6096,6 +6245,12 @@
 
1193
       fi
 
1194
       ;;
 
1195
 
 
1196
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
1197
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
1198
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
1199
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
1200
+      ;;
 
1201
+
 
1202
     unicos*)
 
1203
       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
1204
       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
1205
@@ -6137,6 +6292,16 @@
 
1206
     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
1207
     ;;
 
1208
 esac
 
1209
+
 
1210
+#
 
1211
+# Check to make sure the static flag actually works.
 
1212
+#
 
1213
+wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
1214
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
1215
+  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
1216
+  $lt_tmp_static_flag,
 
1217
+  [],
 
1218
+  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
1219
 ])
 
1220
 
 
1221
 
 
1222
@@ -6163,6 +6328,12 @@
 
1223
   cygwin* | mingw*)
 
1224
     _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'
 
1225
   ;;
 
1226
+  kfreebsd*-gnu)
 
1227
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
1228
+  ;;
 
1229
+  linux*)
 
1230
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
1231
+  ;;
 
1232
   *)
 
1233
     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
1234
   ;;
 
1235
@@ -6215,6 +6386,10 @@
 
1236
       with_gnu_ld=no
 
1237
     fi
 
1238
     ;;
 
1239
+  interix*)
 
1240
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
1241
+    with_gnu_ld=yes
 
1242
+    ;;
 
1243
   openbsd*)
 
1244
     with_gnu_ld=no
 
1245
     ;;
 
1246
@@ -6299,7 +6474,7 @@
 
1247
       _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'
 
1248
 
 
1249
       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
1250
-        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
1251
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
1252
        # If the export-symbols file already is a .def file (1st line
 
1253
        # is EXPORTS), use it as is; otherwise, prepend...
 
1254
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
1255
@@ -6308,12 +6483,27 @@
 
1256
          echo EXPORTS > $output_objdir/$soname.def;
 
1257
          cat $export_symbols >> $output_objdir/$soname.def;
 
1258
        fi~
 
1259
-       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
1260
+       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
1261
       else
 
1262
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
1263
       fi
 
1264
       ;;
 
1265
 
 
1266
+    interix3*)
 
1267
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
1268
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1269
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
1270
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
1271
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
1272
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
1273
+      # default) and relocated if they conflict, which is a slow very memory
 
1274
+      # consuming and fragmenting process.  To avoid this, we pick a random,
 
1275
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
1276
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
1277
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
1278
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
1279
+      ;;
 
1280
+
 
1281
     linux*)
 
1282
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
1283
        tmp_addflag=
 
1284
@@ -6340,12 +6530,13 @@
 
1285
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 
1286
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
1287
        fi
 
1288
+       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
1289
       else
 
1290
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
1291
       fi
 
1292
       ;;
 
1293
 
 
1294
-    netbsd*)
 
1295
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
1296
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
1297
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
1298
        wlarc=
 
1299
@@ -6355,7 +6546,7 @@
 
1300
       fi
 
1301
       ;;
 
1302
 
 
1303
-    solaris* | sysv5*)
 
1304
+    solaris*)
 
1305
       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
1306
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
1307
        cat <<EOF 1>&2
 
1308
@@ -6376,6 +6567,33 @@
 
1309
       fi
 
1310
       ;;
 
1311
 
 
1312
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
1313
+      case `$LD -v 2>&1` in
 
1314
+        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
1315
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
1316
+       cat <<_LT_EOF 1>&2
 
1317
+
 
1318
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
1319
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
1320
+*** is disabling shared libraries support.  We urge you to upgrade GNU
 
1321
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
1322
+*** your PATH or compiler configuration so that the native linker is
 
1323
+*** used, and then restart.
 
1324
+
 
1325
+_LT_EOF
 
1326
+       ;;
 
1327
+       *)
 
1328
+         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
1329
+           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
1330
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
1331
+           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
1332
+         else
 
1333
+           _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
1334
+         fi
 
1335
+       ;;
 
1336
+      esac
 
1337
+      ;;
 
1338
+
 
1339
     sunos4*)
 
1340
       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
1341
       wlarc=
 
1342
@@ -6409,7 +6627,7 @@
 
1343
       # Note: this linker hardcodes the directories in LIBPATH if there
 
1344
       # are no directories specified by -L.
 
1345
       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
1346
-      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
1347
+      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
1348
        # Neither direct hardcoding nor static linking is supported with a
 
1349
        # broken collect2.
 
1350
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
1351
@@ -6443,6 +6661,7 @@
 
1352
            break
 
1353
          fi
 
1354
          done
 
1355
+         ;;
 
1356
        esac
 
1357
 
 
1358
        exp_sym_flag='-bexport'
 
1359
@@ -6480,6 +6699,7 @@
 
1360
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
1361
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
1362
          fi
 
1363
+         ;;
 
1364
        esac
 
1365
        shared_flag='-shared'
 
1366
        if test "$aix_use_runtimelinking" = yes; then
 
1367
@@ -6492,11 +6712,11 @@
 
1368
        # chokes on -Wl,-G. The following line is correct:
 
1369
          shared_flag='-G'
 
1370
        else
 
1371
-       if test "$aix_use_runtimelinking" = yes; then
 
1372
+         if test "$aix_use_runtimelinking" = yes; then
 
1373
            shared_flag='${wl}-G'
 
1374
          else
 
1375
            shared_flag='${wl}-bM:SRE'
 
1376
-       fi
 
1377
+         fi
 
1378
        fi
 
1379
       fi
 
1380
 
 
1381
@@ -6510,12 +6730,12 @@
 
1382
        # Determine the default libpath from the value encoded in an empty executable.
 
1383
        _LT_AC_SYS_LIBPATH_AIX
 
1384
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
1385
-       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
1386
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
1387
        else
 
1388
        if test "$host_cpu" = ia64; then
 
1389
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
1390
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
1391
-         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
1392
+         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
1393
        else
 
1394
         # Determine the default libpath from the value encoded in an empty executable.
 
1395
         _LT_AC_SYS_LIBPATH_AIX
 
1396
@@ -6524,13 +6744,11 @@
 
1397
          # -berok will link without error, but may produce a broken library.
 
1398
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
1399
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
1400
-         # -bexpall does not export symbols beginning with underscore (_)
 
1401
-         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
1402
          # Exported symbols can be pulled into shared objects from archives
 
1403
-         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
1404
+         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
1405
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
1406
          # This is similar to how AIX traditionally builds its shared libraries.
 
1407
-         _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'
 
1408
+         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
1409
        fi
 
1410
       fi
 
1411
       ;;
 
1412
@@ -6648,12 +6866,21 @@
 
1413
       ;;
 
1414
 
 
1415
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
1416
-    freebsd* | kfreebsd*-gnu | dragonfly*)
 
1417
+    freebsd* | dragonfly*)
 
1418
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
1419
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
1420
       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
1421
       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1422
       ;;
 
1423
+      
 
1424
+    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
1425
+    kfreebsd*-gnu)
 
1426
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
1427
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
1428
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
1429
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1430
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
1431
+      ;;
 
1432
 
 
1433
     hpux9*)
 
1434
       if test "$GCC" = yes; then
 
1435
@@ -6671,47 +6898,62 @@
 
1436
       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
1437
       ;;
 
1438
 
 
1439
-    hpux10* | hpux11*)
 
1440
+    hpux10*)
 
1441
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
1442
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
1443
+      else
 
1444
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
1445
+      fi
 
1446
+      if test "$with_gnu_ld" = no; then
 
1447
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
1448
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
1449
+
 
1450
+       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
1451
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
1452
+
 
1453
+       # hardcode_minus_L: Not really in the search PATH,
 
1454
+       # but as the default location of the library.
 
1455
+       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
1456
+      fi
 
1457
+      ;;
 
1458
+
 
1459
+    hpux11*)
 
1460
       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
1461
        case $host_cpu in
 
1462
-       hppa*64*|ia64*)
 
1463
+       hppa*64*)
 
1464
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1465
          ;;
 
1466
+       ia64*)
 
1467
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
1468
+         ;;
 
1469
        *)
 
1470
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
1471
          ;;
 
1472
        esac
 
1473
       else
 
1474
        case $host_cpu in
 
1475
-       hppa*64*|ia64*)
 
1476
-         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
1477
+       hppa*64*)
 
1478
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1479
+         ;;
 
1480
+       ia64*)
 
1481
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
1482
          ;;
 
1483
        *)
 
1484
-         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
1485
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
1486
          ;;
 
1487
        esac
 
1488
       fi
 
1489
       if test "$with_gnu_ld" = no; then
 
1490
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
1491
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
1492
+
 
1493
        case $host_cpu in
 
1494
-       hppa*64*)
 
1495
-         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
1496
+       hppa*64*|ia64*)
 
1497
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
1498
-         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
1499
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
1500
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1501
          ;;
 
1502
-       ia64*)
 
1503
-         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
1504
-         _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
1505
-         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1506
-
 
1507
-         # hardcode_minus_L: Not really in the search PATH,
 
1508
-         # but as the default location of the library.
 
1509
-         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
1510
-         ;;
 
1511
        *)
 
1512
-         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
1513
-         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
1514
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
1515
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
1516
 
 
1517
@@ -6735,7 +6977,7 @@
 
1518
       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
1519
       ;;
 
1520
 
 
1521
-    netbsd*)
 
1522
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
1523
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
1524
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
1525
       else
 
1526
@@ -6813,14 +7055,6 @@
 
1527
       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
1528
       ;;
 
1529
 
 
1530
-    sco3.2v5*)
 
1531
-      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
1532
-      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1533
-      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
1534
-      runpath_var=LD_RUN_PATH
 
1535
-      hardcode_runpath_var=yes
 
1536
-      ;;
 
1537
-
 
1538
     solaris*)
 
1539
       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
1540
       if test "$GCC" = yes; then
 
1541
@@ -6906,36 +7140,45 @@
 
1542
       fi
 
1543
       ;;
 
1544
 
 
1545
-    sysv4.2uw2*)
 
1546
-      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
1547
-      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
1548
-      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
1549
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
1550
+      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
1551
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
1552
       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1553
-      hardcode_runpath_var=yes
 
1554
-      runpath_var=LD_RUN_PATH
 
1555
-      ;;
 
1556
+      runpath_var='LD_RUN_PATH'
 
1557
 
 
1558
-   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
1559
-      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
1560
       if test "$GCC" = yes; then
 
1561
-       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1562
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1563
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1564
       else
 
1565
-       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1566
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1567
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1568
       fi
 
1569
-      runpath_var='LD_RUN_PATH'
 
1570
-      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1571
       ;;
 
1572
 
 
1573
-    sysv5*)
 
1574
-      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
1575
-      # $CC -shared without GNU ld will not create a library from C++
 
1576
-      # object files and a static libstdc++, better avoid it by now
 
1577
-      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
1578
-      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
1579
-               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
1580
-      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
1581
+    sysv5* | sco3.2v5* | sco5v6*)
 
1582
+      # Note: We can NOT use -z defs as we might desire, because we do not
 
1583
+      # link with -lc, and that would cause any symbols used from libc to
 
1584
+      # always be unresolved, which means just about no library would
 
1585
+      # ever link correctly.  If we're not using GNU ld we use -z text
 
1586
+      # though, which does catch some bad symbols but isn't as heavy-handed
 
1587
+      # as -z defs.
 
1588
+      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
1589
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
1590
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
1591
       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
1592
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
1593
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
1594
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
1595
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
1596
       runpath_var='LD_RUN_PATH'
 
1597
+
 
1598
+      if test "$GCC" = yes; then
 
1599
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1600
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1601
+      else
 
1602
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1603
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
1604
+      fi
 
1605
       ;;
 
1606
 
 
1607
     uts4*)
 
1608
@@ -6953,11 +7196,6 @@
 
1609
 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
1610
 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
1611
 
 
1612
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1613
-if test "$GCC" = yes; then
 
1614
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1615
-fi
 
1616
-
 
1617
 #
 
1618
 # Do we need to explicitly link libc?
 
1619
 #
 
1620
@@ -6985,6 +7223,7 @@
 
1621
         libobjs=conftest.$ac_objext
 
1622
         deplibs=
 
1623
         wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
1624
+       pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
1625
         compiler_flags=-v
 
1626
         linker_flags=-v
 
1627
         verstring=
 
1628
@@ -7153,61 +7392,160 @@
 
1629
   $1_FALSE=
 
1630
 fi])
 
1631
 
 
1632
+# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1633
+# 
 
1634
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
1635
+#
 
1636
+# This program is free software; you can redistribute it and/or modify
 
1637
+# it under the terms of the GNU General Public License as published by
 
1638
+# the Free Software Foundation; either version 2 of the License, or
 
1639
+# (at your option) any later version.
 
1640
+#
 
1641
+# This program is distributed in the hope that it will be useful, but
 
1642
+# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1643
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1644
+# General Public License for more details.
 
1645
+#
 
1646
+# You should have received a copy of the GNU General Public License
 
1647
+# along with this program; if not, write to the Free Software
 
1648
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1649
+#
 
1650
+# As a special exception to the GNU General Public License, if you
 
1651
+# distribute this file as part of a program that contains a
 
1652
+# configuration script generated by Autoconf, you may include it under
 
1653
+# the same distribution terms that you use for the rest of that program.
 
1654
 
 
1655
-dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
 
1656
-dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
 
1657
-dnl also defines GSTUFF_PKG_ERRORS on error
 
1658
-AC_DEFUN([PKG_CHECK_MODULES], [
 
1659
-  succeeded=no
 
1660
-
 
1661
-  if test -z "$PKG_CONFIG"; then
 
1662
-    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
1663
-  fi
 
1664
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
1665
+# ----------------------------------
 
1666
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
1667
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
1668
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
1669
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
1670
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
1671
+       AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
1672
+fi
 
1673
+if test -n "$PKG_CONFIG"; then
 
1674
+       _pkg_min_version=m4_default([$1], [0.9.0])
 
1675
+       AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
1676
+       if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
1677
+               AC_MSG_RESULT([yes])
 
1678
+       else
 
1679
+               AC_MSG_RESULT([no])
 
1680
+               PKG_CONFIG=""
 
1681
+       fi
 
1682
+               
 
1683
+fi[]dnl
 
1684
+])# PKG_PROG_PKG_CONFIG
 
1685
 
 
1686
-  if test "$PKG_CONFIG" = "no" ; then
 
1687
-     echo "*** The pkg-config script could not be found. Make sure it is"
 
1688
-     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
1689
-     echo "*** to the full path to pkg-config."
 
1690
-     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
1691
-  else
 
1692
-     PKG_CONFIG_MIN_VERSION=0.9.0
 
1693
-     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
1694
-        AC_MSG_CHECKING(for $2)
 
1695
-
 
1696
-        if $PKG_CONFIG --exists "$2" ; then
 
1697
-            AC_MSG_RESULT(yes)
 
1698
-            succeeded=yes
 
1699
-
 
1700
-            AC_MSG_CHECKING($1_CFLAGS)
 
1701
-            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
 
1702
-            AC_MSG_RESULT($$1_CFLAGS)
 
1703
-
 
1704
-            AC_MSG_CHECKING($1_LIBS)
 
1705
-            $1_LIBS=`$PKG_CONFIG --libs "$2"`
 
1706
-            AC_MSG_RESULT($$1_LIBS)
 
1707
-        else
 
1708
-            $1_CFLAGS=""
 
1709
-            $1_LIBS=""
 
1710
-            ## If we have a custom action on failure, don't print errors, but 
 
1711
-            ## do set a variable so people can do so.
 
1712
-            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
1713
-            ifelse([$4], ,echo $$1_PKG_ERRORS,)
 
1714
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
1715
+#
 
1716
+# Check to see whether a particular set of modules exists.  Similar
 
1717
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
1718
+#
 
1719
+#
 
1720
+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
1721
+# this or PKG_CHECK_MODULES is called, or make sure to call
 
1722
+# PKG_CHECK_EXISTS manually
 
1723
+# --------------------------------------------------------------
 
1724
+AC_DEFUN([PKG_CHECK_EXISTS],
 
1725
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1726
+if test -n "$PKG_CONFIG" && \
 
1727
+    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
1728
+  m4_ifval([$2], [$2], [:])
 
1729
+m4_ifvaln([$3], [else
 
1730
+  $3])dnl
 
1731
+fi])
 
1732
+
 
1733
+
 
1734
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
1735
+# ---------------------------------------------
 
1736
+m4_define([_PKG_CONFIG],
 
1737
+[if test -n "$PKG_CONFIG"; then
 
1738
+    if test -n "$$1"; then
 
1739
+        pkg_cv_[]$1="$$1"
 
1740
+    else
 
1741
+        PKG_CHECK_EXISTS([$3],
 
1742
+                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
1743
+                        [pkg_failed=yes])
 
1744
+    fi
 
1745
+else
 
1746
+       pkg_failed=untried
 
1747
+fi[]dnl
 
1748
+])# _PKG_CONFIG
 
1749
+
 
1750
+# _PKG_SHORT_ERRORS_SUPPORTED
 
1751
+# -----------------------------
 
1752
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1753
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1754
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1755
+        _pkg_short_errors_supported=yes
 
1756
+else
 
1757
+        _pkg_short_errors_supported=no
 
1758
+fi[]dnl
 
1759
+])# _PKG_SHORT_ERRORS_SUPPORTED
 
1760
+
 
1761
+
 
1762
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1763
+# [ACTION-IF-NOT-FOUND])
 
1764
+#
 
1765
+#
 
1766
+# Note that if there is a possibility the first call to
 
1767
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1768
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1769
+#
 
1770
+#
 
1771
+# --------------------------------------------------------------
 
1772
+AC_DEFUN([PKG_CHECK_MODULES],
 
1773
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1774
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1775
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1776
+
 
1777
+pkg_failed=no
 
1778
+AC_MSG_CHECKING([for $1])
 
1779
+
 
1780
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1781
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1782
+
 
1783
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1784
+and $1[]_LIBS to avoid the need to call pkg-config.
 
1785
+See the pkg-config man page for more details.])
 
1786
+
 
1787
+if test $pkg_failed = yes; then
 
1788
+        _PKG_SHORT_ERRORS_SUPPORTED
 
1789
+        if test $_pkg_short_errors_supported = yes; then
 
1790
+               $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
1791
+        else 
 
1792
+               $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
1793
         fi
 
1794
+       # Put the nasty error message in config.log where it belongs
 
1795
+       echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1796
 
 
1797
-        AC_SUBST($1_CFLAGS)
 
1798
-        AC_SUBST($1_LIBS)
 
1799
-     else
 
1800
-        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
1801
-        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
1802
-     fi
 
1803
-  fi
 
1804
+       ifelse([$4], , [AC_MSG_ERROR(dnl
 
1805
+[Package requirements ($2) were not met:
 
1806
 
 
1807
-  if test $succeeded = yes; then
 
1808
-     ifelse([$3], , :, [$3])
 
1809
-  else
 
1810
-     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])
 
1811
-  fi
 
1812
-])
 
1813
+$$1_PKG_ERRORS
 
1814
+
 
1815
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1816
+installed software in a non-standard prefix.
 
1817
+
 
1818
+_PKG_TEXT
 
1819
+])],
 
1820
+               [$4])
 
1821
+elif test $pkg_failed = untried; then
 
1822
+       ifelse([$4], , [AC_MSG_FAILURE(dnl
 
1823
+[The pkg-config script could not be found or is too old.  Make sure it
 
1824
+is in your PATH or set the PKG_CONFIG environment variable to the full
 
1825
+path to pkg-config.
 
1826
 
 
1827
+_PKG_TEXT
 
1828
 
 
1829
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
1830
+               [$4])
 
1831
+else
 
1832
+       $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1833
+       $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1834
+        AC_MSG_RESULT([yes])
 
1835
+       ifelse([$3], , :, [$3])
 
1836
+fi[]dnl
 
1837
+])# PKG_CHECK_MODULES
 
1838
 
 
1839
diff -urN -x config.guess -x config.sub libgail-gnome-1.1.3.orig/configure libgail-gnome-1.1.3/configure
 
1840
--- libgail-gnome-1.1.3.orig/configure  2006-01-30 17:42:17.000000000 +0100
 
1841
+++ libgail-gnome-1.1.3/configure       2006-02-12 20:10:46.000000000 +0100
 
1842
@@ -463,7 +463,7 @@
 
1843
 # include <unistd.h>
 
1844
 #endif"
 
1845
 
 
1846
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE GAIL_GNOME_MAJOR_VERSION GAIL_GNOME_MINOR_VERSION GAIL_GNOME_MICRO_VERSION GAIL_GNOME_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE LT_CURRENT_MINUS_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL OS_WIN32_TRUE OS_WIN32_FALSE ms_librarian MS_LIB_AVAILABLE_TRUE MS_LIB_AVAILABLE_FALSE GAIL_GNOME_DEBUG_CFLAGS PKG_CONFIG DEPS_CFLAGS DEPS_LIBS TEST_CFLAGS TEST_LIBS INET_LIBS LIBOBJS LTLIBOBJS'
 
1847
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE GAIL_GNOME_MAJOR_VERSION GAIL_GNOME_MINOR_VERSION GAIL_GNOME_MICRO_VERSION GAIL_GNOME_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE LT_CURRENT_MINUS_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL OS_WIN32_TRUE OS_WIN32_FALSE ms_librarian MS_LIB_AVAILABLE_TRUE MS_LIB_AVAILABLE_FALSE GAIL_GNOME_DEBUG_CFLAGS PKG_CONFIG ac_pt_PKG_CONFIG DEPS_CFLAGS DEPS_LIBS TEST_CFLAGS TEST_LIBS INET_LIBS LIBOBJS LTLIBOBJS'
 
1848
 ac_subst_files=''
 
1849
 
 
1850
 # Initialize some variables set by options.
 
1851
@@ -944,6 +944,26 @@
 
1852
 ac_env_FFLAGS_value=$FFLAGS
 
1853
 ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
1854
 ac_cv_env_FFLAGS_value=$FFLAGS
 
1855
+ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
1856
+ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
1857
+ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
1858
+ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
1859
+ac_env_DEPS_CFLAGS_set=${DEPS_CFLAGS+set}
 
1860
+ac_env_DEPS_CFLAGS_value=$DEPS_CFLAGS
 
1861
+ac_cv_env_DEPS_CFLAGS_set=${DEPS_CFLAGS+set}
 
1862
+ac_cv_env_DEPS_CFLAGS_value=$DEPS_CFLAGS
 
1863
+ac_env_DEPS_LIBS_set=${DEPS_LIBS+set}
 
1864
+ac_env_DEPS_LIBS_value=$DEPS_LIBS
 
1865
+ac_cv_env_DEPS_LIBS_set=${DEPS_LIBS+set}
 
1866
+ac_cv_env_DEPS_LIBS_value=$DEPS_LIBS
 
1867
+ac_env_TEST_CFLAGS_set=${TEST_CFLAGS+set}
 
1868
+ac_env_TEST_CFLAGS_value=$TEST_CFLAGS
 
1869
+ac_cv_env_TEST_CFLAGS_set=${TEST_CFLAGS+set}
 
1870
+ac_cv_env_TEST_CFLAGS_value=$TEST_CFLAGS
 
1871
+ac_env_TEST_LIBS_set=${TEST_LIBS+set}
 
1872
+ac_env_TEST_LIBS_value=$TEST_LIBS
 
1873
+ac_cv_env_TEST_LIBS_set=${TEST_LIBS+set}
 
1874
+ac_cv_env_TEST_LIBS_value=$TEST_LIBS
 
1875
 
 
1876
 #
 
1877
 # Report the --help message.
 
1878
@@ -1055,6 +1075,11 @@
 
1879
   CXXCPP      C++ preprocessor
 
1880
   F77         Fortran 77 compiler command
 
1881
   FFLAGS      Fortran 77 compiler flags
 
1882
+  PKG_CONFIG  path to pkg-config utility
 
1883
+  DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
 
1884
+  DEPS_LIBS   linker flags for DEPS, overriding pkg-config
 
1885
+  TEST_CFLAGS C compiler flags for TEST, overriding pkg-config
 
1886
+  TEST_LIBS   linker flags for TEST, overriding pkg-config
 
1887
 
 
1888
 Use these variables to override the choices made by `configure' or to help
 
1889
 it to find libraries and programs with nonstandard names/locations.
 
1890
@@ -1147,7 +1172,7 @@
 
1891
     else
 
1892
       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1893
     fi
 
1894
-    cd $ac_popdir
 
1895
+    cd "$ac_popdir"
 
1896
   done
 
1897
 fi
 
1898
 
 
1899
@@ -2385,8 +2410,7 @@
 
1900
   cat conftest.err >&5
 
1901
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1902
   (exit $ac_status); } &&
 
1903
-        { ac_try='test -z "$ac_c_werror_flag"
 
1904
-                        || test ! -s conftest.err'
 
1905
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1906
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1907
   (eval $ac_try) 2>&5
 
1908
   ac_status=$?
 
1909
@@ -2444,8 +2468,7 @@
 
1910
   cat conftest.err >&5
 
1911
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1912
   (exit $ac_status); } &&
 
1913
-        { ac_try='test -z "$ac_c_werror_flag"
 
1914
-                        || test ! -s conftest.err'
 
1915
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1916
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1917
   (eval $ac_try) 2>&5
 
1918
   ac_status=$?
 
1919
@@ -2561,8 +2584,7 @@
 
1920
   cat conftest.err >&5
 
1921
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1922
   (exit $ac_status); } &&
 
1923
-        { ac_try='test -z "$ac_c_werror_flag"
 
1924
-                        || test ! -s conftest.err'
 
1925
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1926
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1927
   (eval $ac_try) 2>&5
 
1928
   ac_status=$?
 
1929
@@ -2616,8 +2638,7 @@
 
1930
   cat conftest.err >&5
 
1931
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1932
   (exit $ac_status); } &&
 
1933
-        { ac_try='test -z "$ac_c_werror_flag"
 
1934
-                        || test ! -s conftest.err'
 
1935
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1936
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1937
   (eval $ac_try) 2>&5
 
1938
   ac_status=$?
 
1939
@@ -2662,8 +2683,7 @@
 
1940
   cat conftest.err >&5
 
1941
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1942
   (exit $ac_status); } &&
 
1943
-        { ac_try='test -z "$ac_c_werror_flag"
 
1944
-                        || test ! -s conftest.err'
 
1945
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1946
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1947
   (eval $ac_try) 2>&5
 
1948
   ac_status=$?
 
1949
@@ -2707,8 +2727,7 @@
 
1950
   cat conftest.err >&5
 
1951
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1952
   (exit $ac_status); } &&
 
1953
-        { ac_try='test -z "$ac_c_werror_flag"
 
1954
-                        || test ! -s conftest.err'
 
1955
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1956
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1957
   (eval $ac_try) 2>&5
 
1958
   ac_status=$?
 
1959
@@ -3073,7 +3092,7 @@
 
1960
 case $host_os in
 
1961
   darwin*)
 
1962
     if test "$GCC" = yes; then
 
1963
-      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
1964
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
1965
     else
 
1966
       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
1967
     fi
 
1968
@@ -3089,36 +3108,43 @@
 
1969
   # Let the user override the test.
 
1970
   lt_cv_path_NM="$NM"
 
1971
 else
 
1972
-  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1973
-  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
1974
-    IFS="$lt_save_ifs"
 
1975
-    test -z "$ac_dir" && ac_dir=.
 
1976
-    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
1977
-    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
1978
-      # Check to see if the nm accepts a BSD-compat flag.
 
1979
-      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
1980
-      #   nm: unknown option "B" ignored
 
1981
-      # Tru64's nm complains that /dev/null is an invalid object file
 
1982
-      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
1983
-      */dev/null* | *'Invalid file or object type'*)
 
1984
-       lt_cv_path_NM="$tmp_nm -B"
 
1985
-       break
 
1986
-        ;;
 
1987
-      *)
 
1988
-       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
1989
-       */dev/null*)
 
1990
-         lt_cv_path_NM="$tmp_nm -p"
 
1991
+  lt_nm_to_check="${ac_tool_prefix}nm"
 
1992
+  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
1993
+    lt_nm_to_check="$lt_nm_to_check nm"
 
1994
+  fi
 
1995
+  for lt_tmp_nm in $lt_nm_to_check; do
 
1996
+    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1997
+    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
1998
+      IFS="$lt_save_ifs"
 
1999
+      test -z "$ac_dir" && ac_dir=.
 
2000
+      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2001
+      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2002
+       # Check to see if the nm accepts a BSD-compat flag.
 
2003
+       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2004
+       #   nm: unknown option "B" ignored
 
2005
+       # Tru64's nm complains that /dev/null is an invalid object file
 
2006
+       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2007
+       */dev/null* | *'Invalid file or object type'*)
 
2008
+         lt_cv_path_NM="$tmp_nm -B"
 
2009
          break
 
2010
          ;;
 
2011
        *)
 
2012
-         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2013
-         continue # so that we can try to find one that supports BSD flags
 
2014
+         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2015
+         */dev/null*)
 
2016
+           lt_cv_path_NM="$tmp_nm -p"
 
2017
+           break
 
2018
+           ;;
 
2019
+         *)
 
2020
+           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2021
+           continue # so that we can try to find one that supports BSD flags
 
2022
+           ;;
 
2023
+         esac
 
2024
          ;;
 
2025
        esac
 
2026
-      esac
 
2027
-    fi
 
2028
+      fi
 
2029
+    done
 
2030
+    IFS="$lt_save_ifs"
 
2031
   done
 
2032
-  IFS="$lt_save_ifs"
 
2033
   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2034
 fi
 
2035
 fi
 
2036
@@ -3226,6 +3252,11 @@
 
2037
   esac
 
2038
   ;;
 
2039
 
 
2040
+interix3*)
 
2041
+  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2042
+  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
2043
+  ;;
 
2044
+
 
2045
 irix5* | irix6* | nonstopux*)
 
2046
   case $LD in
 
2047
   *-32|*"-32 ") libmagic=32-bit;;
 
2048
@@ -3241,7 +3272,7 @@
 
2049
   lt_cv_deplibs_check_method=pass_all
 
2050
   ;;
 
2051
 
 
2052
-netbsd*)
 
2053
+netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2054
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2055
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
2056
   else
 
2057
@@ -3271,15 +3302,11 @@
 
2058
   lt_cv_deplibs_check_method=pass_all
 
2059
   ;;
 
2060
 
 
2061
-sco3.2v5*)
 
2062
-  lt_cv_deplibs_check_method=pass_all
 
2063
-  ;;
 
2064
-
 
2065
 solaris*)
 
2066
   lt_cv_deplibs_check_method=pass_all
 
2067
   ;;
 
2068
 
 
2069
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2070
+sysv4 | sysv4.3*)
 
2071
   case $host_vendor in
 
2072
   motorola)
 
2073
     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
2074
@@ -3300,10 +3327,13 @@
 
2075
   siemens)
 
2076
     lt_cv_deplibs_check_method=pass_all
 
2077
     ;;
 
2078
+  pc)
 
2079
+    lt_cv_deplibs_check_method=pass_all
 
2080
+    ;;
 
2081
   esac
 
2082
   ;;
 
2083
 
 
2084
-sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
2085
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
2086
   lt_cv_deplibs_check_method=pass_all
 
2087
   ;;
 
2088
 esac
 
2089
@@ -3321,6 +3351,9 @@
 
2090
 # If no C compiler was specified, use CC.
 
2091
 LTCC=${LTCC-"$CC"}
 
2092
 
 
2093
+# If no C compiler flags were specified, use CFLAGS.
 
2094
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
2095
+
 
2096
 # Allow CC to be a program name with arguments.
 
2097
 compiler=$CC
 
2098
 
 
2099
@@ -3356,7 +3389,7 @@
 
2100
   ;;
 
2101
 *-*-irix6*)
 
2102
   # Find out which ABI we are using.
 
2103
-  echo '#line 3359 "configure"' > conftest.$ac_ext
 
2104
+  echo '#line 3392 "configure"' > conftest.$ac_ext
 
2105
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2106
   (eval $ac_compile) 2>&5
 
2107
   ac_status=$?
 
2108
@@ -3476,8 +3509,7 @@
 
2109
   cat conftest.err >&5
 
2110
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2111
   (exit $ac_status); } &&
 
2112
-        { ac_try='test -z "$ac_c_werror_flag"
 
2113
-                        || test ! -s conftest.err'
 
2114
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2115
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2116
   (eval $ac_try) 2>&5
 
2117
   ac_status=$?
 
2118
@@ -3512,6 +3544,26 @@
 
2119
     CFLAGS="$SAVE_CFLAGS"
 
2120
   fi
 
2121
   ;;
 
2122
+sparc*-*solaris*)
 
2123
+  # Find out which ABI we are using.
 
2124
+  echo 'int i;' > conftest.$ac_ext
 
2125
+  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2126
+  (eval $ac_compile) 2>&5
 
2127
+  ac_status=$?
 
2128
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2129
+  (exit $ac_status); }; then
 
2130
+    case `/usr/bin/file conftest.o` in
 
2131
+    *64-bit*)
 
2132
+      case $lt_cv_prog_gnu_ld in
 
2133
+      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2134
+      *)    LD="${LD-ld} -64" ;;
 
2135
+      esac
 
2136
+      ;;
 
2137
+    esac
 
2138
+  fi
 
2139
+  rm -rf conftest*
 
2140
+  ;;
 
2141
+
 
2142
 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
2143
   if test -n "$ac_tool_prefix"; then
 
2144
   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
2145
@@ -4028,8 +4080,7 @@
 
2146
   cat conftest.err >&5
 
2147
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2148
   (exit $ac_status); } &&
 
2149
-        { ac_try='test -z "$ac_c_werror_flag"
 
2150
-                        || test ! -s conftest.err'
 
2151
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2152
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2153
   (eval $ac_try) 2>&5
 
2154
   ac_status=$?
 
2155
@@ -4199,8 +4250,7 @@
 
2156
   cat conftest.err >&5
 
2157
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2158
   (exit $ac_status); } &&
 
2159
-        { ac_try='test -z "$ac_c_werror_flag"
 
2160
-                        || test ! -s conftest.err'
 
2161
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2162
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2163
   (eval $ac_try) 2>&5
 
2164
   ac_status=$?
 
2165
@@ -4267,8 +4317,7 @@
 
2166
   cat conftest.err >&5
 
2167
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2168
   (exit $ac_status); } &&
 
2169
-        { ac_try='test -z "$ac_c_werror_flag"
 
2170
-                        || test ! -s conftest.err'
 
2171
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2172
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2173
   (eval $ac_try) 2>&5
 
2174
   ac_status=$?
 
2175
@@ -4528,8 +4577,7 @@
 
2176
   cat conftest.err >&5
 
2177
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2178
   (exit $ac_status); } &&
 
2179
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
2180
-                        || test ! -s conftest.err'
 
2181
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2182
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2183
   (eval $ac_try) 2>&5
 
2184
   ac_status=$?
 
2185
@@ -4587,8 +4635,7 @@
 
2186
   cat conftest.err >&5
 
2187
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2188
   (exit $ac_status); } &&
 
2189
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
2190
-                        || test ! -s conftest.err'
 
2191
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2192
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2193
   (eval $ac_try) 2>&5
 
2194
   ac_status=$?
 
2195
@@ -4659,8 +4706,7 @@
 
2196
   cat conftest.err >&5
 
2197
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2198
   (exit $ac_status); } &&
 
2199
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
2200
-                        || test ! -s conftest.err'
 
2201
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2202
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2203
   (eval $ac_try) 2>&5
 
2204
   ac_status=$?
 
2205
@@ -4704,8 +4750,7 @@
 
2206
   cat conftest.err >&5
 
2207
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2208
   (exit $ac_status); } &&
 
2209
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
2210
-                        || test ! -s conftest.err'
 
2211
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2212
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2213
   (eval $ac_try) 2>&5
 
2214
   ac_status=$?
 
2215
@@ -5068,7 +5113,7 @@
 
2216
 
 
2217
 
 
2218
 # Provide some information about the compiler.
 
2219
-echo "$as_me:5071:" \
 
2220
+echo "$as_me:5116:" \
 
2221
      "checking for Fortran 77 compiler version" >&5
 
2222
 ac_compiler=`set X $ac_compile; echo $2`
 
2223
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2224
@@ -5114,8 +5159,7 @@
 
2225
   cat conftest.err >&5
 
2226
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2227
   (exit $ac_status); } &&
 
2228
-        { ac_try='test -z "$ac_f77_werror_flag"
 
2229
-                        || test ! -s conftest.err'
 
2230
+        { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
2231
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2232
   (eval $ac_try) 2>&5
 
2233
   ac_status=$?
 
2234
@@ -5164,8 +5208,7 @@
 
2235
   cat conftest.err >&5
 
2236
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2237
   (exit $ac_status); } &&
 
2238
-        { ac_try='test -z "$ac_f77_werror_flag"
 
2239
-                        || test ! -s conftest.err'
 
2240
+        { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
2241
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2242
   (eval $ac_try) 2>&5
 
2243
   ac_status=$?
 
2244
@@ -5271,6 +5314,12 @@
 
2245
     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2246
     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2247
     ;;
 
2248
+
 
2249
+  interix*)
 
2250
+    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
2251
+    lt_cv_sys_max_cmd_len=196608
 
2252
+    ;;
 
2253
+
 
2254
   osf*)
 
2255
     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
2256
     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
2257
@@ -5284,6 +5333,17 @@
 
2258
       esac
 
2259
     fi
 
2260
     ;;
 
2261
+  sco3.2v5*)
 
2262
+    lt_cv_sys_max_cmd_len=102400
 
2263
+    ;;
 
2264
+  sysv5* | sco5v6* | sysv4.2uw2*)
 
2265
+    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
2266
+    if test -n "$kargmax"; then
 
2267
+      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
 
2268
+    else
 
2269
+      lt_cv_sys_max_cmd_len=32768
 
2270
+    fi
 
2271
+    ;;
 
2272
   *)
 
2273
     # If test is not a shell built-in, we'll probably end up computing a
 
2274
     # maximum length that is only half of the actual maximum length, but
 
2275
@@ -5369,9 +5429,18 @@
 
2276
 osf*)
 
2277
   symcode='[BCDEGQRST]'
 
2278
   ;;
 
2279
-solaris* | sysv5*)
 
2280
+solaris*)
 
2281
   symcode='[BDRT]'
 
2282
   ;;
 
2283
+sco3.2v5*)
 
2284
+  symcode='[DT]'
 
2285
+  ;;
 
2286
+sysv4.2uw2*)
 
2287
+  symcode='[DT]'
 
2288
+  ;;
 
2289
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
2290
+  symcode='[ABDT]'
 
2291
+  ;;
 
2292
 sysv4)
 
2293
   symcode='[DFNSTU]'
 
2294
   ;;
 
2295
@@ -5837,6 +5906,7 @@
 
2296
 test -z "$AS" && AS=as
 
2297
 test -z "$CC" && CC=cc
 
2298
 test -z "$LTCC" && LTCC=$CC
 
2299
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
2300
 test -z "$DLLTOOL" && DLLTOOL=dlltool
 
2301
 test -z "$LD" && LD=ld
 
2302
 test -z "$LN_S" && LN_S="ln -s"
 
2303
@@ -5856,10 +5926,10 @@
 
2304
 if test -n "$RANLIB"; then
 
2305
   case $host_os in
 
2306
   openbsd*)
 
2307
-    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
2308
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2309
     ;;
 
2310
   *)
 
2311
-    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
2312
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2313
     ;;
 
2314
   esac
 
2315
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2316
@@ -6058,6 +6128,9 @@
 
2317
 # If no C compiler was specified, use CC.
 
2318
 LTCC=${LTCC-"$CC"}
 
2319
 
 
2320
+# If no C compiler flags were specified, use CFLAGS.
 
2321
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
2322
+
 
2323
 # Allow CC to be a program name with arguments.
 
2324
 compiler=$CC
 
2325
 
 
2326
@@ -6065,82 +6138,17 @@
 
2327
 # save warnings/boilerplate of simple test code
 
2328
 ac_outfile=conftest.$ac_objext
 
2329
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
2330
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
2331
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
2332
 _lt_compiler_boilerplate=`cat conftest.err`
 
2333
 $rm conftest*
 
2334
 
 
2335
 ac_outfile=conftest.$ac_objext
 
2336
 printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
2337
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
2338
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
2339
 _lt_linker_boilerplate=`cat conftest.err`
 
2340
 $rm conftest*
 
2341
 
 
2342
 
 
2343
-#
 
2344
-# Check for any special shared library compilation flags.
 
2345
-#
 
2346
-lt_prog_cc_shlib=
 
2347
-if test "$GCC" = no; then
 
2348
-  case $host_os in
 
2349
-  sco3.2v5*)
 
2350
-    lt_prog_cc_shlib='-belf'
 
2351
-    ;;
 
2352
-  esac
 
2353
-fi
 
2354
-if test -n "$lt_prog_cc_shlib"; then
 
2355
-  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
2356
-echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
2357
-  if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
2358
-  else
 
2359
-    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
2360
-echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
2361
-    lt_cv_prog_cc_can_build_shared=no
 
2362
-  fi
 
2363
-fi
 
2364
-
 
2365
-
 
2366
-#
 
2367
-# Check to make sure the static flag actually works.
 
2368
-#
 
2369
-echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
2370
-echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
2371
-if test "${lt_prog_compiler_static_works+set}" = set; then
 
2372
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2373
-else
 
2374
-  lt_prog_compiler_static_works=no
 
2375
-   save_LDFLAGS="$LDFLAGS"
 
2376
-   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
2377
-   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
2378
-   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
2379
-     # The linker can only warn and ignore the option if not recognized
 
2380
-     # So say no if there are warnings
 
2381
-     if test -s conftest.err; then
 
2382
-       # Append any errors to the config.log.
 
2383
-       cat conftest.err 1>&5
 
2384
-       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
2385
-       $SED '/^$/d' conftest.err >conftest.er2
 
2386
-       if diff conftest.exp conftest.er2 >/dev/null; then
 
2387
-         lt_prog_compiler_static_works=yes
 
2388
-       fi
 
2389
-     else
 
2390
-       lt_prog_compiler_static_works=yes
 
2391
-     fi
 
2392
-   fi
 
2393
-   $rm conftest*
 
2394
-   LDFLAGS="$save_LDFLAGS"
 
2395
-
 
2396
-fi
 
2397
-echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
2398
-echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
2399
-
 
2400
-if test x"$lt_prog_compiler_static_works" = xyes; then
 
2401
-    :
 
2402
-else
 
2403
-    lt_prog_compiler_static=
 
2404
-fi
 
2405
-
 
2406
-
 
2407
-
 
2408
 
 
2409
 lt_prog_compiler_no_builtin_flag=
 
2410
 
 
2411
@@ -6166,17 +6174,17 @@
 
2412
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2413
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
2414
    -e 's:$: $lt_compiler_flag:'`
 
2415
-   (eval echo "\"\$as_me:6169: $lt_compile\"" >&5)
 
2416
+   (eval echo "\"\$as_me:6177: $lt_compile\"" >&5)
 
2417
    (eval "$lt_compile" 2>conftest.err)
 
2418
    ac_status=$?
 
2419
    cat conftest.err >&5
 
2420
-   echo "$as_me:6173: \$? = $ac_status" >&5
 
2421
+   echo "$as_me:6181: \$? = $ac_status" >&5
 
2422
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
2423
      # The compiler can only warn and ignore the option if not recognized
 
2424
      # So say no if there are warnings other than the usual output.
 
2425
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
2426
-     $SED '/^$/d' conftest.err >conftest.er2
 
2427
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
2428
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2429
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2430
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
2431
        lt_cv_prog_compiler_rtti_exceptions=yes
 
2432
      fi
 
2433
    fi
 
2434
@@ -6237,6 +6245,11 @@
 
2435
       lt_prog_compiler_pic='-fno-common'
 
2436
       ;;
 
2437
 
 
2438
+    interix3*)
 
2439
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
2440
+      # Instead, we relocate shared libraries at runtime.
 
2441
+      ;;
 
2442
+
 
2443
     msdosdjgpp*)
 
2444
       # Just because we use GCC doesn't mean we suddenly get shared libraries
 
2445
       # on systems that don't support them.
 
2446
@@ -6351,11 +6364,6 @@
 
2447
       lt_prog_compiler_static='-non_shared'
 
2448
       ;;
 
2449
 
 
2450
-    sco3.2v5*)
 
2451
-      lt_prog_compiler_pic='-Kpic'
 
2452
-      lt_prog_compiler_static='-dn'
 
2453
-      ;;
 
2454
-
 
2455
     solaris*)
 
2456
       lt_prog_compiler_pic='-KPIC'
 
2457
       lt_prog_compiler_static='-Bstatic'
 
2458
@@ -6373,7 +6381,7 @@
 
2459
       lt_prog_compiler_static='-Bstatic'
 
2460
       ;;
 
2461
 
 
2462
-    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2463
+    sysv4 | sysv4.2uw2* | sysv4.3*)
 
2464
       lt_prog_compiler_wl='-Wl,'
 
2465
       lt_prog_compiler_pic='-KPIC'
 
2466
       lt_prog_compiler_static='-Bstatic'
 
2467
@@ -6386,6 +6394,12 @@
 
2468
       fi
 
2469
       ;;
 
2470
 
 
2471
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
2472
+      lt_prog_compiler_wl='-Wl,'
 
2473
+      lt_prog_compiler_pic='-KPIC'
 
2474
+      lt_prog_compiler_static='-Bstatic'
 
2475
+      ;;
 
2476
+
 
2477
     unicos*)
 
2478
       lt_prog_compiler_wl='-Wl,'
 
2479
       lt_prog_compiler_can_build_shared=no
 
2480
@@ -6428,17 +6442,17 @@
 
2481
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2482
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
2483
    -e 's:$: $lt_compiler_flag:'`
 
2484
-   (eval echo "\"\$as_me:6431: $lt_compile\"" >&5)
 
2485
+   (eval echo "\"\$as_me:6445: $lt_compile\"" >&5)
 
2486
    (eval "$lt_compile" 2>conftest.err)
 
2487
    ac_status=$?
 
2488
    cat conftest.err >&5
 
2489
-   echo "$as_me:6435: \$? = $ac_status" >&5
 
2490
+   echo "$as_me:6449: \$? = $ac_status" >&5
 
2491
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
2492
      # The compiler can only warn and ignore the option if not recognized
 
2493
      # So say no if there are warnings other than the usual output.
 
2494
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
2495
-     $SED '/^$/d' conftest.err >conftest.er2
 
2496
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
2497
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2498
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2499
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
2500
        lt_prog_compiler_pic_works=yes
 
2501
      fi
 
2502
    fi
 
2503
@@ -6469,6 +6483,48 @@
 
2504
     ;;
 
2505
 esac
 
2506
 
 
2507
+#
 
2508
+# Check to make sure the static flag actually works.
 
2509
+#
 
2510
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
2511
+echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
2512
+echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
2513
+if test "${lt_prog_compiler_static_works+set}" = set; then
 
2514
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2515
+else
 
2516
+  lt_prog_compiler_static_works=no
 
2517
+   save_LDFLAGS="$LDFLAGS"
 
2518
+   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
2519
+   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
2520
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
2521
+     # The linker can only warn and ignore the option if not recognized
 
2522
+     # So say no if there are warnings
 
2523
+     if test -s conftest.err; then
 
2524
+       # Append any errors to the config.log.
 
2525
+       cat conftest.err 1>&5
 
2526
+       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2527
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2528
+       if diff conftest.exp conftest.er2 >/dev/null; then
 
2529
+         lt_prog_compiler_static_works=yes
 
2530
+       fi
 
2531
+     else
 
2532
+       lt_prog_compiler_static_works=yes
 
2533
+     fi
 
2534
+   fi
 
2535
+   $rm conftest*
 
2536
+   LDFLAGS="$save_LDFLAGS"
 
2537
+
 
2538
+fi
 
2539
+echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
2540
+echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
2541
+
 
2542
+if test x"$lt_prog_compiler_static_works" = xyes; then
 
2543
+    :
 
2544
+else
 
2545
+    lt_prog_compiler_static=
 
2546
+fi
 
2547
+
 
2548
+
 
2549
 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
2550
 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
2551
 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
2552
@@ -6490,18 +6546,18 @@
 
2553
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2554
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
2555
    -e 's:$: $lt_compiler_flag:'`
 
2556
-   (eval echo "\"\$as_me:6493: $lt_compile\"" >&5)
 
2557
+   (eval echo "\"\$as_me:6549: $lt_compile\"" >&5)
 
2558
    (eval "$lt_compile" 2>out/conftest.err)
 
2559
    ac_status=$?
 
2560
    cat out/conftest.err >&5
 
2561
-   echo "$as_me:6497: \$? = $ac_status" >&5
 
2562
+   echo "$as_me:6553: \$? = $ac_status" >&5
 
2563
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
2564
    then
 
2565
      # The compiler can only warn and ignore the option if not recognized
 
2566
      # So say no if there are warnings
 
2567
-     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
2568
-     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
2569
-     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
2570
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2571
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
2572
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
2573
        lt_cv_prog_compiler_c_o=yes
 
2574
      fi
 
2575
    fi
 
2576
@@ -6601,6 +6657,10 @@
 
2577
       with_gnu_ld=no
 
2578
     fi
 
2579
     ;;
 
2580
+  interix*)
 
2581
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
2582
+    with_gnu_ld=yes
 
2583
+    ;;
 
2584
   openbsd*)
 
2585
     with_gnu_ld=no
 
2586
     ;;
 
2587
@@ -6685,7 +6745,7 @@
 
2588
       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
2589
 
 
2590
       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
2591
-        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
2592
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
2593
        # If the export-symbols file already is a .def file (1st line
 
2594
        # is EXPORTS), use it as is; otherwise, prepend...
 
2595
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
2596
@@ -6694,12 +6754,27 @@
 
2597
          echo EXPORTS > $output_objdir/$soname.def;
 
2598
          cat $export_symbols >> $output_objdir/$soname.def;
 
2599
        fi~
 
2600
-       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
2601
+       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
2602
       else
 
2603
        ld_shlibs=no
 
2604
       fi
 
2605
       ;;
 
2606
 
 
2607
+    interix3*)
 
2608
+      hardcode_direct=no
 
2609
+      hardcode_shlibpath_var=no
 
2610
+      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
2611
+      export_dynamic_flag_spec='${wl}-E'
 
2612
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
2613
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
2614
+      # default) and relocated if they conflict, which is a slow very memory
 
2615
+      # consuming and fragmenting process.  To avoid this, we pick a random,
 
2616
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
2617
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
2618
+      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
2619
+      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
2620
+      ;;
 
2621
+
 
2622
     linux*)
 
2623
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2624
        tmp_addflag=
 
2625
@@ -6726,12 +6801,13 @@
 
2626
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 
2627
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
2628
        fi
 
2629
+       link_all_deplibs=no
 
2630
       else
 
2631
        ld_shlibs=no
 
2632
       fi
 
2633
       ;;
 
2634
 
 
2635
-    netbsd*)
 
2636
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2637
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
2638
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
2639
        wlarc=
 
2640
@@ -6741,7 +6817,7 @@
 
2641
       fi
 
2642
       ;;
 
2643
 
 
2644
-    solaris* | sysv5*)
 
2645
+    solaris*)
 
2646
       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
2647
        ld_shlibs=no
 
2648
        cat <<EOF 1>&2
 
2649
@@ -6762,6 +6838,33 @@
 
2650
       fi
 
2651
       ;;
 
2652
 
 
2653
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
2654
+      case `$LD -v 2>&1` in
 
2655
+        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
2656
+       ld_shlibs=no
 
2657
+       cat <<_LT_EOF 1>&2
 
2658
+
 
2659
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
2660
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
2661
+*** is disabling shared libraries support.  We urge you to upgrade GNU
 
2662
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
2663
+*** your PATH or compiler configuration so that the native linker is
 
2664
+*** used, and then restart.
 
2665
+
 
2666
+_LT_EOF
 
2667
+       ;;
 
2668
+       *)
 
2669
+         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2670
+           hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
2671
+           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
2672
+           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
2673
+         else
 
2674
+           ld_shlibs=no
 
2675
+         fi
 
2676
+       ;;
 
2677
+      esac
 
2678
+      ;;
 
2679
+
 
2680
     sunos4*)
 
2681
       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
2682
       wlarc=
 
2683
@@ -6795,7 +6898,7 @@
 
2684
       # Note: this linker hardcodes the directories in LIBPATH if there
 
2685
       # are no directories specified by -L.
 
2686
       hardcode_minus_L=yes
 
2687
-      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
2688
+      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
2689
        # Neither direct hardcoding nor static linking is supported with a
 
2690
        # broken collect2.
 
2691
        hardcode_direct=unsupported
 
2692
@@ -6829,6 +6932,7 @@
 
2693
            break
 
2694
          fi
 
2695
          done
 
2696
+         ;;
 
2697
        esac
 
2698
 
 
2699
        exp_sym_flag='-bexport'
 
2700
@@ -6866,6 +6970,7 @@
 
2701
          hardcode_libdir_flag_spec='-L$libdir'
 
2702
          hardcode_libdir_separator=
 
2703
          fi
 
2704
+         ;;
 
2705
        esac
 
2706
        shared_flag='-shared'
 
2707
        if test "$aix_use_runtimelinking" = yes; then
 
2708
@@ -6878,11 +6983,11 @@
 
2709
        # chokes on -Wl,-G. The following line is correct:
 
2710
          shared_flag='-G'
 
2711
        else
 
2712
-       if test "$aix_use_runtimelinking" = yes; then
 
2713
+         if test "$aix_use_runtimelinking" = yes; then
 
2714
            shared_flag='${wl}-G'
 
2715
          else
 
2716
            shared_flag='${wl}-bM:SRE'
 
2717
-       fi
 
2718
+         fi
 
2719
        fi
 
2720
       fi
 
2721
 
 
2722
@@ -6918,8 +7023,7 @@
 
2723
   cat conftest.err >&5
 
2724
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2725
   (exit $ac_status); } &&
 
2726
-        { ac_try='test -z "$ac_c_werror_flag"
 
2727
-                        || test ! -s conftest.err'
 
2728
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2729
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2730
   (eval $ac_try) 2>&5
 
2731
   ac_status=$?
 
2732
@@ -6947,12 +7051,12 @@
 
2733
 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
2734
 
 
2735
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
2736
-       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
2737
+       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
2738
        else
 
2739
        if test "$host_cpu" = ia64; then
 
2740
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
2741
          allow_undefined_flag="-z nodefs"
 
2742
-         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
2743
+         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
2744
        else
 
2745
         # Determine the default libpath from the value encoded in an empty executable.
 
2746
         cat >conftest.$ac_ext <<_ACEOF
 
2747
@@ -6979,8 +7083,7 @@
 
2748
   cat conftest.err >&5
 
2749
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2750
   (exit $ac_status); } &&
 
2751
-        { ac_try='test -z "$ac_c_werror_flag"
 
2752
-                        || test ! -s conftest.err'
 
2753
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2754
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2755
   (eval $ac_try) 2>&5
 
2756
   ac_status=$?
 
2757
@@ -7012,13 +7115,11 @@
 
2758
          # -berok will link without error, but may produce a broken library.
 
2759
          no_undefined_flag=' ${wl}-bernotok'
 
2760
          allow_undefined_flag=' ${wl}-berok'
 
2761
-         # -bexpall does not export symbols beginning with underscore (_)
 
2762
-         always_export_symbols=yes
 
2763
          # Exported symbols can be pulled into shared objects from archives
 
2764
-         whole_archive_flag_spec=' '
 
2765
+         whole_archive_flag_spec='$convenience'
 
2766
          archive_cmds_need_lc=yes
 
2767
          # This is similar to how AIX traditionally builds its shared libraries.
 
2768
-         archive_expsym_cmds="\$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'
 
2769
+         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
2770
        fi
 
2771
       fi
 
2772
       ;;
 
2773
@@ -7136,11 +7237,20 @@
 
2774
       ;;
 
2775
 
 
2776
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
2777
-    freebsd* | kfreebsd*-gnu | dragonfly*)
 
2778
+    freebsd* | dragonfly*)
 
2779
+      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
2780
+      hardcode_libdir_flag_spec='-R$libdir'
 
2781
+      hardcode_direct=yes
 
2782
+      hardcode_shlibpath_var=no
 
2783
+      ;;
 
2784
+
 
2785
+    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
2786
+    kfreebsd*-gnu)
 
2787
       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
2788
       hardcode_libdir_flag_spec='-R$libdir'
 
2789
       hardcode_direct=yes
 
2790
       hardcode_shlibpath_var=no
 
2791
+      link_all_deplibs=no
 
2792
       ;;
 
2793
 
 
2794
     hpux9*)
 
2795
@@ -7159,47 +7269,62 @@
 
2796
       export_dynamic_flag_spec='${wl}-E'
 
2797
       ;;
 
2798
 
 
2799
-    hpux10* | hpux11*)
 
2800
+    hpux10*)
 
2801
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
2802
+       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
2803
+      else
 
2804
+       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
2805
+      fi
 
2806
+      if test "$with_gnu_ld" = no; then
 
2807
+       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
2808
+       hardcode_libdir_separator=:
 
2809
+
 
2810
+       hardcode_direct=yes
 
2811
+       export_dynamic_flag_spec='${wl}-E'
 
2812
+
 
2813
+       # hardcode_minus_L: Not really in the search PATH,
 
2814
+       # but as the default location of the library.
 
2815
+       hardcode_minus_L=yes
 
2816
+      fi
 
2817
+      ;;
 
2818
+
 
2819
+    hpux11*)
 
2820
       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
2821
        case $host_cpu in
 
2822
-       hppa*64*|ia64*)
 
2823
+       hppa*64*)
 
2824
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2825
          ;;
 
2826
+       ia64*)
 
2827
+         archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
2828
+         ;;
 
2829
        *)
 
2830
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
2831
          ;;
 
2832
        esac
 
2833
       else
 
2834
        case $host_cpu in
 
2835
-       hppa*64*|ia64*)
 
2836
-         archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
2837
+       hppa*64*)
 
2838
+         archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2839
+         ;;
 
2840
+       ia64*)
 
2841
+         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
2842
          ;;
 
2843
        *)
 
2844
-         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
2845
+         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
2846
          ;;
 
2847
        esac
 
2848
       fi
 
2849
       if test "$with_gnu_ld" = no; then
 
2850
+       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
2851
+       hardcode_libdir_separator=:
 
2852
+
 
2853
        case $host_cpu in
 
2854
-       hppa*64*)
 
2855
-         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
2856
+       hppa*64*|ia64*)
 
2857
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
2858
-         hardcode_libdir_separator=:
 
2859
-         hardcode_direct=no
 
2860
-         hardcode_shlibpath_var=no
 
2861
-         ;;
 
2862
-       ia64*)
 
2863
-         hardcode_libdir_flag_spec='-L$libdir'
 
2864
          hardcode_direct=no
 
2865
          hardcode_shlibpath_var=no
 
2866
-
 
2867
-         # hardcode_minus_L: Not really in the search PATH,
 
2868
-         # but as the default location of the library.
 
2869
-         hardcode_minus_L=yes
 
2870
          ;;
 
2871
        *)
 
2872
-         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
2873
-         hardcode_libdir_separator=:
 
2874
          hardcode_direct=yes
 
2875
          export_dynamic_flag_spec='${wl}-E'
 
2876
 
 
2877
@@ -7223,7 +7348,7 @@
 
2878
       link_all_deplibs=yes
 
2879
       ;;
 
2880
 
 
2881
-    netbsd*)
 
2882
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2883
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
2884
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
2885
       else
 
2886
@@ -7301,14 +7426,6 @@
 
2887
       hardcode_libdir_separator=:
 
2888
       ;;
 
2889
 
 
2890
-    sco3.2v5*)
 
2891
-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
2892
-      hardcode_shlibpath_var=no
 
2893
-      export_dynamic_flag_spec='${wl}-Bexport'
 
2894
-      runpath_var=LD_RUN_PATH
 
2895
-      hardcode_runpath_var=yes
 
2896
-      ;;
 
2897
-
 
2898
     solaris*)
 
2899
       no_undefined_flag=' -z text'
 
2900
       if test "$GCC" = yes; then
 
2901
@@ -7394,36 +7511,45 @@
 
2902
       fi
 
2903
       ;;
 
2904
 
 
2905
-    sysv4.2uw2*)
 
2906
-      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
2907
-      hardcode_direct=yes
 
2908
-      hardcode_minus_L=no
 
2909
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
2910
+      no_undefined_flag='${wl}-z,text'
 
2911
+      archive_cmds_need_lc=no
 
2912
       hardcode_shlibpath_var=no
 
2913
-      hardcode_runpath_var=yes
 
2914
-      runpath_var=LD_RUN_PATH
 
2915
-      ;;
 
2916
+      runpath_var='LD_RUN_PATH'
 
2917
 
 
2918
-   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
2919
-      no_undefined_flag='${wl}-z ${wl}text'
 
2920
       if test "$GCC" = yes; then
 
2921
-       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2922
+       archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2923
+       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2924
       else
 
2925
-       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2926
+       archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2927
+       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2928
       fi
 
2929
-      runpath_var='LD_RUN_PATH'
 
2930
-      hardcode_shlibpath_var=no
 
2931
       ;;
 
2932
 
 
2933
-    sysv5*)
 
2934
-      no_undefined_flag=' -z text'
 
2935
-      # $CC -shared without GNU ld will not create a library from C++
 
2936
-      # object files and a static libstdc++, better avoid it by now
 
2937
-      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
2938
-      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
2939
-               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
2940
-      hardcode_libdir_flag_spec=
 
2941
+    sysv5* | sco3.2v5* | sco5v6*)
 
2942
+      # Note: We can NOT use -z defs as we might desire, because we do not
 
2943
+      # link with -lc, and that would cause any symbols used from libc to
 
2944
+      # always be unresolved, which means just about no library would
 
2945
+      # ever link correctly.  If we're not using GNU ld we use -z text
 
2946
+      # though, which does catch some bad symbols but isn't as heavy-handed
 
2947
+      # as -z defs.
 
2948
+      no_undefined_flag='${wl}-z,text'
 
2949
+      allow_undefined_flag='${wl}-z,nodefs'
 
2950
+      archive_cmds_need_lc=no
 
2951
       hardcode_shlibpath_var=no
 
2952
+      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
2953
+      hardcode_libdir_separator=':'
 
2954
+      link_all_deplibs=yes
 
2955
+      export_dynamic_flag_spec='${wl}-Bexport'
 
2956
       runpath_var='LD_RUN_PATH'
 
2957
+
 
2958
+      if test "$GCC" = yes; then
 
2959
+       archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2960
+       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2961
+      else
 
2962
+       archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2963
+       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
2964
+      fi
 
2965
       ;;
 
2966
 
 
2967
     uts4*)
 
2968
@@ -7442,11 +7568,6 @@
 
2969
 echo "${ECHO_T}$ld_shlibs" >&6
 
2970
 test "$ld_shlibs" = no && can_build_shared=no
 
2971
 
 
2972
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
2973
-if test "$GCC" = yes; then
 
2974
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
2975
-fi
 
2976
-
 
2977
 #
 
2978
 # Do we need to explicitly link libc?
 
2979
 #
 
2980
@@ -7479,6 +7600,7 @@
 
2981
         libobjs=conftest.$ac_objext
 
2982
         deplibs=
 
2983
         wl=$lt_prog_compiler_wl
 
2984
+       pic_flag=$lt_prog_compiler_pic
 
2985
         compiler_flags=-v
 
2986
         linker_flags=-v
 
2987
         verstring=
 
2988
@@ -7760,10 +7882,15 @@
 
2989
     shlibpath_overrides_runpath=yes
 
2990
     hardcode_into_libs=yes
 
2991
     ;;
 
2992
-  *) # from 3.2 on
 
2993
+  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
2994
+  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
2995
     shlibpath_overrides_runpath=no
 
2996
     hardcode_into_libs=yes
 
2997
     ;;
 
2998
+  freebsd*) # from 4.6 on
 
2999
+    shlibpath_overrides_runpath=yes
 
3000
+    hardcode_into_libs=yes
 
3001
+    ;;
 
3002
   esac
 
3003
   ;;
 
3004
 
 
3005
@@ -7823,6 +7950,18 @@
 
3006
   postinstall_cmds='chmod 555 $lib'
 
3007
   ;;
 
3008
 
 
3009
+interix3*)
 
3010
+  version_type=linux
 
3011
+  need_lib_prefix=no
 
3012
+  need_version=no
 
3013
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3014
+  soname_spec='${libname}${release}${shared_ext}$major'
 
3015
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
3016
+  shlibpath_var=LD_LIBRARY_PATH
 
3017
+  shlibpath_overrides_runpath=no
 
3018
+  hardcode_into_libs=yes
 
3019
+  ;;
 
3020
+
 
3021
 irix5* | irix6* | nonstopux*)
 
3022
   case $host_os in
 
3023
     nonstopux*) version_type=nonstopux ;;
 
3024
@@ -7895,7 +8034,7 @@
 
3025
   dynamic_linker='GNU/Linux ld.so'
 
3026
   ;;
 
3027
 
 
3028
-knetbsd*-gnu)
 
3029
+netbsdelf*-gnu)
 
3030
   version_type=linux
 
3031
   need_lib_prefix=no
 
3032
   need_version=no
 
3033
@@ -7904,11 +8043,23 @@
 
3034
   shlibpath_var=LD_LIBRARY_PATH
 
3035
   shlibpath_overrides_runpath=no
 
3036
   hardcode_into_libs=yes
 
3037
-  dynamic_linker='GNU ld.so'
 
3038
+  dynamic_linker='NetBSD ld.elf_so'
 
3039
   ;;
 
3040
 
 
3041
-netbsd*)
 
3042
-  version_type=sunos
 
3043
+knetbsd*-gnu)
 
3044
+  version_type=linux
 
3045
+  need_lib_prefix=no
 
3046
+  need_version=no
 
3047
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3048
+  soname_spec='${libname}${release}${shared_ext}$major'
 
3049
+  shlibpath_var=LD_LIBRARY_PATH
 
3050
+  shlibpath_overrides_runpath=no
 
3051
+  hardcode_into_libs=yes
 
3052
+  dynamic_linker='GNU ld.so'
 
3053
+  ;;
 
3054
+
 
3055
+netbsd*)
 
3056
+  version_type=sunos
 
3057
   need_lib_prefix=no
 
3058
   need_version=no
 
3059
   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3060
@@ -7944,6 +8095,7 @@
 
3061
 
 
3062
 openbsd*)
 
3063
   version_type=sunos
 
3064
+  sys_lib_dlsearch_path_spec="/usr/lib"
 
3065
   need_lib_prefix=no
 
3066
   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
3067
   case $host_os in
 
3068
@@ -7987,13 +8139,6 @@
 
3069
   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3070
   ;;
 
3071
 
 
3072
-sco3.2v5*)
 
3073
-  version_type=osf
 
3074
-  soname_spec='${libname}${release}${shared_ext}$major'
 
3075
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3076
-  shlibpath_var=LD_LIBRARY_PATH
 
3077
-  ;;
 
3078
-
 
3079
 solaris*)
 
3080
   version_type=linux
 
3081
   need_lib_prefix=no
 
3082
@@ -8019,7 +8164,7 @@
 
3083
   need_version=yes
 
3084
   ;;
 
3085
 
 
3086
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3087
+sysv4 | sysv4.3*)
 
3088
   version_type=linux
 
3089
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3090
   soname_spec='${libname}${release}${shared_ext}$major'
 
3091
@@ -8052,6 +8197,29 @@
 
3092
   fi
 
3093
   ;;
 
3094
 
 
3095
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3096
+  version_type=freebsd-elf
 
3097
+  need_lib_prefix=no
 
3098
+  need_version=no
 
3099
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3100
+  soname_spec='${libname}${release}${shared_ext}$major'
 
3101
+  shlibpath_var=LD_LIBRARY_PATH
 
3102
+  hardcode_into_libs=yes
 
3103
+  if test "$with_gnu_ld" = yes; then
 
3104
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
3105
+    shlibpath_overrides_runpath=no
 
3106
+  else
 
3107
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
3108
+    shlibpath_overrides_runpath=yes
 
3109
+    case $host_os in
 
3110
+      sco3.2v5*)
 
3111
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
3112
+       ;;
 
3113
+    esac
 
3114
+  fi
 
3115
+  sys_lib_dlsearch_path_spec='/usr/lib'
 
3116
+  ;;
 
3117
+
 
3118
 uts4*)
 
3119
   version_type=linux
 
3120
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3121
@@ -8067,6 +8235,11 @@
 
3122
 echo "${ECHO_T}$dynamic_linker" >&6
 
3123
 test "$dynamic_linker" = no && can_build_shared=no
 
3124
 
 
3125
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
3126
+if test "$GCC" = yes; then
 
3127
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
3128
+fi
 
3129
+
 
3130
 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
3131
 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
3132
 hardcode_action=
 
3133
@@ -8198,8 +8371,7 @@
 
3134
   cat conftest.err >&5
 
3135
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3136
   (exit $ac_status); } &&
 
3137
-        { ac_try='test -z "$ac_c_werror_flag"
 
3138
-                        || test ! -s conftest.err'
 
3139
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3140
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3141
   (eval $ac_try) 2>&5
 
3142
   ac_status=$?
 
3143
@@ -8302,8 +8474,7 @@
 
3144
   cat conftest.err >&5
 
3145
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3146
   (exit $ac_status); } &&
 
3147
-        { ac_try='test -z "$ac_c_werror_flag"
 
3148
-                        || test ! -s conftest.err'
 
3149
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3150
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3151
   (eval $ac_try) 2>&5
 
3152
   ac_status=$?
 
3153
@@ -8368,8 +8539,7 @@
 
3154
   cat conftest.err >&5
 
3155
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3156
   (exit $ac_status); } &&
 
3157
-        { ac_try='test -z "$ac_c_werror_flag"
 
3158
-                        || test ! -s conftest.err'
 
3159
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3160
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3161
   (eval $ac_try) 2>&5
 
3162
   ac_status=$?
 
3163
@@ -8462,8 +8632,7 @@
 
3164
   cat conftest.err >&5
 
3165
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3166
   (exit $ac_status); } &&
 
3167
-        { ac_try='test -z "$ac_c_werror_flag"
 
3168
-                        || test ! -s conftest.err'
 
3169
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3170
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3171
   (eval $ac_try) 2>&5
 
3172
   ac_status=$?
 
3173
@@ -8528,8 +8697,7 @@
 
3174
   cat conftest.err >&5
 
3175
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3176
   (exit $ac_status); } &&
 
3177
-        { ac_try='test -z "$ac_c_werror_flag"
 
3178
-                        || test ! -s conftest.err'
 
3179
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3180
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3181
   (eval $ac_try) 2>&5
 
3182
   ac_status=$?
 
3183
@@ -8595,8 +8763,7 @@
 
3184
   cat conftest.err >&5
 
3185
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3186
   (exit $ac_status); } &&
 
3187
-        { ac_try='test -z "$ac_c_werror_flag"
 
3188
-                        || test ! -s conftest.err'
 
3189
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3190
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3191
   (eval $ac_try) 2>&5
 
3192
   ac_status=$?
 
3193
@@ -8662,8 +8829,7 @@
 
3194
   cat conftest.err >&5
 
3195
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3196
   (exit $ac_status); } &&
 
3197
-        { ac_try='test -z "$ac_c_werror_flag"
 
3198
-                        || test ! -s conftest.err'
 
3199
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3200
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3201
   (eval $ac_try) 2>&5
 
3202
   ac_status=$?
 
3203
@@ -8722,7 +8888,7 @@
 
3204
     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
3205
 
 
3206
     save_LDFLAGS="$LDFLAGS"
 
3207
-    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
3208
+    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
3209
 
 
3210
     save_LIBS="$LIBS"
 
3211
     LIBS="$lt_cv_dlopen_libs $LIBS"
 
3212
@@ -8738,7 +8904,7 @@
 
3213
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
3214
   lt_status=$lt_dlunknown
 
3215
   cat > conftest.$ac_ext <<EOF
 
3216
-#line 8741 "configure"
 
3217
+#line 8907 "configure"
 
3218
 #include "confdefs.h"
 
3219
 
 
3220
 #if HAVE_DLFCN_H
 
3221
@@ -8795,6 +8961,8 @@
 
3222
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
3223
       /* dlclose (self); */
 
3224
     }
 
3225
+  else
 
3226
+    puts (dlerror ());
 
3227
 
 
3228
     exit (status);
 
3229
 }
 
3230
@@ -8809,7 +8977,7 @@
 
3231
     case x$lt_status in
 
3232
       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
3233
       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
3234
-      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
3235
+      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
3236
     esac
 
3237
   else :
 
3238
     # compilation failed
 
3239
@@ -8824,7 +8992,7 @@
 
3240
 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
3241
 
 
3242
     if test "x$lt_cv_dlopen_self" = xyes; then
 
3243
-      LDFLAGS="$LDFLAGS $link_static_flag"
 
3244
+      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
3245
       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
3246
 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
3247
 if test "${lt_cv_dlopen_self_static+set}" = set; then
 
3248
@@ -8836,7 +9004,7 @@
 
3249
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
3250
   lt_status=$lt_dlunknown
 
3251
   cat > conftest.$ac_ext <<EOF
 
3252
-#line 8839 "configure"
 
3253
+#line 9007 "configure"
 
3254
 #include "confdefs.h"
 
3255
 
 
3256
 #if HAVE_DLFCN_H
 
3257
@@ -8893,6 +9061,8 @@
 
3258
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
3259
       /* dlclose (self); */
 
3260
     }
 
3261
+  else
 
3262
+    puts (dlerror ());
 
3263
 
 
3264
     exit (status);
 
3265
 }
 
3266
@@ -8907,7 +9077,7 @@
 
3267
     case x$lt_status in
 
3268
       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
3269
       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
3270
-      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
3271
+      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
3272
     esac
 
3273
   else :
 
3274
     # compilation failed
 
3275
@@ -8940,7 +9110,7 @@
 
3276
 fi
 
3277
 
 
3278
 
 
3279
-# Report which librarie types wil actually be built
 
3280
+# Report which library types will actually be built
 
3281
 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
3282
 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
3283
 echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
3284
@@ -8990,7 +9160,7 @@
 
3285
   # Now quote all the things that may contain metacharacters while being
 
3286
   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
3287
   # variables and quote the copies for generation of the libtool script.
 
3288
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
3289
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
3290
     SED SHELL STRIP \
 
3291
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
3292
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
3293
@@ -9156,6 +9326,9 @@
 
3294
 # A C compiler.
 
3295
 LTCC=$lt_LTCC
 
3296
 
 
3297
+# LTCC compiler flags.
 
3298
+LTCFLAGS=$lt_LTCFLAGS
 
3299
+
 
3300
 # A language-specific compiler.
 
3301
 CC=$lt_compiler
 
3302
 
 
3303
@@ -9486,6 +9659,9 @@
 
3304
 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
3305
     fi
 
3306
   fi
 
3307
+  if test -z "$LTCFLAGS"; then
 
3308
+    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
3309
+  fi
 
3310
 
 
3311
   # Extract list of available tagged configurations in $ofile.
 
3312
   # Note that this assumes the entire list is on one line.
 
3313
@@ -9538,6 +9714,7 @@
 
3314
 hardcode_libdir_flag_spec_ld_CXX=
 
3315
 hardcode_libdir_separator_CXX=
 
3316
 hardcode_minus_L_CXX=no
 
3317
+hardcode_shlibpath_var_CXX=unsupported
 
3318
 hardcode_automatic_CXX=no
 
3319
 module_cmds_CXX=
 
3320
 module_expsym_cmds_CXX=
 
3321
@@ -9565,13 +9742,16 @@
 
3322
 lt_simple_compile_test_code="int some_variable = 0;\n"
 
3323
 
 
3324
 # Code to be used in simple link tests
 
3325
-lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
3326
+lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
3327
 
 
3328
 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3329
 
 
3330
 # If no C compiler was specified, use CC.
 
3331
 LTCC=${LTCC-"$CC"}
 
3332
 
 
3333
+# If no C compiler flags were specified, use CFLAGS.
 
3334
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3335
+
 
3336
 # Allow CC to be a program name with arguments.
 
3337
 compiler=$CC
 
3338
 
 
3339
@@ -9579,13 +9759,13 @@
 
3340
 # save warnings/boilerplate of simple test code
 
3341
 ac_outfile=conftest.$ac_objext
 
3342
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
3343
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
3344
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
3345
 _lt_compiler_boilerplate=`cat conftest.err`
 
3346
 $rm conftest*
 
3347
 
 
3348
 ac_outfile=conftest.$ac_objext
 
3349
 printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
3350
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
3351
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
3352
 _lt_linker_boilerplate=`cat conftest.err`
 
3353
 $rm conftest*
 
3354
 
 
3355
@@ -9600,12 +9780,12 @@
 
3356
 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3357
   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3358
 else
 
3359
-  unset lt_cv_prog_gnu_ld
 
3360
+  $as_unset lt_cv_prog_gnu_ld
 
3361
 fi
 
3362
 if test -n "${lt_cv_path_LDCXX+set}"; then
 
3363
   lt_cv_path_LD=$lt_cv_path_LDCXX
 
3364
 else
 
3365
-  unset lt_cv_path_LD
 
3366
+  $as_unset lt_cv_path_LD
 
3367
 fi
 
3368
 test -z "${LDCXX+set}" || LD=$LDCXX
 
3369
 CC=${CXX-"c++"}
 
3370
@@ -9816,6 +9996,7 @@
 
3371
            ;;
 
3372
          esac
 
3373
        done
 
3374
+       ;;
 
3375
       esac
 
3376
 
 
3377
       exp_sym_flag='-bexport'
 
3378
@@ -9853,6 +10034,7 @@
 
3379
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
3380
          hardcode_libdir_separator_CXX=
 
3381
        fi
 
3382
+       ;;
 
3383
       esac
 
3384
       shared_flag='-shared'
 
3385
       if test "$aix_use_runtimelinking" = yes; then
 
3386
@@ -9905,8 +10087,7 @@
 
3387
   cat conftest.err >&5
 
3388
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3389
   (exit $ac_status); } &&
 
3390
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
3391
-                        || test ! -s conftest.err'
 
3392
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3393
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3394
   (eval $ac_try) 2>&5
 
3395
   ac_status=$?
 
3396
@@ -9935,12 +10116,12 @@
 
3397
 
 
3398
       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3399
 
 
3400
-      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3401
+      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3402
      else
 
3403
       if test "$host_cpu" = ia64; then
 
3404
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
3405
        allow_undefined_flag_CXX="-z nodefs"
 
3406
-       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
3407
+       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
3408
       else
 
3409
        # Determine the default libpath from the value encoded in an empty executable.
 
3410
        cat >conftest.$ac_ext <<_ACEOF
 
3411
@@ -9967,8 +10148,7 @@
 
3412
   cat conftest.err >&5
 
3413
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3414
   (exit $ac_status); } &&
 
3415
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
3416
-                        || test ! -s conftest.err'
 
3417
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3418
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3419
   (eval $ac_try) 2>&5
 
3420
   ac_status=$?
 
3421
@@ -10000,16 +10180,26 @@
 
3422
        # -berok will link without error, but may produce a broken library.
 
3423
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
3424
        allow_undefined_flag_CXX=' ${wl}-berok'
 
3425
-       # -bexpall does not export symbols beginning with underscore (_)
 
3426
-       always_export_symbols_CXX=yes
 
3427
        # Exported symbols can be pulled into shared objects from archives
 
3428
-       whole_archive_flag_spec_CXX=' '
 
3429
+       whole_archive_flag_spec_CXX='$convenience'
 
3430
        archive_cmds_need_lc_CXX=yes
 
3431
        # This is similar to how AIX traditionally builds its shared libraries.
 
3432
-       archive_expsym_cmds_CXX="\$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'
 
3433
+       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
3434
       fi
 
3435
     fi
 
3436
     ;;
 
3437
+
 
3438
+  beos*)
 
3439
+    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3440
+      allow_undefined_flag_CXX=unsupported
 
3441
+      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3442
+      # support --undefined.  This deserves some investigation.  FIXME
 
3443
+      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3444
+    else
 
3445
+      ld_shlibs_CXX=no
 
3446
+    fi
 
3447
+    ;;
 
3448
+
 
3449
   chorus*)
 
3450
     case $cc_basename in
 
3451
       *)
 
3452
@@ -10019,7 +10209,6 @@
 
3453
     esac
 
3454
     ;;
 
3455
 
 
3456
-
 
3457
   cygwin* | mingw* | pw32*)
 
3458
     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
3459
     # as there is no search path for DLLs.
 
3460
@@ -10029,7 +10218,7 @@
 
3461
     enable_shared_with_static_runtimes_CXX=yes
 
3462
 
 
3463
     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3464
-      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3465
+      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
3466
       # If the export-symbols file already is a .def file (1st line
 
3467
       # is EXPORTS), use it as is; otherwise, prepend...
 
3468
       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3469
@@ -10038,7 +10227,7 @@
 
3470
        echo EXPORTS > $output_objdir/$soname.def;
 
3471
        cat $export_symbols >> $output_objdir/$soname.def;
 
3472
       fi~
 
3473
-      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3474
+      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
3475
     else
 
3476
       ld_shlibs_CXX=no
 
3477
     fi
 
3478
@@ -10175,33 +10364,22 @@
 
3479
     ;;
 
3480
   hpux10*|hpux11*)
 
3481
     if test $with_gnu_ld = no; then
 
3482
+      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
3483
+      hardcode_libdir_separator_CXX=:
 
3484
+
 
3485
       case $host_cpu in
 
3486
-      hppa*64*)
 
3487
-       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
3488
+      hppa*64*|ia64*)
 
3489
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
3490
-       hardcode_libdir_separator_CXX=:
 
3491
-        ;;
 
3492
-      ia64*)
 
3493
-       hardcode_libdir_flag_spec_CXX='-L$libdir'
 
3494
         ;;
 
3495
       *)
 
3496
-       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
3497
-       hardcode_libdir_separator_CXX=:
 
3498
        export_dynamic_flag_spec_CXX='${wl}-E'
 
3499
         ;;
 
3500
       esac
 
3501
     fi
 
3502
     case $host_cpu in
 
3503
-    hppa*64*)
 
3504
-      hardcode_direct_CXX=no
 
3505
-      hardcode_shlibpath_var_CXX=no
 
3506
-      ;;
 
3507
-    ia64*)
 
3508
+    hppa*64*|ia64*)
 
3509
       hardcode_direct_CXX=no
 
3510
       hardcode_shlibpath_var_CXX=no
 
3511
-      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
3512
-                                             # but as the default
 
3513
-                                             # location of the library.
 
3514
       ;;
 
3515
     *)
 
3516
       hardcode_direct_CXX=yes
 
3517
@@ -10218,8 +10396,11 @@
 
3518
        ;;
 
3519
       aCC*)
 
3520
        case $host_cpu in
 
3521
-       hppa*64*|ia64*)
 
3522
-         archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3523
+       hppa*64*)
 
3524
+         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3525
+         ;;
 
3526
+       ia64*)
 
3527
+         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3528
          ;;
 
3529
        *)
 
3530
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3531
@@ -10239,8 +10420,11 @@
 
3532
        if test "$GXX" = yes; then
 
3533
          if test $with_gnu_ld = no; then
 
3534
            case $host_cpu in
 
3535
-           ia64*|hppa*64*)
 
3536
-             archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3537
+           hppa*64*)
 
3538
+             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3539
+             ;;
 
3540
+           ia64*)
 
3541
+             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3542
              ;;
 
3543
            *)
 
3544
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3545
@@ -10254,6 +10438,20 @@
 
3546
        ;;
 
3547
     esac
 
3548
     ;;
 
3549
+  interix3*)
 
3550
+    hardcode_direct_CXX=no
 
3551
+    hardcode_shlibpath_var_CXX=no
 
3552
+    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
3553
+    export_dynamic_flag_spec_CXX='${wl}-E'
 
3554
+    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3555
+    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3556
+    # default) and relocated if they conflict, which is a slow very memory
 
3557
+    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3558
+    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3559
+    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3560
+    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3561
+    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3562
+    ;;
 
3563
   irix5* | irix6*)
 
3564
     case $cc_basename in
 
3565
       CC*)
 
3566
@@ -10382,7 +10580,7 @@
 
3567
        ;;
 
3568
     esac
 
3569
     ;;
 
3570
-  netbsd*)
 
3571
+  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3572
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3573
       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
3574
       wlarc=
 
3575
@@ -10536,19 +10734,6 @@
 
3576
     # FIXME: insert proper C++ library support
 
3577
     ld_shlibs_CXX=no
 
3578
     ;;
 
3579
-  sco*)
 
3580
-    archive_cmds_need_lc_CXX=no
 
3581
-    case $cc_basename in
 
3582
-      CC*)
 
3583
-       # FIXME: insert proper C++ library support
 
3584
-       ld_shlibs_CXX=no
 
3585
-       ;;
 
3586
-      *)
 
3587
-       # FIXME: insert proper C++ library support
 
3588
-       ld_shlibs_CXX=no
 
3589
-       ;;
 
3590
-    esac
 
3591
-    ;;
 
3592
   sunos4*)
 
3593
     case $cc_basename in
 
3594
       CC*)
 
3595
@@ -10641,8 +10826,59 @@
 
3596
        ;;
 
3597
     esac
 
3598
     ;;
 
3599
-  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
3600
+  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
3601
+    no_undefined_flag_CXX='${wl}-z,text'
 
3602
+    archive_cmds_need_lc_CXX=no
 
3603
+    hardcode_shlibpath_var_CXX=no
 
3604
+    runpath_var='LD_RUN_PATH'
 
3605
+
 
3606
+    case $cc_basename in
 
3607
+      CC*)
 
3608
+       archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3609
+       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3610
+       ;;
 
3611
+      *)
 
3612
+       archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3613
+       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3614
+       ;;
 
3615
+    esac
 
3616
+    ;;
 
3617
+  sysv5* | sco3.2v5* | sco5v6*)
 
3618
+    # Note: We can NOT use -z defs as we might desire, because we do not
 
3619
+    # link with -lc, and that would cause any symbols used from libc to
 
3620
+    # always be unresolved, which means just about no library would
 
3621
+    # ever link correctly.  If we're not using GNU ld we use -z text
 
3622
+    # though, which does catch some bad symbols but isn't as heavy-handed
 
3623
+    # as -z defs.
 
3624
+    # For security reasons, it is highly recommended that you always
 
3625
+    # use absolute paths for naming shared libraries, and exclude the
 
3626
+    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3627
+    # requires that you compile everything twice, which is a pain.
 
3628
+    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3629
+    # non-empty value in the environment.  Most likely only useful for
 
3630
+    # creating official distributions of packages.
 
3631
+    # This is a hack until libtool officially supports absolute path
 
3632
+    # names for shared libraries.
 
3633
+    no_undefined_flag_CXX='${wl}-z,text'
 
3634
+    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
3635
     archive_cmds_need_lc_CXX=no
 
3636
+    hardcode_shlibpath_var_CXX=no
 
3637
+    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3638
+    hardcode_libdir_separator_CXX=':'
 
3639
+    link_all_deplibs_CXX=yes
 
3640
+    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
3641
+    runpath_var='LD_RUN_PATH'
 
3642
+
 
3643
+    case $cc_basename in
 
3644
+      CC*)
 
3645
+       archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3646
+       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3647
+       ;;
 
3648
+      *)
 
3649
+       archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3650
+       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3651
+       ;;
 
3652
+    esac
 
3653
     ;;
 
3654
   tandem*)
 
3655
     case $cc_basename in
 
3656
@@ -10777,6 +11013,14 @@
 
3657
 
 
3658
 # PORTME: override above test on systems where it is broken
 
3659
 case $host_os in
 
3660
+interix3*)
 
3661
+  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3662
+  # hack all around it, let's just trust "g++" to DTRT.
 
3663
+  predep_objects_CXX=
 
3664
+  postdep_objects_CXX=
 
3665
+  postdeps_CXX=
 
3666
+  ;;
 
3667
+
 
3668
 solaris*)
 
3669
   case $cc_basename in
 
3670
   CC*)
 
3671
@@ -10786,6 +11030,7 @@
 
3672
     postdeps_CXX='-lCstd -lCrun'
 
3673
     ;;
 
3674
   esac
 
3675
+  ;;
 
3676
 esac
 
3677
 
 
3678
 
 
3679
@@ -10836,6 +11081,10 @@
 
3680
       # DJGPP does not support shared libraries at all
 
3681
       lt_prog_compiler_pic_CXX=
 
3682
       ;;
 
3683
+    interix3*)
 
3684
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
3685
+      # Instead, we relocate shared libraries at runtime.
 
3686
+      ;;
 
3687
     sysv4*MP*)
 
3688
       if test -d /usr/nec; then
 
3689
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
3690
@@ -10905,14 +11154,14 @@
 
3691
        case $cc_basename in
 
3692
          CC*)
 
3693
            lt_prog_compiler_wl_CXX='-Wl,'
 
3694
-           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
3695
+           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
3696
            if test "$host_cpu" != ia64; then
 
3697
              lt_prog_compiler_pic_CXX='+Z'
 
3698
            fi
 
3699
            ;;
 
3700
          aCC*)
 
3701
            lt_prog_compiler_wl_CXX='-Wl,'
 
3702
-           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
3703
+           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
3704
            case $host_cpu in
 
3705
            hppa*64*|ia64*)
 
3706
              # +Z the default
 
3707
@@ -10926,6 +11175,10 @@
 
3708
            ;;
 
3709
        esac
 
3710
        ;;
 
3711
+      interix*)
 
3712
+       # This is c89, which is MS Visual C++ (no shared libs)
 
3713
+       # Anyone wants to do a port?
 
3714
+       ;;
 
3715
       irix5* | irix6* | nonstopux*)
 
3716
        case $cc_basename in
 
3717
          CC*)
 
3718
@@ -10980,7 +11233,7 @@
 
3719
            ;;
 
3720
        esac
 
3721
        ;;
 
3722
-      netbsd*)
 
3723
+      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3724
        ;;
 
3725
       osf3* | osf4* | osf5*)
 
3726
        case $cc_basename in
 
3727
@@ -11005,15 +11258,6 @@
 
3728
        ;;
 
3729
       psos*)
 
3730
        ;;
 
3731
-      sco*)
 
3732
-       case $cc_basename in
 
3733
-         CC*)
 
3734
-           lt_prog_compiler_pic_CXX='-fPIC'
 
3735
-           ;;
 
3736
-         *)
 
3737
-           ;;
 
3738
-       esac
 
3739
-       ;;
 
3740
       solaris*)
 
3741
        case $cc_basename in
 
3742
          CC*)
 
3743
@@ -11055,7 +11299,14 @@
 
3744
            ;;
 
3745
        esac
 
3746
        ;;
 
3747
-      unixware*)
 
3748
+      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
3749
+       case $cc_basename in
 
3750
+         CC*)
 
3751
+           lt_prog_compiler_wl_CXX='-Wl,'
 
3752
+           lt_prog_compiler_pic_CXX='-KPIC'
 
3753
+           lt_prog_compiler_static_CXX='-Bstatic'
 
3754
+           ;;
 
3755
+       esac
 
3756
        ;;
 
3757
       vxworks*)
 
3758
        ;;
 
3759
@@ -11091,17 +11342,17 @@
 
3760
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
3761
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
3762
    -e 's:$: $lt_compiler_flag:'`
 
3763
-   (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
 
3764
+   (eval echo "\"\$as_me:11345: $lt_compile\"" >&5)
 
3765
    (eval "$lt_compile" 2>conftest.err)
 
3766
    ac_status=$?
 
3767
    cat conftest.err >&5
 
3768
-   echo "$as_me:11098: \$? = $ac_status" >&5
 
3769
+   echo "$as_me:11349: \$? = $ac_status" >&5
 
3770
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
3771
      # The compiler can only warn and ignore the option if not recognized
 
3772
      # So say no if there are warnings other than the usual output.
 
3773
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
3774
-     $SED '/^$/d' conftest.err >conftest.er2
 
3775
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
3776
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
3777
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
3778
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
3779
        lt_prog_compiler_pic_works_CXX=yes
 
3780
      fi
 
3781
    fi
 
3782
@@ -11132,6 +11383,48 @@
 
3783
     ;;
 
3784
 esac
 
3785
 
 
3786
+#
 
3787
+# Check to make sure the static flag actually works.
 
3788
+#
 
3789
+wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
3790
+echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
3791
+echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
3792
+if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
3793
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3794
+else
 
3795
+  lt_prog_compiler_static_works_CXX=no
 
3796
+   save_LDFLAGS="$LDFLAGS"
 
3797
+   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
3798
+   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
3799
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
3800
+     # The linker can only warn and ignore the option if not recognized
 
3801
+     # So say no if there are warnings
 
3802
+     if test -s conftest.err; then
 
3803
+       # Append any errors to the config.log.
 
3804
+       cat conftest.err 1>&5
 
3805
+       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
3806
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
3807
+       if diff conftest.exp conftest.er2 >/dev/null; then
 
3808
+         lt_prog_compiler_static_works_CXX=yes
 
3809
+       fi
 
3810
+     else
 
3811
+       lt_prog_compiler_static_works_CXX=yes
 
3812
+     fi
 
3813
+   fi
 
3814
+   $rm conftest*
 
3815
+   LDFLAGS="$save_LDFLAGS"
 
3816
+
 
3817
+fi
 
3818
+echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
3819
+echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
3820
+
 
3821
+if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
3822
+    :
 
3823
+else
 
3824
+    lt_prog_compiler_static_CXX=
 
3825
+fi
 
3826
+
 
3827
+
 
3828
 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
3829
 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
3830
 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
3831
@@ -11153,18 +11446,18 @@
 
3832
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
3833
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
3834
    -e 's:$: $lt_compiler_flag:'`
 
3835
-   (eval echo "\"\$as_me:11156: $lt_compile\"" >&5)
 
3836
+   (eval echo "\"\$as_me:11449: $lt_compile\"" >&5)
 
3837
    (eval "$lt_compile" 2>out/conftest.err)
 
3838
    ac_status=$?
 
3839
    cat out/conftest.err >&5
 
3840
-   echo "$as_me:11160: \$? = $ac_status" >&5
 
3841
+   echo "$as_me:11453: \$? = $ac_status" >&5
 
3842
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
3843
    then
 
3844
      # The compiler can only warn and ignore the option if not recognized
 
3845
      # So say no if there are warnings
 
3846
-     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
3847
-     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
3848
-     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
3849
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
3850
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
3851
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
3852
        lt_cv_prog_compiler_c_o_CXX=yes
 
3853
      fi
 
3854
    fi
 
3855
@@ -11225,6 +11518,12 @@
 
3856
   cygwin* | mingw*)
 
3857
     export_symbols_cmds_CXX='$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'
 
3858
   ;;
 
3859
+  kfreebsd*-gnu)
 
3860
+    link_all_deplibs_CXX=no
 
3861
+  ;;
 
3862
+  linux*)
 
3863
+    link_all_deplibs_CXX=no
 
3864
+  ;;
 
3865
   *)
 
3866
     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
3867
   ;;
 
3868
@@ -11234,11 +11533,6 @@
 
3869
 echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
3870
 test "$ld_shlibs_CXX" = no && can_build_shared=no
 
3871
 
 
3872
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
3873
-if test "$GCC" = yes; then
 
3874
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
3875
-fi
 
3876
-
 
3877
 #
 
3878
 # Do we need to explicitly link libc?
 
3879
 #
 
3880
@@ -11271,6 +11565,7 @@
 
3881
         libobjs=conftest.$ac_objext
 
3882
         deplibs=
 
3883
         wl=$lt_prog_compiler_wl_CXX
 
3884
+       pic_flag=$lt_prog_compiler_pic_CXX
 
3885
         compiler_flags=-v
 
3886
         linker_flags=-v
 
3887
         verstring=
 
3888
@@ -11552,10 +11847,15 @@
 
3889
     shlibpath_overrides_runpath=yes
 
3890
     hardcode_into_libs=yes
 
3891
     ;;
 
3892
-  *) # from 3.2 on
 
3893
+  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
3894
+  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
3895
     shlibpath_overrides_runpath=no
 
3896
     hardcode_into_libs=yes
 
3897
     ;;
 
3898
+  freebsd*) # from 4.6 on
 
3899
+    shlibpath_overrides_runpath=yes
 
3900
+    hardcode_into_libs=yes
 
3901
+    ;;
 
3902
   esac
 
3903
   ;;
 
3904
 
 
3905
@@ -11615,6 +11915,18 @@
 
3906
   postinstall_cmds='chmod 555 $lib'
 
3907
   ;;
 
3908
 
 
3909
+interix3*)
 
3910
+  version_type=linux
 
3911
+  need_lib_prefix=no
 
3912
+  need_version=no
 
3913
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3914
+  soname_spec='${libname}${release}${shared_ext}$major'
 
3915
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
3916
+  shlibpath_var=LD_LIBRARY_PATH
 
3917
+  shlibpath_overrides_runpath=no
 
3918
+  hardcode_into_libs=yes
 
3919
+  ;;
 
3920
+
 
3921
 irix5* | irix6* | nonstopux*)
 
3922
   case $host_os in
 
3923
     nonstopux*) version_type=nonstopux ;;
 
3924
@@ -11687,6 +11999,18 @@
 
3925
   dynamic_linker='GNU/Linux ld.so'
 
3926
   ;;
 
3927
 
 
3928
+netbsdelf*-gnu)
 
3929
+  version_type=linux
 
3930
+  need_lib_prefix=no
 
3931
+  need_version=no
 
3932
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3933
+  soname_spec='${libname}${release}${shared_ext}$major'
 
3934
+  shlibpath_var=LD_LIBRARY_PATH
 
3935
+  shlibpath_overrides_runpath=no
 
3936
+  hardcode_into_libs=yes
 
3937
+  dynamic_linker='NetBSD ld.elf_so'
 
3938
+  ;;
 
3939
+
 
3940
 knetbsd*-gnu)
 
3941
   version_type=linux
 
3942
   need_lib_prefix=no
 
3943
@@ -11736,6 +12060,7 @@
 
3944
 
 
3945
 openbsd*)
 
3946
   version_type=sunos
 
3947
+  sys_lib_dlsearch_path_spec="/usr/lib"
 
3948
   need_lib_prefix=no
 
3949
   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
3950
   case $host_os in
 
3951
@@ -11779,13 +12104,6 @@
 
3952
   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3953
   ;;
 
3954
 
 
3955
-sco3.2v5*)
 
3956
-  version_type=osf
 
3957
-  soname_spec='${libname}${release}${shared_ext}$major'
 
3958
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3959
-  shlibpath_var=LD_LIBRARY_PATH
 
3960
-  ;;
 
3961
-
 
3962
 solaris*)
 
3963
   version_type=linux
 
3964
   need_lib_prefix=no
 
3965
@@ -11811,7 +12129,7 @@
 
3966
   need_version=yes
 
3967
   ;;
 
3968
 
 
3969
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3970
+sysv4 | sysv4.3*)
 
3971
   version_type=linux
 
3972
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3973
   soname_spec='${libname}${release}${shared_ext}$major'
 
3974
@@ -11844,6 +12162,29 @@
 
3975
   fi
 
3976
   ;;
 
3977
 
 
3978
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3979
+  version_type=freebsd-elf
 
3980
+  need_lib_prefix=no
 
3981
+  need_version=no
 
3982
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3983
+  soname_spec='${libname}${release}${shared_ext}$major'
 
3984
+  shlibpath_var=LD_LIBRARY_PATH
 
3985
+  hardcode_into_libs=yes
 
3986
+  if test "$with_gnu_ld" = yes; then
 
3987
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
3988
+    shlibpath_overrides_runpath=no
 
3989
+  else
 
3990
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
3991
+    shlibpath_overrides_runpath=yes
 
3992
+    case $host_os in
 
3993
+      sco3.2v5*)
 
3994
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
3995
+       ;;
 
3996
+    esac
 
3997
+  fi
 
3998
+  sys_lib_dlsearch_path_spec='/usr/lib'
 
3999
+  ;;
 
4000
+
 
4001
 uts4*)
 
4002
   version_type=linux
 
4003
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
4004
@@ -11859,6 +12200,11 @@
 
4005
 echo "${ECHO_T}$dynamic_linker" >&6
 
4006
 test "$dynamic_linker" = no && can_build_shared=no
 
4007
 
 
4008
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
4009
+if test "$GCC" = yes; then
 
4010
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
4011
+fi
 
4012
+
 
4013
 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
4014
 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
4015
 hardcode_action_CXX=
 
4016
@@ -11896,1153 +12242,321 @@
 
4017
   enable_fast_install=needless
 
4018
 fi
 
4019
 
 
4020
-striplib=
 
4021
-old_striplib=
 
4022
-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
4023
-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
4024
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
4025
-  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
4026
-  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
4027
-  echo "$as_me:$LINENO: result: yes" >&5
 
4028
-echo "${ECHO_T}yes" >&6
 
4029
-else
 
4030
-# FIXME - insert some real tests, host_os isn't really good enough
 
4031
-  case $host_os in
 
4032
-   darwin*)
 
4033
-       if test -n "$STRIP" ; then
 
4034
-         striplib="$STRIP -x"
 
4035
-         echo "$as_me:$LINENO: result: yes" >&5
 
4036
-echo "${ECHO_T}yes" >&6
 
4037
-       else
 
4038
-  echo "$as_me:$LINENO: result: no" >&5
 
4039
-echo "${ECHO_T}no" >&6
 
4040
-fi
 
4041
-       ;;
 
4042
-   *)
 
4043
-  echo "$as_me:$LINENO: result: no" >&5
 
4044
-echo "${ECHO_T}no" >&6
 
4045
-    ;;
 
4046
-  esac
 
4047
-fi
 
4048
-
 
4049
-if test "x$enable_dlopen" != xyes; then
 
4050
-  enable_dlopen=unknown
 
4051
-  enable_dlopen_self=unknown
 
4052
-  enable_dlopen_self_static=unknown
 
4053
-else
 
4054
-  lt_cv_dlopen=no
 
4055
-  lt_cv_dlopen_libs=
 
4056
 
 
4057
-  case $host_os in
 
4058
-  beos*)
 
4059
-    lt_cv_dlopen="load_add_on"
 
4060
-    lt_cv_dlopen_libs=
 
4061
-    lt_cv_dlopen_self=yes
 
4062
-    ;;
 
4063
+# The else clause should only fire when bootstrapping the
 
4064
+# libtool distribution, otherwise you forgot to ship ltmain.sh
 
4065
+# with your package, and you will get complaints that there are
 
4066
+# no rules to generate ltmain.sh.
 
4067
+if test -f "$ltmain"; then
 
4068
+  # See if we are running on zsh, and set the options which allow our commands through
 
4069
+  # without removal of \ escapes.
 
4070
+  if test -n "${ZSH_VERSION+set}" ; then
 
4071
+    setopt NO_GLOB_SUBST
 
4072
+  fi
 
4073
+  # Now quote all the things that may contain metacharacters while being
 
4074
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
4075
+  # variables and quote the copies for generation of the libtool script.
 
4076
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
4077
+    SED SHELL STRIP \
 
4078
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4079
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4080
+    deplibs_check_method reload_flag reload_cmds need_locks \
 
4081
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
4082
+    lt_cv_sys_global_symbol_to_c_name_address \
 
4083
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
4084
+    old_postinstall_cmds old_postuninstall_cmds \
 
4085
+    compiler_CXX \
 
4086
+    CC_CXX \
 
4087
+    LD_CXX \
 
4088
+    lt_prog_compiler_wl_CXX \
 
4089
+    lt_prog_compiler_pic_CXX \
 
4090
+    lt_prog_compiler_static_CXX \
 
4091
+    lt_prog_compiler_no_builtin_flag_CXX \
 
4092
+    export_dynamic_flag_spec_CXX \
 
4093
+    thread_safe_flag_spec_CXX \
 
4094
+    whole_archive_flag_spec_CXX \
 
4095
+    enable_shared_with_static_runtimes_CXX \
 
4096
+    old_archive_cmds_CXX \
 
4097
+    old_archive_from_new_cmds_CXX \
 
4098
+    predep_objects_CXX \
 
4099
+    postdep_objects_CXX \
 
4100
+    predeps_CXX \
 
4101
+    postdeps_CXX \
 
4102
+    compiler_lib_search_path_CXX \
 
4103
+    archive_cmds_CXX \
 
4104
+    archive_expsym_cmds_CXX \
 
4105
+    postinstall_cmds_CXX \
 
4106
+    postuninstall_cmds_CXX \
 
4107
+    old_archive_from_expsyms_cmds_CXX \
 
4108
+    allow_undefined_flag_CXX \
 
4109
+    no_undefined_flag_CXX \
 
4110
+    export_symbols_cmds_CXX \
 
4111
+    hardcode_libdir_flag_spec_CXX \
 
4112
+    hardcode_libdir_flag_spec_ld_CXX \
 
4113
+    hardcode_libdir_separator_CXX \
 
4114
+    hardcode_automatic_CXX \
 
4115
+    module_cmds_CXX \
 
4116
+    module_expsym_cmds_CXX \
 
4117
+    lt_cv_prog_compiler_c_o_CXX \
 
4118
+    exclude_expsyms_CXX \
 
4119
+    include_expsyms_CXX; do
 
4120
 
 
4121
-  mingw* | pw32*)
 
4122
-    lt_cv_dlopen="LoadLibrary"
 
4123
-    lt_cv_dlopen_libs=
 
4124
-   ;;
 
4125
+    case $var in
 
4126
+    old_archive_cmds_CXX | \
 
4127
+    old_archive_from_new_cmds_CXX | \
 
4128
+    archive_cmds_CXX | \
 
4129
+    archive_expsym_cmds_CXX | \
 
4130
+    module_cmds_CXX | \
 
4131
+    module_expsym_cmds_CXX | \
 
4132
+    old_archive_from_expsyms_cmds_CXX | \
 
4133
+    export_symbols_cmds_CXX | \
 
4134
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
4135
+    postinstall_cmds | postuninstall_cmds | \
 
4136
+    old_postinstall_cmds | old_postuninstall_cmds | \
 
4137
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
4138
+      # Double-quote double-evaled strings.
 
4139
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
4140
+      ;;
 
4141
+    *)
 
4142
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
4143
+      ;;
 
4144
+    esac
 
4145
+  done
 
4146
 
 
4147
-  cygwin*)
 
4148
-    lt_cv_dlopen="dlopen"
 
4149
-    lt_cv_dlopen_libs=
 
4150
-   ;;
 
4151
+  case $lt_echo in
 
4152
+  *'\$0 --fallback-echo"')
 
4153
+    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
4154
+    ;;
 
4155
+  esac
 
4156
 
 
4157
-  darwin*)
 
4158
-  # if libdl is installed we need to link against it
 
4159
-    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
4160
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
4161
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
4162
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4163
-else
 
4164
-  ac_check_lib_save_LIBS=$LIBS
 
4165
-LIBS="-ldl  $LIBS"
 
4166
-cat >conftest.$ac_ext <<_ACEOF
 
4167
-/* confdefs.h.  */
 
4168
-_ACEOF
 
4169
-cat confdefs.h >>conftest.$ac_ext
 
4170
-cat >>conftest.$ac_ext <<_ACEOF
 
4171
-/* end confdefs.h.  */
 
4172
+cfgfile="$ofile"
 
4173
 
 
4174
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4175
-#ifdef __cplusplus
 
4176
-extern "C"
 
4177
-#endif
 
4178
-/* We use char because int might match the return type of a gcc2
 
4179
-   builtin and then its argument prototype would still apply.  */
 
4180
-char dlopen ();
 
4181
-int
 
4182
-main ()
 
4183
-{
 
4184
-dlopen ();
 
4185
-  ;
 
4186
-  return 0;
 
4187
-}
 
4188
-_ACEOF
 
4189
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4190
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4191
-  (eval $ac_link) 2>conftest.er1
 
4192
-  ac_status=$?
 
4193
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4194
-  rm -f conftest.er1
 
4195
-  cat conftest.err >&5
 
4196
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4197
-  (exit $ac_status); } &&
 
4198
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4199
-                        || test ! -s conftest.err'
 
4200
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4201
-  (eval $ac_try) 2>&5
 
4202
-  ac_status=$?
 
4203
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4204
-  (exit $ac_status); }; } &&
 
4205
-        { ac_try='test -s conftest$ac_exeext'
 
4206
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4207
-  (eval $ac_try) 2>&5
 
4208
-  ac_status=$?
 
4209
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4210
-  (exit $ac_status); }; }; then
 
4211
-  ac_cv_lib_dl_dlopen=yes
 
4212
-else
 
4213
-  echo "$as_me: failed program was:" >&5
 
4214
-sed 's/^/| /' conftest.$ac_ext >&5
 
4215
+  cat <<__EOF__ >> "$cfgfile"
 
4216
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
4217
 
 
4218
-ac_cv_lib_dl_dlopen=no
 
4219
-fi
 
4220
-rm -f conftest.err conftest.$ac_objext \
 
4221
-      conftest$ac_exeext conftest.$ac_ext
 
4222
-LIBS=$ac_check_lib_save_LIBS
 
4223
-fi
 
4224
-echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
4225
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
4226
-if test $ac_cv_lib_dl_dlopen = yes; then
 
4227
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
4228
-else
 
4229
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4230
 
 
4231
-    lt_cv_dlopen="dyld"
 
4232
-    lt_cv_dlopen_libs=
 
4233
-    lt_cv_dlopen_self=yes
 
4234
+# Shell to use when invoking shell scripts.
 
4235
+SHELL=$lt_SHELL
 
4236
 
 
4237
-fi
 
4238
+# Whether or not to build shared libraries.
 
4239
+build_libtool_libs=$enable_shared
 
4240
 
 
4241
-   ;;
 
4242
+# Whether or not to build static libraries.
 
4243
+build_old_libs=$enable_static
 
4244
 
 
4245
-  *)
 
4246
-    echo "$as_me:$LINENO: checking for shl_load" >&5
 
4247
-echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
4248
-if test "${ac_cv_func_shl_load+set}" = set; then
 
4249
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4250
-else
 
4251
-  cat >conftest.$ac_ext <<_ACEOF
 
4252
-/* confdefs.h.  */
 
4253
-_ACEOF
 
4254
-cat confdefs.h >>conftest.$ac_ext
 
4255
-cat >>conftest.$ac_ext <<_ACEOF
 
4256
-/* end confdefs.h.  */
 
4257
-/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
4258
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4259
-#define shl_load innocuous_shl_load
 
4260
+# Whether or not to add -lc for building shared libraries.
 
4261
+build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
4262
 
 
4263
-/* System header to define __stub macros and hopefully few prototypes,
 
4264
-    which can conflict with char shl_load (); below.
 
4265
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4266
-    <limits.h> exists even on freestanding compilers.  */
 
4267
+# Whether or not to disallow shared libs when runtime libs are static
 
4268
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
4269
 
 
4270
-#ifdef __STDC__
 
4271
-# include <limits.h>
 
4272
-#else
 
4273
-# include <assert.h>
 
4274
-#endif
 
4275
+# Whether or not to optimize for fast installation.
 
4276
+fast_install=$enable_fast_install
 
4277
 
 
4278
-#undef shl_load
 
4279
+# The host system.
 
4280
+host_alias=$host_alias
 
4281
+host=$host
 
4282
+host_os=$host_os
 
4283
 
 
4284
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4285
-#ifdef __cplusplus
 
4286
-extern "C"
 
4287
-{
 
4288
-#endif
 
4289
-/* We use char because int might match the return type of a gcc2
 
4290
-   builtin and then its argument prototype would still apply.  */
 
4291
-char shl_load ();
 
4292
-/* The GNU C library defines this for functions which it implements
 
4293
-    to always fail with ENOSYS.  Some functions are actually named
 
4294
-    something starting with __ and the normal name is an alias.  */
 
4295
-#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
4296
-choke me
 
4297
-#else
 
4298
-char (*f) () = shl_load;
 
4299
-#endif
 
4300
-#ifdef __cplusplus
 
4301
-}
 
4302
-#endif
 
4303
+# The build system.
 
4304
+build_alias=$build_alias
 
4305
+build=$build
 
4306
+build_os=$build_os
 
4307
 
 
4308
-int
 
4309
-main ()
 
4310
-{
 
4311
-return f != shl_load;
 
4312
-  ;
 
4313
-  return 0;
 
4314
-}
 
4315
-_ACEOF
 
4316
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4317
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4318
-  (eval $ac_link) 2>conftest.er1
 
4319
-  ac_status=$?
 
4320
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4321
-  rm -f conftest.er1
 
4322
-  cat conftest.err >&5
 
4323
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4324
-  (exit $ac_status); } &&
 
4325
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4326
-                        || test ! -s conftest.err'
 
4327
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4328
-  (eval $ac_try) 2>&5
 
4329
-  ac_status=$?
 
4330
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4331
-  (exit $ac_status); }; } &&
 
4332
-        { ac_try='test -s conftest$ac_exeext'
 
4333
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4334
-  (eval $ac_try) 2>&5
 
4335
-  ac_status=$?
 
4336
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4337
-  (exit $ac_status); }; }; then
 
4338
-  ac_cv_func_shl_load=yes
 
4339
-else
 
4340
-  echo "$as_me: failed program was:" >&5
 
4341
-sed 's/^/| /' conftest.$ac_ext >&5
 
4342
+# An echo program that does not interpret backslashes.
 
4343
+echo=$lt_echo
 
4344
 
 
4345
-ac_cv_func_shl_load=no
 
4346
-fi
 
4347
-rm -f conftest.err conftest.$ac_objext \
 
4348
-      conftest$ac_exeext conftest.$ac_ext
 
4349
-fi
 
4350
-echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
4351
-echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
4352
-if test $ac_cv_func_shl_load = yes; then
 
4353
-  lt_cv_dlopen="shl_load"
 
4354
-else
 
4355
-  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
4356
-echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
4357
-if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
4358
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4359
-else
 
4360
-  ac_check_lib_save_LIBS=$LIBS
 
4361
-LIBS="-ldld  $LIBS"
 
4362
-cat >conftest.$ac_ext <<_ACEOF
 
4363
-/* confdefs.h.  */
 
4364
-_ACEOF
 
4365
-cat confdefs.h >>conftest.$ac_ext
 
4366
-cat >>conftest.$ac_ext <<_ACEOF
 
4367
-/* end confdefs.h.  */
 
4368
+# The archiver.
 
4369
+AR=$lt_AR
 
4370
+AR_FLAGS=$lt_AR_FLAGS
 
4371
 
 
4372
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4373
-#ifdef __cplusplus
 
4374
-extern "C"
 
4375
-#endif
 
4376
-/* We use char because int might match the return type of a gcc2
 
4377
-   builtin and then its argument prototype would still apply.  */
 
4378
-char shl_load ();
 
4379
-int
 
4380
-main ()
 
4381
-{
 
4382
-shl_load ();
 
4383
-  ;
 
4384
-  return 0;
 
4385
-}
 
4386
-_ACEOF
 
4387
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4388
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4389
-  (eval $ac_link) 2>conftest.er1
 
4390
-  ac_status=$?
 
4391
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4392
-  rm -f conftest.er1
 
4393
-  cat conftest.err >&5
 
4394
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4395
-  (exit $ac_status); } &&
 
4396
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4397
-                        || test ! -s conftest.err'
 
4398
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4399
-  (eval $ac_try) 2>&5
 
4400
-  ac_status=$?
 
4401
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4402
-  (exit $ac_status); }; } &&
 
4403
-        { ac_try='test -s conftest$ac_exeext'
 
4404
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4405
-  (eval $ac_try) 2>&5
 
4406
-  ac_status=$?
 
4407
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4408
-  (exit $ac_status); }; }; then
 
4409
-  ac_cv_lib_dld_shl_load=yes
 
4410
-else
 
4411
-  echo "$as_me: failed program was:" >&5
 
4412
-sed 's/^/| /' conftest.$ac_ext >&5
 
4413
+# A C compiler.
 
4414
+LTCC=$lt_LTCC
 
4415
 
 
4416
-ac_cv_lib_dld_shl_load=no
 
4417
-fi
 
4418
-rm -f conftest.err conftest.$ac_objext \
 
4419
-      conftest$ac_exeext conftest.$ac_ext
 
4420
-LIBS=$ac_check_lib_save_LIBS
 
4421
-fi
 
4422
-echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
4423
-echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
4424
-if test $ac_cv_lib_dld_shl_load = yes; then
 
4425
-  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
4426
-else
 
4427
-  echo "$as_me:$LINENO: checking for dlopen" >&5
 
4428
-echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
4429
-if test "${ac_cv_func_dlopen+set}" = set; then
 
4430
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4431
-else
 
4432
-  cat >conftest.$ac_ext <<_ACEOF
 
4433
-/* confdefs.h.  */
 
4434
-_ACEOF
 
4435
-cat confdefs.h >>conftest.$ac_ext
 
4436
-cat >>conftest.$ac_ext <<_ACEOF
 
4437
-/* end confdefs.h.  */
 
4438
-/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
4439
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4440
-#define dlopen innocuous_dlopen
 
4441
+# LTCC compiler flags.
 
4442
+LTCFLAGS=$lt_LTCFLAGS
 
4443
 
 
4444
-/* System header to define __stub macros and hopefully few prototypes,
 
4445
-    which can conflict with char dlopen (); below.
 
4446
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4447
-    <limits.h> exists even on freestanding compilers.  */
 
4448
+# A language-specific compiler.
 
4449
+CC=$lt_compiler_CXX
 
4450
 
 
4451
-#ifdef __STDC__
 
4452
-# include <limits.h>
 
4453
-#else
 
4454
-# include <assert.h>
 
4455
-#endif
 
4456
+# Is the compiler the GNU C compiler?
 
4457
+with_gcc=$GCC_CXX
 
4458
 
 
4459
-#undef dlopen
 
4460
+# An ERE matcher.
 
4461
+EGREP=$lt_EGREP
 
4462
 
 
4463
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4464
-#ifdef __cplusplus
 
4465
-extern "C"
 
4466
-{
 
4467
-#endif
 
4468
-/* We use char because int might match the return type of a gcc2
 
4469
-   builtin and then its argument prototype would still apply.  */
 
4470
-char dlopen ();
 
4471
-/* The GNU C library defines this for functions which it implements
 
4472
-    to always fail with ENOSYS.  Some functions are actually named
 
4473
-    something starting with __ and the normal name is an alias.  */
 
4474
-#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
4475
-choke me
 
4476
-#else
 
4477
-char (*f) () = dlopen;
 
4478
-#endif
 
4479
-#ifdef __cplusplus
 
4480
-}
 
4481
-#endif
 
4482
+# The linker used to build libraries.
 
4483
+LD=$lt_LD_CXX
 
4484
 
 
4485
-int
 
4486
-main ()
 
4487
-{
 
4488
-return f != dlopen;
 
4489
-  ;
 
4490
-  return 0;
 
4491
-}
 
4492
-_ACEOF
 
4493
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4494
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4495
-  (eval $ac_link) 2>conftest.er1
 
4496
-  ac_status=$?
 
4497
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4498
-  rm -f conftest.er1
 
4499
-  cat conftest.err >&5
 
4500
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4501
-  (exit $ac_status); } &&
 
4502
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4503
-                        || test ! -s conftest.err'
 
4504
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4505
-  (eval $ac_try) 2>&5
 
4506
-  ac_status=$?
 
4507
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4508
-  (exit $ac_status); }; } &&
 
4509
-        { ac_try='test -s conftest$ac_exeext'
 
4510
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4511
-  (eval $ac_try) 2>&5
 
4512
-  ac_status=$?
 
4513
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4514
-  (exit $ac_status); }; }; then
 
4515
-  ac_cv_func_dlopen=yes
 
4516
-else
 
4517
-  echo "$as_me: failed program was:" >&5
 
4518
-sed 's/^/| /' conftest.$ac_ext >&5
 
4519
+# Whether we need hard or soft links.
 
4520
+LN_S=$lt_LN_S
 
4521
 
 
4522
-ac_cv_func_dlopen=no
 
4523
-fi
 
4524
-rm -f conftest.err conftest.$ac_objext \
 
4525
-      conftest$ac_exeext conftest.$ac_ext
 
4526
-fi
 
4527
-echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
4528
-echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
4529
-if test $ac_cv_func_dlopen = yes; then
 
4530
-  lt_cv_dlopen="dlopen"
 
4531
-else
 
4532
-  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
4533
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
4534
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
4535
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4536
-else
 
4537
-  ac_check_lib_save_LIBS=$LIBS
 
4538
-LIBS="-ldl  $LIBS"
 
4539
-cat >conftest.$ac_ext <<_ACEOF
 
4540
-/* confdefs.h.  */
 
4541
-_ACEOF
 
4542
-cat confdefs.h >>conftest.$ac_ext
 
4543
-cat >>conftest.$ac_ext <<_ACEOF
 
4544
-/* end confdefs.h.  */
 
4545
+# A BSD-compatible nm program.
 
4546
+NM=$lt_NM
 
4547
 
 
4548
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4549
-#ifdef __cplusplus
 
4550
-extern "C"
 
4551
-#endif
 
4552
-/* We use char because int might match the return type of a gcc2
 
4553
-   builtin and then its argument prototype would still apply.  */
 
4554
-char dlopen ();
 
4555
-int
 
4556
-main ()
 
4557
-{
 
4558
-dlopen ();
 
4559
-  ;
 
4560
-  return 0;
 
4561
-}
 
4562
-_ACEOF
 
4563
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4564
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4565
-  (eval $ac_link) 2>conftest.er1
 
4566
-  ac_status=$?
 
4567
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4568
-  rm -f conftest.er1
 
4569
-  cat conftest.err >&5
 
4570
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4571
-  (exit $ac_status); } &&
 
4572
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4573
-                        || test ! -s conftest.err'
 
4574
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4575
-  (eval $ac_try) 2>&5
 
4576
-  ac_status=$?
 
4577
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4578
-  (exit $ac_status); }; } &&
 
4579
-        { ac_try='test -s conftest$ac_exeext'
 
4580
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4581
-  (eval $ac_try) 2>&5
 
4582
-  ac_status=$?
 
4583
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4584
-  (exit $ac_status); }; }; then
 
4585
-  ac_cv_lib_dl_dlopen=yes
 
4586
-else
 
4587
-  echo "$as_me: failed program was:" >&5
 
4588
-sed 's/^/| /' conftest.$ac_ext >&5
 
4589
+# A symbol stripping program
 
4590
+STRIP=$lt_STRIP
 
4591
 
 
4592
-ac_cv_lib_dl_dlopen=no
 
4593
-fi
 
4594
-rm -f conftest.err conftest.$ac_objext \
 
4595
-      conftest$ac_exeext conftest.$ac_ext
 
4596
-LIBS=$ac_check_lib_save_LIBS
 
4597
-fi
 
4598
-echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
4599
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
4600
-if test $ac_cv_lib_dl_dlopen = yes; then
 
4601
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
4602
-else
 
4603
-  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
4604
-echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
4605
-if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
4606
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4607
-else
 
4608
-  ac_check_lib_save_LIBS=$LIBS
 
4609
-LIBS="-lsvld  $LIBS"
 
4610
-cat >conftest.$ac_ext <<_ACEOF
 
4611
-/* confdefs.h.  */
 
4612
-_ACEOF
 
4613
-cat confdefs.h >>conftest.$ac_ext
 
4614
-cat >>conftest.$ac_ext <<_ACEOF
 
4615
-/* end confdefs.h.  */
 
4616
+# Used to examine libraries when file_magic_cmd begins "file"
 
4617
+MAGIC_CMD=$MAGIC_CMD
 
4618
 
 
4619
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4620
-#ifdef __cplusplus
 
4621
-extern "C"
 
4622
-#endif
 
4623
-/* We use char because int might match the return type of a gcc2
 
4624
-   builtin and then its argument prototype would still apply.  */
 
4625
-char dlopen ();
 
4626
-int
 
4627
-main ()
 
4628
-{
 
4629
-dlopen ();
 
4630
-  ;
 
4631
-  return 0;
 
4632
-}
 
4633
-_ACEOF
 
4634
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4635
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4636
-  (eval $ac_link) 2>conftest.er1
 
4637
-  ac_status=$?
 
4638
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4639
-  rm -f conftest.er1
 
4640
-  cat conftest.err >&5
 
4641
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4642
-  (exit $ac_status); } &&
 
4643
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4644
-                        || test ! -s conftest.err'
 
4645
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4646
-  (eval $ac_try) 2>&5
 
4647
-  ac_status=$?
 
4648
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4649
-  (exit $ac_status); }; } &&
 
4650
-        { ac_try='test -s conftest$ac_exeext'
 
4651
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4652
-  (eval $ac_try) 2>&5
 
4653
-  ac_status=$?
 
4654
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4655
-  (exit $ac_status); }; }; then
 
4656
-  ac_cv_lib_svld_dlopen=yes
 
4657
-else
 
4658
-  echo "$as_me: failed program was:" >&5
 
4659
-sed 's/^/| /' conftest.$ac_ext >&5
 
4660
+# Used on cygwin: DLL creation program.
 
4661
+DLLTOOL="$DLLTOOL"
 
4662
 
 
4663
-ac_cv_lib_svld_dlopen=no
 
4664
-fi
 
4665
-rm -f conftest.err conftest.$ac_objext \
 
4666
-      conftest$ac_exeext conftest.$ac_ext
 
4667
-LIBS=$ac_check_lib_save_LIBS
 
4668
-fi
 
4669
-echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
4670
-echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
4671
-if test $ac_cv_lib_svld_dlopen = yes; then
 
4672
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
4673
-else
 
4674
-  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
4675
-echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
4676
-if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
4677
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4678
-else
 
4679
-  ac_check_lib_save_LIBS=$LIBS
 
4680
-LIBS="-ldld  $LIBS"
 
4681
-cat >conftest.$ac_ext <<_ACEOF
 
4682
-/* confdefs.h.  */
 
4683
-_ACEOF
 
4684
-cat confdefs.h >>conftest.$ac_ext
 
4685
-cat >>conftest.$ac_ext <<_ACEOF
 
4686
-/* end confdefs.h.  */
 
4687
+# Used on cygwin: object dumper.
 
4688
+OBJDUMP="$OBJDUMP"
 
4689
 
 
4690
-/* Override any gcc2 internal prototype to avoid an error.  */
 
4691
-#ifdef __cplusplus
 
4692
-extern "C"
 
4693
-#endif
 
4694
-/* We use char because int might match the return type of a gcc2
 
4695
-   builtin and then its argument prototype would still apply.  */
 
4696
-char dld_link ();
 
4697
-int
 
4698
-main ()
 
4699
-{
 
4700
-dld_link ();
 
4701
-  ;
 
4702
-  return 0;
 
4703
-}
 
4704
-_ACEOF
 
4705
-rm -f conftest.$ac_objext conftest$ac_exeext
 
4706
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4707
-  (eval $ac_link) 2>conftest.er1
 
4708
-  ac_status=$?
 
4709
-  grep -v '^ *+' conftest.er1 >conftest.err
 
4710
-  rm -f conftest.er1
 
4711
-  cat conftest.err >&5
 
4712
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4713
-  (exit $ac_status); } &&
 
4714
-        { ac_try='test -z "$ac_cxx_werror_flag"
 
4715
-                        || test ! -s conftest.err'
 
4716
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4717
-  (eval $ac_try) 2>&5
 
4718
-  ac_status=$?
 
4719
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4720
-  (exit $ac_status); }; } &&
 
4721
-        { ac_try='test -s conftest$ac_exeext'
 
4722
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4723
-  (eval $ac_try) 2>&5
 
4724
-  ac_status=$?
 
4725
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4726
-  (exit $ac_status); }; }; then
 
4727
-  ac_cv_lib_dld_dld_link=yes
 
4728
-else
 
4729
-  echo "$as_me: failed program was:" >&5
 
4730
-sed 's/^/| /' conftest.$ac_ext >&5
 
4731
+# Used on cygwin: assembler.
 
4732
+AS="$AS"
 
4733
 
 
4734
-ac_cv_lib_dld_dld_link=no
 
4735
-fi
 
4736
-rm -f conftest.err conftest.$ac_objext \
 
4737
-      conftest$ac_exeext conftest.$ac_ext
 
4738
-LIBS=$ac_check_lib_save_LIBS
 
4739
-fi
 
4740
-echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
4741
-echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
4742
-if test $ac_cv_lib_dld_dld_link = yes; then
 
4743
-  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
4744
-fi
 
4745
+# The name of the directory that contains temporary libtool files.
 
4746
+objdir=$objdir
 
4747
 
 
4748
+# How to create reloadable object files.
 
4749
+reload_flag=$lt_reload_flag
 
4750
+reload_cmds=$lt_reload_cmds
 
4751
 
 
4752
-fi
 
4753
+# How to pass a linker flag through the compiler.
 
4754
+wl=$lt_lt_prog_compiler_wl_CXX
 
4755
 
 
4756
+# Object file suffix (normally "o").
 
4757
+objext="$ac_objext"
 
4758
 
 
4759
-fi
 
4760
+# Old archive suffix (normally "a").
 
4761
+libext="$libext"
 
4762
 
 
4763
+# Shared library suffix (normally ".so").
 
4764
+shrext_cmds='$shrext_cmds'
 
4765
 
 
4766
-fi
 
4767
+# Executable file suffix (normally "").
 
4768
+exeext="$exeext"
 
4769
 
 
4770
+# Additional compiler flags for building library objects.
 
4771
+pic_flag=$lt_lt_prog_compiler_pic_CXX
 
4772
+pic_mode=$pic_mode
 
4773
 
 
4774
-fi
 
4775
+# What is the maximum length of a command?
 
4776
+max_cmd_len=$lt_cv_sys_max_cmd_len
 
4777
 
 
4778
+# Does compiler simultaneously support -c and -o options?
 
4779
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
4780
 
 
4781
-fi
 
4782
+# Must we lock files when doing compilation?
 
4783
+need_locks=$lt_need_locks
 
4784
 
 
4785
-    ;;
 
4786
-  esac
 
4787
+# Do we need the lib prefix for modules?
 
4788
+need_lib_prefix=$need_lib_prefix
 
4789
 
 
4790
-  if test "x$lt_cv_dlopen" != xno; then
 
4791
-    enable_dlopen=yes
 
4792
-  else
 
4793
-    enable_dlopen=no
 
4794
-  fi
 
4795
+# Do we need a version for libraries?
 
4796
+need_version=$need_version
 
4797
 
 
4798
-  case $lt_cv_dlopen in
 
4799
-  dlopen)
 
4800
-    save_CPPFLAGS="$CPPFLAGS"
 
4801
-    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
4802
+# Whether dlopen is supported.
 
4803
+dlopen_support=$enable_dlopen
 
4804
 
 
4805
-    save_LDFLAGS="$LDFLAGS"
 
4806
-    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
4807
+# Whether dlopen of programs is supported.
 
4808
+dlopen_self=$enable_dlopen_self
 
4809
 
 
4810
-    save_LIBS="$LIBS"
 
4811
-    LIBS="$lt_cv_dlopen_libs $LIBS"
 
4812
+# Whether dlopen of statically linked programs is supported.
 
4813
+dlopen_self_static=$enable_dlopen_self_static
 
4814
 
 
4815
-    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
4816
-echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
4817
-if test "${lt_cv_dlopen_self+set}" = set; then
 
4818
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4819
-else
 
4820
-         if test "$cross_compiling" = yes; then :
 
4821
-  lt_cv_dlopen_self=cross
 
4822
-else
 
4823
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
4824
-  lt_status=$lt_dlunknown
 
4825
-  cat > conftest.$ac_ext <<EOF
 
4826
-#line 12533 "configure"
 
4827
-#include "confdefs.h"
 
4828
+# Compiler flag to prevent dynamic linking.
 
4829
+link_static_flag=$lt_lt_prog_compiler_static_CXX
 
4830
 
 
4831
-#if HAVE_DLFCN_H
 
4832
-#include <dlfcn.h>
 
4833
-#endif
 
4834
+# Compiler flag to turn off builtin functions.
 
4835
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
4836
 
 
4837
-#include <stdio.h>
 
4838
+# Compiler flag to allow reflexive dlopens.
 
4839
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
4840
 
 
4841
-#ifdef RTLD_GLOBAL
 
4842
-#  define LT_DLGLOBAL          RTLD_GLOBAL
 
4843
-#else
 
4844
-#  ifdef DL_GLOBAL
 
4845
-#    define LT_DLGLOBAL                DL_GLOBAL
 
4846
-#  else
 
4847
-#    define LT_DLGLOBAL                0
 
4848
-#  endif
 
4849
-#endif
 
4850
+# Compiler flag to generate shared objects directly from archives.
 
4851
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
4852
 
 
4853
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
4854
-   find out it does not work in some platform. */
 
4855
-#ifndef LT_DLLAZY_OR_NOW
 
4856
-#  ifdef RTLD_LAZY
 
4857
-#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
 
4858
-#  else
 
4859
-#    ifdef DL_LAZY
 
4860
-#      define LT_DLLAZY_OR_NOW         DL_LAZY
 
4861
-#    else
 
4862
-#      ifdef RTLD_NOW
 
4863
-#        define LT_DLLAZY_OR_NOW       RTLD_NOW
 
4864
-#      else
 
4865
-#        ifdef DL_NOW
 
4866
-#          define LT_DLLAZY_OR_NOW     DL_NOW
 
4867
-#        else
 
4868
-#          define LT_DLLAZY_OR_NOW     0
 
4869
-#        endif
 
4870
-#      endif
 
4871
-#    endif
 
4872
-#  endif
 
4873
-#endif
 
4874
+# Compiler flag to generate thread-safe objects.
 
4875
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
4876
 
 
4877
-#ifdef __cplusplus
 
4878
-extern "C" void exit (int);
 
4879
-#endif
 
4880
+# Library versioning type.
 
4881
+version_type=$version_type
 
4882
 
 
4883
-void fnord() { int i=42;}
 
4884
-int main ()
 
4885
-{
 
4886
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
4887
-  int status = $lt_dlunknown;
 
4888
+# Format of library name prefix.
 
4889
+libname_spec=$lt_libname_spec
 
4890
 
 
4891
-  if (self)
 
4892
-    {
 
4893
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
4894
-      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
4895
-      /* dlclose (self); */
 
4896
-    }
 
4897
-
 
4898
-    exit (status);
 
4899
-}
 
4900
-EOF
 
4901
-  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4902
-  (eval $ac_link) 2>&5
 
4903
-  ac_status=$?
 
4904
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4905
-  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
4906
-    (./conftest; exit; ) >&5 2>/dev/null
 
4907
-    lt_status=$?
 
4908
-    case x$lt_status in
 
4909
-      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
4910
-      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
4911
-      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
4912
-    esac
 
4913
-  else :
 
4914
-    # compilation failed
 
4915
-    lt_cv_dlopen_self=no
 
4916
-  fi
 
4917
-fi
 
4918
-rm -fr conftest*
 
4919
+# List of archive names.  First name is the real one, the rest are links.
 
4920
+# The last name is the one that the linker finds with -lNAME.
 
4921
+library_names_spec=$lt_library_names_spec
 
4922
 
 
4923
+# The coded name of the library, if different from the real name.
 
4924
+soname_spec=$lt_soname_spec
 
4925
 
 
4926
-fi
 
4927
-echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
4928
-echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
4929
+# Commands used to build and install an old-style archive.
 
4930
+RANLIB=$lt_RANLIB
 
4931
+old_archive_cmds=$lt_old_archive_cmds_CXX
 
4932
+old_postinstall_cmds=$lt_old_postinstall_cmds
 
4933
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
4934
 
 
4935
-    if test "x$lt_cv_dlopen_self" = xyes; then
 
4936
-      LDFLAGS="$LDFLAGS $link_static_flag"
 
4937
-      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
4938
-echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
4939
-if test "${lt_cv_dlopen_self_static+set}" = set; then
 
4940
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4941
-else
 
4942
-         if test "$cross_compiling" = yes; then :
 
4943
-  lt_cv_dlopen_self_static=cross
 
4944
-else
 
4945
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
4946
-  lt_status=$lt_dlunknown
 
4947
-  cat > conftest.$ac_ext <<EOF
 
4948
-#line 12631 "configure"
 
4949
-#include "confdefs.h"
 
4950
+# Create an old-style archive from a shared archive.
 
4951
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
4952
 
 
4953
-#if HAVE_DLFCN_H
 
4954
-#include <dlfcn.h>
 
4955
-#endif
 
4956
+# Create a temporary old-style archive to link instead of a shared archive.
 
4957
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
4958
 
 
4959
-#include <stdio.h>
 
4960
+# Commands used to build and install a shared archive.
 
4961
+archive_cmds=$lt_archive_cmds_CXX
 
4962
+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
4963
+postinstall_cmds=$lt_postinstall_cmds
 
4964
+postuninstall_cmds=$lt_postuninstall_cmds
 
4965
 
 
4966
-#ifdef RTLD_GLOBAL
 
4967
-#  define LT_DLGLOBAL          RTLD_GLOBAL
 
4968
-#else
 
4969
-#  ifdef DL_GLOBAL
 
4970
-#    define LT_DLGLOBAL                DL_GLOBAL
 
4971
-#  else
 
4972
-#    define LT_DLGLOBAL                0
 
4973
-#  endif
 
4974
-#endif
 
4975
+# Commands used to build a loadable module (assumed same as above if empty)
 
4976
+module_cmds=$lt_module_cmds_CXX
 
4977
+module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
4978
 
 
4979
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
4980
-   find out it does not work in some platform. */
 
4981
-#ifndef LT_DLLAZY_OR_NOW
 
4982
-#  ifdef RTLD_LAZY
 
4983
-#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
 
4984
-#  else
 
4985
-#    ifdef DL_LAZY
 
4986
-#      define LT_DLLAZY_OR_NOW         DL_LAZY
 
4987
-#    else
 
4988
-#      ifdef RTLD_NOW
 
4989
-#        define LT_DLLAZY_OR_NOW       RTLD_NOW
 
4990
-#      else
 
4991
-#        ifdef DL_NOW
 
4992
-#          define LT_DLLAZY_OR_NOW     DL_NOW
 
4993
-#        else
 
4994
-#          define LT_DLLAZY_OR_NOW     0
 
4995
-#        endif
 
4996
-#      endif
 
4997
-#    endif
 
4998
-#  endif
 
4999
-#endif
 
5000
+# Commands to strip libraries.
 
5001
+old_striplib=$lt_old_striplib
 
5002
+striplib=$lt_striplib
 
5003
 
 
5004
-#ifdef __cplusplus
 
5005
-extern "C" void exit (int);
 
5006
-#endif
 
5007
+# Dependencies to place before the objects being linked to create a
 
5008
+# shared library.
 
5009
+predep_objects=$lt_predep_objects_CXX
 
5010
 
 
5011
-void fnord() { int i=42;}
 
5012
-int main ()
 
5013
-{
 
5014
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
5015
-  int status = $lt_dlunknown;
 
5016
+# Dependencies to place after the objects being linked to create a
 
5017
+# shared library.
 
5018
+postdep_objects=$lt_postdep_objects_CXX
 
5019
 
 
5020
-  if (self)
 
5021
-    {
 
5022
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
5023
-      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
5024
-      /* dlclose (self); */
 
5025
-    }
 
5026
+# Dependencies to place before the objects being linked to create a
 
5027
+# shared library.
 
5028
+predeps=$lt_predeps_CXX
 
5029
 
 
5030
-    exit (status);
 
5031
-}
 
5032
-EOF
 
5033
-  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5034
-  (eval $ac_link) 2>&5
 
5035
-  ac_status=$?
 
5036
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5037
-  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
5038
-    (./conftest; exit; ) >&5 2>/dev/null
 
5039
-    lt_status=$?
 
5040
-    case x$lt_status in
 
5041
-      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
5042
-      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
5043
-      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
5044
-    esac
 
5045
-  else :
 
5046
-    # compilation failed
 
5047
-    lt_cv_dlopen_self_static=no
 
5048
-  fi
 
5049
-fi
 
5050
-rm -fr conftest*
 
5051
+# Dependencies to place after the objects being linked to create a
 
5052
+# shared library.
 
5053
+postdeps=$lt_postdeps_CXX
 
5054
 
 
5055
+# The library search path used internally by the compiler when linking
 
5056
+# a shared library.
 
5057
+compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
5058
 
 
5059
-fi
 
5060
-echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
5061
-echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
5062
-    fi
 
5063
+# Method to check whether dependent libraries are shared objects.
 
5064
+deplibs_check_method=$lt_deplibs_check_method
 
5065
 
 
5066
-    CPPFLAGS="$save_CPPFLAGS"
 
5067
-    LDFLAGS="$save_LDFLAGS"
 
5068
-    LIBS="$save_LIBS"
 
5069
-    ;;
 
5070
-  esac
 
5071
+# Command to use when deplibs_check_method == file_magic.
 
5072
+file_magic_cmd=$lt_file_magic_cmd
 
5073
 
 
5074
-  case $lt_cv_dlopen_self in
 
5075
-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
5076
-  *) enable_dlopen_self=unknown ;;
 
5077
-  esac
 
5078
+# Flag that allows shared libraries with undefined symbols to be built.
 
5079
+allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
5080
 
 
5081
-  case $lt_cv_dlopen_self_static in
 
5082
-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
5083
-  *) enable_dlopen_self_static=unknown ;;
 
5084
-  esac
 
5085
-fi
 
5086
+# Flag that forces no undefined symbols.
 
5087
+no_undefined_flag=$lt_no_undefined_flag_CXX
 
5088
 
 
5089
+# Commands used to finish a libtool library installation in a directory.
 
5090
+finish_cmds=$lt_finish_cmds
 
5091
 
 
5092
-# The else clause should only fire when bootstrapping the
 
5093
-# libtool distribution, otherwise you forgot to ship ltmain.sh
 
5094
-# with your package, and you will get complaints that there are
 
5095
-# no rules to generate ltmain.sh.
 
5096
-if test -f "$ltmain"; then
 
5097
-  # See if we are running on zsh, and set the options which allow our commands through
 
5098
-  # without removal of \ escapes.
 
5099
-  if test -n "${ZSH_VERSION+set}" ; then
 
5100
-    setopt NO_GLOB_SUBST
 
5101
-  fi
 
5102
-  # Now quote all the things that may contain metacharacters while being
 
5103
-  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
5104
-  # variables and quote the copies for generation of the libtool script.
 
5105
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
5106
-    SED SHELL STRIP \
 
5107
-    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
5108
-    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
5109
-    deplibs_check_method reload_flag reload_cmds need_locks \
 
5110
-    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
5111
-    lt_cv_sys_global_symbol_to_c_name_address \
 
5112
-    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
5113
-    old_postinstall_cmds old_postuninstall_cmds \
 
5114
-    compiler_CXX \
 
5115
-    CC_CXX \
 
5116
-    LD_CXX \
 
5117
-    lt_prog_compiler_wl_CXX \
 
5118
-    lt_prog_compiler_pic_CXX \
 
5119
-    lt_prog_compiler_static_CXX \
 
5120
-    lt_prog_compiler_no_builtin_flag_CXX \
 
5121
-    export_dynamic_flag_spec_CXX \
 
5122
-    thread_safe_flag_spec_CXX \
 
5123
-    whole_archive_flag_spec_CXX \
 
5124
-    enable_shared_with_static_runtimes_CXX \
 
5125
-    old_archive_cmds_CXX \
 
5126
-    old_archive_from_new_cmds_CXX \
 
5127
-    predep_objects_CXX \
 
5128
-    postdep_objects_CXX \
 
5129
-    predeps_CXX \
 
5130
-    postdeps_CXX \
 
5131
-    compiler_lib_search_path_CXX \
 
5132
-    archive_cmds_CXX \
 
5133
-    archive_expsym_cmds_CXX \
 
5134
-    postinstall_cmds_CXX \
 
5135
-    postuninstall_cmds_CXX \
 
5136
-    old_archive_from_expsyms_cmds_CXX \
 
5137
-    allow_undefined_flag_CXX \
 
5138
-    no_undefined_flag_CXX \
 
5139
-    export_symbols_cmds_CXX \
 
5140
-    hardcode_libdir_flag_spec_CXX \
 
5141
-    hardcode_libdir_flag_spec_ld_CXX \
 
5142
-    hardcode_libdir_separator_CXX \
 
5143
-    hardcode_automatic_CXX \
 
5144
-    module_cmds_CXX \
 
5145
-    module_expsym_cmds_CXX \
 
5146
-    lt_cv_prog_compiler_c_o_CXX \
 
5147
-    exclude_expsyms_CXX \
 
5148
-    include_expsyms_CXX; do
 
5149
+# Same as above, but a single script fragment to be evaled but not shown.
 
5150
+finish_eval=$lt_finish_eval
 
5151
 
 
5152
-    case $var in
 
5153
-    old_archive_cmds_CXX | \
 
5154
-    old_archive_from_new_cmds_CXX | \
 
5155
-    archive_cmds_CXX | \
 
5156
-    archive_expsym_cmds_CXX | \
 
5157
-    module_cmds_CXX | \
 
5158
-    module_expsym_cmds_CXX | \
 
5159
-    old_archive_from_expsyms_cmds_CXX | \
 
5160
-    export_symbols_cmds_CXX | \
 
5161
-    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
5162
-    postinstall_cmds | postuninstall_cmds | \
 
5163
-    old_postinstall_cmds | old_postuninstall_cmds | \
 
5164
-    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
5165
-      # Double-quote double-evaled strings.
 
5166
-      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
5167
-      ;;
 
5168
-    *)
 
5169
-      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
5170
-      ;;
 
5171
-    esac
 
5172
-  done
 
5173
+# Take the output of nm and produce a listing of raw symbols and C names.
 
5174
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5175
 
 
5176
-  case $lt_echo in
 
5177
-  *'\$0 --fallback-echo"')
 
5178
-    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
5179
-    ;;
 
5180
-  esac
 
5181
-
 
5182
-cfgfile="$ofile"
 
5183
-
 
5184
-  cat <<__EOF__ >> "$cfgfile"
 
5185
-# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
5186
-
 
5187
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5188
-
 
5189
-# Shell to use when invoking shell scripts.
 
5190
-SHELL=$lt_SHELL
 
5191
-
 
5192
-# Whether or not to build shared libraries.
 
5193
-build_libtool_libs=$enable_shared
 
5194
-
 
5195
-# Whether or not to build static libraries.
 
5196
-build_old_libs=$enable_static
 
5197
-
 
5198
-# Whether or not to add -lc for building shared libraries.
 
5199
-build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
5200
-
 
5201
-# Whether or not to disallow shared libs when runtime libs are static
 
5202
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
5203
-
 
5204
-# Whether or not to optimize for fast installation.
 
5205
-fast_install=$enable_fast_install
 
5206
-
 
5207
-# The host system.
 
5208
-host_alias=$host_alias
 
5209
-host=$host
 
5210
-host_os=$host_os
 
5211
-
 
5212
-# The build system.
 
5213
-build_alias=$build_alias
 
5214
-build=$build
 
5215
-build_os=$build_os
 
5216
-
 
5217
-# An echo program that does not interpret backslashes.
 
5218
-echo=$lt_echo
 
5219
-
 
5220
-# The archiver.
 
5221
-AR=$lt_AR
 
5222
-AR_FLAGS=$lt_AR_FLAGS
 
5223
-
 
5224
-# A C compiler.
 
5225
-LTCC=$lt_LTCC
 
5226
-
 
5227
-# A language-specific compiler.
 
5228
-CC=$lt_compiler_CXX
 
5229
-
 
5230
-# Is the compiler the GNU C compiler?
 
5231
-with_gcc=$GCC_CXX
 
5232
-
 
5233
-# An ERE matcher.
 
5234
-EGREP=$lt_EGREP
 
5235
-
 
5236
-# The linker used to build libraries.
 
5237
-LD=$lt_LD_CXX
 
5238
-
 
5239
-# Whether we need hard or soft links.
 
5240
-LN_S=$lt_LN_S
 
5241
-
 
5242
-# A BSD-compatible nm program.
 
5243
-NM=$lt_NM
 
5244
-
 
5245
-# A symbol stripping program
 
5246
-STRIP=$lt_STRIP
 
5247
-
 
5248
-# Used to examine libraries when file_magic_cmd begins "file"
 
5249
-MAGIC_CMD=$MAGIC_CMD
 
5250
-
 
5251
-# Used on cygwin: DLL creation program.
 
5252
-DLLTOOL="$DLLTOOL"
 
5253
-
 
5254
-# Used on cygwin: object dumper.
 
5255
-OBJDUMP="$OBJDUMP"
 
5256
-
 
5257
-# Used on cygwin: assembler.
 
5258
-AS="$AS"
 
5259
-
 
5260
-# The name of the directory that contains temporary libtool files.
 
5261
-objdir=$objdir
 
5262
-
 
5263
-# How to create reloadable object files.
 
5264
-reload_flag=$lt_reload_flag
 
5265
-reload_cmds=$lt_reload_cmds
 
5266
-
 
5267
-# How to pass a linker flag through the compiler.
 
5268
-wl=$lt_lt_prog_compiler_wl_CXX
 
5269
-
 
5270
-# Object file suffix (normally "o").
 
5271
-objext="$ac_objext"
 
5272
-
 
5273
-# Old archive suffix (normally "a").
 
5274
-libext="$libext"
 
5275
-
 
5276
-# Shared library suffix (normally ".so").
 
5277
-shrext_cmds='$shrext_cmds'
 
5278
-
 
5279
-# Executable file suffix (normally "").
 
5280
-exeext="$exeext"
 
5281
-
 
5282
-# Additional compiler flags for building library objects.
 
5283
-pic_flag=$lt_lt_prog_compiler_pic_CXX
 
5284
-pic_mode=$pic_mode
 
5285
-
 
5286
-# What is the maximum length of a command?
 
5287
-max_cmd_len=$lt_cv_sys_max_cmd_len
 
5288
-
 
5289
-# Does compiler simultaneously support -c and -o options?
 
5290
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
5291
-
 
5292
-# Must we lock files when doing compilation?
 
5293
-need_locks=$lt_need_locks
 
5294
-
 
5295
-# Do we need the lib prefix for modules?
 
5296
-need_lib_prefix=$need_lib_prefix
 
5297
-
 
5298
-# Do we need a version for libraries?
 
5299
-need_version=$need_version
 
5300
-
 
5301
-# Whether dlopen is supported.
 
5302
-dlopen_support=$enable_dlopen
 
5303
-
 
5304
-# Whether dlopen of programs is supported.
 
5305
-dlopen_self=$enable_dlopen_self
 
5306
-
 
5307
-# Whether dlopen of statically linked programs is supported.
 
5308
-dlopen_self_static=$enable_dlopen_self_static
 
5309
-
 
5310
-# Compiler flag to prevent dynamic linking.
 
5311
-link_static_flag=$lt_lt_prog_compiler_static_CXX
 
5312
-
 
5313
-# Compiler flag to turn off builtin functions.
 
5314
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
5315
-
 
5316
-# Compiler flag to allow reflexive dlopens.
 
5317
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
5318
-
 
5319
-# Compiler flag to generate shared objects directly from archives.
 
5320
-whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
5321
-
 
5322
-# Compiler flag to generate thread-safe objects.
 
5323
-thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
5324
-
 
5325
-# Library versioning type.
 
5326
-version_type=$version_type
 
5327
-
 
5328
-# Format of library name prefix.
 
5329
-libname_spec=$lt_libname_spec
 
5330
-
 
5331
-# List of archive names.  First name is the real one, the rest are links.
 
5332
-# The last name is the one that the linker finds with -lNAME.
 
5333
-library_names_spec=$lt_library_names_spec
 
5334
-
 
5335
-# The coded name of the library, if different from the real name.
 
5336
-soname_spec=$lt_soname_spec
 
5337
-
 
5338
-# Commands used to build and install an old-style archive.
 
5339
-RANLIB=$lt_RANLIB
 
5340
-old_archive_cmds=$lt_old_archive_cmds_CXX
 
5341
-old_postinstall_cmds=$lt_old_postinstall_cmds
 
5342
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5343
-
 
5344
-# Create an old-style archive from a shared archive.
 
5345
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
5346
-
 
5347
-# Create a temporary old-style archive to link instead of a shared archive.
 
5348
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
5349
-
 
5350
-# Commands used to build and install a shared archive.
 
5351
-archive_cmds=$lt_archive_cmds_CXX
 
5352
-archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
5353
-postinstall_cmds=$lt_postinstall_cmds
 
5354
-postuninstall_cmds=$lt_postuninstall_cmds
 
5355
-
 
5356
-# Commands used to build a loadable module (assumed same as above if empty)
 
5357
-module_cmds=$lt_module_cmds_CXX
 
5358
-module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
5359
-
 
5360
-# Commands to strip libraries.
 
5361
-old_striplib=$lt_old_striplib
 
5362
-striplib=$lt_striplib
 
5363
-
 
5364
-# Dependencies to place before the objects being linked to create a
 
5365
-# shared library.
 
5366
-predep_objects=$lt_predep_objects_CXX
 
5367
-
 
5368
-# Dependencies to place after the objects being linked to create a
 
5369
-# shared library.
 
5370
-postdep_objects=$lt_postdep_objects_CXX
 
5371
-
 
5372
-# Dependencies to place before the objects being linked to create a
 
5373
-# shared library.
 
5374
-predeps=$lt_predeps_CXX
 
5375
-
 
5376
-# Dependencies to place after the objects being linked to create a
 
5377
-# shared library.
 
5378
-postdeps=$lt_postdeps_CXX
 
5379
-
 
5380
-# The library search path used internally by the compiler when linking
 
5381
-# a shared library.
 
5382
-compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
5383
-
 
5384
-# Method to check whether dependent libraries are shared objects.
 
5385
-deplibs_check_method=$lt_deplibs_check_method
 
5386
-
 
5387
-# Command to use when deplibs_check_method == file_magic.
 
5388
-file_magic_cmd=$lt_file_magic_cmd
 
5389
-
 
5390
-# Flag that allows shared libraries with undefined symbols to be built.
 
5391
-allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
5392
-
 
5393
-# Flag that forces no undefined symbols.
 
5394
-no_undefined_flag=$lt_no_undefined_flag_CXX
 
5395
-
 
5396
-# Commands used to finish a libtool library installation in a directory.
 
5397
-finish_cmds=$lt_finish_cmds
 
5398
-
 
5399
-# Same as above, but a single script fragment to be evaled but not shown.
 
5400
-finish_eval=$lt_finish_eval
 
5401
-
 
5402
-# Take the output of nm and produce a listing of raw symbols and C names.
 
5403
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5404
-
 
5405
-# Transform the output of nm in a proper C declaration
 
5406
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5407
+# Transform the output of nm in a proper C declaration
 
5408
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5409
 
 
5410
 # Transform the output of nm in a C name address pair
 
5411
 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5412
@@ -13205,6 +12719,9 @@
 
5413
 # If no C compiler was specified, use CC.
 
5414
 LTCC=${LTCC-"$CC"}
 
5415
 
 
5416
+# If no C compiler flags were specified, use CFLAGS.
 
5417
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5418
+
 
5419
 # Allow CC to be a program name with arguments.
 
5420
 compiler=$CC
 
5421
 
 
5422
@@ -13212,13 +12729,13 @@
 
5423
 # save warnings/boilerplate of simple test code
 
5424
 ac_outfile=conftest.$ac_objext
 
5425
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
5426
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5427
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
5428
 _lt_compiler_boilerplate=`cat conftest.err`
 
5429
 $rm conftest*
 
5430
 
 
5431
 ac_outfile=conftest.$ac_objext
 
5432
 printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
5433
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5434
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
5435
 _lt_linker_boilerplate=`cat conftest.err`
 
5436
 $rm conftest*
 
5437
 
 
5438
@@ -13274,8 +12791,6 @@
 
5439
 echo "$as_me:$LINENO: result: $enable_static" >&5
 
5440
 echo "${ECHO_T}$enable_static" >&6
 
5441
 
 
5442
-test "$ld_shlibs_F77" = no && can_build_shared=no
 
5443
-
 
5444
 GCC_F77="$G77"
 
5445
 LD_F77="$LD"
 
5446
 
 
5447
@@ -13322,6 +12837,11 @@
 
5448
       lt_prog_compiler_pic_F77='-fno-common'
 
5449
       ;;
 
5450
 
 
5451
+    interix3*)
 
5452
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5453
+      # Instead, we relocate shared libraries at runtime.
 
5454
+      ;;
 
5455
+
 
5456
     msdosdjgpp*)
 
5457
       # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5458
       # on systems that don't support them.
 
5459
@@ -13436,11 +12956,6 @@
 
5460
       lt_prog_compiler_static_F77='-non_shared'
 
5461
       ;;
 
5462
 
 
5463
-    sco3.2v5*)
 
5464
-      lt_prog_compiler_pic_F77='-Kpic'
 
5465
-      lt_prog_compiler_static_F77='-dn'
 
5466
-      ;;
 
5467
-
 
5468
     solaris*)
 
5469
       lt_prog_compiler_pic_F77='-KPIC'
 
5470
       lt_prog_compiler_static_F77='-Bstatic'
 
5471
@@ -13458,7 +12973,7 @@
 
5472
       lt_prog_compiler_static_F77='-Bstatic'
 
5473
       ;;
 
5474
 
 
5475
-    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5476
+    sysv4 | sysv4.2uw2* | sysv4.3*)
 
5477
       lt_prog_compiler_wl_F77='-Wl,'
 
5478
       lt_prog_compiler_pic_F77='-KPIC'
 
5479
       lt_prog_compiler_static_F77='-Bstatic'
 
5480
@@ -13471,6 +12986,12 @@
 
5481
       fi
 
5482
       ;;
 
5483
 
 
5484
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5485
+      lt_prog_compiler_wl_F77='-Wl,'
 
5486
+      lt_prog_compiler_pic_F77='-KPIC'
 
5487
+      lt_prog_compiler_static_F77='-Bstatic'
 
5488
+      ;;
 
5489
+
 
5490
     unicos*)
 
5491
       lt_prog_compiler_wl_F77='-Wl,'
 
5492
       lt_prog_compiler_can_build_shared_F77=no
 
5493
@@ -13513,17 +13034,17 @@
 
5494
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
5495
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5496
    -e 's:$: $lt_compiler_flag:'`
 
5497
-   (eval echo "\"\$as_me:13516: $lt_compile\"" >&5)
 
5498
+   (eval echo "\"\$as_me:13037: $lt_compile\"" >&5)
 
5499
    (eval "$lt_compile" 2>conftest.err)
 
5500
    ac_status=$?
 
5501
    cat conftest.err >&5
 
5502
-   echo "$as_me:13520: \$? = $ac_status" >&5
 
5503
+   echo "$as_me:13041: \$? = $ac_status" >&5
 
5504
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
5505
      # The compiler can only warn and ignore the option if not recognized
 
5506
      # So say no if there are warnings other than the usual output.
 
5507
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
5508
-     $SED '/^$/d' conftest.err >conftest.er2
 
5509
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
5510
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
5511
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
5512
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
5513
        lt_prog_compiler_pic_works_F77=yes
 
5514
      fi
 
5515
    fi
 
5516
@@ -13554,39 +13075,81 @@
 
5517
     ;;
 
5518
 esac
 
5519
 
 
5520
-echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5521
-echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5522
-if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
5523
+#
 
5524
+# Check to make sure the static flag actually works.
 
5525
+#
 
5526
+wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
5527
+echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
5528
+echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
5529
+if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
5530
   echo $ECHO_N "(cached) $ECHO_C" >&6
 
5531
 else
 
5532
-  lt_cv_prog_compiler_c_o_F77=no
 
5533
-   $rm -r conftest 2>/dev/null
 
5534
-   mkdir conftest
 
5535
-   cd conftest
 
5536
-   mkdir out
 
5537
-   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5538
-
 
5539
-   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
5540
-   # Insert the option either (1) after the last *FLAGS variable, or
 
5541
-   # (2) before a word containing "conftest.", or (3) at the end.
 
5542
-   # Note that $ac_compile itself does not contain backslashes and begins
 
5543
-   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5544
+  lt_prog_compiler_static_works_F77=no
 
5545
+   save_LDFLAGS="$LDFLAGS"
 
5546
+   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
5547
+   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5548
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5549
+     # The linker can only warn and ignore the option if not recognized
 
5550
+     # So say no if there are warnings
 
5551
+     if test -s conftest.err; then
 
5552
+       # Append any errors to the config.log.
 
5553
+       cat conftest.err 1>&5
 
5554
+       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
5555
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
5556
+       if diff conftest.exp conftest.er2 >/dev/null; then
 
5557
+         lt_prog_compiler_static_works_F77=yes
 
5558
+       fi
 
5559
+     else
 
5560
+       lt_prog_compiler_static_works_F77=yes
 
5561
+     fi
 
5562
+   fi
 
5563
+   $rm conftest*
 
5564
+   LDFLAGS="$save_LDFLAGS"
 
5565
+
 
5566
+fi
 
5567
+echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
5568
+echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
5569
+
 
5570
+if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
5571
+    :
 
5572
+else
 
5573
+    lt_prog_compiler_static_F77=
 
5574
+fi
 
5575
+
 
5576
+
 
5577
+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5578
+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5579
+if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
5580
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5581
+else
 
5582
+  lt_cv_prog_compiler_c_o_F77=no
 
5583
+   $rm -r conftest 2>/dev/null
 
5584
+   mkdir conftest
 
5585
+   cd conftest
 
5586
+   mkdir out
 
5587
+   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5588
+
 
5589
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
5590
+   # Insert the option either (1) after the last *FLAGS variable, or
 
5591
+   # (2) before a word containing "conftest.", or (3) at the end.
 
5592
+   # Note that $ac_compile itself does not contain backslashes and begins
 
5593
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5594
    lt_compile=`echo "$ac_compile" | $SED \
 
5595
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
5596
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5597
    -e 's:$: $lt_compiler_flag:'`
 
5598
-   (eval echo "\"\$as_me:13578: $lt_compile\"" >&5)
 
5599
+   (eval echo "\"\$as_me:13141: $lt_compile\"" >&5)
 
5600
    (eval "$lt_compile" 2>out/conftest.err)
 
5601
    ac_status=$?
 
5602
    cat out/conftest.err >&5
 
5603
-   echo "$as_me:13582: \$? = $ac_status" >&5
 
5604
+   echo "$as_me:13145: \$? = $ac_status" >&5
 
5605
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
5606
    then
 
5607
      # The compiler can only warn and ignore the option if not recognized
 
5608
      # So say no if there are warnings
 
5609
-     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
5610
-     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
5611
-     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
5612
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
5613
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
5614
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
5615
        lt_cv_prog_compiler_c_o_F77=yes
 
5616
      fi
 
5617
    fi
 
5618
@@ -13686,6 +13249,10 @@
 
5619
       with_gnu_ld=no
 
5620
     fi
 
5621
     ;;
 
5622
+  interix*)
 
5623
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5624
+    with_gnu_ld=yes
 
5625
+    ;;
 
5626
   openbsd*)
 
5627
     with_gnu_ld=no
 
5628
     ;;
 
5629
@@ -13770,7 +13337,7 @@
 
5630
       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5631
 
 
5632
       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
5633
-        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5634
+        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5635
        # If the export-symbols file already is a .def file (1st line
 
5636
        # is EXPORTS), use it as is; otherwise, prepend...
 
5637
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5638
@@ -13779,12 +13346,27 @@
 
5639
          echo EXPORTS > $output_objdir/$soname.def;
 
5640
          cat $export_symbols >> $output_objdir/$soname.def;
 
5641
        fi~
 
5642
-       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5643
+       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5644
       else
 
5645
        ld_shlibs_F77=no
 
5646
       fi
 
5647
       ;;
 
5648
 
 
5649
+    interix3*)
 
5650
+      hardcode_direct_F77=no
 
5651
+      hardcode_shlibpath_var_F77=no
 
5652
+      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
5653
+      export_dynamic_flag_spec_F77='${wl}-E'
 
5654
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5655
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5656
+      # default) and relocated if they conflict, which is a slow very memory
 
5657
+      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5658
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5659
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5660
+      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5661
+      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5662
+      ;;
 
5663
+
 
5664
     linux*)
 
5665
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5666
        tmp_addflag=
 
5667
@@ -13811,12 +13393,13 @@
 
5668
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5669
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5670
        fi
 
5671
+       link_all_deplibs_F77=no
 
5672
       else
 
5673
        ld_shlibs_F77=no
 
5674
       fi
 
5675
       ;;
 
5676
 
 
5677
-    netbsd*)
 
5678
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5679
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5680
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5681
        wlarc=
 
5682
@@ -13826,7 +13409,7 @@
 
5683
       fi
 
5684
       ;;
 
5685
 
 
5686
-    solaris* | sysv5*)
 
5687
+    solaris*)
 
5688
       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
5689
        ld_shlibs_F77=no
 
5690
        cat <<EOF 1>&2
 
5691
@@ -13847,6 +13430,33 @@
 
5692
       fi
 
5693
       ;;
 
5694
 
 
5695
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5696
+      case `$LD -v 2>&1` in
 
5697
+        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
5698
+       ld_shlibs_F77=no
 
5699
+       cat <<_LT_EOF 1>&2
 
5700
+
 
5701
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5702
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5703
+*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5704
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5705
+*** your PATH or compiler configuration so that the native linker is
 
5706
+*** used, and then restart.
 
5707
+
 
5708
+_LT_EOF
 
5709
+       ;;
 
5710
+       *)
 
5711
+         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5712
+           hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5713
+           archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5714
+           archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5715
+         else
 
5716
+           ld_shlibs_F77=no
 
5717
+         fi
 
5718
+       ;;
 
5719
+      esac
 
5720
+      ;;
 
5721
+
 
5722
     sunos4*)
 
5723
       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5724
       wlarc=
 
5725
@@ -13880,7 +13490,7 @@
 
5726
       # Note: this linker hardcodes the directories in LIBPATH if there
 
5727
       # are no directories specified by -L.
 
5728
       hardcode_minus_L_F77=yes
 
5729
-      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5730
+      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
5731
        # Neither direct hardcoding nor static linking is supported with a
 
5732
        # broken collect2.
 
5733
        hardcode_direct_F77=unsupported
 
5734
@@ -13914,6 +13524,7 @@
 
5735
            break
 
5736
          fi
 
5737
          done
 
5738
+         ;;
 
5739
        esac
 
5740
 
 
5741
        exp_sym_flag='-bexport'
 
5742
@@ -13951,6 +13562,7 @@
 
5743
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
5744
          hardcode_libdir_separator_F77=
 
5745
          fi
 
5746
+         ;;
 
5747
        esac
 
5748
        shared_flag='-shared'
 
5749
        if test "$aix_use_runtimelinking" = yes; then
 
5750
@@ -13963,11 +13575,11 @@
 
5751
        # chokes on -Wl,-G. The following line is correct:
 
5752
          shared_flag='-G'
 
5753
        else
 
5754
-       if test "$aix_use_runtimelinking" = yes; then
 
5755
+         if test "$aix_use_runtimelinking" = yes; then
 
5756
            shared_flag='${wl}-G'
 
5757
          else
 
5758
            shared_flag='${wl}-bM:SRE'
 
5759
-       fi
 
5760
+         fi
 
5761
        fi
 
5762
       fi
 
5763
 
 
5764
@@ -13993,8 +13605,7 @@
 
5765
   cat conftest.err >&5
 
5766
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5767
   (exit $ac_status); } &&
 
5768
-        { ac_try='test -z "$ac_f77_werror_flag"
 
5769
-                        || test ! -s conftest.err'
 
5770
+        { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5771
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5772
   (eval $ac_try) 2>&5
 
5773
   ac_status=$?
 
5774
@@ -14022,12 +13633,12 @@
 
5775
 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
5776
 
 
5777
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5778
-       archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5779
+       archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5780
        else
 
5781
        if test "$host_cpu" = ia64; then
 
5782
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
5783
          allow_undefined_flag_F77="-z nodefs"
 
5784
-         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5785
+         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
5786
        else
 
5787
         # Determine the default libpath from the value encoded in an empty executable.
 
5788
         cat >conftest.$ac_ext <<_ACEOF
 
5789
@@ -14044,8 +13655,7 @@
 
5790
   cat conftest.err >&5
 
5791
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5792
   (exit $ac_status); } &&
 
5793
-        { ac_try='test -z "$ac_f77_werror_flag"
 
5794
-                        || test ! -s conftest.err'
 
5795
+        { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5796
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5797
   (eval $ac_try) 2>&5
 
5798
   ac_status=$?
 
5799
@@ -14077,13 +13687,11 @@
 
5800
          # -berok will link without error, but may produce a broken library.
 
5801
          no_undefined_flag_F77=' ${wl}-bernotok'
 
5802
          allow_undefined_flag_F77=' ${wl}-berok'
 
5803
-         # -bexpall does not export symbols beginning with underscore (_)
 
5804
-         always_export_symbols_F77=yes
 
5805
          # Exported symbols can be pulled into shared objects from archives
 
5806
-         whole_archive_flag_spec_F77=' '
 
5807
+         whole_archive_flag_spec_F77='$convenience'
 
5808
          archive_cmds_need_lc_F77=yes
 
5809
          # This is similar to how AIX traditionally builds its shared libraries.
 
5810
-         archive_expsym_cmds_F77="\$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'
 
5811
+         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
5812
        fi
 
5813
       fi
 
5814
       ;;
 
5815
@@ -14201,13 +13809,22 @@
 
5816
       ;;
 
5817
 
 
5818
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5819
-    freebsd* | kfreebsd*-gnu | dragonfly*)
 
5820
+    freebsd* | dragonfly*)
 
5821
       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5822
       hardcode_libdir_flag_spec_F77='-R$libdir'
 
5823
       hardcode_direct_F77=yes
 
5824
       hardcode_shlibpath_var_F77=no
 
5825
       ;;
 
5826
 
 
5827
+    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
5828
+    kfreebsd*-gnu)
 
5829
+      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5830
+      hardcode_libdir_flag_spec_F77='-R$libdir'
 
5831
+      hardcode_direct_F77=yes
 
5832
+      hardcode_shlibpath_var_F77=no
 
5833
+      link_all_deplibs_F77=no
 
5834
+      ;;
 
5835
+
 
5836
     hpux9*)
 
5837
       if test "$GCC" = yes; then
 
5838
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5839
@@ -14224,47 +13841,62 @@
 
5840
       export_dynamic_flag_spec_F77='${wl}-E'
 
5841
       ;;
 
5842
 
 
5843
-    hpux10* | hpux11*)
 
5844
+    hpux10*)
 
5845
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5846
+       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5847
+      else
 
5848
+       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5849
+      fi
 
5850
+      if test "$with_gnu_ld" = no; then
 
5851
+       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
5852
+       hardcode_libdir_separator_F77=:
 
5853
+
 
5854
+       hardcode_direct_F77=yes
 
5855
+       export_dynamic_flag_spec_F77='${wl}-E'
 
5856
+
 
5857
+       # hardcode_minus_L: Not really in the search PATH,
 
5858
+       # but as the default location of the library.
 
5859
+       hardcode_minus_L_F77=yes
 
5860
+      fi
 
5861
+      ;;
 
5862
+
 
5863
+    hpux11*)
 
5864
       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5865
        case $host_cpu in
 
5866
-       hppa*64*|ia64*)
 
5867
+       hppa*64*)
 
5868
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5869
          ;;
 
5870
+       ia64*)
 
5871
+         archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5872
+         ;;
 
5873
        *)
 
5874
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5875
          ;;
 
5876
        esac
 
5877
       else
 
5878
        case $host_cpu in
 
5879
-       hppa*64*|ia64*)
 
5880
-         archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5881
+       hppa*64*)
 
5882
+         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5883
+         ;;
 
5884
+       ia64*)
 
5885
+         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5886
          ;;
 
5887
        *)
 
5888
-         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5889
+         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5890
          ;;
 
5891
        esac
 
5892
       fi
 
5893
       if test "$with_gnu_ld" = no; then
 
5894
+       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
5895
+       hardcode_libdir_separator_F77=:
 
5896
+
 
5897
        case $host_cpu in
 
5898
-       hppa*64*)
 
5899
-         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
5900
+       hppa*64*|ia64*)
 
5901
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
5902
-         hardcode_libdir_separator_F77=:
 
5903
-         hardcode_direct_F77=no
 
5904
-         hardcode_shlibpath_var_F77=no
 
5905
-         ;;
 
5906
-       ia64*)
 
5907
-         hardcode_libdir_flag_spec_F77='-L$libdir'
 
5908
          hardcode_direct_F77=no
 
5909
          hardcode_shlibpath_var_F77=no
 
5910
-
 
5911
-         # hardcode_minus_L: Not really in the search PATH,
 
5912
-         # but as the default location of the library.
 
5913
-         hardcode_minus_L_F77=yes
 
5914
          ;;
 
5915
        *)
 
5916
-         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
5917
-         hardcode_libdir_separator_F77=:
 
5918
          hardcode_direct_F77=yes
 
5919
          export_dynamic_flag_spec_F77='${wl}-E'
 
5920
 
 
5921
@@ -14288,7 +13920,7 @@
 
5922
       link_all_deplibs_F77=yes
 
5923
       ;;
 
5924
 
 
5925
-    netbsd*)
 
5926
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5927
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5928
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5929
       else
 
5930
@@ -14366,14 +13998,6 @@
 
5931
       hardcode_libdir_separator_F77=:
 
5932
       ;;
 
5933
 
 
5934
-    sco3.2v5*)
 
5935
-      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5936
-      hardcode_shlibpath_var_F77=no
 
5937
-      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
5938
-      runpath_var=LD_RUN_PATH
 
5939
-      hardcode_runpath_var=yes
 
5940
-      ;;
 
5941
-
 
5942
     solaris*)
 
5943
       no_undefined_flag_F77=' -z text'
 
5944
       if test "$GCC" = yes; then
 
5945
@@ -14459,36 +14083,45 @@
 
5946
       fi
 
5947
       ;;
 
5948
 
 
5949
-    sysv4.2uw2*)
 
5950
-      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5951
-      hardcode_direct_F77=yes
 
5952
-      hardcode_minus_L_F77=no
 
5953
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
5954
+      no_undefined_flag_F77='${wl}-z,text'
 
5955
+      archive_cmds_need_lc_F77=no
 
5956
       hardcode_shlibpath_var_F77=no
 
5957
-      hardcode_runpath_var=yes
 
5958
-      runpath_var=LD_RUN_PATH
 
5959
-      ;;
 
5960
+      runpath_var='LD_RUN_PATH'
 
5961
 
 
5962
-   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
5963
-      no_undefined_flag_F77='${wl}-z ${wl}text'
 
5964
       if test "$GCC" = yes; then
 
5965
-       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5966
+       archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5967
+       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5968
       else
 
5969
-       archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5970
+       archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5971
+       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5972
       fi
 
5973
-      runpath_var='LD_RUN_PATH'
 
5974
-      hardcode_shlibpath_var_F77=no
 
5975
       ;;
 
5976
 
 
5977
-    sysv5*)
 
5978
-      no_undefined_flag_F77=' -z text'
 
5979
-      # $CC -shared without GNU ld will not create a library from C++
 
5980
-      # object files and a static libstdc++, better avoid it by now
 
5981
-      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5982
-      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5983
-               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5984
-      hardcode_libdir_flag_spec_F77=
 
5985
+    sysv5* | sco3.2v5* | sco5v6*)
 
5986
+      # Note: We can NOT use -z defs as we might desire, because we do not
 
5987
+      # link with -lc, and that would cause any symbols used from libc to
 
5988
+      # always be unresolved, which means just about no library would
 
5989
+      # ever link correctly.  If we're not using GNU ld we use -z text
 
5990
+      # though, which does catch some bad symbols but isn't as heavy-handed
 
5991
+      # as -z defs.
 
5992
+      no_undefined_flag_F77='${wl}-z,text'
 
5993
+      allow_undefined_flag_F77='${wl}-z,nodefs'
 
5994
+      archive_cmds_need_lc_F77=no
 
5995
       hardcode_shlibpath_var_F77=no
 
5996
+      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
5997
+      hardcode_libdir_separator_F77=':'
 
5998
+      link_all_deplibs_F77=yes
 
5999
+      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
6000
       runpath_var='LD_RUN_PATH'
 
6001
+
 
6002
+      if test "$GCC" = yes; then
 
6003
+       archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6004
+       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6005
+      else
 
6006
+       archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6007
+       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6008
+      fi
 
6009
       ;;
 
6010
 
 
6011
     uts4*)
 
6012
@@ -14507,11 +14140,6 @@
 
6013
 echo "${ECHO_T}$ld_shlibs_F77" >&6
 
6014
 test "$ld_shlibs_F77" = no && can_build_shared=no
 
6015
 
 
6016
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6017
-if test "$GCC" = yes; then
 
6018
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6019
-fi
 
6020
-
 
6021
 #
 
6022
 # Do we need to explicitly link libc?
 
6023
 #
 
6024
@@ -14544,6 +14172,7 @@
 
6025
         libobjs=conftest.$ac_objext
 
6026
         deplibs=
 
6027
         wl=$lt_prog_compiler_wl_F77
 
6028
+       pic_flag=$lt_prog_compiler_pic_F77
 
6029
         compiler_flags=-v
 
6030
         linker_flags=-v
 
6031
         verstring=
 
6032
@@ -14825,10 +14454,15 @@
 
6033
     shlibpath_overrides_runpath=yes
 
6034
     hardcode_into_libs=yes
 
6035
     ;;
 
6036
-  *) # from 3.2 on
 
6037
+  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
6038
+  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
6039
     shlibpath_overrides_runpath=no
 
6040
     hardcode_into_libs=yes
 
6041
     ;;
 
6042
+  freebsd*) # from 4.6 on
 
6043
+    shlibpath_overrides_runpath=yes
 
6044
+    hardcode_into_libs=yes
 
6045
+    ;;
 
6046
   esac
 
6047
   ;;
 
6048
 
 
6049
@@ -14888,6 +14522,18 @@
 
6050
   postinstall_cmds='chmod 555 $lib'
 
6051
   ;;
 
6052
 
 
6053
+interix3*)
 
6054
+  version_type=linux
 
6055
+  need_lib_prefix=no
 
6056
+  need_version=no
 
6057
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
6058
+  soname_spec='${libname}${release}${shared_ext}$major'
 
6059
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
6060
+  shlibpath_var=LD_LIBRARY_PATH
 
6061
+  shlibpath_overrides_runpath=no
 
6062
+  hardcode_into_libs=yes
 
6063
+  ;;
 
6064
+
 
6065
 irix5* | irix6* | nonstopux*)
 
6066
   case $host_os in
 
6067
     nonstopux*) version_type=nonstopux ;;
 
6068
@@ -14960,6 +14606,18 @@
 
6069
   dynamic_linker='GNU/Linux ld.so'
 
6070
   ;;
 
6071
 
 
6072
+netbsdelf*-gnu)
 
6073
+  version_type=linux
 
6074
+  need_lib_prefix=no
 
6075
+  need_version=no
 
6076
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
6077
+  soname_spec='${libname}${release}${shared_ext}$major'
 
6078
+  shlibpath_var=LD_LIBRARY_PATH
 
6079
+  shlibpath_overrides_runpath=no
 
6080
+  hardcode_into_libs=yes
 
6081
+  dynamic_linker='NetBSD ld.elf_so'
 
6082
+  ;;
 
6083
+
 
6084
 knetbsd*-gnu)
 
6085
   version_type=linux
 
6086
   need_lib_prefix=no
 
6087
@@ -15009,6 +14667,7 @@
 
6088
 
 
6089
 openbsd*)
 
6090
   version_type=sunos
 
6091
+  sys_lib_dlsearch_path_spec="/usr/lib"
 
6092
   need_lib_prefix=no
 
6093
   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
6094
   case $host_os in
 
6095
@@ -15052,13 +14711,6 @@
 
6096
   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
6097
   ;;
 
6098
 
 
6099
-sco3.2v5*)
 
6100
-  version_type=osf
 
6101
-  soname_spec='${libname}${release}${shared_ext}$major'
 
6102
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
6103
-  shlibpath_var=LD_LIBRARY_PATH
 
6104
-  ;;
 
6105
-
 
6106
 solaris*)
 
6107
   version_type=linux
 
6108
   need_lib_prefix=no
 
6109
@@ -15084,7 +14736,7 @@
 
6110
   need_version=yes
 
6111
   ;;
 
6112
 
 
6113
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6114
+sysv4 | sysv4.3*)
 
6115
   version_type=linux
 
6116
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
6117
   soname_spec='${libname}${release}${shared_ext}$major'
 
6118
@@ -15117,6 +14769,29 @@
 
6119
   fi
 
6120
   ;;
 
6121
 
 
6122
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6123
+  version_type=freebsd-elf
 
6124
+  need_lib_prefix=no
 
6125
+  need_version=no
 
6126
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
6127
+  soname_spec='${libname}${release}${shared_ext}$major'
 
6128
+  shlibpath_var=LD_LIBRARY_PATH
 
6129
+  hardcode_into_libs=yes
 
6130
+  if test "$with_gnu_ld" = yes; then
 
6131
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
6132
+    shlibpath_overrides_runpath=no
 
6133
+  else
 
6134
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
6135
+    shlibpath_overrides_runpath=yes
 
6136
+    case $host_os in
 
6137
+      sco3.2v5*)
 
6138
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
6139
+       ;;
 
6140
+    esac
 
6141
+  fi
 
6142
+  sys_lib_dlsearch_path_spec='/usr/lib'
 
6143
+  ;;
 
6144
+
 
6145
 uts4*)
 
6146
   version_type=linux
 
6147
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
6148
@@ -15132,6 +14807,11 @@
 
6149
 echo "${ECHO_T}$dynamic_linker" >&6
 
6150
 test "$dynamic_linker" = no && can_build_shared=no
 
6151
 
 
6152
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6153
+if test "$GCC" = yes; then
 
6154
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6155
+fi
 
6156
+
 
6157
 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
6158
 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
6159
 hardcode_action_F77=
 
6160
@@ -15169,36 +14849,6 @@
 
6161
   enable_fast_install=needless
 
6162
 fi
 
6163
 
 
6164
-striplib=
 
6165
-old_striplib=
 
6166
-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
6167
-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
6168
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
6169
-  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
6170
-  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
6171
-  echo "$as_me:$LINENO: result: yes" >&5
 
6172
-echo "${ECHO_T}yes" >&6
 
6173
-else
 
6174
-# FIXME - insert some real tests, host_os isn't really good enough
 
6175
-  case $host_os in
 
6176
-   darwin*)
 
6177
-       if test -n "$STRIP" ; then
 
6178
-         striplib="$STRIP -x"
 
6179
-         echo "$as_me:$LINENO: result: yes" >&5
 
6180
-echo "${ECHO_T}yes" >&6
 
6181
-       else
 
6182
-  echo "$as_me:$LINENO: result: no" >&5
 
6183
-echo "${ECHO_T}no" >&6
 
6184
-fi
 
6185
-       ;;
 
6186
-   *)
 
6187
-  echo "$as_me:$LINENO: result: no" >&5
 
6188
-echo "${ECHO_T}no" >&6
 
6189
-    ;;
 
6190
-  esac
 
6191
-fi
 
6192
-
 
6193
-
 
6194
 
 
6195
 # The else clause should only fire when bootstrapping the
 
6196
 # libtool distribution, otherwise you forgot to ship ltmain.sh
 
6197
@@ -15213,7 +14863,7 @@
 
6198
   # Now quote all the things that may contain metacharacters while being
 
6199
   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
6200
   # variables and quote the copies for generation of the libtool script.
 
6201
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
6202
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
6203
     SED SHELL STRIP \
 
6204
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
6205
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
6206
@@ -15331,6 +14981,9 @@
 
6207
 # A C compiler.
 
6208
 LTCC=$lt_LTCC
 
6209
 
 
6210
+# LTCC compiler flags.
 
6211
+LTCFLAGS=$lt_LTCFLAGS
 
6212
+
 
6213
 # A language-specific compiler.
 
6214
 CC=$lt_compiler_F77
 
6215
 
 
6216
@@ -15641,6 +15294,9 @@
 
6217
 # If no C compiler was specified, use CC.
 
6218
 LTCC=${LTCC-"$CC"}
 
6219
 
 
6220
+# If no C compiler flags were specified, use CFLAGS.
 
6221
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6222
+
 
6223
 # Allow CC to be a program name with arguments.
 
6224
 compiler=$CC
 
6225
 
 
6226
@@ -15648,13 +15304,13 @@
 
6227
 # save warnings/boilerplate of simple test code
 
6228
 ac_outfile=conftest.$ac_objext
 
6229
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6230
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6231
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6232
 _lt_compiler_boilerplate=`cat conftest.err`
 
6233
 $rm conftest*
 
6234
 
 
6235
 ac_outfile=conftest.$ac_objext
 
6236
 printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6237
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6238
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6239
 _lt_linker_boilerplate=`cat conftest.err`
 
6240
 $rm conftest*
 
6241
 
 
6242
@@ -15705,17 +15361,17 @@
 
6243
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6244
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6245
    -e 's:$: $lt_compiler_flag:'`
 
6246
-   (eval echo "\"\$as_me:15708: $lt_compile\"" >&5)
 
6247
+   (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
 
6248
    (eval "$lt_compile" 2>conftest.err)
 
6249
    ac_status=$?
 
6250
    cat conftest.err >&5
 
6251
-   echo "$as_me:15712: \$? = $ac_status" >&5
 
6252
+   echo "$as_me:15368: \$? = $ac_status" >&5
 
6253
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
6254
      # The compiler can only warn and ignore the option if not recognized
 
6255
      # So say no if there are warnings other than the usual output.
 
6256
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6257
-     $SED '/^$/d' conftest.err >conftest.er2
 
6258
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6259
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6260
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6261
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6262
        lt_cv_prog_compiler_rtti_exceptions=yes
 
6263
      fi
 
6264
    fi
 
6265
@@ -15776,6 +15432,11 @@
 
6266
       lt_prog_compiler_pic_GCJ='-fno-common'
 
6267
       ;;
 
6268
 
 
6269
+    interix3*)
 
6270
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6271
+      # Instead, we relocate shared libraries at runtime.
 
6272
+      ;;
 
6273
+
 
6274
     msdosdjgpp*)
 
6275
       # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6276
       # on systems that don't support them.
 
6277
@@ -15890,11 +15551,6 @@
 
6278
       lt_prog_compiler_static_GCJ='-non_shared'
 
6279
       ;;
 
6280
 
 
6281
-    sco3.2v5*)
 
6282
-      lt_prog_compiler_pic_GCJ='-Kpic'
 
6283
-      lt_prog_compiler_static_GCJ='-dn'
 
6284
-      ;;
 
6285
-
 
6286
     solaris*)
 
6287
       lt_prog_compiler_pic_GCJ='-KPIC'
 
6288
       lt_prog_compiler_static_GCJ='-Bstatic'
 
6289
@@ -15912,7 +15568,7 @@
 
6290
       lt_prog_compiler_static_GCJ='-Bstatic'
 
6291
       ;;
 
6292
 
 
6293
-    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6294
+    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6295
       lt_prog_compiler_wl_GCJ='-Wl,'
 
6296
       lt_prog_compiler_pic_GCJ='-KPIC'
 
6297
       lt_prog_compiler_static_GCJ='-Bstatic'
 
6298
@@ -15925,6 +15581,12 @@
 
6299
       fi
 
6300
       ;;
 
6301
 
 
6302
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6303
+      lt_prog_compiler_wl_GCJ='-Wl,'
 
6304
+      lt_prog_compiler_pic_GCJ='-KPIC'
 
6305
+      lt_prog_compiler_static_GCJ='-Bstatic'
 
6306
+      ;;
 
6307
+
 
6308
     unicos*)
 
6309
       lt_prog_compiler_wl_GCJ='-Wl,'
 
6310
       lt_prog_compiler_can_build_shared_GCJ=no
 
6311
@@ -15967,17 +15629,17 @@
 
6312
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6313
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6314
    -e 's:$: $lt_compiler_flag:'`
 
6315
-   (eval echo "\"\$as_me:15970: $lt_compile\"" >&5)
 
6316
+   (eval echo "\"\$as_me:15632: $lt_compile\"" >&5)
 
6317
    (eval "$lt_compile" 2>conftest.err)
 
6318
    ac_status=$?
 
6319
    cat conftest.err >&5
 
6320
-   echo "$as_me:15974: \$? = $ac_status" >&5
 
6321
+   echo "$as_me:15636: \$? = $ac_status" >&5
 
6322
    if (exit $ac_status) && test -s "$ac_outfile"; then
 
6323
      # The compiler can only warn and ignore the option if not recognized
 
6324
      # So say no if there are warnings other than the usual output.
 
6325
-     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6326
-     $SED '/^$/d' conftest.err >conftest.er2
 
6327
-     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6328
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6329
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6330
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6331
        lt_prog_compiler_pic_works_GCJ=yes
 
6332
      fi
 
6333
    fi
 
6334
@@ -16008,6 +15670,48 @@
 
6335
     ;;
 
6336
 esac
 
6337
 
 
6338
+#
 
6339
+# Check to make sure the static flag actually works.
 
6340
+#
 
6341
+wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
6342
+echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6343
+echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6344
+if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
6345
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6346
+else
 
6347
+  lt_prog_compiler_static_works_GCJ=no
 
6348
+   save_LDFLAGS="$LDFLAGS"
 
6349
+   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6350
+   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6351
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6352
+     # The linker can only warn and ignore the option if not recognized
 
6353
+     # So say no if there are warnings
 
6354
+     if test -s conftest.err; then
 
6355
+       # Append any errors to the config.log.
 
6356
+       cat conftest.err 1>&5
 
6357
+       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6358
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6359
+       if diff conftest.exp conftest.er2 >/dev/null; then
 
6360
+         lt_prog_compiler_static_works_GCJ=yes
 
6361
+       fi
 
6362
+     else
 
6363
+       lt_prog_compiler_static_works_GCJ=yes
 
6364
+     fi
 
6365
+   fi
 
6366
+   $rm conftest*
 
6367
+   LDFLAGS="$save_LDFLAGS"
 
6368
+
 
6369
+fi
 
6370
+echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
6371
+echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
6372
+
 
6373
+if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
6374
+    :
 
6375
+else
 
6376
+    lt_prog_compiler_static_GCJ=
 
6377
+fi
 
6378
+
 
6379
+
 
6380
 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6381
 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6382
 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
6383
@@ -16029,18 +15733,18 @@
 
6384
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6385
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6386
    -e 's:$: $lt_compiler_flag:'`
 
6387
-   (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
 
6388
+   (eval echo "\"\$as_me:15736: $lt_compile\"" >&5)
 
6389
    (eval "$lt_compile" 2>out/conftest.err)
 
6390
    ac_status=$?
 
6391
    cat out/conftest.err >&5
 
6392
-   echo "$as_me:16036: \$? = $ac_status" >&5
 
6393
+   echo "$as_me:15740: \$? = $ac_status" >&5
 
6394
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6395
    then
 
6396
      # The compiler can only warn and ignore the option if not recognized
 
6397
      # So say no if there are warnings
 
6398
-     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6399
-     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6400
-     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6401
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6402
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6403
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6404
        lt_cv_prog_compiler_c_o_GCJ=yes
 
6405
      fi
 
6406
    fi
 
6407
@@ -16140,6 +15844,10 @@
 
6408
       with_gnu_ld=no
 
6409
     fi
 
6410
     ;;
 
6411
+  interix*)
 
6412
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6413
+    with_gnu_ld=yes
 
6414
+    ;;
 
6415
   openbsd*)
 
6416
     with_gnu_ld=no
 
6417
     ;;
 
6418
@@ -16224,7 +15932,7 @@
 
6419
       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6420
 
 
6421
       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6422
-        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6423
+        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6424
        # If the export-symbols file already is a .def file (1st line
 
6425
        # is EXPORTS), use it as is; otherwise, prepend...
 
6426
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6427
@@ -16233,12 +15941,27 @@
 
6428
          echo EXPORTS > $output_objdir/$soname.def;
 
6429
          cat $export_symbols >> $output_objdir/$soname.def;
 
6430
        fi~
 
6431
-       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6432
+       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6433
       else
 
6434
        ld_shlibs_GCJ=no
 
6435
       fi
 
6436
       ;;
 
6437
 
 
6438
+    interix3*)
 
6439
+      hardcode_direct_GCJ=no
 
6440
+      hardcode_shlibpath_var_GCJ=no
 
6441
+      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
6442
+      export_dynamic_flag_spec_GCJ='${wl}-E'
 
6443
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6444
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6445
+      # default) and relocated if they conflict, which is a slow very memory
 
6446
+      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6447
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6448
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6449
+      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6450
+      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6451
+      ;;
 
6452
+
 
6453
     linux*)
 
6454
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6455
        tmp_addflag=
 
6456
@@ -16265,12 +15988,13 @@
 
6457
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6458
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6459
        fi
 
6460
+       link_all_deplibs_GCJ=no
 
6461
       else
 
6462
        ld_shlibs_GCJ=no
 
6463
       fi
 
6464
       ;;
 
6465
 
 
6466
-    netbsd*)
 
6467
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6468
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6469
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6470
        wlarc=
 
6471
@@ -16280,7 +16004,7 @@
 
6472
       fi
 
6473
       ;;
 
6474
 
 
6475
-    solaris* | sysv5*)
 
6476
+    solaris*)
 
6477
       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6478
        ld_shlibs_GCJ=no
 
6479
        cat <<EOF 1>&2
 
6480
@@ -16301,8 +16025,35 @@
 
6481
       fi
 
6482
       ;;
 
6483
 
 
6484
-    sunos4*)
 
6485
-      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6486
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
6487
+      case `$LD -v 2>&1` in
 
6488
+        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
6489
+       ld_shlibs_GCJ=no
 
6490
+       cat <<_LT_EOF 1>&2
 
6491
+
 
6492
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6493
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6494
+*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6495
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6496
+*** your PATH or compiler configuration so that the native linker is
 
6497
+*** used, and then restart.
 
6498
+
 
6499
+_LT_EOF
 
6500
+       ;;
 
6501
+       *)
 
6502
+         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6503
+           hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6504
+           archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6505
+           archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
6506
+         else
 
6507
+           ld_shlibs_GCJ=no
 
6508
+         fi
 
6509
+       ;;
 
6510
+      esac
 
6511
+      ;;
 
6512
+
 
6513
+    sunos4*)
 
6514
+      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6515
       wlarc=
 
6516
       hardcode_direct_GCJ=yes
 
6517
       hardcode_shlibpath_var_GCJ=no
 
6518
@@ -16334,7 +16085,7 @@
 
6519
       # Note: this linker hardcodes the directories in LIBPATH if there
 
6520
       # are no directories specified by -L.
 
6521
       hardcode_minus_L_GCJ=yes
 
6522
-      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6523
+      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6524
        # Neither direct hardcoding nor static linking is supported with a
 
6525
        # broken collect2.
 
6526
        hardcode_direct_GCJ=unsupported
 
6527
@@ -16368,6 +16119,7 @@
 
6528
            break
 
6529
          fi
 
6530
          done
 
6531
+         ;;
 
6532
        esac
 
6533
 
 
6534
        exp_sym_flag='-bexport'
 
6535
@@ -16405,6 +16157,7 @@
 
6536
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
6537
          hardcode_libdir_separator_GCJ=
 
6538
          fi
 
6539
+         ;;
 
6540
        esac
 
6541
        shared_flag='-shared'
 
6542
        if test "$aix_use_runtimelinking" = yes; then
 
6543
@@ -16417,11 +16170,11 @@
 
6544
        # chokes on -Wl,-G. The following line is correct:
 
6545
          shared_flag='-G'
 
6546
        else
 
6547
-       if test "$aix_use_runtimelinking" = yes; then
 
6548
+         if test "$aix_use_runtimelinking" = yes; then
 
6549
            shared_flag='${wl}-G'
 
6550
          else
 
6551
            shared_flag='${wl}-bM:SRE'
 
6552
-       fi
 
6553
+         fi
 
6554
        fi
 
6555
       fi
 
6556
 
 
6557
@@ -16457,8 +16210,7 @@
 
6558
   cat conftest.err >&5
 
6559
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6560
   (exit $ac_status); } &&
 
6561
-        { ac_try='test -z "$ac_c_werror_flag"
 
6562
-                        || test ! -s conftest.err'
 
6563
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6564
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6565
   (eval $ac_try) 2>&5
 
6566
   ac_status=$?
 
6567
@@ -16486,12 +16238,12 @@
 
6568
 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6569
 
 
6570
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6571
-       archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6572
+       archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6573
        else
 
6574
        if test "$host_cpu" = ia64; then
 
6575
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
6576
          allow_undefined_flag_GCJ="-z nodefs"
 
6577
-         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6578
+         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
6579
        else
 
6580
         # Determine the default libpath from the value encoded in an empty executable.
 
6581
         cat >conftest.$ac_ext <<_ACEOF
 
6582
@@ -16518,8 +16270,7 @@
 
6583
   cat conftest.err >&5
 
6584
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6585
   (exit $ac_status); } &&
 
6586
-        { ac_try='test -z "$ac_c_werror_flag"
 
6587
-                        || test ! -s conftest.err'
 
6588
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6589
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6590
   (eval $ac_try) 2>&5
 
6591
   ac_status=$?
 
6592
@@ -16551,13 +16302,11 @@
 
6593
          # -berok will link without error, but may produce a broken library.
 
6594
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
6595
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
6596
-         # -bexpall does not export symbols beginning with underscore (_)
 
6597
-         always_export_symbols_GCJ=yes
 
6598
          # Exported symbols can be pulled into shared objects from archives
 
6599
-         whole_archive_flag_spec_GCJ=' '
 
6600
+         whole_archive_flag_spec_GCJ='$convenience'
 
6601
          archive_cmds_need_lc_GCJ=yes
 
6602
          # This is similar to how AIX traditionally builds its shared libraries.
 
6603
-         archive_expsym_cmds_GCJ="\$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'
 
6604
+         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6605
        fi
 
6606
       fi
 
6607
       ;;
 
6608
@@ -16675,11 +16424,20 @@
 
6609
       ;;
 
6610
 
 
6611
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6612
-    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6613
+    freebsd* | dragonfly*)
 
6614
+      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6615
+      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
6616
+      hardcode_direct_GCJ=yes
 
6617
+      hardcode_shlibpath_var_GCJ=no
 
6618
+      ;;
 
6619
+
 
6620
+    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
6621
+    kfreebsd*-gnu)
 
6622
       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6623
       hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
6624
       hardcode_direct_GCJ=yes
 
6625
       hardcode_shlibpath_var_GCJ=no
 
6626
+      link_all_deplibs_GCJ=no
 
6627
       ;;
 
6628
 
 
6629
     hpux9*)
 
6630
@@ -16698,47 +16456,62 @@
 
6631
       export_dynamic_flag_spec_GCJ='${wl}-E'
 
6632
       ;;
 
6633
 
 
6634
-    hpux10* | hpux11*)
 
6635
+    hpux10*)
 
6636
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6637
+       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6638
+      else
 
6639
+       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6640
+      fi
 
6641
+      if test "$with_gnu_ld" = no; then
 
6642
+       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
6643
+       hardcode_libdir_separator_GCJ=:
 
6644
+
 
6645
+       hardcode_direct_GCJ=yes
 
6646
+       export_dynamic_flag_spec_GCJ='${wl}-E'
 
6647
+
 
6648
+       # hardcode_minus_L: Not really in the search PATH,
 
6649
+       # but as the default location of the library.
 
6650
+       hardcode_minus_L_GCJ=yes
 
6651
+      fi
 
6652
+      ;;
 
6653
+
 
6654
+    hpux11*)
 
6655
       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6656
        case $host_cpu in
 
6657
-       hppa*64*|ia64*)
 
6658
+       hppa*64*)
 
6659
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6660
          ;;
 
6661
+       ia64*)
 
6662
+         archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6663
+         ;;
 
6664
        *)
 
6665
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6666
          ;;
 
6667
        esac
 
6668
       else
 
6669
        case $host_cpu in
 
6670
-       hppa*64*|ia64*)
 
6671
-         archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6672
+       hppa*64*)
 
6673
+         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6674
+         ;;
 
6675
+       ia64*)
 
6676
+         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6677
          ;;
 
6678
        *)
 
6679
-         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6680
+         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6681
          ;;
 
6682
        esac
 
6683
       fi
 
6684
       if test "$with_gnu_ld" = no; then
 
6685
+       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
6686
+       hardcode_libdir_separator_GCJ=:
 
6687
+
 
6688
        case $host_cpu in
 
6689
-       hppa*64*)
 
6690
-         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
6691
+       hppa*64*|ia64*)
 
6692
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
6693
-         hardcode_libdir_separator_GCJ=:
 
6694
-         hardcode_direct_GCJ=no
 
6695
-         hardcode_shlibpath_var_GCJ=no
 
6696
-         ;;
 
6697
-       ia64*)
 
6698
-         hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
6699
          hardcode_direct_GCJ=no
 
6700
          hardcode_shlibpath_var_GCJ=no
 
6701
-
 
6702
-         # hardcode_minus_L: Not really in the search PATH,
 
6703
-         # but as the default location of the library.
 
6704
-         hardcode_minus_L_GCJ=yes
 
6705
          ;;
 
6706
        *)
 
6707
-         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
6708
-         hardcode_libdir_separator_GCJ=:
 
6709
          hardcode_direct_GCJ=yes
 
6710
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
6711
 
 
6712
@@ -16762,7 +16535,7 @@
 
6713
       link_all_deplibs_GCJ=yes
 
6714
       ;;
 
6715
 
 
6716
-    netbsd*)
 
6717
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6718
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6719
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6720
       else
 
6721
@@ -16840,14 +16613,6 @@
 
6722
       hardcode_libdir_separator_GCJ=:
 
6723
       ;;
 
6724
 
 
6725
-    sco3.2v5*)
 
6726
-      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6727
-      hardcode_shlibpath_var_GCJ=no
 
6728
-      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
6729
-      runpath_var=LD_RUN_PATH
 
6730
-      hardcode_runpath_var=yes
 
6731
-      ;;
 
6732
-
 
6733
     solaris*)
 
6734
       no_undefined_flag_GCJ=' -z text'
 
6735
       if test "$GCC" = yes; then
 
6736
@@ -16933,36 +16698,45 @@
 
6737
       fi
 
6738
       ;;
 
6739
 
 
6740
-    sysv4.2uw2*)
 
6741
-      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6742
-      hardcode_direct_GCJ=yes
 
6743
-      hardcode_minus_L_GCJ=no
 
6744
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
6745
+      no_undefined_flag_GCJ='${wl}-z,text'
 
6746
+      archive_cmds_need_lc_GCJ=no
 
6747
       hardcode_shlibpath_var_GCJ=no
 
6748
-      hardcode_runpath_var=yes
 
6749
-      runpath_var=LD_RUN_PATH
 
6750
-      ;;
 
6751
+      runpath_var='LD_RUN_PATH'
 
6752
 
 
6753
-   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
6754
-      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
6755
       if test "$GCC" = yes; then
 
6756
-       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6757
+       archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6758
+       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6759
       else
 
6760
-       archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6761
+       archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6762
+       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6763
       fi
 
6764
-      runpath_var='LD_RUN_PATH'
 
6765
-      hardcode_shlibpath_var_GCJ=no
 
6766
       ;;
 
6767
 
 
6768
-    sysv5*)
 
6769
-      no_undefined_flag_GCJ=' -z text'
 
6770
-      # $CC -shared without GNU ld will not create a library from C++
 
6771
-      # object files and a static libstdc++, better avoid it by now
 
6772
-      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6773
-      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6774
-               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6775
-      hardcode_libdir_flag_spec_GCJ=
 
6776
+    sysv5* | sco3.2v5* | sco5v6*)
 
6777
+      # Note: We can NOT use -z defs as we might desire, because we do not
 
6778
+      # link with -lc, and that would cause any symbols used from libc to
 
6779
+      # always be unresolved, which means just about no library would
 
6780
+      # ever link correctly.  If we're not using GNU ld we use -z text
 
6781
+      # though, which does catch some bad symbols but isn't as heavy-handed
 
6782
+      # as -z defs.
 
6783
+      no_undefined_flag_GCJ='${wl}-z,text'
 
6784
+      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
6785
+      archive_cmds_need_lc_GCJ=no
 
6786
       hardcode_shlibpath_var_GCJ=no
 
6787
+      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6788
+      hardcode_libdir_separator_GCJ=':'
 
6789
+      link_all_deplibs_GCJ=yes
 
6790
+      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
6791
       runpath_var='LD_RUN_PATH'
 
6792
+
 
6793
+      if test "$GCC" = yes; then
 
6794
+       archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6795
+       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6796
+      else
 
6797
+       archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6798
+       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6799
+      fi
 
6800
       ;;
 
6801
 
 
6802
     uts4*)
 
6803
@@ -16977,1505 +16751,717 @@
 
6804
     esac
 
6805
   fi
 
6806
 
 
6807
-echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
6808
-echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
6809
-test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
6810
-
 
6811
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6812
-if test "$GCC" = yes; then
 
6813
-  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6814
-fi
 
6815
-
 
6816
-#
 
6817
-# Do we need to explicitly link libc?
 
6818
-#
 
6819
-case "x$archive_cmds_need_lc_GCJ" in
 
6820
-x|xyes)
 
6821
-  # Assume -lc should be added
 
6822
-  archive_cmds_need_lc_GCJ=yes
 
6823
-
 
6824
-  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6825
-    case $archive_cmds_GCJ in
 
6826
-    *'~'*)
 
6827
-      # FIXME: we may have to deal with multi-command sequences.
 
6828
-      ;;
 
6829
-    '$CC '*)
 
6830
-      # Test whether the compiler implicitly links with -lc since on some
 
6831
-      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6832
-      # to ld, don't add -lc before -lgcc.
 
6833
-      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6834
-echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
6835
-      $rm conftest*
 
6836
-      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6837
-
 
6838
-      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6839
-  (eval $ac_compile) 2>&5
 
6840
-  ac_status=$?
 
6841
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6842
-  (exit $ac_status); } 2>conftest.err; then
 
6843
-        soname=conftest
 
6844
-        lib=conftest
 
6845
-        libobjs=conftest.$ac_objext
 
6846
-        deplibs=
 
6847
-        wl=$lt_prog_compiler_wl_GCJ
 
6848
-        compiler_flags=-v
 
6849
-        linker_flags=-v
 
6850
-        verstring=
 
6851
-        output_objdir=.
 
6852
-        libname=conftest
 
6853
-        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
6854
-        allow_undefined_flag_GCJ=
 
6855
-        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
6856
-  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
6857
-  ac_status=$?
 
6858
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6859
-  (exit $ac_status); }
 
6860
-        then
 
6861
-         archive_cmds_need_lc_GCJ=no
 
6862
-        else
 
6863
-         archive_cmds_need_lc_GCJ=yes
 
6864
-        fi
 
6865
-        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
6866
-      else
 
6867
-        cat conftest.err 1>&5
 
6868
-      fi
 
6869
-      $rm conftest*
 
6870
-      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
6871
-echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
6872
-      ;;
 
6873
-    esac
 
6874
-  fi
 
6875
-  ;;
 
6876
-esac
 
6877
-
 
6878
-echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6879
-echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6880
-library_names_spec=
 
6881
-libname_spec='lib$name'
 
6882
-soname_spec=
 
6883
-shrext_cmds=".so"
 
6884
-postinstall_cmds=
 
6885
-postuninstall_cmds=
 
6886
-finish_cmds=
 
6887
-finish_eval=
 
6888
-shlibpath_var=
 
6889
-shlibpath_overrides_runpath=unknown
 
6890
-version_type=none
 
6891
-dynamic_linker="$host_os ld.so"
 
6892
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6893
-if test "$GCC" = yes; then
 
6894
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
6895
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
6896
-    # if the path contains ";" then we assume it to be the separator
 
6897
-    # otherwise default to the standard path separator (i.e. ":") - it is
 
6898
-    # assumed that no part of a normal pathname contains ";" but that should
 
6899
-    # okay in the real world where ";" in dirpaths is itself problematic.
 
6900
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
6901
-  else
 
6902
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
6903
-  fi
 
6904
-else
 
6905
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6906
-fi
 
6907
-need_lib_prefix=unknown
 
6908
-hardcode_into_libs=no
 
6909
-
 
6910
-# when you set need_version to no, make sure it does not cause -set_version
 
6911
-# flags to be left without arguments
 
6912
-need_version=unknown
 
6913
-
 
6914
-case $host_os in
 
6915
-aix3*)
 
6916
-  version_type=linux
 
6917
-  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
6918
-  shlibpath_var=LIBPATH
 
6919
-
 
6920
-  # AIX 3 has no versioning support, so we append a major version to the name.
 
6921
-  soname_spec='${libname}${release}${shared_ext}$major'
 
6922
-  ;;
 
6923
-
 
6924
-aix4* | aix5*)
 
6925
-  version_type=linux
 
6926
-  need_lib_prefix=no
 
6927
-  need_version=no
 
6928
-  hardcode_into_libs=yes
 
6929
-  if test "$host_cpu" = ia64; then
 
6930
-    # AIX 5 supports IA64
 
6931
-    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
6932
-    shlibpath_var=LD_LIBRARY_PATH
 
6933
-  else
 
6934
-    # With GCC up to 2.95.x, collect2 would create an import file
 
6935
-    # for dependence libraries.  The import file would start with
 
6936
-    # the line `#! .'.  This would cause the generated library to
 
6937
-    # depend on `.', always an invalid library.  This was fixed in
 
6938
-    # development snapshots of GCC prior to 3.0.
 
6939
-    case $host_os in
 
6940
-      aix4 | aix4.[01] | aix4.[01].*)
 
6941
-      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6942
-          echo ' yes '
 
6943
-          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6944
-       :
 
6945
-      else
 
6946
-       can_build_shared=no
 
6947
-      fi
 
6948
-      ;;
 
6949
-    esac
 
6950
-    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
6951
-    # soname into executable. Probably we can add versioning support to
 
6952
-    # collect2, so additional links can be useful in future.
 
6953
-    if test "$aix_use_runtimelinking" = yes; then
 
6954
-      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
6955
-      # instead of lib<name>.a to let people know that these are not
 
6956
-      # typical AIX shared libraries.
 
6957
-      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
6958
-    else
 
6959
-      # We preserve .a as extension for shared libraries through AIX4.2
 
6960
-      # and later when we are not doing run time linking.
 
6961
-      library_names_spec='${libname}${release}.a $libname.a'
 
6962
-      soname_spec='${libname}${release}${shared_ext}$major'
 
6963
-    fi
 
6964
-    shlibpath_var=LIBPATH
 
6965
-  fi
 
6966
-  ;;
 
6967
-
 
6968
-amigaos*)
 
6969
-  library_names_spec='$libname.ixlibrary $libname.a'
 
6970
-  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6971
-  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
6972
-  ;;
 
6973
-
 
6974
-beos*)
 
6975
-  library_names_spec='${libname}${shared_ext}'
 
6976
-  dynamic_linker="$host_os ld.so"
 
6977
-  shlibpath_var=LIBRARY_PATH
 
6978
-  ;;
 
6979
-
 
6980
-bsdi[45]*)
 
6981
-  version_type=linux
 
6982
-  need_version=no
 
6983
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
6984
-  soname_spec='${libname}${release}${shared_ext}$major'
 
6985
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
6986
-  shlibpath_var=LD_LIBRARY_PATH
 
6987
-  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
6988
-  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
6989
-  # the default ld.so.conf also contains /usr/contrib/lib and
 
6990
-  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
6991
-  # libtool to hard-code these into programs
 
6992
-  ;;
 
6993
-
 
6994
-cygwin* | mingw* | pw32*)
 
6995
-  version_type=windows
 
6996
-  shrext_cmds=".dll"
 
6997
-  need_version=no
 
6998
-  need_lib_prefix=no
 
6999
-
 
7000
-  case $GCC,$host_os in
 
7001
-  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7002
-    library_names_spec='$libname.dll.a'
 
7003
-    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7004
-    postinstall_cmds='base_file=`basename \${file}`~
 
7005
-      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7006
-      dldir=$destdir/`dirname \$dlpath`~
 
7007
-      test -d \$dldir || mkdir -p \$dldir~
 
7008
-      $install_prog $dir/$dlname \$dldir/$dlname~
 
7009
-      chmod a+x \$dldir/$dlname'
 
7010
-    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7011
-      dlpath=$dir/\$dldll~
 
7012
-       $rm \$dlpath'
 
7013
-    shlibpath_overrides_runpath=yes
 
7014
-
 
7015
-    case $host_os in
 
7016
-    cygwin*)
 
7017
-      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7018
-      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7019
-      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7020
-      ;;
 
7021
-    mingw*)
 
7022
-      # MinGW DLLs use traditional 'lib' prefix
 
7023
-      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7024
-      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7025
-      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7026
-        # It is most probably a Windows format PATH printed by
 
7027
-        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7028
-        # path with ; separators, and with drive letters. We can handle the
 
7029
-        # drive letters (cygwin fileutils understands them), so leave them,
 
7030
-        # especially as we might pass files found there to a mingw objdump,
 
7031
-        # which wouldn't understand a cygwinified path. Ahh.
 
7032
-        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7033
-      else
 
7034
-        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7035
-      fi
 
7036
-      ;;
 
7037
-    pw32*)
 
7038
-      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7039
-      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7040
-      ;;
 
7041
-    esac
 
7042
-    ;;
 
7043
-
 
7044
-  *)
 
7045
-    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7046
-    ;;
 
7047
-  esac
 
7048
-  dynamic_linker='Win32 ld.exe'
 
7049
-  # FIXME: first we should search . and the directory the executable is in
 
7050
-  shlibpath_var=PATH
 
7051
-  ;;
 
7052
-
 
7053
-darwin* | rhapsody*)
 
7054
-  dynamic_linker="$host_os dyld"
 
7055
-  version_type=darwin
 
7056
-  need_lib_prefix=no
 
7057
-  need_version=no
 
7058
-  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7059
-  soname_spec='${libname}${release}${major}$shared_ext'
 
7060
-  shlibpath_overrides_runpath=yes
 
7061
-  shlibpath_var=DYLD_LIBRARY_PATH
 
7062
-  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7063
-  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7064
-  if test "$GCC" = yes; then
 
7065
-    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"`
 
7066
-  else
 
7067
-    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7068
-  fi
 
7069
-  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7070
-  ;;
 
7071
-
 
7072
-dgux*)
 
7073
-  version_type=linux
 
7074
-  need_lib_prefix=no
 
7075
-  need_version=no
 
7076
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7077
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7078
-  shlibpath_var=LD_LIBRARY_PATH
 
7079
-  ;;
 
7080
-
 
7081
-freebsd1*)
 
7082
-  dynamic_linker=no
 
7083
-  ;;
 
7084
-
 
7085
-kfreebsd*-gnu)
 
7086
-  version_type=linux
 
7087
-  need_lib_prefix=no
 
7088
-  need_version=no
 
7089
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7090
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7091
-  shlibpath_var=LD_LIBRARY_PATH
 
7092
-  shlibpath_overrides_runpath=no
 
7093
-  hardcode_into_libs=yes
 
7094
-  dynamic_linker='GNU ld.so'
 
7095
-  ;;
 
7096
-
 
7097
-freebsd* | dragonfly*)
 
7098
-  # DragonFly does not have aout.  When/if they implement a new
 
7099
-  # versioning mechanism, adjust this.
 
7100
-  if test -x /usr/bin/objformat; then
 
7101
-    objformat=`/usr/bin/objformat`
 
7102
-  else
 
7103
-    case $host_os in
 
7104
-    freebsd[123]*) objformat=aout ;;
 
7105
-    *) objformat=elf ;;
 
7106
-    esac
 
7107
-  fi
 
7108
-  version_type=freebsd-$objformat
 
7109
-  case $version_type in
 
7110
-    freebsd-elf*)
 
7111
-      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7112
-      need_version=no
 
7113
-      need_lib_prefix=no
 
7114
-      ;;
 
7115
-    freebsd-*)
 
7116
-      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7117
-      need_version=yes
 
7118
-      ;;
 
7119
-  esac
 
7120
-  shlibpath_var=LD_LIBRARY_PATH
 
7121
-  case $host_os in
 
7122
-  freebsd2*)
 
7123
-    shlibpath_overrides_runpath=yes
 
7124
-    ;;
 
7125
-  freebsd3.[01]* | freebsdelf3.[01]*)
 
7126
-    shlibpath_overrides_runpath=yes
 
7127
-    hardcode_into_libs=yes
 
7128
-    ;;
 
7129
-  *) # from 3.2 on
 
7130
-    shlibpath_overrides_runpath=no
 
7131
-    hardcode_into_libs=yes
 
7132
-    ;;
 
7133
-  esac
 
7134
-  ;;
 
7135
-
 
7136
-gnu*)
 
7137
-  version_type=linux
 
7138
-  need_lib_prefix=no
 
7139
-  need_version=no
 
7140
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7141
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7142
-  shlibpath_var=LD_LIBRARY_PATH
 
7143
-  hardcode_into_libs=yes
 
7144
-  ;;
 
7145
-
 
7146
-hpux9* | hpux10* | hpux11*)
 
7147
-  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7148
-  # link against other versions.
 
7149
-  version_type=sunos
 
7150
-  need_lib_prefix=no
 
7151
-  need_version=no
 
7152
-  case $host_cpu in
 
7153
-  ia64*)
 
7154
-    shrext_cmds='.so'
 
7155
-    hardcode_into_libs=yes
 
7156
-    dynamic_linker="$host_os dld.so"
 
7157
-    shlibpath_var=LD_LIBRARY_PATH
 
7158
-    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7159
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7160
-    soname_spec='${libname}${release}${shared_ext}$major'
 
7161
-    if test "X$HPUX_IA64_MODE" = X32; then
 
7162
-      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7163
-    else
 
7164
-      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7165
-    fi
 
7166
-    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7167
-    ;;
 
7168
-   hppa*64*)
 
7169
-     shrext_cmds='.sl'
 
7170
-     hardcode_into_libs=yes
 
7171
-     dynamic_linker="$host_os dld.sl"
 
7172
-     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7173
-     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7174
-     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7175
-     soname_spec='${libname}${release}${shared_ext}$major'
 
7176
-     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7177
-     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7178
-     ;;
 
7179
-   *)
 
7180
-    shrext_cmds='.sl'
 
7181
-    dynamic_linker="$host_os dld.sl"
 
7182
-    shlibpath_var=SHLIB_PATH
 
7183
-    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7184
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7185
-    soname_spec='${libname}${release}${shared_ext}$major'
 
7186
-    ;;
 
7187
-  esac
 
7188
-  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7189
-  postinstall_cmds='chmod 555 $lib'
 
7190
-  ;;
 
7191
-
 
7192
-irix5* | irix6* | nonstopux*)
 
7193
-  case $host_os in
 
7194
-    nonstopux*) version_type=nonstopux ;;
 
7195
-    *)
 
7196
-       if test "$lt_cv_prog_gnu_ld" = yes; then
 
7197
-               version_type=linux
 
7198
-       else
 
7199
-               version_type=irix
 
7200
-       fi ;;
 
7201
-  esac
 
7202
-  need_lib_prefix=no
 
7203
-  need_version=no
 
7204
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7205
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7206
-  case $host_os in
 
7207
-  irix5* | nonstopux*)
 
7208
-    libsuff= shlibsuff=
 
7209
-    ;;
 
7210
-  *)
 
7211
-    case $LD in # libtool.m4 will add one of these switches to LD
 
7212
-    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7213
-      libsuff= shlibsuff= libmagic=32-bit;;
 
7214
-    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7215
-      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7216
-    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7217
-      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7218
-    *) libsuff= shlibsuff= libmagic=never-match;;
 
7219
-    esac
 
7220
-    ;;
 
7221
-  esac
 
7222
-  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7223
-  shlibpath_overrides_runpath=no
 
7224
-  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7225
-  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7226
-  hardcode_into_libs=yes
 
7227
-  ;;
 
7228
-
 
7229
-# No shared lib support for Linux oldld, aout, or coff.
 
7230
-linux*oldld* | linux*aout* | linux*coff*)
 
7231
-  dynamic_linker=no
 
7232
-  ;;
 
7233
-
 
7234
-# This must be Linux ELF.
 
7235
-linux*)
 
7236
-  version_type=linux
 
7237
-  need_lib_prefix=no
 
7238
-  need_version=no
 
7239
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7240
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7241
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7242
-  shlibpath_var=LD_LIBRARY_PATH
 
7243
-  shlibpath_overrides_runpath=no
 
7244
-  # This implies no fast_install, which is unacceptable.
 
7245
-  # Some rework will be needed to allow for fast_install
 
7246
-  # before this can be enabled.
 
7247
-  hardcode_into_libs=yes
 
7248
-
 
7249
-  # Append ld.so.conf contents to the search path
 
7250
-  if test -f /etc/ld.so.conf; then
 
7251
-    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' ' '`
 
7252
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7253
-  fi
 
7254
-
 
7255
-  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7256
-  # powerpc, because MkLinux only supported shared libraries with the
 
7257
-  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7258
-  # most powerpc-linux boxes support dynamic linking these days and
 
7259
-  # people can always --disable-shared, the test was removed, and we
 
7260
-  # assume the GNU/Linux dynamic linker is in use.
 
7261
-  dynamic_linker='GNU/Linux ld.so'
 
7262
-  ;;
 
7263
-
 
7264
-knetbsd*-gnu)
 
7265
-  version_type=linux
 
7266
-  need_lib_prefix=no
 
7267
-  need_version=no
 
7268
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7269
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7270
-  shlibpath_var=LD_LIBRARY_PATH
 
7271
-  shlibpath_overrides_runpath=no
 
7272
-  hardcode_into_libs=yes
 
7273
-  dynamic_linker='GNU ld.so'
 
7274
-  ;;
 
7275
-
 
7276
-netbsd*)
 
7277
-  version_type=sunos
 
7278
-  need_lib_prefix=no
 
7279
-  need_version=no
 
7280
-  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7281
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7282
-    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7283
-    dynamic_linker='NetBSD (a.out) ld.so'
 
7284
-  else
 
7285
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7286
-    soname_spec='${libname}${release}${shared_ext}$major'
 
7287
-    dynamic_linker='NetBSD ld.elf_so'
 
7288
-  fi
 
7289
-  shlibpath_var=LD_LIBRARY_PATH
 
7290
-  shlibpath_overrides_runpath=yes
 
7291
-  hardcode_into_libs=yes
 
7292
-  ;;
 
7293
-
 
7294
-newsos6)
 
7295
-  version_type=linux
 
7296
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7297
-  shlibpath_var=LD_LIBRARY_PATH
 
7298
-  shlibpath_overrides_runpath=yes
 
7299
-  ;;
 
7300
-
 
7301
-nto-qnx*)
 
7302
-  version_type=linux
 
7303
-  need_lib_prefix=no
 
7304
-  need_version=no
 
7305
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7306
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7307
-  shlibpath_var=LD_LIBRARY_PATH
 
7308
-  shlibpath_overrides_runpath=yes
 
7309
-  ;;
 
7310
-
 
7311
-openbsd*)
 
7312
-  version_type=sunos
 
7313
-  need_lib_prefix=no
 
7314
-  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
7315
-  case $host_os in
 
7316
-    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
7317
-    *)                         need_version=no  ;;
 
7318
-  esac
 
7319
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7320
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7321
-  shlibpath_var=LD_LIBRARY_PATH
 
7322
-  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7323
-    case $host_os in
 
7324
-      openbsd2.[89] | openbsd2.[89].*)
 
7325
-       shlibpath_overrides_runpath=no
 
7326
-       ;;
 
7327
-      *)
 
7328
-       shlibpath_overrides_runpath=yes
 
7329
-       ;;
 
7330
-      esac
 
7331
-  else
 
7332
-    shlibpath_overrides_runpath=yes
 
7333
-  fi
 
7334
-  ;;
 
7335
-
 
7336
-os2*)
 
7337
-  libname_spec='$name'
 
7338
-  shrext_cmds=".dll"
 
7339
-  need_lib_prefix=no
 
7340
-  library_names_spec='$libname${shared_ext} $libname.a'
 
7341
-  dynamic_linker='OS/2 ld.exe'
 
7342
-  shlibpath_var=LIBPATH
 
7343
-  ;;
 
7344
-
 
7345
-osf3* | osf4* | osf5*)
 
7346
-  version_type=osf
 
7347
-  need_lib_prefix=no
 
7348
-  need_version=no
 
7349
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7350
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7351
-  shlibpath_var=LD_LIBRARY_PATH
 
7352
-  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7353
-  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7354
-  ;;
 
7355
-
 
7356
-sco3.2v5*)
 
7357
-  version_type=osf
 
7358
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7359
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7360
-  shlibpath_var=LD_LIBRARY_PATH
 
7361
-  ;;
 
7362
-
 
7363
-solaris*)
 
7364
-  version_type=linux
 
7365
-  need_lib_prefix=no
 
7366
-  need_version=no
 
7367
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7368
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7369
-  shlibpath_var=LD_LIBRARY_PATH
 
7370
-  shlibpath_overrides_runpath=yes
 
7371
-  hardcode_into_libs=yes
 
7372
-  # ldd complains unless libraries are executable
 
7373
-  postinstall_cmds='chmod +x $lib'
 
7374
-  ;;
 
7375
-
 
7376
-sunos4*)
 
7377
-  version_type=sunos
 
7378
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7379
-  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7380
-  shlibpath_var=LD_LIBRARY_PATH
 
7381
-  shlibpath_overrides_runpath=yes
 
7382
-  if test "$with_gnu_ld" = yes; then
 
7383
-    need_lib_prefix=no
 
7384
-  fi
 
7385
-  need_version=yes
 
7386
-  ;;
 
7387
-
 
7388
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7389
-  version_type=linux
 
7390
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7391
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7392
-  shlibpath_var=LD_LIBRARY_PATH
 
7393
-  case $host_vendor in
 
7394
-    sni)
 
7395
-      shlibpath_overrides_runpath=no
 
7396
-      need_lib_prefix=no
 
7397
-      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7398
-      runpath_var=LD_RUN_PATH
 
7399
-      ;;
 
7400
-    siemens)
 
7401
-      need_lib_prefix=no
 
7402
-      ;;
 
7403
-    motorola)
 
7404
-      need_lib_prefix=no
 
7405
-      need_version=no
 
7406
-      shlibpath_overrides_runpath=no
 
7407
-      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7408
-      ;;
 
7409
-  esac
 
7410
-  ;;
 
7411
-
 
7412
-sysv4*MP*)
 
7413
-  if test -d /usr/nec ;then
 
7414
-    version_type=linux
 
7415
-    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7416
-    soname_spec='$libname${shared_ext}.$major'
 
7417
-    shlibpath_var=LD_LIBRARY_PATH
 
7418
-  fi
 
7419
-  ;;
 
7420
-
 
7421
-uts4*)
 
7422
-  version_type=linux
 
7423
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7424
-  soname_spec='${libname}${release}${shared_ext}$major'
 
7425
-  shlibpath_var=LD_LIBRARY_PATH
 
7426
-  ;;
 
7427
-
 
7428
-*)
 
7429
-  dynamic_linker=no
 
7430
-  ;;
 
7431
-esac
 
7432
-echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7433
-echo "${ECHO_T}$dynamic_linker" >&6
 
7434
-test "$dynamic_linker" = no && can_build_shared=no
 
7435
-
 
7436
-echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7437
-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
7438
-hardcode_action_GCJ=
 
7439
-if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
7440
-   test -n "$runpath_var_GCJ" || \
 
7441
-   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
7442
-
 
7443
-  # We can hardcode non-existant directories.
 
7444
-  if test "$hardcode_direct_GCJ" != no &&
 
7445
-     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
7446
-     # have to relink, otherwise we might link with an installed library
 
7447
-     # when we should be linking with a yet-to-be-installed one
 
7448
-     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
7449
-     test "$hardcode_minus_L_GCJ" != no; then
 
7450
-    # Linking always hardcodes the temporary library directory.
 
7451
-    hardcode_action_GCJ=relink
 
7452
-  else
 
7453
-    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
7454
-    hardcode_action_GCJ=immediate
 
7455
-  fi
 
7456
-else
 
7457
-  # We cannot hardcode anything, or else we can only hardcode existing
 
7458
-  # directories.
 
7459
-  hardcode_action_GCJ=unsupported
 
7460
-fi
 
7461
-echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
7462
-echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
7463
-
 
7464
-if test "$hardcode_action_GCJ" = relink; then
 
7465
-  # Fast installation is not supported
 
7466
-  enable_fast_install=no
 
7467
-elif test "$shlibpath_overrides_runpath" = yes ||
 
7468
-     test "$enable_shared" = no; then
 
7469
-  # Fast installation is not necessary
 
7470
-  enable_fast_install=needless
 
7471
-fi
 
7472
-
 
7473
-striplib=
 
7474
-old_striplib=
 
7475
-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7476
-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7477
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7478
-  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7479
-  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7480
-  echo "$as_me:$LINENO: result: yes" >&5
 
7481
-echo "${ECHO_T}yes" >&6
 
7482
-else
 
7483
-# FIXME - insert some real tests, host_os isn't really good enough
 
7484
-  case $host_os in
 
7485
-   darwin*)
 
7486
-       if test -n "$STRIP" ; then
 
7487
-         striplib="$STRIP -x"
 
7488
-         echo "$as_me:$LINENO: result: yes" >&5
 
7489
-echo "${ECHO_T}yes" >&6
 
7490
-       else
 
7491
-  echo "$as_me:$LINENO: result: no" >&5
 
7492
-echo "${ECHO_T}no" >&6
 
7493
-fi
 
7494
-       ;;
 
7495
-   *)
 
7496
-  echo "$as_me:$LINENO: result: no" >&5
 
7497
-echo "${ECHO_T}no" >&6
 
7498
-    ;;
 
7499
-  esac
 
7500
-fi
 
7501
-
 
7502
-if test "x$enable_dlopen" != xyes; then
 
7503
-  enable_dlopen=unknown
 
7504
-  enable_dlopen_self=unknown
 
7505
-  enable_dlopen_self_static=unknown
 
7506
-else
 
7507
-  lt_cv_dlopen=no
 
7508
-  lt_cv_dlopen_libs=
 
7509
-
 
7510
-  case $host_os in
 
7511
-  beos*)
 
7512
-    lt_cv_dlopen="load_add_on"
 
7513
-    lt_cv_dlopen_libs=
 
7514
-    lt_cv_dlopen_self=yes
 
7515
-    ;;
 
7516
-
 
7517
-  mingw* | pw32*)
 
7518
-    lt_cv_dlopen="LoadLibrary"
 
7519
-    lt_cv_dlopen_libs=
 
7520
-   ;;
 
7521
-
 
7522
-  cygwin*)
 
7523
-    lt_cv_dlopen="dlopen"
 
7524
-    lt_cv_dlopen_libs=
 
7525
-   ;;
 
7526
-
 
7527
-  darwin*)
 
7528
-  # if libdl is installed we need to link against it
 
7529
-    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7530
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7531
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7532
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7533
-else
 
7534
-  ac_check_lib_save_LIBS=$LIBS
 
7535
-LIBS="-ldl  $LIBS"
 
7536
-cat >conftest.$ac_ext <<_ACEOF
 
7537
-/* confdefs.h.  */
 
7538
-_ACEOF
 
7539
-cat confdefs.h >>conftest.$ac_ext
 
7540
-cat >>conftest.$ac_ext <<_ACEOF
 
7541
-/* end confdefs.h.  */
 
7542
-
 
7543
-/* Override any gcc2 internal prototype to avoid an error.  */
 
7544
-#ifdef __cplusplus
 
7545
-extern "C"
 
7546
-#endif
 
7547
-/* We use char because int might match the return type of a gcc2
 
7548
-   builtin and then its argument prototype would still apply.  */
 
7549
-char dlopen ();
 
7550
-int
 
7551
-main ()
 
7552
-{
 
7553
-dlopen ();
 
7554
-  ;
 
7555
-  return 0;
 
7556
-}
 
7557
-_ACEOF
 
7558
-rm -f conftest.$ac_objext conftest$ac_exeext
 
7559
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7560
-  (eval $ac_link) 2>conftest.er1
 
7561
-  ac_status=$?
 
7562
-  grep -v '^ *+' conftest.er1 >conftest.err
 
7563
-  rm -f conftest.er1
 
7564
-  cat conftest.err >&5
 
7565
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7566
-  (exit $ac_status); } &&
 
7567
-        { ac_try='test -z "$ac_c_werror_flag"
 
7568
-                        || test ! -s conftest.err'
 
7569
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7570
-  (eval $ac_try) 2>&5
 
7571
-  ac_status=$?
 
7572
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7573
-  (exit $ac_status); }; } &&
 
7574
-        { ac_try='test -s conftest$ac_exeext'
 
7575
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7576
-  (eval $ac_try) 2>&5
 
7577
-  ac_status=$?
 
7578
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7579
-  (exit $ac_status); }; }; then
 
7580
-  ac_cv_lib_dl_dlopen=yes
 
7581
-else
 
7582
-  echo "$as_me: failed program was:" >&5
 
7583
-sed 's/^/| /' conftest.$ac_ext >&5
 
7584
-
 
7585
-ac_cv_lib_dl_dlopen=no
 
7586
-fi
 
7587
-rm -f conftest.err conftest.$ac_objext \
 
7588
-      conftest$ac_exeext conftest.$ac_ext
 
7589
-LIBS=$ac_check_lib_save_LIBS
 
7590
-fi
 
7591
-echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7592
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7593
-if test $ac_cv_lib_dl_dlopen = yes; then
 
7594
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7595
-else
 
7596
-
 
7597
-    lt_cv_dlopen="dyld"
 
7598
-    lt_cv_dlopen_libs=
 
7599
-    lt_cv_dlopen_self=yes
 
7600
-
 
7601
-fi
 
7602
-
 
7603
-   ;;
 
7604
-
 
7605
-  *)
 
7606
-    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7607
-echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7608
-if test "${ac_cv_func_shl_load+set}" = set; then
 
7609
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7610
-else
 
7611
-  cat >conftest.$ac_ext <<_ACEOF
 
7612
-/* confdefs.h.  */
 
7613
-_ACEOF
 
7614
-cat confdefs.h >>conftest.$ac_ext
 
7615
-cat >>conftest.$ac_ext <<_ACEOF
 
7616
-/* end confdefs.h.  */
 
7617
-/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
7618
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7619
-#define shl_load innocuous_shl_load
 
7620
-
 
7621
-/* System header to define __stub macros and hopefully few prototypes,
 
7622
-    which can conflict with char shl_load (); below.
 
7623
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7624
-    <limits.h> exists even on freestanding compilers.  */
 
7625
-
 
7626
-#ifdef __STDC__
 
7627
-# include <limits.h>
 
7628
-#else
 
7629
-# include <assert.h>
 
7630
-#endif
 
7631
-
 
7632
-#undef shl_load
 
7633
-
 
7634
-/* Override any gcc2 internal prototype to avoid an error.  */
 
7635
-#ifdef __cplusplus
 
7636
-extern "C"
 
7637
-{
 
7638
-#endif
 
7639
-/* We use char because int might match the return type of a gcc2
 
7640
-   builtin and then its argument prototype would still apply.  */
 
7641
-char shl_load ();
 
7642
-/* The GNU C library defines this for functions which it implements
 
7643
-    to always fail with ENOSYS.  Some functions are actually named
 
7644
-    something starting with __ and the normal name is an alias.  */
 
7645
-#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7646
-choke me
 
7647
-#else
 
7648
-char (*f) () = shl_load;
 
7649
-#endif
 
7650
-#ifdef __cplusplus
 
7651
-}
 
7652
-#endif
 
7653
-
 
7654
-int
 
7655
-main ()
 
7656
-{
 
7657
-return f != shl_load;
 
7658
-  ;
 
7659
-  return 0;
 
7660
-}
 
7661
-_ACEOF
 
7662
-rm -f conftest.$ac_objext conftest$ac_exeext
 
7663
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7664
-  (eval $ac_link) 2>conftest.er1
 
7665
-  ac_status=$?
 
7666
-  grep -v '^ *+' conftest.er1 >conftest.err
 
7667
-  rm -f conftest.er1
 
7668
-  cat conftest.err >&5
 
7669
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7670
-  (exit $ac_status); } &&
 
7671
-        { ac_try='test -z "$ac_c_werror_flag"
 
7672
-                        || test ! -s conftest.err'
 
7673
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7674
-  (eval $ac_try) 2>&5
 
7675
-  ac_status=$?
 
7676
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7677
-  (exit $ac_status); }; } &&
 
7678
-        { ac_try='test -s conftest$ac_exeext'
 
7679
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7680
-  (eval $ac_try) 2>&5
 
7681
-  ac_status=$?
 
7682
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7683
-  (exit $ac_status); }; }; then
 
7684
-  ac_cv_func_shl_load=yes
 
7685
-else
 
7686
-  echo "$as_me: failed program was:" >&5
 
7687
-sed 's/^/| /' conftest.$ac_ext >&5
 
7688
-
 
7689
-ac_cv_func_shl_load=no
 
7690
-fi
 
7691
-rm -f conftest.err conftest.$ac_objext \
 
7692
-      conftest$ac_exeext conftest.$ac_ext
 
7693
-fi
 
7694
-echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7695
-echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7696
-if test $ac_cv_func_shl_load = yes; then
 
7697
-  lt_cv_dlopen="shl_load"
 
7698
-else
 
7699
-  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7700
-echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7701
-if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7702
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7703
-else
 
7704
-  ac_check_lib_save_LIBS=$LIBS
 
7705
-LIBS="-ldld  $LIBS"
 
7706
-cat >conftest.$ac_ext <<_ACEOF
 
7707
-/* confdefs.h.  */
 
7708
-_ACEOF
 
7709
-cat confdefs.h >>conftest.$ac_ext
 
7710
-cat >>conftest.$ac_ext <<_ACEOF
 
7711
-/* end confdefs.h.  */
 
7712
-
 
7713
-/* Override any gcc2 internal prototype to avoid an error.  */
 
7714
-#ifdef __cplusplus
 
7715
-extern "C"
 
7716
-#endif
 
7717
-/* We use char because int might match the return type of a gcc2
 
7718
-   builtin and then its argument prototype would still apply.  */
 
7719
-char shl_load ();
 
7720
-int
 
7721
-main ()
 
7722
-{
 
7723
-shl_load ();
 
7724
-  ;
 
7725
-  return 0;
 
7726
-}
 
7727
-_ACEOF
 
7728
-rm -f conftest.$ac_objext conftest$ac_exeext
 
7729
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7730
-  (eval $ac_link) 2>conftest.er1
 
7731
-  ac_status=$?
 
7732
-  grep -v '^ *+' conftest.er1 >conftest.err
 
7733
-  rm -f conftest.er1
 
7734
-  cat conftest.err >&5
 
7735
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7736
-  (exit $ac_status); } &&
 
7737
-        { ac_try='test -z "$ac_c_werror_flag"
 
7738
-                        || test ! -s conftest.err'
 
7739
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7740
-  (eval $ac_try) 2>&5
 
7741
-  ac_status=$?
 
7742
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7743
-  (exit $ac_status); }; } &&
 
7744
-        { ac_try='test -s conftest$ac_exeext'
 
7745
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7746
-  (eval $ac_try) 2>&5
 
7747
-  ac_status=$?
 
7748
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7749
-  (exit $ac_status); }; }; then
 
7750
-  ac_cv_lib_dld_shl_load=yes
 
7751
-else
 
7752
-  echo "$as_me: failed program was:" >&5
 
7753
-sed 's/^/| /' conftest.$ac_ext >&5
 
7754
-
 
7755
-ac_cv_lib_dld_shl_load=no
 
7756
-fi
 
7757
-rm -f conftest.err conftest.$ac_objext \
 
7758
-      conftest$ac_exeext conftest.$ac_ext
 
7759
-LIBS=$ac_check_lib_save_LIBS
 
7760
-fi
 
7761
-echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7762
-echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7763
-if test $ac_cv_lib_dld_shl_load = yes; then
 
7764
-  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
7765
-else
 
7766
-  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7767
-echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7768
-if test "${ac_cv_func_dlopen+set}" = set; then
 
7769
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7770
-else
 
7771
-  cat >conftest.$ac_ext <<_ACEOF
 
7772
-/* confdefs.h.  */
 
7773
-_ACEOF
 
7774
-cat confdefs.h >>conftest.$ac_ext
 
7775
-cat >>conftest.$ac_ext <<_ACEOF
 
7776
-/* end confdefs.h.  */
 
7777
-/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
7778
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7779
-#define dlopen innocuous_dlopen
 
7780
-
 
7781
-/* System header to define __stub macros and hopefully few prototypes,
 
7782
-    which can conflict with char dlopen (); below.
 
7783
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7784
-    <limits.h> exists even on freestanding compilers.  */
 
7785
-
 
7786
-#ifdef __STDC__
 
7787
-# include <limits.h>
 
7788
-#else
 
7789
-# include <assert.h>
 
7790
-#endif
 
7791
-
 
7792
-#undef dlopen
 
7793
-
 
7794
-/* Override any gcc2 internal prototype to avoid an error.  */
 
7795
-#ifdef __cplusplus
 
7796
-extern "C"
 
7797
-{
 
7798
-#endif
 
7799
-/* We use char because int might match the return type of a gcc2
 
7800
-   builtin and then its argument prototype would still apply.  */
 
7801
-char dlopen ();
 
7802
-/* The GNU C library defines this for functions which it implements
 
7803
-    to always fail with ENOSYS.  Some functions are actually named
 
7804
-    something starting with __ and the normal name is an alias.  */
 
7805
-#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
7806
-choke me
 
7807
-#else
 
7808
-char (*f) () = dlopen;
 
7809
-#endif
 
7810
-#ifdef __cplusplus
 
7811
-}
 
7812
-#endif
 
7813
-
 
7814
-int
 
7815
-main ()
 
7816
-{
 
7817
-return f != dlopen;
 
7818
-  ;
 
7819
-  return 0;
 
7820
-}
 
7821
-_ACEOF
 
7822
-rm -f conftest.$ac_objext conftest$ac_exeext
 
7823
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7824
-  (eval $ac_link) 2>conftest.er1
 
7825
-  ac_status=$?
 
7826
-  grep -v '^ *+' conftest.er1 >conftest.err
 
7827
-  rm -f conftest.er1
 
7828
-  cat conftest.err >&5
 
7829
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7830
-  (exit $ac_status); } &&
 
7831
-        { ac_try='test -z "$ac_c_werror_flag"
 
7832
-                        || test ! -s conftest.err'
 
7833
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7834
-  (eval $ac_try) 2>&5
 
7835
-  ac_status=$?
 
7836
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7837
-  (exit $ac_status); }; } &&
 
7838
-        { ac_try='test -s conftest$ac_exeext'
 
7839
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7840
-  (eval $ac_try) 2>&5
 
7841
-  ac_status=$?
 
7842
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7843
-  (exit $ac_status); }; }; then
 
7844
-  ac_cv_func_dlopen=yes
 
7845
-else
 
7846
-  echo "$as_me: failed program was:" >&5
 
7847
-sed 's/^/| /' conftest.$ac_ext >&5
 
7848
-
 
7849
-ac_cv_func_dlopen=no
 
7850
-fi
 
7851
-rm -f conftest.err conftest.$ac_objext \
 
7852
-      conftest$ac_exeext conftest.$ac_ext
 
7853
-fi
 
7854
-echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
7855
-echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
7856
-if test $ac_cv_func_dlopen = yes; then
 
7857
-  lt_cv_dlopen="dlopen"
 
7858
-else
 
7859
-  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7860
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7861
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7862
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7863
-else
 
7864
-  ac_check_lib_save_LIBS=$LIBS
 
7865
-LIBS="-ldl  $LIBS"
 
7866
-cat >conftest.$ac_ext <<_ACEOF
 
7867
-/* confdefs.h.  */
 
7868
-_ACEOF
 
7869
-cat confdefs.h >>conftest.$ac_ext
 
7870
-cat >>conftest.$ac_ext <<_ACEOF
 
7871
-/* end confdefs.h.  */
 
7872
-
 
7873
-/* Override any gcc2 internal prototype to avoid an error.  */
 
7874
-#ifdef __cplusplus
 
7875
-extern "C"
 
7876
-#endif
 
7877
-/* We use char because int might match the return type of a gcc2
 
7878
-   builtin and then its argument prototype would still apply.  */
 
7879
-char dlopen ();
 
7880
-int
 
7881
-main ()
 
7882
-{
 
7883
-dlopen ();
 
7884
-  ;
 
7885
-  return 0;
 
7886
-}
 
7887
-_ACEOF
 
7888
-rm -f conftest.$ac_objext conftest$ac_exeext
 
7889
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7890
-  (eval $ac_link) 2>conftest.er1
 
7891
-  ac_status=$?
 
7892
-  grep -v '^ *+' conftest.er1 >conftest.err
 
7893
-  rm -f conftest.er1
 
7894
-  cat conftest.err >&5
 
7895
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7896
-  (exit $ac_status); } &&
 
7897
-        { ac_try='test -z "$ac_c_werror_flag"
 
7898
-                        || test ! -s conftest.err'
 
7899
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7900
-  (eval $ac_try) 2>&5
 
7901
-  ac_status=$?
 
7902
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7903
-  (exit $ac_status); }; } &&
 
7904
-        { ac_try='test -s conftest$ac_exeext'
 
7905
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7906
-  (eval $ac_try) 2>&5
 
7907
-  ac_status=$?
 
7908
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7909
-  (exit $ac_status); }; }; then
 
7910
-  ac_cv_lib_dl_dlopen=yes
 
7911
-else
 
7912
-  echo "$as_me: failed program was:" >&5
 
7913
-sed 's/^/| /' conftest.$ac_ext >&5
 
7914
-
 
7915
-ac_cv_lib_dl_dlopen=no
 
7916
-fi
 
7917
-rm -f conftest.err conftest.$ac_objext \
 
7918
-      conftest$ac_exeext conftest.$ac_ext
 
7919
-LIBS=$ac_check_lib_save_LIBS
 
7920
-fi
 
7921
-echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7922
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7923
-if test $ac_cv_lib_dl_dlopen = yes; then
 
7924
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7925
-else
 
7926
-  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
7927
-echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
7928
-if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
7929
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7930
-else
 
7931
-  ac_check_lib_save_LIBS=$LIBS
 
7932
-LIBS="-lsvld  $LIBS"
 
7933
-cat >conftest.$ac_ext <<_ACEOF
 
7934
-/* confdefs.h.  */
 
7935
-_ACEOF
 
7936
-cat confdefs.h >>conftest.$ac_ext
 
7937
-cat >>conftest.$ac_ext <<_ACEOF
 
7938
-/* end confdefs.h.  */
 
7939
-
 
7940
-/* Override any gcc2 internal prototype to avoid an error.  */
 
7941
-#ifdef __cplusplus
 
7942
-extern "C"
 
7943
-#endif
 
7944
-/* We use char because int might match the return type of a gcc2
 
7945
-   builtin and then its argument prototype would still apply.  */
 
7946
-char dlopen ();
 
7947
-int
 
7948
-main ()
 
7949
-{
 
7950
-dlopen ();
 
7951
-  ;
 
7952
-  return 0;
 
7953
-}
 
7954
-_ACEOF
 
7955
-rm -f conftest.$ac_objext conftest$ac_exeext
 
7956
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7957
-  (eval $ac_link) 2>conftest.er1
 
7958
-  ac_status=$?
 
7959
-  grep -v '^ *+' conftest.er1 >conftest.err
 
7960
-  rm -f conftest.er1
 
7961
-  cat conftest.err >&5
 
7962
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7963
-  (exit $ac_status); } &&
 
7964
-        { ac_try='test -z "$ac_c_werror_flag"
 
7965
-                        || test ! -s conftest.err'
 
7966
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7967
-  (eval $ac_try) 2>&5
 
7968
-  ac_status=$?
 
7969
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7970
-  (exit $ac_status); }; } &&
 
7971
-        { ac_try='test -s conftest$ac_exeext'
 
7972
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7973
-  (eval $ac_try) 2>&5
 
7974
-  ac_status=$?
 
7975
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7976
-  (exit $ac_status); }; }; then
 
7977
-  ac_cv_lib_svld_dlopen=yes
 
7978
-else
 
7979
-  echo "$as_me: failed program was:" >&5
 
7980
-sed 's/^/| /' conftest.$ac_ext >&5
 
7981
-
 
7982
-ac_cv_lib_svld_dlopen=no
 
7983
-fi
 
7984
-rm -f conftest.err conftest.$ac_objext \
 
7985
-      conftest$ac_exeext conftest.$ac_ext
 
7986
-LIBS=$ac_check_lib_save_LIBS
 
7987
-fi
 
7988
-echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
7989
-echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
7990
-if test $ac_cv_lib_svld_dlopen = yes; then
 
7991
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
7992
-else
 
7993
-  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
7994
-echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
7995
-if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
7996
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7997
-else
 
7998
-  ac_check_lib_save_LIBS=$LIBS
 
7999
-LIBS="-ldld  $LIBS"
 
8000
-cat >conftest.$ac_ext <<_ACEOF
 
8001
-/* confdefs.h.  */
 
8002
-_ACEOF
 
8003
-cat confdefs.h >>conftest.$ac_ext
 
8004
-cat >>conftest.$ac_ext <<_ACEOF
 
8005
-/* end confdefs.h.  */
 
8006
+echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
8007
+echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
8008
+test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
8009
 
 
8010
-/* Override any gcc2 internal prototype to avoid an error.  */
 
8011
-#ifdef __cplusplus
 
8012
-extern "C"
 
8013
-#endif
 
8014
-/* We use char because int might match the return type of a gcc2
 
8015
-   builtin and then its argument prototype would still apply.  */
 
8016
-char dld_link ();
 
8017
-int
 
8018
-main ()
 
8019
-{
 
8020
-dld_link ();
 
8021
-  ;
 
8022
-  return 0;
 
8023
-}
 
8024
-_ACEOF
 
8025
-rm -f conftest.$ac_objext conftest$ac_exeext
 
8026
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8027
-  (eval $ac_link) 2>conftest.er1
 
8028
-  ac_status=$?
 
8029
-  grep -v '^ *+' conftest.er1 >conftest.err
 
8030
-  rm -f conftest.er1
 
8031
-  cat conftest.err >&5
 
8032
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8033
-  (exit $ac_status); } &&
 
8034
-        { ac_try='test -z "$ac_c_werror_flag"
 
8035
-                        || test ! -s conftest.err'
 
8036
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8037
-  (eval $ac_try) 2>&5
 
8038
+#
 
8039
+# Do we need to explicitly link libc?
 
8040
+#
 
8041
+case "x$archive_cmds_need_lc_GCJ" in
 
8042
+x|xyes)
 
8043
+  # Assume -lc should be added
 
8044
+  archive_cmds_need_lc_GCJ=yes
 
8045
+
 
8046
+  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8047
+    case $archive_cmds_GCJ in
 
8048
+    *'~'*)
 
8049
+      # FIXME: we may have to deal with multi-command sequences.
 
8050
+      ;;
 
8051
+    '$CC '*)
 
8052
+      # Test whether the compiler implicitly links with -lc since on some
 
8053
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8054
+      # to ld, don't add -lc before -lgcc.
 
8055
+      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8056
+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8057
+      $rm conftest*
 
8058
+      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8059
+
 
8060
+      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8061
+  (eval $ac_compile) 2>&5
 
8062
   ac_status=$?
 
8063
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8064
-  (exit $ac_status); }; } &&
 
8065
-        { ac_try='test -s conftest$ac_exeext'
 
8066
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8067
-  (eval $ac_try) 2>&5
 
8068
+  (exit $ac_status); } 2>conftest.err; then
 
8069
+        soname=conftest
 
8070
+        lib=conftest
 
8071
+        libobjs=conftest.$ac_objext
 
8072
+        deplibs=
 
8073
+        wl=$lt_prog_compiler_wl_GCJ
 
8074
+       pic_flag=$lt_prog_compiler_pic_GCJ
 
8075
+        compiler_flags=-v
 
8076
+        linker_flags=-v
 
8077
+        verstring=
 
8078
+        output_objdir=.
 
8079
+        libname=conftest
 
8080
+        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
8081
+        allow_undefined_flag_GCJ=
 
8082
+        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8083
+  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8084
   ac_status=$?
 
8085
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8086
-  (exit $ac_status); }; }; then
 
8087
-  ac_cv_lib_dld_dld_link=yes
 
8088
-else
 
8089
-  echo "$as_me: failed program was:" >&5
 
8090
-sed 's/^/| /' conftest.$ac_ext >&5
 
8091
+  (exit $ac_status); }
 
8092
+        then
 
8093
+         archive_cmds_need_lc_GCJ=no
 
8094
+        else
 
8095
+         archive_cmds_need_lc_GCJ=yes
 
8096
+        fi
 
8097
+        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
8098
+      else
 
8099
+        cat conftest.err 1>&5
 
8100
+      fi
 
8101
+      $rm conftest*
 
8102
+      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
8103
+echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
8104
+      ;;
 
8105
+    esac
 
8106
+  fi
 
8107
+  ;;
 
8108
+esac
 
8109
 
 
8110
-ac_cv_lib_dld_dld_link=no
 
8111
-fi
 
8112
-rm -f conftest.err conftest.$ac_objext \
 
8113
-      conftest$ac_exeext conftest.$ac_ext
 
8114
-LIBS=$ac_check_lib_save_LIBS
 
8115
-fi
 
8116
-echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8117
-echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8118
-if test $ac_cv_lib_dld_dld_link = yes; then
 
8119
-  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8120
+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8121
+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8122
+library_names_spec=
 
8123
+libname_spec='lib$name'
 
8124
+soname_spec=
 
8125
+shrext_cmds=".so"
 
8126
+postinstall_cmds=
 
8127
+postuninstall_cmds=
 
8128
+finish_cmds=
 
8129
+finish_eval=
 
8130
+shlibpath_var=
 
8131
+shlibpath_overrides_runpath=unknown
 
8132
+version_type=none
 
8133
+dynamic_linker="$host_os ld.so"
 
8134
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8135
+if test "$GCC" = yes; then
 
8136
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8137
+  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8138
+    # if the path contains ";" then we assume it to be the separator
 
8139
+    # otherwise default to the standard path separator (i.e. ":") - it is
 
8140
+    # assumed that no part of a normal pathname contains ";" but that should
 
8141
+    # okay in the real world where ";" in dirpaths is itself problematic.
 
8142
+    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8143
+  else
 
8144
+    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8145
+  fi
 
8146
+else
 
8147
+  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8148
 fi
 
8149
+need_lib_prefix=unknown
 
8150
+hardcode_into_libs=no
 
8151
 
 
8152
+# when you set need_version to no, make sure it does not cause -set_version
 
8153
+# flags to be left without arguments
 
8154
+need_version=unknown
 
8155
 
 
8156
-fi
 
8157
+case $host_os in
 
8158
+aix3*)
 
8159
+  version_type=linux
 
8160
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8161
+  shlibpath_var=LIBPATH
 
8162
 
 
8163
+  # AIX 3 has no versioning support, so we append a major version to the name.
 
8164
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8165
+  ;;
 
8166
 
 
8167
-fi
 
8168
+aix4* | aix5*)
 
8169
+  version_type=linux
 
8170
+  need_lib_prefix=no
 
8171
+  need_version=no
 
8172
+  hardcode_into_libs=yes
 
8173
+  if test "$host_cpu" = ia64; then
 
8174
+    # AIX 5 supports IA64
 
8175
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8176
+    shlibpath_var=LD_LIBRARY_PATH
 
8177
+  else
 
8178
+    # With GCC up to 2.95.x, collect2 would create an import file
 
8179
+    # for dependence libraries.  The import file would start with
 
8180
+    # the line `#! .'.  This would cause the generated library to
 
8181
+    # depend on `.', always an invalid library.  This was fixed in
 
8182
+    # development snapshots of GCC prior to 3.0.
 
8183
+    case $host_os in
 
8184
+      aix4 | aix4.[01] | aix4.[01].*)
 
8185
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8186
+          echo ' yes '
 
8187
+          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8188
+       :
 
8189
+      else
 
8190
+       can_build_shared=no
 
8191
+      fi
 
8192
+      ;;
 
8193
+    esac
 
8194
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8195
+    # soname into executable. Probably we can add versioning support to
 
8196
+    # collect2, so additional links can be useful in future.
 
8197
+    if test "$aix_use_runtimelinking" = yes; then
 
8198
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8199
+      # instead of lib<name>.a to let people know that these are not
 
8200
+      # typical AIX shared libraries.
 
8201
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8202
+    else
 
8203
+      # We preserve .a as extension for shared libraries through AIX4.2
 
8204
+      # and later when we are not doing run time linking.
 
8205
+      library_names_spec='${libname}${release}.a $libname.a'
 
8206
+      soname_spec='${libname}${release}${shared_ext}$major'
 
8207
+    fi
 
8208
+    shlibpath_var=LIBPATH
 
8209
+  fi
 
8210
+  ;;
 
8211
 
 
8212
+amigaos*)
 
8213
+  library_names_spec='$libname.ixlibrary $libname.a'
 
8214
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8215
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
8216
+  ;;
 
8217
 
 
8218
-fi
 
8219
+beos*)
 
8220
+  library_names_spec='${libname}${shared_ext}'
 
8221
+  dynamic_linker="$host_os ld.so"
 
8222
+  shlibpath_var=LIBRARY_PATH
 
8223
+  ;;
 
8224
 
 
8225
+bsdi[45]*)
 
8226
+  version_type=linux
 
8227
+  need_version=no
 
8228
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8229
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8230
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8231
+  shlibpath_var=LD_LIBRARY_PATH
 
8232
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8233
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8234
+  # the default ld.so.conf also contains /usr/contrib/lib and
 
8235
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8236
+  # libtool to hard-code these into programs
 
8237
+  ;;
 
8238
 
 
8239
-fi
 
8240
+cygwin* | mingw* | pw32*)
 
8241
+  version_type=windows
 
8242
+  shrext_cmds=".dll"
 
8243
+  need_version=no
 
8244
+  need_lib_prefix=no
 
8245
 
 
8246
+  case $GCC,$host_os in
 
8247
+  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8248
+    library_names_spec='$libname.dll.a'
 
8249
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8250
+    postinstall_cmds='base_file=`basename \${file}`~
 
8251
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8252
+      dldir=$destdir/`dirname \$dlpath`~
 
8253
+      test -d \$dldir || mkdir -p \$dldir~
 
8254
+      $install_prog $dir/$dlname \$dldir/$dlname~
 
8255
+      chmod a+x \$dldir/$dlname'
 
8256
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8257
+      dlpath=$dir/\$dldll~
 
8258
+       $rm \$dlpath'
 
8259
+    shlibpath_overrides_runpath=yes
 
8260
 
 
8261
-fi
 
8262
+    case $host_os in
 
8263
+    cygwin*)
 
8264
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8265
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8266
+      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8267
+      ;;
 
8268
+    mingw*)
 
8269
+      # MinGW DLLs use traditional 'lib' prefix
 
8270
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8271
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8272
+      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8273
+        # It is most probably a Windows format PATH printed by
 
8274
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8275
+        # path with ; separators, and with drive letters. We can handle the
 
8276
+        # drive letters (cygwin fileutils understands them), so leave them,
 
8277
+        # especially as we might pass files found there to a mingw objdump,
 
8278
+        # which wouldn't understand a cygwinified path. Ahh.
 
8279
+        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8280
+      else
 
8281
+        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8282
+      fi
 
8283
+      ;;
 
8284
+    pw32*)
 
8285
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8286
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8287
+      ;;
 
8288
+    esac
 
8289
+    ;;
 
8290
 
 
8291
+  *)
 
8292
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8293
     ;;
 
8294
   esac
 
8295
+  dynamic_linker='Win32 ld.exe'
 
8296
+  # FIXME: first we should search . and the directory the executable is in
 
8297
+  shlibpath_var=PATH
 
8298
+  ;;
 
8299
 
 
8300
-  if test "x$lt_cv_dlopen" != xno; then
 
8301
-    enable_dlopen=yes
 
8302
+darwin* | rhapsody*)
 
8303
+  dynamic_linker="$host_os dyld"
 
8304
+  version_type=darwin
 
8305
+  need_lib_prefix=no
 
8306
+  need_version=no
 
8307
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8308
+  soname_spec='${libname}${release}${major}$shared_ext'
 
8309
+  shlibpath_overrides_runpath=yes
 
8310
+  shlibpath_var=DYLD_LIBRARY_PATH
 
8311
+  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8312
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8313
+  if test "$GCC" = yes; then
 
8314
+    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"`
 
8315
   else
 
8316
-    enable_dlopen=no
 
8317
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8318
   fi
 
8319
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8320
+  ;;
 
8321
 
 
8322
-  case $lt_cv_dlopen in
 
8323
-  dlopen)
 
8324
-    save_CPPFLAGS="$CPPFLAGS"
 
8325
-    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8326
-
 
8327
-    save_LDFLAGS="$LDFLAGS"
 
8328
-    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8329
+dgux*)
 
8330
+  version_type=linux
 
8331
+  need_lib_prefix=no
 
8332
+  need_version=no
 
8333
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8334
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8335
+  shlibpath_var=LD_LIBRARY_PATH
 
8336
+  ;;
 
8337
 
 
8338
-    save_LIBS="$LIBS"
 
8339
-    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8340
+freebsd1*)
 
8341
+  dynamic_linker=no
 
8342
+  ;;
 
8343
 
 
8344
-    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8345
-echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8346
-if test "${lt_cv_dlopen_self+set}" = set; then
 
8347
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8348
-else
 
8349
-         if test "$cross_compiling" = yes; then :
 
8350
-  lt_cv_dlopen_self=cross
 
8351
-else
 
8352
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8353
-  lt_status=$lt_dlunknown
 
8354
-  cat > conftest.$ac_ext <<EOF
 
8355
-#line 18280 "configure"
 
8356
-#include "confdefs.h"
 
8357
+kfreebsd*-gnu)
 
8358
+  version_type=linux
 
8359
+  need_lib_prefix=no
 
8360
+  need_version=no
 
8361
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8362
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8363
+  shlibpath_var=LD_LIBRARY_PATH
 
8364
+  shlibpath_overrides_runpath=no
 
8365
+  hardcode_into_libs=yes
 
8366
+  dynamic_linker='GNU ld.so'
 
8367
+  ;;
 
8368
 
 
8369
-#if HAVE_DLFCN_H
 
8370
-#include <dlfcn.h>
 
8371
-#endif
 
8372
+freebsd* | dragonfly*)
 
8373
+  # DragonFly does not have aout.  When/if they implement a new
 
8374
+  # versioning mechanism, adjust this.
 
8375
+  if test -x /usr/bin/objformat; then
 
8376
+    objformat=`/usr/bin/objformat`
 
8377
+  else
 
8378
+    case $host_os in
 
8379
+    freebsd[123]*) objformat=aout ;;
 
8380
+    *) objformat=elf ;;
 
8381
+    esac
 
8382
+  fi
 
8383
+  version_type=freebsd-$objformat
 
8384
+  case $version_type in
 
8385
+    freebsd-elf*)
 
8386
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8387
+      need_version=no
 
8388
+      need_lib_prefix=no
 
8389
+      ;;
 
8390
+    freebsd-*)
 
8391
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8392
+      need_version=yes
 
8393
+      ;;
 
8394
+  esac
 
8395
+  shlibpath_var=LD_LIBRARY_PATH
 
8396
+  case $host_os in
 
8397
+  freebsd2*)
 
8398
+    shlibpath_overrides_runpath=yes
 
8399
+    ;;
 
8400
+  freebsd3.[01]* | freebsdelf3.[01]*)
 
8401
+    shlibpath_overrides_runpath=yes
 
8402
+    hardcode_into_libs=yes
 
8403
+    ;;
 
8404
+  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8405
+  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8406
+    shlibpath_overrides_runpath=no
 
8407
+    hardcode_into_libs=yes
 
8408
+    ;;
 
8409
+  freebsd*) # from 4.6 on
 
8410
+    shlibpath_overrides_runpath=yes
 
8411
+    hardcode_into_libs=yes
 
8412
+    ;;
 
8413
+  esac
 
8414
+  ;;
 
8415
 
 
8416
-#include <stdio.h>
 
8417
+gnu*)
 
8418
+  version_type=linux
 
8419
+  need_lib_prefix=no
 
8420
+  need_version=no
 
8421
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8422
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8423
+  shlibpath_var=LD_LIBRARY_PATH
 
8424
+  hardcode_into_libs=yes
 
8425
+  ;;
 
8426
 
 
8427
-#ifdef RTLD_GLOBAL
 
8428
-#  define LT_DLGLOBAL          RTLD_GLOBAL
 
8429
-#else
 
8430
-#  ifdef DL_GLOBAL
 
8431
-#    define LT_DLGLOBAL                DL_GLOBAL
 
8432
-#  else
 
8433
-#    define LT_DLGLOBAL                0
 
8434
-#  endif
 
8435
-#endif
 
8436
+hpux9* | hpux10* | hpux11*)
 
8437
+  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8438
+  # link against other versions.
 
8439
+  version_type=sunos
 
8440
+  need_lib_prefix=no
 
8441
+  need_version=no
 
8442
+  case $host_cpu in
 
8443
+  ia64*)
 
8444
+    shrext_cmds='.so'
 
8445
+    hardcode_into_libs=yes
 
8446
+    dynamic_linker="$host_os dld.so"
 
8447
+    shlibpath_var=LD_LIBRARY_PATH
 
8448
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8449
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8450
+    soname_spec='${libname}${release}${shared_ext}$major'
 
8451
+    if test "X$HPUX_IA64_MODE" = X32; then
 
8452
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8453
+    else
 
8454
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8455
+    fi
 
8456
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8457
+    ;;
 
8458
+   hppa*64*)
 
8459
+     shrext_cmds='.sl'
 
8460
+     hardcode_into_libs=yes
 
8461
+     dynamic_linker="$host_os dld.sl"
 
8462
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8463
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8464
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8465
+     soname_spec='${libname}${release}${shared_ext}$major'
 
8466
+     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8467
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8468
+     ;;
 
8469
+   *)
 
8470
+    shrext_cmds='.sl'
 
8471
+    dynamic_linker="$host_os dld.sl"
 
8472
+    shlibpath_var=SHLIB_PATH
 
8473
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8474
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8475
+    soname_spec='${libname}${release}${shared_ext}$major'
 
8476
+    ;;
 
8477
+  esac
 
8478
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8479
+  postinstall_cmds='chmod 555 $lib'
 
8480
+  ;;
 
8481
 
 
8482
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8483
-   find out it does not work in some platform. */
 
8484
-#ifndef LT_DLLAZY_OR_NOW
 
8485
-#  ifdef RTLD_LAZY
 
8486
-#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
 
8487
-#  else
 
8488
-#    ifdef DL_LAZY
 
8489
-#      define LT_DLLAZY_OR_NOW         DL_LAZY
 
8490
-#    else
 
8491
-#      ifdef RTLD_NOW
 
8492
-#        define LT_DLLAZY_OR_NOW       RTLD_NOW
 
8493
-#      else
 
8494
-#        ifdef DL_NOW
 
8495
-#          define LT_DLLAZY_OR_NOW     DL_NOW
 
8496
-#        else
 
8497
-#          define LT_DLLAZY_OR_NOW     0
 
8498
-#        endif
 
8499
-#      endif
 
8500
-#    endif
 
8501
-#  endif
 
8502
-#endif
 
8503
+interix3*)
 
8504
+  version_type=linux
 
8505
+  need_lib_prefix=no
 
8506
+  need_version=no
 
8507
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8508
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8509
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8510
+  shlibpath_var=LD_LIBRARY_PATH
 
8511
+  shlibpath_overrides_runpath=no
 
8512
+  hardcode_into_libs=yes
 
8513
+  ;;
 
8514
 
 
8515
-#ifdef __cplusplus
 
8516
-extern "C" void exit (int);
 
8517
-#endif
 
8518
+irix5* | irix6* | nonstopux*)
 
8519
+  case $host_os in
 
8520
+    nonstopux*) version_type=nonstopux ;;
 
8521
+    *)
 
8522
+       if test "$lt_cv_prog_gnu_ld" = yes; then
 
8523
+               version_type=linux
 
8524
+       else
 
8525
+               version_type=irix
 
8526
+       fi ;;
 
8527
+  esac
 
8528
+  need_lib_prefix=no
 
8529
+  need_version=no
 
8530
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8531
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8532
+  case $host_os in
 
8533
+  irix5* | nonstopux*)
 
8534
+    libsuff= shlibsuff=
 
8535
+    ;;
 
8536
+  *)
 
8537
+    case $LD in # libtool.m4 will add one of these switches to LD
 
8538
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8539
+      libsuff= shlibsuff= libmagic=32-bit;;
 
8540
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8541
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8542
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8543
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8544
+    *) libsuff= shlibsuff= libmagic=never-match;;
 
8545
+    esac
 
8546
+    ;;
 
8547
+  esac
 
8548
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8549
+  shlibpath_overrides_runpath=no
 
8550
+  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8551
+  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8552
+  hardcode_into_libs=yes
 
8553
+  ;;
 
8554
 
 
8555
-void fnord() { int i=42;}
 
8556
-int main ()
 
8557
-{
 
8558
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8559
-  int status = $lt_dlunknown;
 
8560
+# No shared lib support for Linux oldld, aout, or coff.
 
8561
+linux*oldld* | linux*aout* | linux*coff*)
 
8562
+  dynamic_linker=no
 
8563
+  ;;
 
8564
 
 
8565
-  if (self)
 
8566
-    {
 
8567
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8568
-      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8569
-      /* dlclose (self); */
 
8570
-    }
 
8571
+# This must be Linux ELF.
 
8572
+linux*)
 
8573
+  version_type=linux
 
8574
+  need_lib_prefix=no
 
8575
+  need_version=no
 
8576
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8577
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8578
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8579
+  shlibpath_var=LD_LIBRARY_PATH
 
8580
+  shlibpath_overrides_runpath=no
 
8581
+  # This implies no fast_install, which is unacceptable.
 
8582
+  # Some rework will be needed to allow for fast_install
 
8583
+  # before this can be enabled.
 
8584
+  hardcode_into_libs=yes
 
8585
 
 
8586
-    exit (status);
 
8587
-}
 
8588
-EOF
 
8589
-  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8590
-  (eval $ac_link) 2>&5
 
8591
-  ac_status=$?
 
8592
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8593
-  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8594
-    (./conftest; exit; ) >&5 2>/dev/null
 
8595
-    lt_status=$?
 
8596
-    case x$lt_status in
 
8597
-      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8598
-      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8599
-      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8600
-    esac
 
8601
-  else :
 
8602
-    # compilation failed
 
8603
-    lt_cv_dlopen_self=no
 
8604
+  # Append ld.so.conf contents to the search path
 
8605
+  if test -f /etc/ld.so.conf; then
 
8606
+    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' ' '`
 
8607
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8608
   fi
 
8609
-fi
 
8610
-rm -fr conftest*
 
8611
 
 
8612
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8613
+  # powerpc, because MkLinux only supported shared libraries with the
 
8614
+  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8615
+  # most powerpc-linux boxes support dynamic linking these days and
 
8616
+  # people can always --disable-shared, the test was removed, and we
 
8617
+  # assume the GNU/Linux dynamic linker is in use.
 
8618
+  dynamic_linker='GNU/Linux ld.so'
 
8619
+  ;;
 
8620
 
 
8621
-fi
 
8622
-echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8623
-echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8624
+netbsdelf*-gnu)
 
8625
+  version_type=linux
 
8626
+  need_lib_prefix=no
 
8627
+  need_version=no
 
8628
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8629
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8630
+  shlibpath_var=LD_LIBRARY_PATH
 
8631
+  shlibpath_overrides_runpath=no
 
8632
+  hardcode_into_libs=yes
 
8633
+  dynamic_linker='NetBSD ld.elf_so'
 
8634
+  ;;
 
8635
 
 
8636
-    if test "x$lt_cv_dlopen_self" = xyes; then
 
8637
-      LDFLAGS="$LDFLAGS $link_static_flag"
 
8638
-      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8639
-echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8640
-if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8641
-  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8642
-else
 
8643
-         if test "$cross_compiling" = yes; then :
 
8644
-  lt_cv_dlopen_self_static=cross
 
8645
-else
 
8646
-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8647
-  lt_status=$lt_dlunknown
 
8648
-  cat > conftest.$ac_ext <<EOF
 
8649
-#line 18378 "configure"
 
8650
-#include "confdefs.h"
 
8651
+knetbsd*-gnu)
 
8652
+  version_type=linux
 
8653
+  need_lib_prefix=no
 
8654
+  need_version=no
 
8655
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8656
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8657
+  shlibpath_var=LD_LIBRARY_PATH
 
8658
+  shlibpath_overrides_runpath=no
 
8659
+  hardcode_into_libs=yes
 
8660
+  dynamic_linker='GNU ld.so'
 
8661
+  ;;
 
8662
 
 
8663
-#if HAVE_DLFCN_H
 
8664
-#include <dlfcn.h>
 
8665
-#endif
 
8666
+netbsd*)
 
8667
+  version_type=sunos
 
8668
+  need_lib_prefix=no
 
8669
+  need_version=no
 
8670
+  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8671
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8672
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8673
+    dynamic_linker='NetBSD (a.out) ld.so'
 
8674
+  else
 
8675
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8676
+    soname_spec='${libname}${release}${shared_ext}$major'
 
8677
+    dynamic_linker='NetBSD ld.elf_so'
 
8678
+  fi
 
8679
+  shlibpath_var=LD_LIBRARY_PATH
 
8680
+  shlibpath_overrides_runpath=yes
 
8681
+  hardcode_into_libs=yes
 
8682
+  ;;
 
8683
 
 
8684
-#include <stdio.h>
 
8685
+newsos6)
 
8686
+  version_type=linux
 
8687
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8688
+  shlibpath_var=LD_LIBRARY_PATH
 
8689
+  shlibpath_overrides_runpath=yes
 
8690
+  ;;
 
8691
 
 
8692
-#ifdef RTLD_GLOBAL
 
8693
-#  define LT_DLGLOBAL          RTLD_GLOBAL
 
8694
-#else
 
8695
-#  ifdef DL_GLOBAL
 
8696
-#    define LT_DLGLOBAL                DL_GLOBAL
 
8697
-#  else
 
8698
-#    define LT_DLGLOBAL                0
 
8699
-#  endif
 
8700
-#endif
 
8701
+nto-qnx*)
 
8702
+  version_type=linux
 
8703
+  need_lib_prefix=no
 
8704
+  need_version=no
 
8705
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8706
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8707
+  shlibpath_var=LD_LIBRARY_PATH
 
8708
+  shlibpath_overrides_runpath=yes
 
8709
+  ;;
 
8710
 
 
8711
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8712
-   find out it does not work in some platform. */
 
8713
-#ifndef LT_DLLAZY_OR_NOW
 
8714
-#  ifdef RTLD_LAZY
 
8715
-#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
 
8716
-#  else
 
8717
-#    ifdef DL_LAZY
 
8718
-#      define LT_DLLAZY_OR_NOW         DL_LAZY
 
8719
-#    else
 
8720
-#      ifdef RTLD_NOW
 
8721
-#        define LT_DLLAZY_OR_NOW       RTLD_NOW
 
8722
-#      else
 
8723
-#        ifdef DL_NOW
 
8724
-#          define LT_DLLAZY_OR_NOW     DL_NOW
 
8725
-#        else
 
8726
-#          define LT_DLLAZY_OR_NOW     0
 
8727
-#        endif
 
8728
-#      endif
 
8729
-#    endif
 
8730
-#  endif
 
8731
-#endif
 
8732
+openbsd*)
 
8733
+  version_type=sunos
 
8734
+  sys_lib_dlsearch_path_spec="/usr/lib"
 
8735
+  need_lib_prefix=no
 
8736
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8737
+  case $host_os in
 
8738
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8739
+    *)                         need_version=no  ;;
 
8740
+  esac
 
8741
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8742
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8743
+  shlibpath_var=LD_LIBRARY_PATH
 
8744
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8745
+    case $host_os in
 
8746
+      openbsd2.[89] | openbsd2.[89].*)
 
8747
+       shlibpath_overrides_runpath=no
 
8748
+       ;;
 
8749
+      *)
 
8750
+       shlibpath_overrides_runpath=yes
 
8751
+       ;;
 
8752
+      esac
 
8753
+  else
 
8754
+    shlibpath_overrides_runpath=yes
 
8755
+  fi
 
8756
+  ;;
 
8757
 
 
8758
-#ifdef __cplusplus
 
8759
-extern "C" void exit (int);
 
8760
-#endif
 
8761
+os2*)
 
8762
+  libname_spec='$name'
 
8763
+  shrext_cmds=".dll"
 
8764
+  need_lib_prefix=no
 
8765
+  library_names_spec='$libname${shared_ext} $libname.a'
 
8766
+  dynamic_linker='OS/2 ld.exe'
 
8767
+  shlibpath_var=LIBPATH
 
8768
+  ;;
 
8769
 
 
8770
-void fnord() { int i=42;}
 
8771
-int main ()
 
8772
-{
 
8773
-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8774
-  int status = $lt_dlunknown;
 
8775
+osf3* | osf4* | osf5*)
 
8776
+  version_type=osf
 
8777
+  need_lib_prefix=no
 
8778
+  need_version=no
 
8779
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8780
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8781
+  shlibpath_var=LD_LIBRARY_PATH
 
8782
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8783
+  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8784
+  ;;
 
8785
 
 
8786
-  if (self)
 
8787
-    {
 
8788
-      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8789
-      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8790
-      /* dlclose (self); */
 
8791
-    }
 
8792
+solaris*)
 
8793
+  version_type=linux
 
8794
+  need_lib_prefix=no
 
8795
+  need_version=no
 
8796
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8797
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8798
+  shlibpath_var=LD_LIBRARY_PATH
 
8799
+  shlibpath_overrides_runpath=yes
 
8800
+  hardcode_into_libs=yes
 
8801
+  # ldd complains unless libraries are executable
 
8802
+  postinstall_cmds='chmod +x $lib'
 
8803
+  ;;
 
8804
+
 
8805
+sunos4*)
 
8806
+  version_type=sunos
 
8807
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8808
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8809
+  shlibpath_var=LD_LIBRARY_PATH
 
8810
+  shlibpath_overrides_runpath=yes
 
8811
+  if test "$with_gnu_ld" = yes; then
 
8812
+    need_lib_prefix=no
 
8813
+  fi
 
8814
+  need_version=yes
 
8815
+  ;;
 
8816
+
 
8817
+sysv4 | sysv4.3*)
 
8818
+  version_type=linux
 
8819
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8820
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8821
+  shlibpath_var=LD_LIBRARY_PATH
 
8822
+  case $host_vendor in
 
8823
+    sni)
 
8824
+      shlibpath_overrides_runpath=no
 
8825
+      need_lib_prefix=no
 
8826
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8827
+      runpath_var=LD_RUN_PATH
 
8828
+      ;;
 
8829
+    siemens)
 
8830
+      need_lib_prefix=no
 
8831
+      ;;
 
8832
+    motorola)
 
8833
+      need_lib_prefix=no
 
8834
+      need_version=no
 
8835
+      shlibpath_overrides_runpath=no
 
8836
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8837
+      ;;
 
8838
+  esac
 
8839
+  ;;
 
8840
 
 
8841
-    exit (status);
 
8842
-}
 
8843
-EOF
 
8844
-  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8845
-  (eval $ac_link) 2>&5
 
8846
-  ac_status=$?
 
8847
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8848
-  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8849
-    (./conftest; exit; ) >&5 2>/dev/null
 
8850
-    lt_status=$?
 
8851
-    case x$lt_status in
 
8852
-      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8853
-      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8854
-      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8855
+sysv4*MP*)
 
8856
+  if test -d /usr/nec ;then
 
8857
+    version_type=linux
 
8858
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8859
+    soname_spec='$libname${shared_ext}.$major'
 
8860
+    shlibpath_var=LD_LIBRARY_PATH
 
8861
+  fi
 
8862
+  ;;
 
8863
+
 
8864
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8865
+  version_type=freebsd-elf
 
8866
+  need_lib_prefix=no
 
8867
+  need_version=no
 
8868
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8869
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8870
+  shlibpath_var=LD_LIBRARY_PATH
 
8871
+  hardcode_into_libs=yes
 
8872
+  if test "$with_gnu_ld" = yes; then
 
8873
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8874
+    shlibpath_overrides_runpath=no
 
8875
+  else
 
8876
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8877
+    shlibpath_overrides_runpath=yes
 
8878
+    case $host_os in
 
8879
+      sco3.2v5*)
 
8880
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8881
+       ;;
 
8882
     esac
 
8883
-  else :
 
8884
-    # compilation failed
 
8885
-    lt_cv_dlopen_self_static=no
 
8886
   fi
 
8887
-fi
 
8888
-rm -fr conftest*
 
8889
+  sys_lib_dlsearch_path_spec='/usr/lib'
 
8890
+  ;;
 
8891
+
 
8892
+uts4*)
 
8893
+  version_type=linux
 
8894
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8895
+  soname_spec='${libname}${release}${shared_ext}$major'
 
8896
+  shlibpath_var=LD_LIBRARY_PATH
 
8897
+  ;;
 
8898
 
 
8899
+*)
 
8900
+  dynamic_linker=no
 
8901
+  ;;
 
8902
+esac
 
8903
+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8904
+echo "${ECHO_T}$dynamic_linker" >&6
 
8905
+test "$dynamic_linker" = no && can_build_shared=no
 
8906
 
 
8907
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8908
+if test "$GCC" = yes; then
 
8909
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8910
 fi
 
8911
-echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8912
-echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8913
-    fi
 
8914
 
 
8915
-    CPPFLAGS="$save_CPPFLAGS"
 
8916
-    LDFLAGS="$save_LDFLAGS"
 
8917
-    LIBS="$save_LIBS"
 
8918
-    ;;
 
8919
-  esac
 
8920
+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8921
+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8922
+hardcode_action_GCJ=
 
8923
+if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
8924
+   test -n "$runpath_var_GCJ" || \
 
8925
+   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
8926
 
 
8927
-  case $lt_cv_dlopen_self in
 
8928
-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8929
-  *) enable_dlopen_self=unknown ;;
 
8930
-  esac
 
8931
+  # We can hardcode non-existant directories.
 
8932
+  if test "$hardcode_direct_GCJ" != no &&
 
8933
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8934
+     # have to relink, otherwise we might link with an installed library
 
8935
+     # when we should be linking with a yet-to-be-installed one
 
8936
+     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
8937
+     test "$hardcode_minus_L_GCJ" != no; then
 
8938
+    # Linking always hardcodes the temporary library directory.
 
8939
+    hardcode_action_GCJ=relink
 
8940
+  else
 
8941
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8942
+    hardcode_action_GCJ=immediate
 
8943
+  fi
 
8944
+else
 
8945
+  # We cannot hardcode anything, or else we can only hardcode existing
 
8946
+  # directories.
 
8947
+  hardcode_action_GCJ=unsupported
 
8948
+fi
 
8949
+echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
8950
+echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
8951
 
 
8952
-  case $lt_cv_dlopen_self_static in
 
8953
-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8954
-  *) enable_dlopen_self_static=unknown ;;
 
8955
-  esac
 
8956
+if test "$hardcode_action_GCJ" = relink; then
 
8957
+  # Fast installation is not supported
 
8958
+  enable_fast_install=no
 
8959
+elif test "$shlibpath_overrides_runpath" = yes ||
 
8960
+     test "$enable_shared" = no; then
 
8961
+  # Fast installation is not necessary
 
8962
+  enable_fast_install=needless
 
8963
 fi
 
8964
 
 
8965
 
 
8966
@@ -18492,7 +17478,7 @@
 
8967
   # Now quote all the things that may contain metacharacters while being
 
8968
   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
8969
   # variables and quote the copies for generation of the libtool script.
 
8970
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
8971
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
8972
     SED SHELL STRIP \
 
8973
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8974
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8975
@@ -18610,6 +17596,9 @@
 
8976
 # A C compiler.
 
8977
 LTCC=$lt_LTCC
 
8978
 
 
8979
+# LTCC compiler flags.
 
8980
+LTCFLAGS=$lt_LTCFLAGS
 
8981
+
 
8982
 # A language-specific compiler.
 
8983
 CC=$lt_compiler_GCJ
 
8984
 
 
8985
@@ -18919,6 +17908,9 @@
 
8986
 # If no C compiler was specified, use CC.
 
8987
 LTCC=${LTCC-"$CC"}
 
8988
 
 
8989
+# If no C compiler flags were specified, use CFLAGS.
 
8990
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8991
+
 
8992
 # Allow CC to be a program name with arguments.
 
8993
 compiler=$CC
 
8994
 
 
8995
@@ -18926,13 +17918,13 @@
 
8996
 # save warnings/boilerplate of simple test code
 
8997
 ac_outfile=conftest.$ac_objext
 
8998
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8999
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9000
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9001
 _lt_compiler_boilerplate=`cat conftest.err`
 
9002
 $rm conftest*
 
9003
 
 
9004
 ac_outfile=conftest.$ac_objext
 
9005
 printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9006
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9007
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9008
 _lt_linker_boilerplate=`cat conftest.err`
 
9009
 $rm conftest*
 
9010
 
 
9011
@@ -18967,7 +17959,7 @@
 
9012
   # Now quote all the things that may contain metacharacters while being
 
9013
   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9014
   # variables and quote the copies for generation of the libtool script.
 
9015
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9016
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9017
     SED SHELL STRIP \
 
9018
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9019
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9020
@@ -19085,6 +18077,9 @@
 
9021
 # A C compiler.
 
9022
 LTCC=$lt_LTCC
 
9023
 
 
9024
+# LTCC compiler flags.
 
9025
+LTCFLAGS=$lt_LTCFLAGS
 
9026
+
 
9027
 # A language-specific compiler.
 
9028
 CC=$lt_compiler_RC
 
9029
 
 
9030
@@ -19556,11 +18551,11 @@
 
9031
 CSPI_REQUIRED_VERSION=0.10.0
 
9032
 
 
9033
 
 
9034
-  succeeded=no
 
9035
 
 
9036
-  if test -z "$PKG_CONFIG"; then
 
9037
-    # Extract the first word of "pkg-config", so it can be a program name with args.
 
9038
-set dummy pkg-config; ac_word=$2
 
9039
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
9040
+       if test -n "$ac_tool_prefix"; then
 
9041
+  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
9042
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
9043
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9044
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9045
 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
9046
@@ -19585,7 +18580,6 @@
 
9047
 done
 
9048
 done
 
9049
 
 
9050
-  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
9051
   ;;
 
9052
 esac
 
9053
 fi
 
9054
@@ -19599,75 +18593,19 @@
 
9055
 echo "${ECHO_T}no" >&6
 
9056
 fi
 
9057
 
 
9058
-  fi
 
9059
-
 
9060
-  if test "$PKG_CONFIG" = "no" ; then
 
9061
-     echo "*** The pkg-config script could not be found. Make sure it is"
 
9062
-     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
9063
-     echo "*** to the full path to pkg-config."
 
9064
-     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
9065
-  else
 
9066
-     PKG_CONFIG_MIN_VERSION=0.9.0
 
9067
-     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
9068
-        echo "$as_me:$LINENO: checking for $ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" >&5
 
9069
-echo $ECHO_N "checking for $ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION... $ECHO_C" >&6
 
9070
-
 
9071
-        if $PKG_CONFIG --exists "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" ; then
 
9072
-            echo "$as_me:$LINENO: result: yes" >&5
 
9073
-echo "${ECHO_T}yes" >&6
 
9074
-            succeeded=yes
 
9075
-
 
9076
-            echo "$as_me:$LINENO: checking DEPS_CFLAGS" >&5
 
9077
-echo $ECHO_N "checking DEPS_CFLAGS... $ECHO_C" >&6
 
9078
-            DEPS_CFLAGS=`$PKG_CONFIG --cflags "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9079
-            echo "$as_me:$LINENO: result: $DEPS_CFLAGS" >&5
 
9080
-echo "${ECHO_T}$DEPS_CFLAGS" >&6
 
9081
-
 
9082
-            echo "$as_me:$LINENO: checking DEPS_LIBS" >&5
 
9083
-echo $ECHO_N "checking DEPS_LIBS... $ECHO_C" >&6
 
9084
-            DEPS_LIBS=`$PKG_CONFIG --libs "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9085
-            echo "$as_me:$LINENO: result: $DEPS_LIBS" >&5
 
9086
-echo "${ECHO_T}$DEPS_LIBS" >&6
 
9087
-        else
 
9088
-            DEPS_CFLAGS=""
 
9089
-            DEPS_LIBS=""
 
9090
-            ## If we have a custom action on failure, don't print errors, but
 
9091
-            ## do set a variable so people can do so.
 
9092
-            DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9093
-            echo $DEPS_PKG_ERRORS
 
9094
-        fi
 
9095
-
 
9096
-
 
9097
-
 
9098
-     else
 
9099
-        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
9100
-        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
9101
-     fi
 
9102
-  fi
 
9103
-
 
9104
-  if test $succeeded = yes; then
 
9105
-     :
 
9106
-  else
 
9107
-     { { echo "$as_me:$LINENO: error: Library requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
9108
-echo "$as_me: error: Library requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
9109
-   { (exit 1); exit 1; }; }
 
9110
-  fi
 
9111
-
 
9112
-
 
9113
-
 
9114
-  succeeded=no
 
9115
-
 
9116
-  if test -z "$PKG_CONFIG"; then
 
9117
-    # Extract the first word of "pkg-config", so it can be a program name with args.
 
9118
+fi
 
9119
+if test -z "$ac_cv_path_PKG_CONFIG"; then
 
9120
+  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
9121
+  # Extract the first word of "pkg-config", so it can be a program name with args.
 
9122
 set dummy pkg-config; ac_word=$2
 
9123
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9124
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9125
-if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
9126
+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
9127
   echo $ECHO_N "(cached) $ECHO_C" >&6
 
9128
 else
 
9129
-  case $PKG_CONFIG in
 
9130
+  case $ac_pt_PKG_CONFIG in
 
9131
   [\\/]* | ?:[\\/]*)
 
9132
-  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
9133
+  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
9134
   ;;
 
9135
   *)
 
9136
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9137
@@ -19677,81 +18615,269 @@
 
9138
   test -z "$as_dir" && as_dir=.
 
9139
   for ac_exec_ext in '' $ac_executable_extensions; do
 
9140
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9141
-    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
9142
+    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
9143
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9144
     break 2
 
9145
   fi
 
9146
 done
 
9147
 done
 
9148
 
 
9149
-  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
9150
   ;;
 
9151
 esac
 
9152
 fi
 
9153
-PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
9154
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
9155
 
 
9156
-if test -n "$PKG_CONFIG"; then
 
9157
-  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
9158
-echo "${ECHO_T}$PKG_CONFIG" >&6
 
9159
+if test -n "$ac_pt_PKG_CONFIG"; then
 
9160
+  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
9161
+echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
9162
 else
 
9163
   echo "$as_me:$LINENO: result: no" >&5
 
9164
 echo "${ECHO_T}no" >&6
 
9165
 fi
 
9166
 
 
9167
-  fi
 
9168
+  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
9169
+else
 
9170
+  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
9171
+fi
 
9172
 
 
9173
-  if test "$PKG_CONFIG" = "no" ; then
 
9174
-     echo "*** The pkg-config script could not be found. Make sure it is"
 
9175
-     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
9176
-     echo "*** to the full path to pkg-config."
 
9177
-     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
9178
-  else
 
9179
-     PKG_CONFIG_MIN_VERSION=0.9.0
 
9180
-     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
9181
-        echo "$as_me:$LINENO: checking for $ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" >&5
 
9182
-echo $ECHO_N "checking for $ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION... $ECHO_C" >&6
 
9183
+fi
 
9184
+if test -n "$PKG_CONFIG"; then
 
9185
+       _pkg_min_version=0.9.0
 
9186
+       echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
9187
+echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
9188
+       if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
9189
+               echo "$as_me:$LINENO: result: yes" >&5
 
9190
+echo "${ECHO_T}yes" >&6
 
9191
+       else
 
9192
+               echo "$as_me:$LINENO: result: no" >&5
 
9193
+echo "${ECHO_T}no" >&6
 
9194
+               PKG_CONFIG=""
 
9195
+       fi
 
9196
+
 
9197
+fi
 
9198
+
 
9199
+pkg_failed=no
 
9200
+echo "$as_me:$LINENO: checking for DEPS" >&5
 
9201
+echo $ECHO_N "checking for DEPS... $ECHO_C" >&6
 
9202
+
 
9203
+if test -n "$PKG_CONFIG"; then
 
9204
+    if test -n "$DEPS_CFLAGS"; then
 
9205
+        pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
 
9206
+    else
 
9207
+        if test -n "$PKG_CONFIG" && \
 
9208
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION \$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION \$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION \$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION \$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
 
9209
+  ($PKG_CONFIG --exists --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
 
9210
+  ac_status=$?
 
9211
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9212
+  (exit $ac_status); }; then
 
9213
+  pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
 
9214
+else
 
9215
+  pkg_failed=yes
 
9216
+fi
 
9217
+    fi
 
9218
+else
 
9219
+       pkg_failed=untried
 
9220
+fi
 
9221
+if test -n "$PKG_CONFIG"; then
 
9222
+    if test -n "$DEPS_LIBS"; then
 
9223
+        pkg_cv_DEPS_LIBS="$DEPS_LIBS"
 
9224
+    else
 
9225
+        if test -n "$PKG_CONFIG" && \
 
9226
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION \$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION \$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION \$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION \$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
 
9227
+  ($PKG_CONFIG --exists --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
 
9228
+  ac_status=$?
 
9229
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9230
+  (exit $ac_status); }; then
 
9231
+  pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
 
9232
+else
 
9233
+  pkg_failed=yes
 
9234
+fi
 
9235
+    fi
 
9236
+else
 
9237
+       pkg_failed=untried
 
9238
+fi
 
9239
+
 
9240
+
 
9241
+
 
9242
+if test $pkg_failed = yes; then
 
9243
+
 
9244
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
9245
+        _pkg_short_errors_supported=yes
 
9246
+else
 
9247
+        _pkg_short_errors_supported=no
 
9248
+fi
 
9249
+        if test $_pkg_short_errors_supported = yes; then
 
9250
+               DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9251
+        else
 
9252
+               DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9253
+        fi
 
9254
+       # Put the nasty error message in config.log where it belongs
 
9255
+       echo "$DEPS_PKG_ERRORS" >&5
 
9256
+
 
9257
+       { { echo "$as_me:$LINENO: error: Package requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
 
9258
+
 
9259
+$DEPS_PKG_ERRORS
 
9260
+
 
9261
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9262
+installed software in a non-standard prefix.
 
9263
+
 
9264
+Alternatively, you may set the environment variables DEPS_CFLAGS
 
9265
+and DEPS_LIBS to avoid the need to call pkg-config.
 
9266
+See the pkg-config man page for more details.
 
9267
+" >&5
 
9268
+echo "$as_me: error: Package requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
 
9269
+
 
9270
+$DEPS_PKG_ERRORS
 
9271
+
 
9272
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9273
+installed software in a non-standard prefix.
 
9274
 
 
9275
-        if $PKG_CONFIG --exists "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" ; then
 
9276
-            echo "$as_me:$LINENO: result: yes" >&5
 
9277
+Alternatively, you may set the environment variables DEPS_CFLAGS
 
9278
+and DEPS_LIBS to avoid the need to call pkg-config.
 
9279
+See the pkg-config man page for more details.
 
9280
+" >&2;}
 
9281
+   { (exit 1); exit 1; }; }
 
9282
+elif test $pkg_failed = untried; then
 
9283
+       { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
9284
+is in your PATH or set the PKG_CONFIG environment variable to the full
 
9285
+path to pkg-config.
 
9286
+
 
9287
+Alternatively, you may set the environment variables DEPS_CFLAGS
 
9288
+and DEPS_LIBS to avoid the need to call pkg-config.
 
9289
+See the pkg-config man page for more details.
 
9290
+
 
9291
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
9292
+See \`config.log' for more details." >&5
 
9293
+echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
9294
+is in your PATH or set the PKG_CONFIG environment variable to the full
 
9295
+path to pkg-config.
 
9296
+
 
9297
+Alternatively, you may set the environment variables DEPS_CFLAGS
 
9298
+and DEPS_LIBS to avoid the need to call pkg-config.
 
9299
+See the pkg-config man page for more details.
 
9300
+
 
9301
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
9302
+See \`config.log' for more details." >&2;}
 
9303
+   { (exit 1); exit 1; }; }
 
9304
+else
 
9305
+       DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
 
9306
+       DEPS_LIBS=$pkg_cv_DEPS_LIBS
 
9307
+        echo "$as_me:$LINENO: result: yes" >&5
 
9308
 echo "${ECHO_T}yes" >&6
 
9309
-            succeeded=yes
 
9310
+       :
 
9311
+fi
 
9312
+
 
9313
+
 
9314
+pkg_failed=no
 
9315
+echo "$as_me:$LINENO: checking for TEST" >&5
 
9316
+echo $ECHO_N "checking for TEST... $ECHO_C" >&6
 
9317
+
 
9318
+if test -n "$PKG_CONFIG"; then
 
9319
+    if test -n "$TEST_CFLAGS"; then
 
9320
+        pkg_cv_TEST_CFLAGS="$TEST_CFLAGS"
 
9321
+    else
 
9322
+        if test -n "$PKG_CONFIG" && \
 
9323
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION \$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION \$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION \$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION \$CSPI_PACKAGES >= \$CSPI_REQUIRED_VERSION \$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
 
9324
+  ($PKG_CONFIG --exists --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
 
9325
+  ac_status=$?
 
9326
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9327
+  (exit $ac_status); }; then
 
9328
+  pkg_cv_TEST_CFLAGS=`$PKG_CONFIG --cflags "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
 
9329
+else
 
9330
+  pkg_failed=yes
 
9331
+fi
 
9332
+    fi
 
9333
+else
 
9334
+       pkg_failed=untried
 
9335
+fi
 
9336
+if test -n "$PKG_CONFIG"; then
 
9337
+    if test -n "$TEST_LIBS"; then
 
9338
+        pkg_cv_TEST_LIBS="$TEST_LIBS"
 
9339
+    else
 
9340
+        if test -n "$PKG_CONFIG" && \
 
9341
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$ATK_PACKAGES >= \$ATK_REQUIRED_VERSION \$GTK_PACKAGES >= \$GTK_REQUIRED_VERSION \$LIBBONOBO_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBBONOBOUI_PACKAGES >= \$LIBBONOBO_REQUIRED_VERSION \$LIBGNOMEUI_PACKAGES >= \$LIBGNOMEUI_REQUIRED_VERSION \$AT_SPI_PACKAGES >= \$AT_SPI_REQUIRED_VERSION \$CSPI_PACKAGES >= \$CSPI_REQUIRED_VERSION \$PANEL_APPLET_PACKAGES >= \$PANEL_APPLET_REQUIRED_VERSION\"") >&5
 
9342
+  ($PKG_CONFIG --exists --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION") 2>&5
 
9343
+  ac_status=$?
 
9344
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9345
+  (exit $ac_status); }; then
 
9346
+  pkg_cv_TEST_LIBS=`$PKG_CONFIG --libs "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION" 2>/dev/null`
 
9347
+else
 
9348
+  pkg_failed=yes
 
9349
+fi
 
9350
+    fi
 
9351
+else
 
9352
+       pkg_failed=untried
 
9353
+fi
 
9354
 
 
9355
-            echo "$as_me:$LINENO: checking TEST_CFLAGS" >&5
 
9356
-echo $ECHO_N "checking TEST_CFLAGS... $ECHO_C" >&6
 
9357
-            TEST_CFLAGS=`$PKG_CONFIG --cflags "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9358
-            echo "$as_me:$LINENO: result: $TEST_CFLAGS" >&5
 
9359
-echo "${ECHO_T}$TEST_CFLAGS" >&6
 
9360
-
 
9361
-            echo "$as_me:$LINENO: checking TEST_LIBS" >&5
 
9362
-echo $ECHO_N "checking TEST_LIBS... $ECHO_C" >&6
 
9363
-            TEST_LIBS=`$PKG_CONFIG --libs "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9364
-            echo "$as_me:$LINENO: result: $TEST_LIBS" >&5
 
9365
-echo "${ECHO_T}$TEST_LIBS" >&6
 
9366
+
 
9367
+
 
9368
+if test $pkg_failed = yes; then
 
9369
+
 
9370
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
9371
+        _pkg_short_errors_supported=yes
 
9372
+else
 
9373
+        _pkg_short_errors_supported=no
 
9374
+fi
 
9375
+        if test $_pkg_short_errors_supported = yes; then
 
9376
+               TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9377
         else
 
9378
-            TEST_CFLAGS=""
 
9379
-            TEST_LIBS=""
 
9380
-            ## If we have a custom action on failure, don't print errors, but
 
9381
-            ## do set a variable so people can do so.
 
9382
-            TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9383
-            echo $TEST_PKG_ERRORS
 
9384
+               TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION"`
 
9385
         fi
 
9386
+       # Put the nasty error message in config.log where it belongs
 
9387
+       echo "$TEST_PKG_ERRORS" >&5
 
9388
 
 
9389
+       { { echo "$as_me:$LINENO: error: Package requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
 
9390
 
 
9391
+$TEST_PKG_ERRORS
 
9392
 
 
9393
-     else
 
9394
-        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
9395
-        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
9396
-     fi
 
9397
-  fi
 
9398
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9399
+installed software in a non-standard prefix.
 
9400
 
 
9401
-  if test $succeeded = yes; then
 
9402
-     :
 
9403
-  else
 
9404
-     { { echo "$as_me:$LINENO: error: Library requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
9405
-echo "$as_me: error: Library requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
9406
+Alternatively, you may set the environment variables TEST_CFLAGS
 
9407
+and TEST_LIBS to avoid the need to call pkg-config.
 
9408
+See the pkg-config man page for more details.
 
9409
+" >&5
 
9410
+echo "$as_me: error: Package requirements ($ATK_PACKAGES >= $ATK_REQUIRED_VERSION $GTK_PACKAGES >= $GTK_REQUIRED_VERSION $LIBBONOBO_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBBONOBOUI_PACKAGES >= $LIBBONOBO_REQUIRED_VERSION $LIBGNOMEUI_PACKAGES >= $LIBGNOMEUI_REQUIRED_VERSION $AT_SPI_PACKAGES >= $AT_SPI_REQUIRED_VERSION $CSPI_PACKAGES >= $CSPI_REQUIRED_VERSION $PANEL_APPLET_PACKAGES >= $PANEL_APPLET_REQUIRED_VERSION) were not met:
 
9411
+
 
9412
+$TEST_PKG_ERRORS
 
9413
+
 
9414
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9415
+installed software in a non-standard prefix.
 
9416
+
 
9417
+Alternatively, you may set the environment variables TEST_CFLAGS
 
9418
+and TEST_LIBS to avoid the need to call pkg-config.
 
9419
+See the pkg-config man page for more details.
 
9420
+" >&2;}
 
9421
    { (exit 1); exit 1; }; }
 
9422
-  fi
 
9423
+elif test $pkg_failed = untried; then
 
9424
+       { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
9425
+is in your PATH or set the PKG_CONFIG environment variable to the full
 
9426
+path to pkg-config.
 
9427
+
 
9428
+Alternatively, you may set the environment variables TEST_CFLAGS
 
9429
+and TEST_LIBS to avoid the need to call pkg-config.
 
9430
+See the pkg-config man page for more details.
 
9431
+
 
9432
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
9433
+See \`config.log' for more details." >&5
 
9434
+echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
9435
+is in your PATH or set the PKG_CONFIG environment variable to the full
 
9436
+path to pkg-config.
 
9437
+
 
9438
+Alternatively, you may set the environment variables TEST_CFLAGS
 
9439
+and TEST_LIBS to avoid the need to call pkg-config.
 
9440
+See the pkg-config man page for more details.
 
9441
 
 
9442
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
9443
+See \`config.log' for more details." >&2;}
 
9444
+   { (exit 1); exit 1; }; }
 
9445
+else
 
9446
+       TEST_CFLAGS=$pkg_cv_TEST_CFLAGS
 
9447
+       TEST_LIBS=$pkg_cv_TEST_LIBS
 
9448
+        echo "$as_me:$LINENO: result: yes" >&5
 
9449
+echo "${ECHO_T}yes" >&6
 
9450
+       :
 
9451
+fi
 
9452
 
 
9453
 
 
9454
 
 
9455
@@ -19824,8 +18950,7 @@
 
9456
   cat conftest.err >&5
 
9457
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9458
   (exit $ac_status); } &&
 
9459
-        { ac_try='test -z "$ac_c_werror_flag"
 
9460
-                        || test ! -s conftest.err'
 
9461
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9462
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9463
   (eval $ac_try) 2>&5
 
9464
   ac_status=$?
 
9465
@@ -19891,8 +19016,7 @@
 
9466
   cat conftest.err >&5
 
9467
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9468
   (exit $ac_status); } &&
 
9469
-        { ac_try='test -z "$ac_c_werror_flag"
 
9470
-                        || test ! -s conftest.err'
 
9471
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9472
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9473
   (eval $ac_try) 2>&5
 
9474
   ac_status=$?
 
9475
@@ -19993,8 +19117,7 @@
 
9476
   cat conftest.err >&5
 
9477
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9478
   (exit $ac_status); } &&
 
9479
-        { ac_try='test -z "$ac_c_werror_flag"
 
9480
-                        || test ! -s conftest.err'
 
9481
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9482
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9483
   (eval $ac_try) 2>&5
 
9484
   ac_status=$?
 
9485
@@ -20060,8 +19183,7 @@
 
9486
   cat conftest.err >&5
 
9487
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9488
   (exit $ac_status); } &&
 
9489
-        { ac_try='test -z "$ac_c_werror_flag"
 
9490
-                        || test ! -s conftest.err'
 
9491
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9492
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9493
   (eval $ac_try) 2>&5
 
9494
   ac_status=$?
 
9495
@@ -20162,8 +19284,7 @@
 
9496
   cat conftest.err >&5
 
9497
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9498
   (exit $ac_status); } &&
 
9499
-        { ac_try='test -z "$ac_c_werror_flag"
 
9500
-                        || test ! -s conftest.err'
 
9501
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9502
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9503
   (eval $ac_try) 2>&5
 
9504
   ac_status=$?
 
9505
@@ -20229,8 +19350,7 @@
 
9506
   cat conftest.err >&5
 
9507
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9508
   (exit $ac_status); } &&
 
9509
-        { ac_try='test -z "$ac_c_werror_flag"
 
9510
-                        || test ! -s conftest.err'
 
9511
+        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9512
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9513
   (eval $ac_try) 2>&5
 
9514
   ac_status=$?
 
9515
@@ -20965,6 +20085,7 @@
 
9516
 s,@MS_LIB_AVAILABLE_FALSE@,$MS_LIB_AVAILABLE_FALSE,;t t
 
9517
 s,@GAIL_GNOME_DEBUG_CFLAGS@,$GAIL_GNOME_DEBUG_CFLAGS,;t t
 
9518
 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
9519
+s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
9520
 s,@DEPS_CFLAGS@,$DEPS_CFLAGS,;t t
 
9521
 s,@DEPS_LIBS@,$DEPS_LIBS,;t t
 
9522
 s,@TEST_CFLAGS@,$TEST_CFLAGS,;t t
 
9523
@@ -21138,11 +20259,6 @@
 
9524
   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
9525
   esac
 
9526
 
 
9527
-  if test x"$ac_file" != x-; then
 
9528
-    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9529
-echo "$as_me: creating $ac_file" >&6;}
 
9530
-    rm -f "$ac_file"
 
9531
-  fi
 
9532
   # Let's still pretend it is `configure' which instantiates (i.e., don't
 
9533
   # use $as_me), people would be surprised to read:
 
9534
   #    /* config.h.  Generated by config.status.  */
 
9535
@@ -21181,6 +20297,12 @@
 
9536
         fi;;
 
9537
       esac
 
9538
     done` || { (exit 1); exit 1; }
 
9539
+
 
9540
+  if test x"$ac_file" != x-; then
 
9541
+    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9542
+echo "$as_me: creating $ac_file" >&6;}
 
9543
+    rm -f "$ac_file"
 
9544
+  fi
 
9545
 _ACEOF
 
9546
 cat >>$CONFIG_STATUS <<_ACEOF
 
9547
   sed "$ac_vpsub
 
9548
diff -urN -x config.guess -x config.sub libgail-gnome-1.1.3.orig/ltmain.sh libgail-gnome-1.1.3/ltmain.sh
 
9549
--- libgail-gnome-1.1.3.orig/ltmain.sh  2005-09-05 14:34:52.000000000 +0200
 
9550
+++ libgail-gnome-1.1.3/ltmain.sh       2006-01-09 16:21:15.000000000 +0100
 
9551
@@ -43,8 +43,8 @@
 
9552
 
 
9553
 PROGRAM=ltmain.sh
 
9554
 PACKAGE=libtool
 
9555
-VERSION=1.5.20
 
9556
-TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)"
 
9557
+VERSION="1.5.22 Debian 1.5.22-2"
 
9558
+TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
 
9559
 
 
9560
 # See if we are running on zsh, and set the options which allow our
 
9561
 # commands through without removal of \ escapes.
 
9562
@@ -132,6 +132,8 @@
 
9563
 show="$echo"
 
9564
 show_help=
 
9565
 execute_dlfiles=
 
9566
+duplicate_deps=no
 
9567
+preserve_args=
 
9568
 lo2o="s/\\.lo\$/.${objext}/"
 
9569
 o2lo="s/\\.${objext}\$/.lo/"
 
9570
 
 
9571
@@ -139,6 +141,43 @@
 
9572
 # Shell function definitions:
 
9573
 # This seems to be the best place for them
 
9574
 
 
9575
+# func_mktempdir [string]
 
9576
+# Make a temporary directory that won't clash with other running
 
9577
+# libtool processes, and avoids race conditions if possible.  If
 
9578
+# given, STRING is the basename for that directory.
 
9579
+func_mktempdir ()
 
9580
+{
 
9581
+    my_template="${TMPDIR-/tmp}/${1-$progname}"
 
9582
+
 
9583
+    if test "$run" = ":"; then
 
9584
+      # Return a directory name, but don't create it in dry-run mode
 
9585
+      my_tmpdir="${my_template}-$$"
 
9586
+    else
 
9587
+
 
9588
+      # If mktemp works, use that first and foremost
 
9589
+      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
 
9590
+
 
9591
+      if test ! -d "$my_tmpdir"; then
 
9592
+       # Failing that, at least try and use $RANDOM to avoid a race
 
9593
+       my_tmpdir="${my_template}-${RANDOM-0}$$"
 
9594
+
 
9595
+       save_mktempdir_umask=`umask`
 
9596
+       umask 0077
 
9597
+       $mkdir "$my_tmpdir"
 
9598
+       umask $save_mktempdir_umask
 
9599
+      fi
 
9600
+
 
9601
+      # If we're not in dry-run mode, bomb out on failure
 
9602
+      test -d "$my_tmpdir" || {
 
9603
+        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
 
9604
+       exit $EXIT_FAILURE
 
9605
+      }
 
9606
+    fi
 
9607
+
 
9608
+    $echo "X$my_tmpdir" | $Xsed
 
9609
+}
 
9610
+
 
9611
+
 
9612
 # func_win32_libid arg
 
9613
 # return the library type of file 'arg'
 
9614
 #
 
9615
@@ -157,12 +196,11 @@
 
9616
     if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
 
9617
       $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
 
9618
       win32_nmres=`eval $NM -f posix -A $1 | \
 
9619
-       sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
 
9620
-      if test "X$win32_nmres" = "Ximport" ; then
 
9621
-        win32_libid_type="x86 archive import"
 
9622
-      else
 
9623
-        win32_libid_type="x86 archive static"
 
9624
-      fi
 
9625
+       $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
 
9626
+      case $win32_nmres in
 
9627
+      import*)  win32_libid_type="x86 archive import";;
 
9628
+      *)        win32_libid_type="x86 archive static";;
 
9629
+      esac
 
9630
     fi
 
9631
     ;;
 
9632
   *DLL*)
 
9633
@@ -295,9 +333,9 @@
 
9634
       $run ${rm}r "$my_xdir"
 
9635
       $show "$mkdir $my_xdir"
 
9636
       $run $mkdir "$my_xdir"
 
9637
-      status=$?
 
9638
-      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
 
9639
-       exit $status
 
9640
+      exit_status=$?
 
9641
+      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
 
9642
+       exit $exit_status
 
9643
       fi
 
9644
       case $host in
 
9645
       *-darwin*)
 
9646
@@ -352,6 +390,8 @@
 
9647
 # Darwin sucks
 
9648
 eval std_shrext=\"$shrext_cmds\"
 
9649
 
 
9650
+disable_libs=no
 
9651
+
 
9652
 # Parse our command line options once, thoroughly.
 
9653
 while test "$#" -gt 0
 
9654
 do
 
9655
@@ -468,7 +508,11 @@
 
9656
     preserve_args="$preserve_args $arg"
 
9657
     ;;
 
9658
 
 
9659
-  --tag) prevopt="--tag" prev=tag ;;
 
9660
+  --tag)
 
9661
+    prevopt="--tag"
 
9662
+    prev=tag
 
9663
+    preserve_args="$preserve_args --tag"
 
9664
+    ;;
 
9665
   --tag=*)
 
9666
     set tag "$optarg" ${1+"$@"}
 
9667
     shift
 
9668
@@ -500,6 +544,18 @@
 
9669
   exit $EXIT_FAILURE
 
9670
 fi
 
9671
 
 
9672
+case $disable_libs in
 
9673
+no) 
 
9674
+  ;;
 
9675
+shared)
 
9676
+  build_libtool_libs=no
 
9677
+  build_old_libs=yes
 
9678
+  ;;
 
9679
+static)
 
9680
+  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
 
9681
+  ;;
 
9682
+esac
 
9683
+
 
9684
 # If this variable is set in any of the actions, the command in it
 
9685
 # will be execed at the end.  This prevents here-documents from being
 
9686
 # left over by shells.
 
9687
@@ -856,9 +912,9 @@
 
9688
       if test ! -d "${xdir}$objdir"; then
 
9689
        $show "$mkdir ${xdir}$objdir"
 
9690
        $run $mkdir ${xdir}$objdir
 
9691
-       status=$?
 
9692
-       if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
 
9693
-         exit $status
 
9694
+       exit_status=$?
 
9695
+       if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
 
9696
+         exit $exit_status
 
9697
        fi
 
9698
       fi
 
9699
 
 
9700
@@ -1061,6 +1117,7 @@
 
9701
     no_install=no
 
9702
     objs=
 
9703
     non_pic_objects=
 
9704
+    notinst_path= # paths that contain not-installed libtool libraries
 
9705
     precious_files_regex=
 
9706
     prefer_static_libs=no
 
9707
     preload=no
 
9708
@@ -1089,14 +1146,15 @@
 
9709
          if test -n "$link_static_flag"; then
 
9710
            dlopen_self=$dlopen_self_static
 
9711
          fi
 
9712
+         prefer_static_libs=yes
 
9713
        else
 
9714
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
9715
            dlopen_self=$dlopen_self_static
 
9716
          fi
 
9717
+         prefer_static_libs=built
 
9718
        fi
 
9719
        build_libtool_libs=no
 
9720
        build_old_libs=yes
 
9721
-       prefer_static_libs=yes
 
9722
        break
 
9723
        ;;
 
9724
       esac
 
9725
@@ -1271,6 +1329,11 @@
 
9726
                  if test -z "$pic_object" || test "$pic_object" = none ; then
 
9727
                    arg="$non_pic_object"
 
9728
                  fi
 
9729
+               else
 
9730
+                 # If the PIC object exists, use it instead.
 
9731
+                 # $xdir was prepended to $pic_object above.
 
9732
+                 non_pic_object="$pic_object"
 
9733
+                 non_pic_objects="$non_pic_objects $non_pic_object"
 
9734
                fi
 
9735
              else
 
9736
                # Only an error if not doing a dry-run.
 
9737
@@ -1354,8 +1417,8 @@
 
9738
          prev=
 
9739
          continue
 
9740
          ;;
 
9741
-        darwin_framework)
 
9742
-         compiler_flags="$compiler_flags $arg"
 
9743
+       darwin_framework|darwin_framework_skip)
 
9744
+         test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
 
9745
          compile_command="$compile_command $arg"
 
9746
          finalize_command="$finalize_command $arg"
 
9747
          prev=
 
9748
@@ -1419,13 +1482,17 @@
 
9749
        continue
 
9750
        ;;
 
9751
 
 
9752
-      -framework|-arch)
 
9753
-        prev=darwin_framework
 
9754
-        compiler_flags="$compiler_flags $arg"
 
9755
+      -framework|-arch|-isysroot)
 
9756
+       case " $CC " in
 
9757
+         *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
 
9758
+               prev=darwin_framework_skip ;;
 
9759
+         *) compiler_flags="$compiler_flags $arg"
 
9760
+            prev=darwin_framework ;;
 
9761
+       esac
 
9762
        compile_command="$compile_command $arg"
 
9763
        finalize_command="$finalize_command $arg"
 
9764
-        continue
 
9765
-        ;;
 
9766
+       continue
 
9767
+       ;;
 
9768
 
 
9769
       -inst-prefix-dir)
 
9770
        prev=inst_prefix
 
9771
@@ -1453,7 +1520,8 @@
 
9772
          absdir=`cd "$dir" && pwd`
 
9773
          if test -z "$absdir"; then
 
9774
            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
 
9775
-           exit $EXIT_FAILURE
 
9776
+           absdir="$dir"
 
9777
+           notinst_path="$notinst_path $dir"
 
9778
          fi
 
9779
          dir="$absdir"
 
9780
          ;;
 
9781
@@ -1467,10 +1535,15 @@
 
9782
        esac
 
9783
        case $host in
 
9784
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
9785
+         testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
 
9786
          case :$dllsearchpath: in
 
9787
          *":$dir:"*) ;;
 
9788
          *) dllsearchpath="$dllsearchpath:$dir";;
 
9789
          esac
 
9790
+         case :$dllsearchpath: in
 
9791
+         *":$testbindir:"*) ;;
 
9792
+         *) dllsearchpath="$dllsearchpath:$testbindir";;
 
9793
+         esac
 
9794
          ;;
 
9795
        esac
 
9796
        continue
 
9797
@@ -1479,11 +1552,11 @@
 
9798
       -l*)
 
9799
        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
 
9800
          case $host in
 
9801
-         *-*-cygwin* | *-*-pw32* | *-*-beos*)
 
9802
+         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
 
9803
            # These systems don't actually have a C or math library (as such)
 
9804
            continue
 
9805
            ;;
 
9806
-         *-*-mingw* | *-*-os2*)
 
9807
+         *-*-os2*)
 
9808
            # These systems don't actually have a C library (as such)
 
9809
            test "X$arg" = "X-lc" && continue
 
9810
            ;;
 
9811
@@ -1495,6 +1568,15 @@
 
9812
            # Rhapsody C and math libraries are in the System framework
 
9813
            deplibs="$deplibs -framework System"
 
9814
            continue
 
9815
+           ;;
 
9816
+         *-*-sco3.2v5* | *-*-sco5v6*)
 
9817
+           # Causes problems with __ctype
 
9818
+           test "X$arg" = "X-lc" && continue
 
9819
+           ;;
 
9820
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
9821
+           # Compiler inserts libc in the correct place for threads to work
 
9822
+           test "X$arg" = "X-lc" && continue
 
9823
+           ;;
 
9824
          esac
 
9825
        elif test "X$arg" = "X-lc_r"; then
 
9826
         case $host in
 
9827
@@ -1536,7 +1618,12 @@
 
9828
       # +DA*, +DD* enable 64-bit mode on the HP compiler
 
9829
       # -q* pass through compiler args for the IBM compiler
 
9830
       # -m* pass through architecture-specific compiler args for GCC
 
9831
-      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
 
9832
+      # -m*, -t[45]*, -txscale* pass through architecture-specific
 
9833
+      # compiler args for GCC
 
9834
+      # -pg pass through profiling flag for GCC
 
9835
+      # @file GCC response files
 
9836
+      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
 
9837
+      -t[45]*|-txscale*|@*)
 
9838
 
 
9839
        # Unknown arguments in both finalize_command and compile_command need
 
9840
        # to be aesthetically quoted because they are evaled later.
 
9841
@@ -1548,9 +1635,7 @@
 
9842
        esac
 
9843
         compile_command="$compile_command $arg"
 
9844
         finalize_command="$finalize_command $arg"
 
9845
-        if test "$with_gcc" = "yes" ; then
 
9846
-          compiler_flags="$compiler_flags $arg"
 
9847
-        fi
 
9848
+        compiler_flags="$compiler_flags $arg"
 
9849
         continue
 
9850
         ;;
 
9851
 
 
9852
@@ -1788,6 +1873,11 @@
 
9853
            if test -z "$pic_object" || test "$pic_object" = none ; then
 
9854
              arg="$non_pic_object"
 
9855
            fi
 
9856
+         else
 
9857
+           # If the PIC object exists, use it instead.
 
9858
+           # $xdir was prepended to $pic_object above.
 
9859
+           non_pic_object="$pic_object"
 
9860
+           non_pic_objects="$non_pic_objects $non_pic_object"
 
9861
          fi
 
9862
        else
 
9863
          # Only an error if not doing a dry-run.
 
9864
@@ -1893,9 +1983,9 @@
 
9865
     if test ! -d "$output_objdir"; then
 
9866
       $show "$mkdir $output_objdir"
 
9867
       $run $mkdir $output_objdir
 
9868
-      status=$?
 
9869
-      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
 
9870
-       exit $status
 
9871
+      exit_status=$?
 
9872
+      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
 
9873
+       exit $exit_status
 
9874
       fi
 
9875
     fi
 
9876
 
 
9877
@@ -1958,7 +2048,6 @@
 
9878
     newlib_search_path=
 
9879
     need_relink=no # whether we're linking any uninstalled libtool libraries
 
9880
     notinst_deplibs= # not-installed libtool libraries
 
9881
-    notinst_path= # paths that contain not-installed libtool libraries
 
9882
     case $linkmode in
 
9883
     lib)
 
9884
        passes="conv link"
 
9885
@@ -1993,7 +2082,10 @@
 
9886
        case $pass in
 
9887
        dlopen) libs="$dlfiles" ;;
 
9888
        dlpreopen) libs="$dlprefiles" ;;
 
9889
-       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
 
9890
+       link)
 
9891
+         libs="$deplibs %DEPLIBS%"
 
9892
+         test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
 
9893
+         ;;
 
9894
        esac
 
9895
       fi
 
9896
       if test "$pass" = dlopen; then
 
9897
@@ -2194,7 +2286,7 @@
 
9898
        esac # case $deplib
 
9899
        if test "$found" = yes || test -f "$lib"; then :
 
9900
        else
 
9901
-         $echo "$modename: cannot find the library \`$lib'" 1>&2
 
9902
+         $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
 
9903
          exit $EXIT_FAILURE
 
9904
        fi
 
9905
 
 
9906
@@ -2445,8 +2537,12 @@
 
9907
        fi
 
9908
 
 
9909
        link_static=no # Whether the deplib will be linked statically
 
9910
+       use_static_libs=$prefer_static_libs
 
9911
+       if test "$use_static_libs" = built && test "$installed" = yes ; then
 
9912
+         use_static_libs=no
 
9913
+       fi
 
9914
        if test -n "$library_names" &&
 
9915
-          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
9916
+          { test "$use_static_libs" = no || test -z "$old_library"; }; then
 
9917
          if test "$installed" = no; then
 
9918
            notinst_deplibs="$notinst_deplibs $lib"
 
9919
            need_relink=yes
 
9920
@@ -2559,11 +2655,15 @@
 
9921
              if test "$hardcode_direct" = no; then
 
9922
                add="$dir/$linklib"
 
9923
                case $host in
 
9924
-                 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
 
9925
+                 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
 
9926
+                 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
 
9927
+                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
 
9928
+                   *-*-unixware7*) add_dir="-L$dir" ;;
 
9929
                  *-*-darwin* )
 
9930
                    # if the lib is a module then we can not link against
 
9931
                    # it, someone is ignoring the new warnings I added
 
9932
-                   if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
 
9933
+                   if /usr/bin/file -L $add 2> /dev/null |
 
9934
+                      $EGREP ": [^:]* bundle" >/dev/null ; then
 
9935
                      $echo "** Warning, lib $linklib is a module, not a shared library"
 
9936
                      if test -z "$old_library" ; then
 
9937
                        $echo
 
9938
@@ -3104,6 +3204,11 @@
 
9939
            age="$number_minor"
 
9940
            revision="$number_minor"
 
9941
            ;;
 
9942
+         *)
 
9943
+           $echo "$modename: unknown library version type \`$version_type'" 1>&2
 
9944
+           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
 
9945
+           exit $EXIT_FAILURE
 
9946
+           ;;
 
9947
          esac
 
9948
          ;;
 
9949
        no)
 
9950
@@ -3314,9 +3419,9 @@
 
9951
 
 
9952
       # Eliminate all temporary directories.
 
9953
       for path in $notinst_path; do
 
9954
-       lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
 
9955
-       deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
 
9956
-       dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
 
9957
+       lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
9958
+       deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
9959
+       dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
9960
       done
 
9961
 
 
9962
       if test -n "$xrpath"; then
 
9963
@@ -3369,7 +3474,12 @@
 
9964
            ;;
 
9965
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
 
9966
            # Do not include libc due to us having libc/libc_r.
 
9967
-           test "X$arg" = "X-lc" && continue
 
9968
+           ;;
 
9969
+         *-*-sco3.2v5* | *-*-sco5v6*)
 
9970
+           # Causes problems with __ctype
 
9971
+           ;;
 
9972
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
9973
+           # Compiler inserts libc in the correct place for threads to work
 
9974
            ;;
 
9975
          *)
 
9976
            # Add libc to deplibs on all other systems if necessary.
 
9977
@@ -3413,7 +3523,7 @@
 
9978
          int main() { return 0; }
 
9979
 EOF
 
9980
          $rm conftest
 
9981
-         $LTCC -o conftest conftest.c $deplibs
 
9982
+         $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
 
9983
          if test "$?" -eq 0 ; then
 
9984
            ldd_output=`ldd conftest`
 
9985
            for i in $deplibs; do
 
9986
@@ -3458,7 +3568,7 @@
 
9987
              # If $name is empty we are operating on a -L argument.
 
9988
               if test "$name" != "" && test "$name" != "0"; then
 
9989
                $rm conftest
 
9990
-               $LTCC -o conftest conftest.c $i
 
9991
+               $LTCC $LTCFLAGS -o conftest conftest.c $i
 
9992
                # Did it work?
 
9993
                if test "$?" -eq 0 ; then
 
9994
                  ldd_output=`ldd conftest`
 
9995
@@ -3705,6 +3815,35 @@
 
9996
        deplibs=$newdeplibs
 
9997
       fi
 
9998
 
 
9999
+
 
10000
+      # move library search paths that coincide with paths to not yet
 
10001
+      # installed libraries to the beginning of the library search list
 
10002
+      new_libs=
 
10003
+      for path in $notinst_path; do
 
10004
+       case " $new_libs " in
 
10005
+       *" -L$path/$objdir "*) ;;
 
10006
+       *)
 
10007
+         case " $deplibs " in
 
10008
+         *" -L$path/$objdir "*)
 
10009
+           new_libs="$new_libs -L$path/$objdir" ;;
 
10010
+         esac
 
10011
+         ;;
 
10012
+       esac
 
10013
+      done
 
10014
+      for deplib in $deplibs; do
 
10015
+       case $deplib in
 
10016
+       -L*)
 
10017
+         case " $new_libs " in
 
10018
+         *" $deplib "*) ;;
 
10019
+         *) new_libs="$new_libs $deplib" ;;
 
10020
+         esac
 
10021
+         ;;
 
10022
+       *) new_libs="$new_libs $deplib" ;;
 
10023
+       esac
 
10024
+      done
 
10025
+      deplibs="$new_libs"
 
10026
+
 
10027
+
 
10028
       # All the library-specific variables (install_libdir is set above).
 
10029
       library_names=
 
10030
       old_library=
 
10031
@@ -3788,6 +3927,7 @@
 
10032
        fi
 
10033
 
 
10034
        lib="$output_objdir/$realname"
 
10035
+       linknames=
 
10036
        for link
 
10037
        do
 
10038
          linknames="$linknames $link"
 
10039
@@ -4219,6 +4359,35 @@
 
10040
         ;;
 
10041
       esac
 
10042
 
 
10043
+
 
10044
+      # move library search paths that coincide with paths to not yet
 
10045
+      # installed libraries to the beginning of the library search list
 
10046
+      new_libs=
 
10047
+      for path in $notinst_path; do
 
10048
+       case " $new_libs " in
 
10049
+       *" -L$path/$objdir "*) ;;
 
10050
+       *)
 
10051
+         case " $compile_deplibs " in
 
10052
+         *" -L$path/$objdir "*)
 
10053
+           new_libs="$new_libs -L$path/$objdir" ;;
 
10054
+         esac
 
10055
+         ;;
 
10056
+       esac
 
10057
+      done
 
10058
+      for deplib in $compile_deplibs; do
 
10059
+       case $deplib in
 
10060
+       -L*)
 
10061
+         case " $new_libs " in
 
10062
+         *" $deplib "*) ;;
 
10063
+         *) new_libs="$new_libs $deplib" ;;
 
10064
+         esac
 
10065
+         ;;
 
10066
+       *) new_libs="$new_libs $deplib" ;;
 
10067
+       esac
 
10068
+      done
 
10069
+      compile_deplibs="$new_libs"
 
10070
+
 
10071
+
 
10072
       compile_command="$compile_command $compile_deplibs"
 
10073
       finalize_command="$finalize_command $finalize_deplibs"
 
10074
 
 
10075
@@ -4263,10 +4432,15 @@
 
10076
        fi
 
10077
        case $host in
 
10078
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
10079
+         testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
 
10080
          case :$dllsearchpath: in
 
10081
          *":$libdir:"*) ;;
 
10082
          *) dllsearchpath="$dllsearchpath:$libdir";;
 
10083
          esac
 
10084
+         case :$dllsearchpath: in
 
10085
+         *":$testbindir:"*) ;;
 
10086
+         *) dllsearchpath="$dllsearchpath:$testbindir";;
 
10087
+         esac
 
10088
          ;;
 
10089
        esac
 
10090
       done
 
10091
@@ -4383,10 +4557,22 @@
 
10092
              export_symbols="$output_objdir/$outputname.exp"
 
10093
              $run $rm $export_symbols
 
10094
              $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
 
10095
+              case $host in
 
10096
+              *cygwin* | *mingw* )
 
10097
+               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
10098
+               $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
 
10099
+                ;;
 
10100
+              esac
 
10101
            else
 
10102
-             $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
 
10103
+             $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
 
10104
              $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
 
10105
              $run eval 'mv "$nlist"T "$nlist"'
 
10106
+              case $host in
 
10107
+              *cygwin* | *mingw* )
 
10108
+               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
10109
+               $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
 
10110
+                ;;
 
10111
+              esac
 
10112
            fi
 
10113
          fi
 
10114
 
 
10115
@@ -4503,16 +4689,29 @@
 
10116
          esac
 
10117
 
 
10118
          # Now compile the dynamic symbol file.
 
10119
-         $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
 
10120
-         $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
 
10121
+         $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
 
10122
+         $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
 
10123
 
 
10124
          # Clean up the generated files.
 
10125
          $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
 
10126
          $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
 
10127
 
 
10128
          # Transform the symbol file into the correct name.
 
10129
-         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
10130
-         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
10131
+          case $host in
 
10132
+          *cygwin* | *mingw* )
 
10133
+            if test -f "$output_objdir/${outputname}.def" ; then
 
10134
+              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
10135
+              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
10136
+            else
 
10137
+              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
10138
+              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
10139
+             fi
 
10140
+            ;;
 
10141
+          * )
 
10142
+            compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
10143
+            finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
10144
+            ;;
 
10145
+          esac
 
10146
          ;;
 
10147
        *)
 
10148
          $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
 
10149
@@ -4537,7 +4736,7 @@
 
10150
        # We have no uninstalled library dependencies, so finalize right now.
 
10151
        $show "$link_command"
 
10152
        $run eval "$link_command"
 
10153
-       status=$?
 
10154
+       exit_status=$?
 
10155
 
 
10156
        # Delete the generated files.
 
10157
        if test -n "$dlsyms"; then
 
10158
@@ -4545,7 +4744,7 @@
 
10159
          $run $rm "$output_objdir/${outputname}S.${objext}"
 
10160
        fi
 
10161
 
 
10162
-       exit $status
 
10163
+       exit $exit_status
 
10164
       fi
 
10165
 
 
10166
       if test -n "$shlibpath_var"; then
 
10167
@@ -4685,10 +4884,12 @@
 
10168
        esac
 
10169
        case $host in
 
10170
          *cygwin* | *mingw* )
 
10171
-           cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
 
10172
-           cwrapper=`$echo ${output}.exe`
 
10173
-           $rm $cwrappersource $cwrapper
 
10174
-           trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
 
10175
+            output_name=`basename $output`
 
10176
+            output_path=`dirname $output`
 
10177
+            cwrappersource="$output_path/$objdir/lt-$output_name.c"
 
10178
+            cwrapper="$output_path/$output_name.exe"
 
10179
+            $rm $cwrappersource $cwrapper
 
10180
+            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
 
10181
 
 
10182
            cat > $cwrappersource <<EOF
 
10183
 
 
10184
@@ -4713,6 +4914,9 @@
 
10185
 #include <malloc.h>
 
10186
 #include <stdarg.h>
 
10187
 #include <assert.h>
 
10188
+#include <string.h>
 
10189
+#include <ctype.h>
 
10190
+#include <sys/stat.h>
 
10191
 
 
10192
 #if defined(PATH_MAX)
 
10193
 # define LT_PATHMAX PATH_MAX
 
10194
@@ -4723,15 +4927,19 @@
 
10195
 #endif
 
10196
 
 
10197
 #ifndef DIR_SEPARATOR
 
10198
-#define DIR_SEPARATOR '/'
 
10199
+# define DIR_SEPARATOR '/'
 
10200
+# define PATH_SEPARATOR ':'
 
10201
 #endif
 
10202
 
 
10203
 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
 
10204
   defined (__OS2__)
 
10205
-#define HAVE_DOS_BASED_FILE_SYSTEM
 
10206
-#ifndef DIR_SEPARATOR_2
 
10207
-#define DIR_SEPARATOR_2 '\\'
 
10208
-#endif
 
10209
+# define HAVE_DOS_BASED_FILE_SYSTEM
 
10210
+# ifndef DIR_SEPARATOR_2
 
10211
+#  define DIR_SEPARATOR_2 '\\'
 
10212
+# endif
 
10213
+# ifndef PATH_SEPARATOR_2
 
10214
+#  define PATH_SEPARATOR_2 ';'
 
10215
+# endif
 
10216
 #endif
 
10217
 
 
10218
 #ifndef DIR_SEPARATOR_2
 
10219
@@ -4741,17 +4949,32 @@
 
10220
         (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
 
10221
 #endif /* DIR_SEPARATOR_2 */
 
10222
 
 
10223
+#ifndef PATH_SEPARATOR_2
 
10224
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
 
10225
+#else /* PATH_SEPARATOR_2 */
 
10226
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
 
10227
+#endif /* PATH_SEPARATOR_2 */
 
10228
+
 
10229
 #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
 
10230
 #define XFREE(stale) do { \
 
10231
   if (stale) { free ((void *) stale); stale = 0; } \
 
10232
 } while (0)
 
10233
 
 
10234
+/* -DDEBUG is fairly common in CFLAGS.  */
 
10235
+#undef DEBUG
 
10236
+#if defined DEBUGWRAPPER
 
10237
+# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
 
10238
+#else
 
10239
+# define DEBUG(format, ...)
 
10240
+#endif
 
10241
+
 
10242
 const char *program_name = NULL;
 
10243
 
 
10244
 void * xmalloc (size_t num);
 
10245
 char * xstrdup (const char *string);
 
10246
-char * basename (const char *name);
 
10247
-char * fnqualify(const char *path);
 
10248
+const char * base_name (const char *name);
 
10249
+char * find_executable(const char *wrapper);
 
10250
+int    check_executable(const char *path);
 
10251
 char * strendzap(char *str, const char *pat);
 
10252
 void lt_fatal (const char *message, ...);
 
10253
 
 
10254
@@ -4761,29 +4984,50 @@
 
10255
   char **newargz;
 
10256
   int i;
 
10257
 
 
10258
-  program_name = (char *) xstrdup ((char *) basename (argv[0]));
 
10259
+  program_name = (char *) xstrdup (base_name (argv[0]));
 
10260
+  DEBUG("(main) argv[0]      : %s\n",argv[0]);
 
10261
+  DEBUG("(main) program_name : %s\n",program_name);
 
10262
   newargz = XMALLOC(char *, argc+2);
 
10263
 EOF
 
10264
 
 
10265
-           cat >> $cwrappersource <<EOF
 
10266
-  newargz[0] = "$SHELL";
 
10267
+            cat >> $cwrappersource <<EOF
 
10268
+  newargz[0] = (char *) xstrdup("$SHELL");
 
10269
 EOF
 
10270
 
 
10271
-           cat >> $cwrappersource <<"EOF"
 
10272
-  newargz[1] = fnqualify(argv[0]);
 
10273
+            cat >> $cwrappersource <<"EOF"
 
10274
+  newargz[1] = find_executable(argv[0]);
 
10275
+  if (newargz[1] == NULL)
 
10276
+    lt_fatal("Couldn't find %s", argv[0]);
 
10277
+  DEBUG("(main) found exe at : %s\n",newargz[1]);
 
10278
   /* we know the script has the same name, without the .exe */
 
10279
   /* so make sure newargz[1] doesn't end in .exe */
 
10280
   strendzap(newargz[1],".exe");
 
10281
   for (i = 1; i < argc; i++)
 
10282
     newargz[i+1] = xstrdup(argv[i]);
 
10283
   newargz[argc+1] = NULL;
 
10284
+
 
10285
+  for (i=0; i<argc+1; i++)
 
10286
+  {
 
10287
+    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
 
10288
+    ;
 
10289
+  }
 
10290
+
 
10291
 EOF
 
10292
 
 
10293
-           cat >> $cwrappersource <<EOF
 
10294
+            case $host_os in
 
10295
+              mingw*)
 
10296
+                cat >> $cwrappersource <<EOF
 
10297
+  execv("$SHELL",(char const **)newargz);
 
10298
+EOF
 
10299
+              ;;
 
10300
+              *)
 
10301
+                cat >> $cwrappersource <<EOF
 
10302
   execv("$SHELL",newargz);
 
10303
 EOF
 
10304
+              ;;
 
10305
+            esac
 
10306
 
 
10307
-           cat >> $cwrappersource <<"EOF"
 
10308
+            cat >> $cwrappersource <<"EOF"
 
10309
   return 127;
 
10310
 }
 
10311
 
 
10312
@@ -4804,48 +5048,148 @@
 
10313
 ;
 
10314
 }
 
10315
 
 
10316
-char *
 
10317
-basename (const char *name)
 
10318
+const char *
 
10319
+base_name (const char *name)
 
10320
 {
 
10321
   const char *base;
 
10322
 
 
10323
 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
10324
   /* Skip over the disk name in MSDOS pathnames. */
 
10325
-  if (isalpha (name[0]) && name[1] == ':')
 
10326
+  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
 
10327
     name += 2;
 
10328
 #endif
 
10329
 
 
10330
   for (base = name; *name; name++)
 
10331
     if (IS_DIR_SEPARATOR (*name))
 
10332
       base = name + 1;
 
10333
-  return (char *) base;
 
10334
+  return base;
 
10335
+}
 
10336
+
 
10337
+int
 
10338
+check_executable(const char * path)
 
10339
+{
 
10340
+  struct stat st;
 
10341
+
 
10342
+  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
 
10343
+  if ((!path) || (!*path))
 
10344
+    return 0;
 
10345
+
 
10346
+  if ((stat (path, &st) >= 0) &&
 
10347
+      (
 
10348
+        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
 
10349
+#if defined (S_IXOTH)
 
10350
+       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
 
10351
+#endif
 
10352
+#if defined (S_IXGRP)
 
10353
+       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
 
10354
+#endif
 
10355
+       ((st.st_mode & S_IXUSR) == S_IXUSR))
 
10356
+      )
 
10357
+    return 1;
 
10358
+  else
 
10359
+    return 0;
 
10360
 }
 
10361
 
 
10362
+/* Searches for the full path of the wrapper.  Returns
 
10363
+   newly allocated full path name if found, NULL otherwise */
 
10364
 char *
 
10365
-fnqualify(const char *path)
 
10366
+find_executable (const char* wrapper)
 
10367
 {
 
10368
-  size_t size;
 
10369
-  char *p;
 
10370
+  int has_slash = 0;
 
10371
+  const char* p;
 
10372
+  const char* p_next;
 
10373
+  /* static buffer for getcwd */
 
10374
   char tmp[LT_PATHMAX + 1];
 
10375
+  int tmp_len;
 
10376
+  char* concat_name;
 
10377
 
 
10378
-  assert(path != NULL);
 
10379
+  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
 
10380
 
 
10381
-  /* Is it qualified already? */
 
10382
+  if ((wrapper == NULL) || (*wrapper == '\0'))
 
10383
+    return NULL;
 
10384
+
 
10385
+  /* Absolute path? */
 
10386
 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
10387
-  if (isalpha (path[0]) && path[1] == ':')
 
10388
-    return xstrdup (path);
 
10389
+  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
 
10390
+  {
 
10391
+    concat_name = xstrdup (wrapper);
 
10392
+    if (check_executable(concat_name))
 
10393
+      return concat_name;
 
10394
+    XFREE(concat_name);
 
10395
+  }
 
10396
+  else
 
10397
+  {
 
10398
+#endif
 
10399
+    if (IS_DIR_SEPARATOR (wrapper[0]))
 
10400
+    {
 
10401
+      concat_name = xstrdup (wrapper);
 
10402
+      if (check_executable(concat_name))
 
10403
+        return concat_name;
 
10404
+      XFREE(concat_name);
 
10405
+    }
 
10406
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
10407
+  }
 
10408
 #endif
 
10409
-  if (IS_DIR_SEPARATOR (path[0]))
 
10410
-    return xstrdup (path);
 
10411
 
 
10412
-  /* prepend the current directory */
 
10413
-  /* doesn't handle '~' */
 
10414
+  for (p = wrapper; *p; p++)
 
10415
+    if (*p == '/')
 
10416
+    {
 
10417
+      has_slash = 1;
 
10418
+      break;
 
10419
+    }
 
10420
+  if (!has_slash)
 
10421
+  {
 
10422
+    /* no slashes; search PATH */
 
10423
+    const char* path = getenv ("PATH");
 
10424
+    if (path != NULL)
 
10425
+    {
 
10426
+      for (p = path; *p; p = p_next)
 
10427
+      {
 
10428
+        const char* q;
 
10429
+        size_t p_len;
 
10430
+        for (q = p; *q; q++)
 
10431
+          if (IS_PATH_SEPARATOR(*q))
 
10432
+            break;
 
10433
+        p_len = q - p;
 
10434
+        p_next = (*q == '\0' ? q : q + 1);
 
10435
+        if (p_len == 0)
 
10436
+        {
 
10437
+          /* empty path: current directory */
 
10438
+          if (getcwd (tmp, LT_PATHMAX) == NULL)
 
10439
+            lt_fatal ("getcwd failed");
 
10440
+          tmp_len = strlen(tmp);
 
10441
+          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
10442
+          memcpy (concat_name, tmp, tmp_len);
 
10443
+          concat_name[tmp_len] = '/';
 
10444
+          strcpy (concat_name + tmp_len + 1, wrapper);
 
10445
+        }
 
10446
+        else
 
10447
+        {
 
10448
+          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
 
10449
+          memcpy (concat_name, p, p_len);
 
10450
+          concat_name[p_len] = '/';
 
10451
+          strcpy (concat_name + p_len + 1, wrapper);
 
10452
+        }
 
10453
+        if (check_executable(concat_name))
 
10454
+          return concat_name;
 
10455
+        XFREE(concat_name);
 
10456
+      }
 
10457
+    }
 
10458
+    /* not found in PATH; assume curdir */
 
10459
+  }
 
10460
+  /* Relative path | not found in path: prepend cwd */
 
10461
   if (getcwd (tmp, LT_PATHMAX) == NULL)
 
10462
     lt_fatal ("getcwd failed");
 
10463
-  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
 
10464
-  p = XMALLOC(char, size);
 
10465
-  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
 
10466
-  return p;
 
10467
+  tmp_len = strlen(tmp);
 
10468
+  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
10469
+  memcpy (concat_name, tmp, tmp_len);
 
10470
+  concat_name[tmp_len] = '/';
 
10471
+  strcpy (concat_name + tmp_len + 1, wrapper);
 
10472
+
 
10473
+  if (check_executable(concat_name))
 
10474
+    return concat_name;
 
10475
+  XFREE(concat_name);
 
10476
+  return NULL;
 
10477
 }
 
10478
 
 
10479
 char *
 
10480
@@ -4889,16 +5233,16 @@
 
10481
   va_end (ap);
 
10482
 }
 
10483
 EOF
 
10484
-         # we should really use a build-platform specific compiler
 
10485
-         # here, but OTOH, the wrappers (shell script and this C one)
 
10486
-         # are only useful if you want to execute the "real" binary.
 
10487
-         # Since the "real" binary is built for $host, then this
 
10488
-         # wrapper might as well be built for $host, too.
 
10489
-         $run $LTCC -s -o $cwrapper $cwrappersource
 
10490
-         ;;
 
10491
-       esac
 
10492
-       $rm $output
 
10493
-       trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
 
10494
+          # we should really use a build-platform specific compiler
 
10495
+          # here, but OTOH, the wrappers (shell script and this C one)
 
10496
+          # are only useful if you want to execute the "real" binary.
 
10497
+          # Since the "real" binary is built for $host, then this
 
10498
+          # wrapper might as well be built for $host, too.
 
10499
+          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
 
10500
+          ;;
 
10501
+        esac
 
10502
+        $rm $output
 
10503
+        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
 
10504
 
 
10505
        $echo > $output "\
 
10506
 #! $SHELL
 
10507
@@ -5128,9 +5472,9 @@
 
10508
            $run ${rm}r "$gentop"
 
10509
            $show "$mkdir $gentop"
 
10510
            $run $mkdir "$gentop"
 
10511
-           status=$?
 
10512
-           if test "$status" -ne 0 && test ! -d "$gentop"; then
 
10513
-             exit $status
 
10514
+           exit_status=$?
 
10515
+           if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
 
10516
+             exit $exit_status
 
10517
            fi
 
10518
          fi
 
10519
 
 
10520
@@ -5797,18 +6141,7 @@
 
10521
          outputname=
 
10522
          if test "$fast_install" = no && test -n "$relink_command"; then
 
10523
            if test "$finalize" = yes && test -z "$run"; then
 
10524
-             tmpdir="/tmp"
 
10525
-             test -n "$TMPDIR" && tmpdir="$TMPDIR"
 
10526
-             tmpdir="$tmpdir/libtool-$$"
 
10527
-             save_umask=`umask`
 
10528
-             umask 0077
 
10529
-             if $mkdir "$tmpdir"; then
 
10530
-               umask $save_umask
 
10531
-             else
 
10532
-               umask $save_umask
 
10533
-               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
 
10534
-               continue
 
10535
-             fi
 
10536
+             tmpdir=`func_mktempdir`
 
10537
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
 
10538
              outputname="$tmpdir/$file"
 
10539
              # Replace the output file specification.
 
10540
@@ -5932,7 +6265,7 @@
 
10541
     # Exit here if they wanted silent mode.
 
10542
     test "$show" = : && exit $EXIT_SUCCESS
 
10543
 
 
10544
-    $echo "----------------------------------------------------------------------"
 
10545
+    $echo "X----------------------------------------------------------------------" | $Xsed
 
10546
     $echo "Libraries have been installed in:"
 
10547
     for libdir in $libdirs; do
 
10548
       $echo "   $libdir"
 
10549
@@ -5965,7 +6298,7 @@
 
10550
     $echo
 
10551
     $echo "See any operating system documentation about shared libraries for"
 
10552
     $echo "more information, such as the ld(1) and ld.so(8) manual pages."
 
10553
-    $echo "----------------------------------------------------------------------"
 
10554
+    $echo "X----------------------------------------------------------------------" | $Xsed
 
10555
     exit $EXIT_SUCCESS
 
10556
     ;;
 
10557
 
 
10558
@@ -6182,9 +6515,17 @@
 
10559
            rmfiles="$rmfiles $objdir/$n"
 
10560
          done
 
10561
          test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
 
10562
-         test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
 
10563
 
 
10564
-         if test "$mode" = uninstall; then
 
10565
+         case "$mode" in
 
10566
+         clean)
 
10567
+           case "  $library_names " in
 
10568
+           # "  " in the beginning catches empty $dlname
 
10569
+           *" $dlname "*) ;;
 
10570
+           *) rmfiles="$rmfiles $objdir/$dlname" ;;
 
10571
+           esac
 
10572
+            test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
 
10573
+           ;;
 
10574
+         uninstall)
 
10575
            if test -n "$library_names"; then
 
10576
              # Do each command in the postuninstall commands.
 
10577
              cmds=$postuninstall_cmds
 
10578
@@ -6217,7 +6558,8 @@
 
10579
              IFS="$save_ifs"
 
10580
            fi
 
10581
            # FIXME: should reinstall the best remaining shared library.
 
10582
-         fi
 
10583
+           ;;
 
10584
+         esac
 
10585
        fi
 
10586
        ;;
 
10587
 
 
10588
@@ -6516,12 +6858,11 @@
 
10589
 # configuration.  But we'll never go from static-only to shared-only.
 
10590
 
 
10591
 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
 
10592
-build_libtool_libs=no
 
10593
-build_old_libs=yes
 
10594
+disable_libs=shared
 
10595
 # ### END LIBTOOL TAG CONFIG: disable-shared
 
10596
 
 
10597
 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
 
10598
-build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
 
10599
+disable_libs=static
 
10600
 # ### END LIBTOOL TAG CONFIG: disable-static
 
10601
 
 
10602
 # Local Variables: