Merge branch 'opendreambox' of /home/tmbinc/openembedded.git/ into opendreambox
[vuplus_openembedded] / packages / lesstif / files / aclocal.m4.diff
1 Index: lesstif2-0.95.0/aclocal.m4
2 ===================================================================
3 --- lesstif2-0.95.0.orig/aclocal.m4     2006-06-10 11:35:23.000000000 +0200
4 +++ lesstif2-0.95.0/aclocal.m4  2006-07-11 11:11:59.000000000 +0200
5 @@ -1,7 +1,7 @@
6 -# generated automatically by aclocal 1.9.4 -*- Autoconf -*-
7 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
8  
9 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
10 -# Free Software Foundation, Inc.
11 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
12 +# 2005  Free Software Foundation, Inc.
13  # This file is free software; the Free Software Foundation
14  # gives unlimited permission to copy and/or distribute it,
15  # with or without modifications, as long as this notice is preserved.
16 @@ -13,7 +13,7 @@
17  
18  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
19  
20 -# serial 47 AC_PROG_LIBTOOL
21 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
22  
23  
24  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
25 @@ -143,7 +143,7 @@
26  default_ofile=libtool
27  can_build_shared=yes
28  
29 -# All known linkers require a `.a' archive for static linking (except M$VC,
30 +# All known linkers require a `.a' archive for static linking (except MSVC,
31  # which needs '.lib').
32  libext=a
33  ltmain="$ac_aux_dir/ltmain.sh"
34 @@ -163,6 +163,7 @@
35  test -z "$AS" && AS=as
36  test -z "$CC" && CC=cc
37  test -z "$LTCC" && LTCC=$CC
38 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
39  test -z "$DLLTOOL" && DLLTOOL=dlltool
40  test -z "$LD" && LD=ld
41  test -z "$LN_S" && LN_S="ln -s"
42 @@ -182,10 +183,10 @@
43  if test -n "$RANLIB"; then
44    case $host_os in
45    openbsd*)
46 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
47 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
48      ;;
49    *)
50 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
51 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
52      ;;
53    esac
54    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
55 @@ -233,6 +234,9 @@
56  # If no C compiler was specified, use CC.
57  LTCC=${LTCC-"$CC"}
58  
59 +# If no C compiler flags were specified, use CFLAGS.
60 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
61 +
62  # Allow CC to be a program name with arguments.
63  compiler=$CC
64  ])# _LT_AC_SYS_COMPILER
65 @@ -261,7 +265,7 @@
66  AC_DEFUN([_LT_COMPILER_BOILERPLATE],
67  [ac_outfile=conftest.$ac_objext
68  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
69 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
70 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
71  _lt_compiler_boilerplate=`cat conftest.err`
72  $rm conftest*
73  ])# _LT_COMPILER_BOILERPLATE
74 @@ -274,7 +278,7 @@
75  AC_DEFUN([_LT_LINKER_BOILERPLATE],
76  [ac_outfile=conftest.$ac_objext
77  printf "$lt_simple_link_test_code" >conftest.$ac_ext
78 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
79 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
80  _lt_linker_boilerplate=`cat conftest.err`
81  $rm conftest*
82  ])# _LT_LINKER_BOILERPLATE
83 @@ -359,8 +363,8 @@
84  # find a string as large as possible, as long as the shell can cope with it
85    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
86      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
87 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
88 -       echo_test_string="`eval $cmd`" &&
89 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
90 +       echo_test_string=`eval $cmd` &&
91         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
92      then
93        break
94 @@ -529,7 +533,7 @@
95    # Find out which ABI we are using.
96    echo 'int i;' > conftest.$ac_ext
97    if AC_TRY_EVAL(ac_compile); then
98 -    case "`/usr/bin/file conftest.o`" in
99 +    case `/usr/bin/file conftest.o` in
100      *32-bit*)
101        case $host in
102          x86_64-*linux*)
103 @@ -580,6 +584,22 @@
104      CFLAGS="$SAVE_CFLAGS"
105    fi
106    ;;
107 +sparc*-*solaris*)
108 +  # Find out which ABI we are using.
109 +  echo 'int i;' > conftest.$ac_ext
110 +  if AC_TRY_EVAL(ac_compile); then
111 +    case `/usr/bin/file conftest.o` in
112 +    *64-bit*)
113 +      case $lt_cv_prog_gnu_ld in
114 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
115 +      *)    LD="${LD-ld} -64" ;;
116 +      esac
117 +      ;;
118 +    esac
119 +  fi
120 +  rm -rf conftest*
121 +  ;;
122 +
123  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
124  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
125    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
126 @@ -611,7 +631,7 @@
127     # with a dollar sign (not a hyphen), so the echo should work correctly.
128     # The option is referenced via a variable to avoid confusing sed.
129     lt_compile=`echo "$ac_compile" | $SED \
130 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
131 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
132     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
133     -e 's:$: $lt_compiler_flag:'`
134     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
135 @@ -622,9 +642,9 @@
136     if (exit $ac_status) && test -s "$ac_outfile"; then
137       # The compiler can only warn and ignore the option if not recognized
138       # So say no if there are warnings other than the usual output.
139 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
140 -     $SED '/^$/d' conftest.err >conftest.er2
141 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
142 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
143 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
144 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
145         $2=yes
146       fi
147     fi
148 @@ -650,13 +670,13 @@
149     LDFLAGS="$LDFLAGS $3"
150     printf "$lt_simple_link_test_code" > conftest.$ac_ext
151     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
152 -     # The compiler can only warn and ignore the option if not recognized
153 +     # The linker can only warn and ignore the option if not recognized
154       # So say no if there are warnings
155       if test -s conftest.err; then
156         # Append any errors to the config.log.
157         cat conftest.err 1>&AS_MESSAGE_LOG_FD
158 -       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
159 -       $SED '/^$/d' conftest.err >conftest.er2
160 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
161 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
162         if diff conftest.exp conftest.er2 >/dev/null; then
163           $2=yes
164         fi
165 @@ -725,25 +745,42 @@
166      elif test -x /usr/sbin/sysctl; then
167        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
168      else
169 -      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
170 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
171      fi
172      # And add a safety zone
173      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
174      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
175      ;;
176 +
177 +  interix*)
178 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
179 +    lt_cv_sys_max_cmd_len=196608
180 +    ;;
181 +
182    osf*)
183      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
184      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
185      # nice to cause kernel panics so lets avoid the loop below.
186      # First set a reasonable default.
187      lt_cv_sys_max_cmd_len=16384
188 -    # 
189 +    #
190      if test -x /sbin/sysconfig; then
191        case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
192          *1*) lt_cv_sys_max_cmd_len=-1 ;;
193        esac
194      fi
195      ;;
196 +  sco3.2v5*)
197 +    lt_cv_sys_max_cmd_len=102400
198 +    ;;
199 +  sysv5* | sco5v6* | sysv4.2uw2*)
200 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
201 +    if test -n "$kargmax"; then
202 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
203 +    else
204 +      lt_cv_sys_max_cmd_len=32768
205 +    fi
206 +    ;;
207    *)
208      # If test is not a shell built-in, we'll probably end up computing a
209      # maximum length that is only half of the actual maximum length, but
210 @@ -775,7 +812,7 @@
211  
212  
213  # _LT_AC_CHECK_DLFCN
214 -# --------------------
215 +# ------------------
216  AC_DEFUN([_LT_AC_CHECK_DLFCN],
217  [AC_CHECK_HEADERS(dlfcn.h)dnl
218  ])# _LT_AC_CHECK_DLFCN
219 @@ -783,7 +820,7 @@
220  
221  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
222  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
223 -# ------------------------------------------------------------------
224 +# ---------------------------------------------------------------------
225  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
226  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
227  if test "$cross_compiling" = yes; then :
228 @@ -849,17 +886,19 @@
229        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
230        /* dlclose (self); */
231      }
232 +  else
233 +    puts (dlerror ());
234  
235      exit (status);
236  }]
237  EOF
238    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
239 -    (./conftest; exit; ) 2>/dev/null
240 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
241      lt_status=$?
242      case x$lt_status in
243        x$lt_dlno_uscore) $1 ;;
244        x$lt_dlneed_uscore) $2 ;;
245 -      x$lt_unknown|x*) $3 ;;
246 +      x$lt_dlunknown|x*) $3 ;;
247      esac
248    else :
249      # compilation failed
250 @@ -871,7 +910,7 @@
251  
252  
253  # AC_LIBTOOL_DLOPEN_SELF
254 -# -------------------
255 +# ----------------------
256  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
257  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
258  if test "x$enable_dlopen" != xyes; then
259 @@ -942,7 +981,7 @@
260      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
261  
262      save_LDFLAGS="$LDFLAGS"
263 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
264 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
265  
266      save_LIBS="$LIBS"
267      LIBS="$lt_cv_dlopen_libs $LIBS"
268 @@ -955,7 +994,7 @@
269      ])
270  
271      if test "x$lt_cv_dlopen_self" = xyes; then
272 -      LDFLAGS="$LDFLAGS $link_static_flag"
273 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
274        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
275           lt_cv_dlopen_self_static, [dnl
276           _LT_AC_TRY_DLOPEN_SELF(
277 @@ -1003,7 +1042,7 @@
278     # Note that $ac_compile itself does not contain backslashes and begins
279     # with a dollar sign (not a hyphen), so the echo should work correctly.
280     lt_compile=`echo "$ac_compile" | $SED \
281 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
282 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
283     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
284     -e 's:$: $lt_compiler_flag:'`
285     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
286 @@ -1015,13 +1054,13 @@
287     then
288       # The compiler can only warn and ignore the option if not recognized
289       # So say no if there are warnings
290 -     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
291 -     $SED '/^$/d' out/conftest.err >out/conftest.er2
292 -     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
293 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
294 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
295 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
296         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
297       fi
298     fi
299 -   chmod u+w .
300 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
301     $rm conftest*
302     # SGI C++ compiler will create directory out/ii_files/ for
303     # template instantiation
304 @@ -1281,7 +1320,8 @@
305        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
306        dldir=$destdir/`dirname \$dlpath`~
307        test -d \$dldir || mkdir -p \$dldir~
308 -      $install_prog $dir/$dlname \$dldir/$dlname'
309 +      $install_prog $dir/$dlname \$dldir/$dlname~
310 +      chmod a+x \$dldir/$dlname'
311      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
312        dlpath=$dir/\$dldll~
313         $rm \$dlpath'
314 @@ -1334,7 +1374,7 @@
315    soname_spec='${libname}${release}${major}$shared_ext'
316    shlibpath_overrides_runpath=yes
317    shlibpath_var=DYLD_LIBRARY_PATH
318 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
319 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
320    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
321    if test "$GCC" = yes; then
322      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"`
323 @@ -1357,22 +1397,17 @@
324    dynamic_linker=no
325    ;;
326  
327 -kfreebsd*-gnu)
328 -  version_type=linux
329 -  need_lib_prefix=no
330 -  need_version=no
331 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
332 -  soname_spec='${libname}${release}${shared_ext}$major'
333 -  shlibpath_var=LD_LIBRARY_PATH
334 -  shlibpath_overrides_runpath=no
335 -  hardcode_into_libs=yes
336 -  dynamic_linker='GNU ld.so'
337 -  ;;
338 -
339  freebsd* | dragonfly*)
340    # DragonFly does not have aout.  When/if they implement a new
341    # versioning mechanism, adjust this.
342 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
343 +  if test -x /usr/bin/objformat; then
344 +    objformat=`/usr/bin/objformat`
345 +  else
346 +    case $host_os in
347 +    freebsd[[123]]*) objformat=aout ;;
348 +    *) objformat=elf ;;
349 +    esac
350 +  fi
351    version_type=freebsd-$objformat
352    case $version_type in
353      freebsd-elf*)
354 @@ -1394,10 +1429,15 @@
355      shlibpath_overrides_runpath=yes
356      hardcode_into_libs=yes
357      ;;
358 -  *) # from 3.2 on
359 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
360 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
361      shlibpath_overrides_runpath=no
362      hardcode_into_libs=yes
363      ;;
364 +  freebsd*) # from 4.6 on
365 +    shlibpath_overrides_runpath=yes
366 +    hardcode_into_libs=yes
367 +    ;;
368    esac
369    ;;
370  
371 @@ -1417,7 +1457,7 @@
372    version_type=sunos
373    need_lib_prefix=no
374    need_version=no
375 -  case "$host_cpu" in
376 +  case $host_cpu in
377    ia64*)
378      shrext_cmds='.so'
379      hardcode_into_libs=yes
380 @@ -1457,6 +1497,18 @@
381    postinstall_cmds='chmod 555 $lib'
382    ;;
383  
384 +interix3*)
385 +  version_type=linux
386 +  need_lib_prefix=no
387 +  need_version=no
388 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
389 +  soname_spec='${libname}${release}${shared_ext}$major'
390 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
391 +  shlibpath_var=LD_LIBRARY_PATH
392 +  shlibpath_overrides_runpath=no
393 +  hardcode_into_libs=yes
394 +  ;;
395 +
396  irix5* | irix6* | nonstopux*)
397    case $host_os in
398      nonstopux*) version_type=nonstopux ;;
399 @@ -1500,7 +1552,7 @@
400    ;;
401  
402  # This must be Linux ELF.
403 -linux*)
404 +linux* | k*bsd*-gnu)
405    version_type=linux
406    need_lib_prefix=no
407    need_version=no
408 @@ -1514,27 +1566,10 @@
409    # before this can be enabled.
410    hardcode_into_libs=yes
411  
412 -  # find out which ABI we are using
413 -  libsuff=
414 -  case "$host_cpu" in
415 -  x86_64*|s390x*|powerpc64*)
416 -    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
417 -    if AC_TRY_EVAL(ac_compile); then
418 -      case `/usr/bin/file conftest.$ac_objext` in
419 -      *64-bit*)
420 -        libsuff=64
421 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
422 -        ;;
423 -      esac
424 -    fi
425 -    rm -rf conftest*
426 -    ;;
427 -  esac
428 -
429    # Append ld.so.conf contents to the search path
430    if test -f /etc/ld.so.conf; then
431      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' ' '`
432 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
433 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
434    fi
435  
436    # We used to test for /lib/ld.so.1 and disable shared libraries on
437 @@ -1546,7 +1581,7 @@
438    dynamic_linker='GNU/Linux ld.so'
439    ;;
440  
441 -knetbsd*-gnu)
442 +netbsdelf*-gnu)
443    version_type=linux
444    need_lib_prefix=no
445    need_version=no
446 @@ -1555,7 +1590,7 @@
447    shlibpath_var=LD_LIBRARY_PATH
448    shlibpath_overrides_runpath=no
449    hardcode_into_libs=yes
450 -  dynamic_linker='GNU ld.so'
451 +  dynamic_linker='NetBSD ld.elf_so'
452    ;;
453  
454  netbsd*)
455 @@ -1595,6 +1630,7 @@
456  
457  openbsd*)
458    version_type=sunos
459 +  sys_lib_dlsearch_path_spec="/usr/lib"
460    need_lib_prefix=no
461    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
462    case $host_os in
463 @@ -1638,13 +1674,6 @@
464    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
465    ;;
466  
467 -sco3.2v5*)
468 -  version_type=osf
469 -  soname_spec='${libname}${release}${shared_ext}$major'
470 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
471 -  shlibpath_var=LD_LIBRARY_PATH
472 -  ;;
473 -
474  solaris*)
475    version_type=linux
476    need_lib_prefix=no
477 @@ -1670,7 +1699,7 @@
478    need_version=yes
479    ;;
480  
481 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
482 +sysv4 | sysv4.3*)
483    version_type=linux
484    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
485    soname_spec='${libname}${release}${shared_ext}$major'
486 @@ -1703,6 +1732,29 @@
487    fi
488    ;;
489  
490 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
491 +  version_type=freebsd-elf
492 +  need_lib_prefix=no
493 +  need_version=no
494 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
495 +  soname_spec='${libname}${release}${shared_ext}$major'
496 +  shlibpath_var=LD_LIBRARY_PATH
497 +  hardcode_into_libs=yes
498 +  if test "$with_gnu_ld" = yes; then
499 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
500 +    shlibpath_overrides_runpath=no
501 +  else
502 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
503 +    shlibpath_overrides_runpath=yes
504 +    case $host_os in
505 +      sco3.2v5*)
506 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
507 +       ;;
508 +    esac
509 +  fi
510 +  sys_lib_dlsearch_path_spec='/usr/lib'
511 +  ;;
512 +
513  uts4*)
514    version_type=linux
515    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
516 @@ -1716,6 +1768,11 @@
517  esac
518  AC_MSG_RESULT([$dynamic_linker])
519  test "$dynamic_linker" = no && can_build_shared=no
520 +
521 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
522 +if test "$GCC" = yes; then
523 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
524 +fi
525  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
526  
527  
528 @@ -1740,6 +1797,9 @@
529        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
530      fi
531    fi
532 +  if test -z "$LTCFLAGS"; then
533 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
534 +  fi
535  
536    # Extract list of available tagged configurations in $ofile.
537    # Note that this assumes the entire list is on one line.
538 @@ -1830,7 +1890,7 @@
539  
540  # AC_LIBTOOL_WIN32_DLL
541  # --------------------
542 -# declare package support for building win32 dll's
543 +# declare package support for building win32 DLLs
544  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
545  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
546  ])# AC_LIBTOOL_WIN32_DLL
547 @@ -1868,7 +1928,7 @@
548  
549  # AC_DISABLE_SHARED
550  # -----------------
551 -#- set the default shared flag to --disable-shared
552 +# set the default shared flag to --disable-shared
553  AC_DEFUN([AC_DISABLE_SHARED],
554  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
555  AC_ENABLE_SHARED(no)
556 @@ -2004,7 +2064,7 @@
557        if test -n "$file_magic_test_file"; then
558         case $deplibs_check_method in
559         "file_magic "*)
560 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
561 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
562           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
563           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
564             $EGREP "$file_magic_regex" > /dev/null; then
565 @@ -2114,7 +2174,7 @@
566      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
567        lt_cv_path_LD="$ac_dir/$ac_prog"
568        # Check to see if the program is GNU ld.  I'd rather use --version,
569 -      # but apparently some GNU ld's only accept -v.
570 +      # but apparently some variants of GNU ld only accept -v.
571        # Break only if it was the GNU/non-GNU ld that we prefer.
572        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
573        *GNU* | *'with BFD'*)
574 @@ -2146,7 +2206,7 @@
575  AC_DEFUN([AC_PROG_LD_GNU],
576  [AC_REQUIRE([AC_PROG_EGREP])dnl
577  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
578 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
579 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
580  case `$LD -v 2>&1 </dev/null` in
581  *GNU* | *'with BFD'*)
582    lt_cv_prog_gnu_ld=yes
583 @@ -2176,7 +2236,7 @@
584  case $host_os in
585    darwin*)
586      if test "$GCC" = yes; then
587 -      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
588 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
589      else
590        reload_cmds='$LD$reload_flag -o $output$reload_objs'
591      fi
592 @@ -2238,7 +2298,7 @@
593    lt_cv_deplibs_check_method=pass_all
594    ;;
595  
596 -freebsd* | kfreebsd*-gnu | dragonfly*)
597 +freebsd* | dragonfly*)
598    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
599      case $host_cpu in
600      i*86 )
601 @@ -2260,7 +2320,7 @@
602  
603  hpux10.20* | hpux11*)
604    lt_cv_file_magic_cmd=/usr/bin/file
605 -  case "$host_cpu" in
606 +  case $host_cpu in
607    ia64*)
608      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
609      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
610 @@ -2276,6 +2336,11 @@
611    esac
612    ;;
613  
614 +interix3*)
615 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
616 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
617 +  ;;
618 +
619  irix5* | irix6* | nonstopux*)
620    case $LD in
621    *-32|*"-32 ") libmagic=32-bit;;
622 @@ -2287,11 +2352,11 @@
623    ;;
624  
625  # This must be Linux ELF.
626 -linux*)
627 +linux* | k*bsd*-gnu)
628    lt_cv_deplibs_check_method=pass_all
629    ;;
630  
631 -netbsd*)
632 +netbsd* | netbsdelf*-gnu)
633    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
634      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
635    else
636 @@ -2321,15 +2386,11 @@
637    lt_cv_deplibs_check_method=pass_all
638    ;;
639  
640 -sco3.2v5*)
641 -  lt_cv_deplibs_check_method=pass_all
642 -  ;;
643 -
644  solaris*)
645    lt_cv_deplibs_check_method=pass_all
646    ;;
647  
648 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
649 +sysv4 | sysv4.3*)
650    case $host_vendor in
651    motorola)
652      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]]'
653 @@ -2350,10 +2411,13 @@
654    siemens)
655      lt_cv_deplibs_check_method=pass_all
656      ;;
657 +  pc)
658 +    lt_cv_deplibs_check_method=pass_all
659 +    ;;
660    esac
661    ;;
662  
663 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
664 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
665    lt_cv_deplibs_check_method=pass_all
666    ;;
667  esac
668 @@ -2373,36 +2437,43 @@
669    # Let the user override the test.
670    lt_cv_path_NM="$NM"
671  else
672 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
673 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
674 -    IFS="$lt_save_ifs"
675 -    test -z "$ac_dir" && ac_dir=.
676 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
677 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
678 -      # Check to see if the nm accepts a BSD-compat flag.
679 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
680 -      #   nm: unknown option "B" ignored
681 -      # Tru64's nm complains that /dev/null is an invalid object file
682 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
683 -      */dev/null* | *'Invalid file or object type'*)
684 -       lt_cv_path_NM="$tmp_nm -B"
685 -       break
686 -        ;;
687 -      *)
688 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
689 -       */dev/null*)
690 -         lt_cv_path_NM="$tmp_nm -p"
691 +  lt_nm_to_check="${ac_tool_prefix}nm"
692 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
693 +    lt_nm_to_check="$lt_nm_to_check nm"
694 +  fi
695 +  for lt_tmp_nm in $lt_nm_to_check; do
696 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
697 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
698 +      IFS="$lt_save_ifs"
699 +      test -z "$ac_dir" && ac_dir=.
700 +      tmp_nm="$ac_dir/$lt_tmp_nm"
701 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
702 +       # Check to see if the nm accepts a BSD-compat flag.
703 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
704 +       #   nm: unknown option "B" ignored
705 +       # Tru64's nm complains that /dev/null is an invalid object file
706 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
707 +       */dev/null* | *'Invalid file or object type'*)
708 +         lt_cv_path_NM="$tmp_nm -B"
709           break
710           ;;
711         *)
712 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
713 -         continue # so that we can try to find one that supports BSD flags
714 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
715 +         */dev/null*)
716 +           lt_cv_path_NM="$tmp_nm -p"
717 +           break
718 +           ;;
719 +         *)
720 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
721 +           continue # so that we can try to find one that supports BSD flags
722 +           ;;
723 +         esac
724           ;;
725         esac
726 -      esac
727 -    fi
728 +      fi
729 +    done
730 +    IFS="$lt_save_ifs"
731    done
732 -  IFS="$lt_save_ifs"
733    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
734  fi])
735  NM="$lt_cv_path_NM"
736 @@ -2434,13 +2505,13 @@
737  # -----------------------------------
738  # sets LIBLTDL to the link flags for the libltdl convenience library and
739  # LTDLINCL to the include flags for the libltdl header and adds
740 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
741 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
742 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
743 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
744 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
745 -# flat and you're not using automake, define top_builddir and
746 -# top_srcdir appropriately in the Makefiles.
747 +# --enable-ltdl-convenience to the configure arguments.  Note that
748 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
749 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
750 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
751 +# (note the single quotes!).  If your package is not flat and you're not
752 +# using automake, define top_builddir and top_srcdir appropriately in
753 +# the Makefiles.
754  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
755  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
756    case $enable_ltdl_convenience in
757 @@ -2459,13 +2530,13 @@
758  # -----------------------------------
759  # sets LIBLTDL to the link flags for the libltdl installable library and
760  # LTDLINCL to the include flags for the libltdl header and adds
761 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
762 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
763 -# DIRECTORY is not provided and an installed libltdl is not found, it is
764 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
765 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
766 -# quotes!).  If your package is not flat and you're not using automake,
767 -# define top_builddir and top_srcdir appropriately in the Makefiles.
768 +# --enable-ltdl-install to the configure arguments.  Note that
769 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
770 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
771 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
772 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
773 +# flat and you're not using automake, define top_builddir and top_srcdir
774 +# appropriately in the Makefiles.
775  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
776  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
777  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
778 @@ -2508,7 +2579,7 @@
779  ])# _LT_AC_LANG_CXX
780  
781  # _LT_AC_PROG_CXXCPP
782 -# ---------------
783 +# ------------------
784  AC_DEFUN([_LT_AC_PROG_CXXCPP],
785  [
786  AC_REQUIRE([AC_PROG_CXX])
787 @@ -2557,7 +2628,7 @@
788  
789  
790  # AC_LIBTOOL_RC
791 -# --------------
792 +# -------------
793  # enable support for Windows resource files
794  AC_DEFUN([AC_LIBTOOL_RC],
795  [AC_REQUIRE([LT_AC_PROG_RC])
796 @@ -2594,37 +2665,6 @@
797  _LT_COMPILER_BOILERPLATE
798  _LT_LINKER_BOILERPLATE
799  
800 -#
801 -# Check for any special shared library compilation flags.
802 -#
803 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
804 -if test "$GCC" = no; then
805 -  case $host_os in
806 -  sco3.2v5*)
807 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
808 -    ;;
809 -  esac
810 -fi
811 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
812 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
813 -  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
814 -  else
815 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
816 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
817 -  fi
818 -fi
819 -
820 -
821 -#
822 -# Check to make sure the static flag actually works.
823 -#
824 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
825 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
826 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
827 -  [],
828 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
829 -
830 -
831  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
832  AC_LIBTOOL_PROG_COMPILER_PIC($1)
833  AC_LIBTOOL_PROG_CC_C_O($1)
834 @@ -2633,9 +2673,9 @@
835  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
836  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
837  AC_LIBTOOL_SYS_LIB_STRIP
838 -AC_LIBTOOL_DLOPEN_SELF($1)
839 +AC_LIBTOOL_DLOPEN_SELF
840  
841 -# Report which librarie types wil actually be built
842 +# Report which library types will actually be built
843  AC_MSG_CHECKING([if libtool supports shared libraries])
844  AC_MSG_RESULT([$can_build_shared])
845  
846 @@ -2644,7 +2684,7 @@
847  
848  # On AIX, shared libraries and static libraries use the same namespace, and
849  # are all built from PIC.
850 -case "$host_os" in
851 +case $host_os in
852  aix3*)
853    test "$enable_shared" = yes && enable_static=no
854    if test -n "$RANLIB"; then
855 @@ -2694,6 +2734,7 @@
856  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
857  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
858  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
859 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
860  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
861  _LT_AC_TAGVAR(module_cmds, $1)=
862  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
863 @@ -2711,7 +2752,7 @@
864  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
865  
866  # Source file extension for C++ test sources.
867 -ac_ext=cc
868 +ac_ext=cpp
869  
870  # Object file extension for compiled C++ test sources.
871  objext=o
872 @@ -2721,7 +2762,7 @@
873  lt_simple_compile_test_code="int some_variable = 0;\n"
874  
875  # Code to be used in simple link tests
876 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
877 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
878  
879  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
880  _LT_AC_SYS_COMPILER
881 @@ -2740,12 +2781,12 @@
882  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
883    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
884  else
885 -  unset lt_cv_prog_gnu_ld
886 +  $as_unset lt_cv_prog_gnu_ld
887  fi
888  if test -n "${lt_cv_path_LDCXX+set}"; then
889    lt_cv_path_LD=$lt_cv_path_LDCXX
890  else
891 -  unset lt_cv_path_LD
892 +  $as_unset lt_cv_path_LD
893  fi
894  test -z "${LDCXX+set}" || LD=$LDCXX
895  CC=${CXX-"c++"}
896 @@ -2840,6 +2881,7 @@
897             ;;
898           esac
899         done
900 +       ;;
901        esac
902  
903        exp_sym_flag='-bexport'
904 @@ -2877,6 +2919,7 @@
905           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
906           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
907         fi
908 +       ;;
909        esac
910        shared_flag='-shared'
911        if test "$aix_use_runtimelinking" = yes; then
912 @@ -2908,12 +2951,12 @@
913        _LT_AC_SYS_LIBPATH_AIX
914        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
915  
916 -      _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"
917 +      _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"
918       else
919        if test "$host_cpu" = ia64; then
920         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
921         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
922 -       _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"
923 +       _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"
924        else
925         # Determine the default libpath from the value encoded in an empty executable.
926         _LT_AC_SYS_LIBPATH_AIX
927 @@ -2922,16 +2965,26 @@
928         # -berok will link without error, but may produce a broken library.
929         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
930         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
931 -       # -bexpall does not export symbols beginning with underscore (_)
932 -       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
933         # Exported symbols can be pulled into shared objects from archives
934 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
935 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
936         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
937 -       # This is similar to how AIX traditionally builds it's shared libraries.
938 -       _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'
939 +       # This is similar to how AIX traditionally builds its shared libraries.
940 +       _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'
941        fi
942      fi
943      ;;
944 +
945 +  beos*)
946 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
947 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
948 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
949 +      # support --undefined.  This deserves some investigation.  FIXME
950 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
951 +    else
952 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
953 +    fi
954 +    ;;
955 +
956    chorus*)
957      case $cc_basename in
958        *)
959 @@ -2941,7 +2994,6 @@
960      esac
961      ;;
962  
963 -
964    cygwin* | mingw* | pw32*)
965      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
966      # as there is no search path for DLLs.
967 @@ -2951,7 +3003,7 @@
968      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
969  
970      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
971 -      _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'
972 +      _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'
973        # If the export-symbols file already is a .def file (1st line
974        # is EXPORTS), use it as is; otherwise, prepend...
975        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
976 @@ -2960,13 +3012,13 @@
977         echo EXPORTS > $output_objdir/$soname.def;
978         cat $export_symbols >> $output_objdir/$soname.def;
979        fi~
980 -      $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'
981 +      $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'
982      else
983        _LT_AC_TAGVAR(ld_shlibs, $1)=no
984      fi
985    ;;
986        darwin* | rhapsody*)
987 -        case "$host_os" in
988 +        case $host_os in
989          rhapsody* | darwin1.[[012]])
990           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
991           ;;
992 @@ -3004,7 +3056,7 @@
993            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
994          fi
995          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
996 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
997 +        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
998            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
999              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1000            else
1001 @@ -3017,7 +3069,7 @@
1002           output_verbose_link_cmd='echo'
1003            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1004            _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1005 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1006 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1007            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1008            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1009            ;;
1010 @@ -3052,7 +3104,7 @@
1011    freebsd-elf*)
1012      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1013      ;;
1014 -  freebsd* | kfreebsd*-gnu | dragonfly*)
1015 +  freebsd* | dragonfly*)
1016      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1017      # conventions
1018      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1019 @@ -3097,33 +3149,22 @@
1020      ;;
1021    hpux10*|hpux11*)
1022      if test $with_gnu_ld = no; then
1023 -      case "$host_cpu" in
1024 -      hppa*64*)
1025 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1026 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1027 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1028 +
1029 +      case $host_cpu in
1030 +      hppa*64*|ia64*)
1031         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1032 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1033 -        ;;
1034 -      ia64*)
1035 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1036          ;;
1037        *)
1038 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1039 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1040         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1041          ;;
1042        esac
1043      fi
1044 -    case "$host_cpu" in
1045 -    hppa*64*)
1046 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1047 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1048 -      ;;
1049 -    ia64*)
1050 +    case $host_cpu in
1051 +    hppa*64*|ia64*)
1052        _LT_AC_TAGVAR(hardcode_direct, $1)=no
1053        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1054 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1055 -                                             # but as the default
1056 -                                             # location of the library.
1057        ;;
1058      *)
1059        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1060 @@ -3139,9 +3180,12 @@
1061         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1062         ;;
1063        aCC*)
1064 -       case "$host_cpu" in
1065 -       hppa*64*|ia64*)
1066 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1067 +       case $host_cpu in
1068 +       hppa*64*)
1069 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1070 +         ;;
1071 +       ia64*)
1072 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1073           ;;
1074         *)
1075           _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'
1076 @@ -3160,9 +3204,12 @@
1077        *)
1078         if test "$GXX" = yes; then
1079           if test $with_gnu_ld = no; then
1080 -           case "$host_cpu" in
1081 -           ia64*|hppa*64*)
1082 -             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1083 +           case $host_cpu in
1084 +           hppa*64*)
1085 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1086 +             ;;
1087 +           ia64*)
1088 +             _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'
1089               ;;
1090             *)
1091               _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'
1092 @@ -3176,6 +3223,20 @@
1093         ;;
1094      esac
1095      ;;
1096 +  interix3*)
1097 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1098 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1099 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1100 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1101 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1102 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
1103 +    # default) and relocated if they conflict, which is a slow very memory
1104 +    # consuming and fragmenting process.  To avoid this, we pick a random,
1105 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1106 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1107 +    _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'
1108 +    _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'
1109 +    ;;
1110    irix5* | irix6*)
1111      case $cc_basename in
1112        CC*)
1113 @@ -3202,7 +3263,7 @@
1114      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1115      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1116      ;;
1117 -  linux*)
1118 +  linux* | k*bsd*-gnu)
1119      case $cc_basename in
1120        KCC*)
1121         # Kuck and Associates, Inc. (KAI) C++ Compiler
1122 @@ -3261,7 +3322,7 @@
1123  
1124         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1125         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1126 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1127 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1128          ;;
1129        cxx*)
1130         # Compaq C++
1131 @@ -3304,7 +3365,7 @@
1132         ;;
1133      esac
1134      ;;
1135 -  netbsd*)
1136 +  netbsd* | netbsdelf*-gnu)
1137      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1138        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1139        wlarc=
1140 @@ -3458,19 +3519,6 @@
1141      # FIXME: insert proper C++ library support
1142      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1143      ;;
1144 -  sco*)
1145 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1146 -    case $cc_basename in
1147 -      CC*)
1148 -       # FIXME: insert proper C++ library support
1149 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
1150 -       ;;
1151 -      *)
1152 -       # FIXME: insert proper C++ library support
1153 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
1154 -       ;;
1155 -    esac
1156 -    ;;
1157    sunos4*)
1158      case $cc_basename in
1159        CC*)
1160 @@ -3493,10 +3541,11 @@
1161      case $cc_basename in
1162        CC*)
1163         # Sun C++ 4.2, 5.x and Centerline C++
1164 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
1165         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
1166 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1167 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1168         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1169 -       $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1170 +       $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1171  
1172         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1173         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1174 @@ -3516,15 +3565,7 @@
1175         esac
1176         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1177  
1178 -       # Commands to make compiler produce verbose output that lists
1179 -       # what "hidden" libraries, object files and flags are used when
1180 -       # linking a shared library.
1181 -       #
1182 -       # There doesn't appear to be a way to prevent this compiler from
1183 -       # explicitly linking system object files so we need to strip them
1184 -       # from the output so that they don't get included in the library
1185 -       # dependencies.
1186 -       output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1187 +       output_verbose_link_cmd='echo'
1188  
1189         # Archives containing C++ object files must be created using
1190         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
1191 @@ -3570,8 +3611,59 @@
1192         ;;
1193      esac
1194      ;;
1195 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
1196 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
1197 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1198 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1199 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1200 +    runpath_var='LD_RUN_PATH'
1201 +
1202 +    case $cc_basename in
1203 +      CC*)
1204 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1205 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1206 +       ;;
1207 +      *)
1208 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1209 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1210 +       ;;
1211 +    esac
1212 +    ;;
1213 +  sysv5* | sco3.2v5* | sco5v6*)
1214 +    # Note: We can NOT use -z defs as we might desire, because we do not
1215 +    # link with -lc, and that would cause any symbols used from libc to
1216 +    # always be unresolved, which means just about no library would
1217 +    # ever link correctly.  If we're not using GNU ld we use -z text
1218 +    # though, which does catch some bad symbols but isn't as heavy-handed
1219 +    # as -z defs.
1220 +    # For security reasons, it is highly recommended that you always
1221 +    # use absolute paths for naming shared libraries, and exclude the
1222 +    # DT_RUNPATH tag from executables and libraries.  But doing so
1223 +    # requires that you compile everything twice, which is a pain.
1224 +    # So that behaviour is only enabled if SCOABSPATH is set to a
1225 +    # non-empty value in the environment.  Most likely only useful for
1226 +    # creating official distributions of packages.
1227 +    # This is a hack until libtool officially supports absolute path
1228 +    # names for shared libraries.
1229 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1230 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
1231      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1232 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1233 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1234 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1235 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1236 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1237 +    runpath_var='LD_RUN_PATH'
1238 +
1239 +    case $cc_basename in
1240 +      CC*)
1241 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1242 +       _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'
1243 +       ;;
1244 +      *)
1245 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1246 +       _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'
1247 +       ;;
1248 +    esac
1249      ;;
1250    tandem*)
1251      case $cc_basename in
1252 @@ -3608,8 +3700,6 @@
1253  AC_LIBTOOL_PROG_LD_SHLIBS($1)
1254  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1255  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1256 -AC_LIBTOOL_SYS_LIB_STRIP
1257 -AC_LIBTOOL_DLOPEN_SELF($1)
1258  
1259  AC_LIBTOOL_CONFIG($1)
1260  
1261 @@ -3627,7 +3717,7 @@
1262  ])# AC_LIBTOOL_LANG_CXX_CONFIG
1263  
1264  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1265 -# ------------------------
1266 +# ------------------------------------
1267  # Figure out "hidden" library dependencies from verbose
1268  # compiler output when linking a shared library.
1269  # Parse the compiler output and extract the necessary
1270 @@ -3681,7 +3771,7 @@
1271    # The `*' in the case matches for architectures that use `case' in
1272    # $output_verbose_cmd can trigger glob expansion during the loop
1273    # eval without this substitution.
1274 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
1275 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1276  
1277    for p in `eval $output_verbose_link_cmd`; do
1278      case $p in
1279 @@ -3757,13 +3847,37 @@
1280  
1281  $rm -f confest.$objext
1282  
1283 +# PORTME: override above test on systems where it is broken
1284 +ifelse([$1],[CXX],
1285 +[case $host_os in
1286 +interix3*)
1287 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
1288 +  # hack all around it, let's just trust "g++" to DTRT.
1289 +  _LT_AC_TAGVAR(predep_objects,$1)=
1290 +  _LT_AC_TAGVAR(postdep_objects,$1)=
1291 +  _LT_AC_TAGVAR(postdeps,$1)=
1292 +  ;;
1293 +
1294 +solaris*)
1295 +  case $cc_basename in
1296 +  CC*)
1297 +    # Adding this requires a known-good setup of shared libraries for
1298 +    # Sun compiler versions before 5.6, else PIC objects from an old
1299 +    # archive will be linked into the output, leading to subtle bugs.
1300 +    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
1301 +    ;;
1302 +  esac
1303 +  ;;
1304 +esac
1305 +])
1306 +
1307  case " $_LT_AC_TAGVAR(postdeps, $1) " in
1308  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
1309  esac
1310  ])# AC_LIBTOOL_POSTDEP_PREDEP
1311  
1312  # AC_LIBTOOL_LANG_F77_CONFIG
1313 -# ------------------------
1314 +# --------------------------
1315  # Ensure that the configuration vars for the C compiler are
1316  # suitably defined.  Those variables are subsequently used by
1317  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1318 @@ -3826,7 +3940,7 @@
1319  
1320  # On AIX, shared libraries and static libraries use the same namespace, and
1321  # are all built from PIC.
1322 -case "$host_os" in
1323 +case $host_os in
1324  aix3*)
1325    test "$enable_shared" = yes && enable_static=no
1326    if test -n "$RANLIB"; then
1327 @@ -3847,8 +3961,6 @@
1328  test "$enable_shared" = yes || enable_static=yes
1329  AC_MSG_RESULT([$enable_static])
1330  
1331 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
1332 -
1333  _LT_AC_TAGVAR(GCC, $1)="$G77"
1334  _LT_AC_TAGVAR(LD, $1)="$LD"
1335  
1336 @@ -3858,8 +3970,6 @@
1337  AC_LIBTOOL_PROG_LD_SHLIBS($1)
1338  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1339  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1340 -AC_LIBTOOL_SYS_LIB_STRIP
1341 -
1342  
1343  AC_LIBTOOL_CONFIG($1)
1344  
1345 @@ -3916,8 +4026,6 @@
1346  AC_LIBTOOL_PROG_LD_SHLIBS($1)
1347  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1348  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1349 -AC_LIBTOOL_SYS_LIB_STRIP
1350 -AC_LIBTOOL_DLOPEN_SELF($1)
1351  
1352  AC_LIBTOOL_CONFIG($1)
1353  
1354 @@ -3927,7 +4035,7 @@
1355  
1356  
1357  # AC_LIBTOOL_LANG_RC_CONFIG
1358 -# --------------------------
1359 +# -------------------------
1360  # Ensure that the configuration vars for the Windows resource compiler are
1361  # suitably defined.  Those variables are subsequently used by
1362  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1363 @@ -3990,7 +4098,7 @@
1364    # Now quote all the things that may contain metacharacters while being
1365    # careful not to overquote the AC_SUBSTed values.  We take copies of the
1366    # variables and quote the copies for generation of the libtool script.
1367 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1368 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1369      SED SHELL STRIP \
1370      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1371      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1372 @@ -4159,6 +4267,9 @@
1373  # A C compiler.
1374  LTCC=$lt_LTCC
1375  
1376 +# LTCC compiler flags.
1377 +LTCFLAGS=$lt_LTCFLAGS
1378 +
1379  # A language-specific compiler.
1380  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
1381  
1382 @@ -4519,7 +4630,7 @@
1383    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1384    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1385    ;;
1386 -linux*)
1387 +linux* | k*bsd*-gnu)
1388    if test "$host_cpu" = ia64; then
1389      symcode='[[ABCDGIRSTW]]'
1390      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1391 @@ -4532,9 +4643,18 @@
1392  osf*)
1393    symcode='[[BCDEGQRST]]'
1394    ;;
1395 -solaris* | sysv5*)
1396 +solaris*)
1397    symcode='[[BDRT]]'
1398    ;;
1399 +sco3.2v5*)
1400 +  symcode='[[DT]]'
1401 +  ;;
1402 +sysv4.2uw2*)
1403 +  symcode='[[DT]]'
1404 +  ;;
1405 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
1406 +  symcode='[[ABDT]]'
1407 +  ;;
1408  sysv4)
1409    symcode='[[DFNSTU]]'
1410    ;;
1411 @@ -4717,6 +4837,10 @@
1412        # DJGPP does not support shared libraries at all
1413        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1414        ;;
1415 +    interix3*)
1416 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1417 +      # Instead, we relocate shared libraries at runtime.
1418 +      ;;
1419      sysv4*MP*)
1420        if test -d /usr/nec; then
1421         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1422 @@ -4725,7 +4849,7 @@
1423      hpux*)
1424        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1425        # not for PA HP-UX.
1426 -      case "$host_cpu" in
1427 +      case $host_cpu in
1428        hppa*64*|ia64*)
1429         ;;
1430        *)
1431 @@ -4779,22 +4903,22 @@
1432             ;;
1433         esac
1434         ;;
1435 -      freebsd* | kfreebsd*-gnu | dragonfly*)
1436 +      freebsd* | dragonfly*)
1437         # FreeBSD uses GNU C++
1438         ;;
1439        hpux9* | hpux10* | hpux11*)
1440         case $cc_basename in
1441           CC*)
1442             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1443 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1444 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1445             if test "$host_cpu" != ia64; then
1446               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1447             fi
1448             ;;
1449           aCC*)
1450             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1451 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1452 -           case "$host_cpu" in
1453 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1454 +           case $host_cpu in
1455             hppa*64*|ia64*)
1456               # +Z the default
1457               ;;
1458 @@ -4807,6 +4931,10 @@
1459             ;;
1460         esac
1461         ;;
1462 +      interix*)
1463 +       # This is c89, which is MS Visual C++ (no shared libs)
1464 +       # Anyone wants to do a port?
1465 +       ;;
1466        irix5* | irix6* | nonstopux*)
1467         case $cc_basename in
1468           CC*)
1469 @@ -4818,7 +4946,7 @@
1470             ;;
1471         esac
1472         ;;
1473 -      linux*)
1474 +      linux* | k*bsd*-gnu)
1475         case $cc_basename in
1476           KCC*)
1477             # KAI C++ Compiler
1478 @@ -4835,7 +4963,7 @@
1479             # Portland Group C++ compiler.
1480             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1481             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1482 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1483 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1484             ;;
1485           cxx*)
1486             # Compaq C++
1487 @@ -4861,7 +4989,7 @@
1488             ;;
1489         esac
1490         ;;
1491 -      netbsd*)
1492 +      netbsd* | netbsdelf*-gnu)
1493         ;;
1494        osf3* | osf4* | osf5*)
1495         case $cc_basename in
1496 @@ -4886,16 +5014,7 @@
1497         ;;
1498        psos*)
1499         ;;
1500 -      sco*)
1501 -       case $cc_basename in
1502 -         CC*)
1503 -           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1504 -           ;;
1505 -         *)
1506 -           ;;
1507 -       esac
1508 -       ;;
1509 -      solaris*)
1510 +      solaris*)
1511         case $cc_basename in
1512           CC*)
1513             # Sun C++ 4.2, 5.x and Centerline C++
1514 @@ -4936,7 +5055,14 @@
1515             ;;
1516         esac
1517         ;;
1518 -      unixware*)
1519 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1520 +       case $cc_basename in
1521 +         CC*)
1522 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1523 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1524 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1525 +           ;;
1526 +       esac
1527         ;;
1528        vxworks*)
1529         ;;
1530 @@ -4983,6 +5109,11 @@
1531        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1532        ;;
1533  
1534 +    interix3*)
1535 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1536 +      # Instead, we relocate shared libraries at runtime.
1537 +      ;;
1538 +
1539      msdosdjgpp*)
1540        # Just because we use GCC doesn't mean we suddenly get shared libraries
1541        # on systems that don't support them.
1542 @@ -4999,7 +5130,7 @@
1543      hpux*)
1544        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1545        # not for PA HP-UX.
1546 -      case "$host_cpu" in
1547 +      case $host_cpu in
1548        hppa*64*|ia64*)
1549         # +Z the default
1550         ;;
1551 @@ -5046,7 +5177,7 @@
1552        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1553        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1554        # not for PA HP-UX.
1555 -      case "$host_cpu" in
1556 +      case $host_cpu in
1557        hppa*64*|ia64*)
1558         # +Z the default
1559         ;;
1560 @@ -5069,19 +5200,19 @@
1561        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1562        ;;
1563  
1564 -    linux*)
1565 +    linux* | k*bsd*-gnu)
1566        case $cc_basename in
1567        icc* | ecc*)
1568         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1569         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1570         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1571          ;;
1572 -      pgcc* | pgf77* | pgf90*)
1573 +      pgcc* | pgf77* | pgf90* | pgf95*)
1574          # Portland Group compilers (*not* the Pentium gcc compiler,
1575         # which looks to be a dead project)
1576         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1577         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1578 -       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1579 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1580          ;;
1581        ccc*)
1582          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1583 @@ -5097,11 +5228,6 @@
1584        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1585        ;;
1586  
1587 -    sco3.2v5*)
1588 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
1589 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
1590 -      ;;
1591 -
1592      solaris*)
1593        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1594        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1595 @@ -5119,7 +5245,7 @@
1596        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1597        ;;
1598  
1599 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1600 +    sysv4 | sysv4.2uw2* | sysv4.3*)
1601        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1602        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1603        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1604 @@ -5132,6 +5258,12 @@
1605        fi
1606        ;;
1607  
1608 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1609 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1610 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1611 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1612 +      ;;
1613 +
1614      unicos*)
1615        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1616        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1617 @@ -5164,7 +5296,7 @@
1618      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1619       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
1620  fi
1621 -case "$host_os" in
1622 +case $host_os in
1623    # For platforms which do not support PIC, -DPIC is meaningless:
1624    *djgpp*)
1625      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1626 @@ -5173,6 +5305,16 @@
1627      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
1628      ;;
1629  esac
1630 +
1631 +#
1632 +# Check to make sure the static flag actually works.
1633 +#
1634 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
1635 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
1636 +  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1637 +  $lt_tmp_static_flag,
1638 +  [],
1639 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1640  ])
1641  
1642  
1643 @@ -5199,6 +5341,9 @@
1644    cygwin* | mingw*)
1645      _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'
1646    ;;
1647 +  linux* | k*bsd*-gnu)
1648 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1649 +  ;;
1650    *)
1651      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1652    ;;
1653 @@ -5251,6 +5396,10 @@
1654        with_gnu_ld=no
1655      fi
1656      ;;
1657 +  interix*)
1658 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
1659 +    with_gnu_ld=yes
1660 +    ;;
1661    openbsd*)
1662      with_gnu_ld=no
1663      ;;
1664 @@ -5260,7 +5409,7 @@
1665    if test "$with_gnu_ld" = yes; then
1666      # If archive_cmds runs LD, not CC, wlarc should be empty
1667      wlarc='${wl}'
1668 -    
1669 +
1670      # Set some defaults for GNU ld with shared library support. These
1671      # are reset later if shared libraries are not supported. Putting them
1672      # here allows them to be overridden if necessary.
1673 @@ -5281,7 +5430,7 @@
1674        *\ 2.11.*) ;; # other 2.11 versions
1675        *) supports_anon_versioning=yes ;;
1676      esac
1677 -    
1678 +
1679      # See if GNU ld supports shared libraries.
1680      case $host_os in
1681      aix3* | aix4* | aix5*)
1682 @@ -5335,7 +5484,7 @@
1683        _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'
1684  
1685        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1686 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1687 +        _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'
1688         # If the export-symbols file already is a .def file (1st line
1689         # is EXPORTS), use it as is; otherwise, prepend...
1690         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1691 @@ -5344,22 +5493,37 @@
1692           echo EXPORTS > $output_objdir/$soname.def;
1693           cat $export_symbols >> $output_objdir/$soname.def;
1694         fi~
1695 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
1696 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1697        else
1698         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1699        fi
1700        ;;
1701  
1702 -    linux*)
1703 +    interix3*)
1704 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1705 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1706 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1707 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1708 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1709 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
1710 +      # default) and relocated if they conflict, which is a slow very memory
1711 +      # consuming and fragmenting process.  To avoid this, we pick a random,
1712 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1713 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1714 +      _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'
1715 +      _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'
1716 +      ;;
1717 +
1718 +    linux* | k*bsd*-gnu)
1719        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1720         tmp_addflag=
1721         case $cc_basename,$host_cpu in
1722         pgcc*)                          # Portland Group C compiler
1723 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1724 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1725           tmp_addflag=' $pic_flag'
1726           ;;
1727 -       pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
1728 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1729 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
1730 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1731           tmp_addflag=' $pic_flag -Mnomain' ;;
1732         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
1733           tmp_addflag=' -i_dynamic' ;;
1734 @@ -5376,12 +5540,13 @@
1735    $echo "local: *; };" >> $output_objdir/$libname.ver~
1736           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1737         fi
1738 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1739        else
1740         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1741        fi
1742        ;;
1743  
1744 -    netbsd*)
1745 +    netbsd* | netbsdelf*-gnu)
1746        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1747         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1748         wlarc=
1749 @@ -5391,7 +5556,7 @@
1750        fi
1751        ;;
1752  
1753 -    solaris* | sysv5*)
1754 +    solaris*)
1755        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1756         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1757         cat <<EOF 1>&2
1758 @@ -5412,6 +5577,33 @@
1759        fi
1760        ;;
1761  
1762 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1763 +      case `$LD -v 2>&1` in
1764 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
1765 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
1766 +       cat <<_LT_EOF 1>&2
1767 +
1768 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
1769 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
1770 +*** is disabling shared libraries support.  We urge you to upgrade GNU
1771 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
1772 +*** your PATH or compiler configuration so that the native linker is
1773 +*** used, and then restart.
1774 +
1775 +_LT_EOF
1776 +       ;;
1777 +       *)
1778 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1779 +           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1780 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
1781 +           _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'
1782 +         else
1783 +           _LT_AC_TAGVAR(ld_shlibs, $1)=no
1784 +         fi
1785 +       ;;
1786 +      esac
1787 +      ;;
1788 +
1789      sunos4*)
1790        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1791        wlarc=
1792 @@ -5445,7 +5637,7 @@
1793        # Note: this linker hardcodes the directories in LIBPATH if there
1794        # are no directories specified by -L.
1795        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1796 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
1797 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1798         # Neither direct hardcoding nor static linking is supported with a
1799         # broken collect2.
1800         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1801 @@ -5479,6 +5671,7 @@
1802             break
1803           fi
1804           done
1805 +         ;;
1806         esac
1807  
1808         exp_sym_flag='-bexport'
1809 @@ -5516,6 +5709,7 @@
1810           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1811           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1812           fi
1813 +         ;;
1814         esac
1815         shared_flag='-shared'
1816         if test "$aix_use_runtimelinking" = yes; then
1817 @@ -5528,11 +5722,11 @@
1818         # chokes on -Wl,-G. The following line is correct:
1819           shared_flag='-G'
1820         else
1821 -       if test "$aix_use_runtimelinking" = yes; then
1822 +         if test "$aix_use_runtimelinking" = yes; then
1823             shared_flag='${wl}-G'
1824           else
1825             shared_flag='${wl}-bM:SRE'
1826 -       fi
1827 +         fi
1828         fi
1829        fi
1830  
1831 @@ -5546,12 +5740,12 @@
1832         # Determine the default libpath from the value encoded in an empty executable.
1833         _LT_AC_SYS_LIBPATH_AIX
1834         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1835 -       _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"
1836 +       _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"
1837         else
1838         if test "$host_cpu" = ia64; then
1839           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1840           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1841 -         _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"
1842 +         _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"
1843         else
1844          # Determine the default libpath from the value encoded in an empty executable.
1845          _LT_AC_SYS_LIBPATH_AIX
1846 @@ -5560,13 +5754,11 @@
1847           # -berok will link without error, but may produce a broken library.
1848           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1849           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1850 -         # -bexpall does not export symbols beginning with underscore (_)
1851 -         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1852           # Exported symbols can be pulled into shared objects from archives
1853 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1854 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1855           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1856 -         # This is similar to how AIX traditionally builds it's shared libraries.
1857 -         _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'
1858 +         # This is similar to how AIX traditionally builds its shared libraries.
1859 +         _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'
1860         fi
1861        fi
1862        ;;
1863 @@ -5605,7 +5797,7 @@
1864        ;;
1865  
1866      darwin* | rhapsody*)
1867 -      case "$host_os" in
1868 +      case $host_os in
1869          rhapsody* | darwin1.[[012]])
1870           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1871           ;;
1872 @@ -5634,7 +5826,7 @@
1873         output_verbose_link_cmd='echo'
1874          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1875        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1876 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1877 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1878        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1879        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1880      else
1881 @@ -5643,7 +5835,7 @@
1882           output_verbose_link_cmd='echo'
1883           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1884           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1885 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1886 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1887           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1888            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1889            ;;
1890 @@ -5684,7 +5876,7 @@
1891        ;;
1892  
1893      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1894 -    freebsd* | kfreebsd*-gnu | dragonfly*)
1895 +    freebsd* | dragonfly*)
1896        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1897        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1898        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1899 @@ -5707,47 +5899,62 @@
1900        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1901        ;;
1902  
1903 -    hpux10* | hpux11*)
1904 +    hpux10*)
1905        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1906 -       case "$host_cpu" in
1907 -       hppa*64*|ia64*)
1908 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1909 +      else
1910 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1911 +      fi
1912 +      if test "$with_gnu_ld" = no; then
1913 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1914 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1915 +
1916 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1917 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1918 +
1919 +       # hardcode_minus_L: Not really in the search PATH,
1920 +       # but as the default location of the library.
1921 +       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1922 +      fi
1923 +      ;;
1924 +
1925 +    hpux11*)
1926 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1927 +       case $host_cpu in
1928 +       hppa*64*)
1929           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1930           ;;
1931 +       ia64*)
1932 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1933 +         ;;
1934         *)
1935           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1936           ;;
1937         esac
1938        else
1939 -       case "$host_cpu" in
1940 -       hppa*64*|ia64*)
1941 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
1942 +       case $host_cpu in
1943 +       hppa*64*)
1944 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1945 +         ;;
1946 +       ia64*)
1947 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1948           ;;
1949         *)
1950 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1951 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1952           ;;
1953         esac
1954        fi
1955        if test "$with_gnu_ld" = no; then
1956 -       case "$host_cpu" in
1957 -       hppa*64*)
1958 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1959 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1960 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1961 +
1962 +       case $host_cpu in
1963 +       hppa*64*|ia64*)
1964           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1965 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1966 -         _LT_AC_TAGVAR(hardcode_direct, $1)=no
1967 -         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1968 -         ;;
1969 -       ia64*)
1970 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1971           _LT_AC_TAGVAR(hardcode_direct, $1)=no
1972           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1973 -
1974 -         # hardcode_minus_L: Not really in the search PATH,
1975 -         # but as the default location of the library.
1976 -         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1977           ;;
1978         *)
1979 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1980 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1981           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1982           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1983  
1984 @@ -5771,7 +5978,7 @@
1985        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1986        ;;
1987  
1988 -    netbsd*)
1989 +    netbsd* | netbsdelf*-gnu)
1990        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1991         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
1992        else
1993 @@ -5849,14 +6056,6 @@
1994        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1995        ;;
1996  
1997 -    sco3.2v5*)
1998 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1999 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2000 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2001 -      runpath_var=LD_RUN_PATH
2002 -      hardcode_runpath_var=yes
2003 -      ;;
2004 -
2005      solaris*)
2006        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
2007        if test "$GCC" = yes; then
2008 @@ -5942,36 +6141,45 @@
2009        fi
2010        ;;
2011  
2012 -    sysv4.2uw2*)
2013 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2014 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2015 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2016 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
2017 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2018 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2019        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2020 -      hardcode_runpath_var=yes
2021 -      runpath_var=LD_RUN_PATH
2022 -      ;;
2023 +      runpath_var='LD_RUN_PATH'
2024  
2025 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
2026 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
2027        if test "$GCC" = yes; then
2028 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2029 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2030 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2031        else
2032 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2033 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2034 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2035        fi
2036 -      runpath_var='LD_RUN_PATH'
2037 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2038        ;;
2039  
2040 -    sysv5*)
2041 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
2042 -      # $CC -shared without GNU ld will not create a library from C++
2043 -      # object files and a static libstdc++, better avoid it by now
2044 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2045 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2046 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2047 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2048 +    sysv5* | sco3.2v5* | sco5v6*)
2049 +      # Note: We can NOT use -z defs as we might desire, because we do not
2050 +      # link with -lc, and that would cause any symbols used from libc to
2051 +      # always be unresolved, which means just about no library would
2052 +      # ever link correctly.  If we're not using GNU ld we use -z text
2053 +      # though, which does catch some bad symbols but isn't as heavy-handed
2054 +      # as -z defs.
2055 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2056 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2057 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2058        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2059 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2060 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2061 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2062 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2063        runpath_var='LD_RUN_PATH'
2064 +
2065 +      if test "$GCC" = yes; then
2066 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2067 +       _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'
2068 +      else
2069 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2070 +       _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'
2071 +      fi
2072        ;;
2073  
2074      uts4*)
2075 @@ -5989,11 +6197,6 @@
2076  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
2077  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2078  
2079 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2080 -if test "$GCC" = yes; then
2081 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2082 -fi
2083 -
2084  #
2085  # Do we need to explicitly link libc?
2086  #
2087 @@ -6021,6 +6224,7 @@
2088          libobjs=conftest.$ac_objext
2089          deplibs=
2090          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
2091 +       pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
2092          compiler_flags=-v
2093          linker_flags=-v
2094          verstring=
2095 @@ -6176,23 +6380,11 @@
2096  AC_MSG_RESULT([$SED])
2097  ])
2098  
2099 -#                                                        -*- Autoconf -*-
2100 -# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
2101 -# Generated from amversion.in; do not edit by hand.
2102 -
2103 -# This program is free software; you can redistribute it and/or modify
2104 -# it under the terms of the GNU General Public License as published by
2105 -# the Free Software Foundation; either version 2, or (at your option)
2106 -# any later version.
2107 -
2108 -# This program is distributed in the hope that it will be useful,
2109 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2110 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2111 -# GNU General Public License for more details.
2112 -
2113 -# You should have received a copy of the GNU General Public License
2114 -# along with this program; if not, write to the Free Software
2115 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2116 +# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
2117 +#
2118 +# This file is free software; the Free Software Foundation
2119 +# gives unlimited permission to copy and/or distribute it,
2120 +# with or without modifications, as long as this notice is preserved.
2121  
2122  # AM_AUTOMAKE_VERSION(VERSION)
2123  # ----------------------------
2124 @@ -6205,26 +6397,15 @@
2125  # Call AM_AUTOMAKE_VERSION so it can be traced.
2126  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
2127  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2128 -        [AM_AUTOMAKE_VERSION([1.9.4])])
2129 +        [AM_AUTOMAKE_VERSION([1.9.6])])
2130  
2131 -# AM_AUX_DIR_EXPAND
2132 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
2133  
2134 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
2135 -
2136 -# This program is free software; you can redistribute it and/or modify
2137 -# it under the terms of the GNU General Public License as published by
2138 -# the Free Software Foundation; either version 2, or (at your option)
2139 -# any later version.
2140 -
2141 -# This program is distributed in the hope that it will be useful,
2142 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2143 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2144 -# GNU General Public License for more details.
2145 -
2146 -# You should have received a copy of the GNU General Public License
2147 -# along with this program; if not, write to the Free Software
2148 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2149 -# 02111-1307, USA.
2150 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
2151 +#
2152 +# This file is free software; the Free Software Foundation
2153 +# gives unlimited permission to copy and/or distribute it,
2154 +# with or without modifications, as long as this notice is preserved.
2155  
2156  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2157  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
2158 @@ -6272,25 +6453,14 @@
2159  ])
2160  
2161  
2162 -# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
2163 +# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
2164  # Free Software Foundation, Inc.
2165 +#
2166 +# This file is free software; the Free Software Foundation
2167 +# gives unlimited permission to copy and/or distribute it,
2168 +# with or without modifications, as long as this notice is preserved.
2169  
2170 -# This program is free software; you can redistribute it and/or modify
2171 -# it under the terms of the GNU General Public License as published by
2172 -# the Free Software Foundation; either version 2, or (at your option)
2173 -# any later version.
2174 -
2175 -# This program is distributed in the hope that it will be useful,
2176 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2177 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2178 -# GNU General Public License for more details.
2179 -
2180 -# You should have received a copy of the GNU General Public License
2181 -# along with this program; if not, write to the Free Software
2182 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2183 -# 02111-1307, USA.
2184 -
2185 -# serial 3
2186 +# serial 4
2187  
2188  # This was merged into AC_PROG_CC in Autoconf.
2189  
2190 @@ -6305,26 +6475,16 @@
2191  ])
2192  AU_DEFUN([fp_PROG_CC_STDC])
2193  
2194 -# AM_CONDITIONAL                                              -*- Autoconf -*-
2195 -
2196 -# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
2197 -
2198 -# This program is free software; you can redistribute it and/or modify
2199 -# it under the terms of the GNU General Public License as published by
2200 -# the Free Software Foundation; either version 2, or (at your option)
2201 -# any later version.
2202 -
2203 -# This program is distributed in the hope that it will be useful,
2204 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2205 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2206 -# GNU General Public License for more details.
2207 +# AM_CONDITIONAL                                            -*- Autoconf -*-
2208  
2209 -# You should have received a copy of the GNU General Public License
2210 -# along with this program; if not, write to the Free Software
2211 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2212 -# 02111-1307, USA.
2213 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
2214 +# Free Software Foundation, Inc.
2215 +#
2216 +# This file is free software; the Free Software Foundation
2217 +# gives unlimited permission to copy and/or distribute it,
2218 +# with or without modifications, as long as this notice is preserved.
2219  
2220 -# serial 6
2221 +# serial 7
2222  
2223  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
2224  # -------------------------------------
2225 @@ -6348,26 +6508,15 @@
2226  Usually this means the macro was only invoked conditionally.]])
2227  fi])])
2228  
2229 -# serial 7                                             -*- Autoconf -*-
2230  
2231 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
2232 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
2233  # Free Software Foundation, Inc.
2234 +#
2235 +# This file is free software; the Free Software Foundation
2236 +# gives unlimited permission to copy and/or distribute it,
2237 +# with or without modifications, as long as this notice is preserved.
2238  
2239 -# This program is free software; you can redistribute it and/or modify
2240 -# it under the terms of the GNU General Public License as published by
2241 -# the Free Software Foundation; either version 2, or (at your option)
2242 -# any later version.
2243 -
2244 -# This program is distributed in the hope that it will be useful,
2245 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2246 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2247 -# GNU General Public License for more details.
2248 -
2249 -# You should have received a copy of the GNU General Public License
2250 -# along with this program; if not, write to the Free Software
2251 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2252 -# 02111-1307, USA.
2253 -
2254 +# serial 8
2255  
2256  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2257  # written in clear, in which case automake, when reading aclocal.m4,
2258 @@ -6376,7 +6525,6 @@
2259  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2260  
2261  
2262 -
2263  # _AM_DEPENDENCIES(NAME)
2264  # ----------------------
2265  # See how the compiler implements dependency checking.
2266 @@ -6516,27 +6664,16 @@
2267  AC_SUBST([AMDEPBACKSLASH])
2268  ])
2269  
2270 -# Generate code to set up dependency tracking.   -*- Autoconf -*-
2271 -
2272 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
2273 -#   Free Software Foundation, Inc.
2274 -
2275 -# This program is free software; you can redistribute it and/or modify
2276 -# it under the terms of the GNU General Public License as published by
2277 -# the Free Software Foundation; either version 2, or (at your option)
2278 -# any later version.
2279 -
2280 -# This program is distributed in the hope that it will be useful,
2281 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2282 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2283 -# GNU General Public License for more details.
2284 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
2285  
2286 -# You should have received a copy of the GNU General Public License
2287 -# along with this program; if not, write to the Free Software
2288 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2289 -# 02111-1307, USA.
2290 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
2291 +# Free Software Foundation, Inc.
2292 +#
2293 +# This file is free software; the Free Software Foundation
2294 +# gives unlimited permission to copy and/or distribute it,
2295 +# with or without modifications, as long as this notice is preserved.
2296  
2297 -#serial 2
2298 +#serial 3
2299  
2300  # _AM_OUTPUT_DEPENDENCY_COMMANDS
2301  # ------------------------------
2302 @@ -6595,54 +6732,31 @@
2303       [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2304  ])
2305  
2306 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
2307 -
2308 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
2309 -
2310 -# This program is free software; you can redistribute it and/or modify
2311 -# it under the terms of the GNU General Public License as published by
2312 -# the Free Software Foundation; either version 2, or (at your option)
2313 -# any later version.
2314 -
2315 -# This program is distributed in the hope that it will be useful,
2316 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2317 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2318 -# GNU General Public License for more details.
2319 -
2320 -# You should have received a copy of the GNU General Public License
2321 -# along with this program; if not, write to the Free Software
2322 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2323 -# 02111-1307, USA.
2324 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
2325 +# Free Software Foundation, Inc.
2326 +#
2327 +# This file is free software; the Free Software Foundation
2328 +# gives unlimited permission to copy and/or distribute it,
2329 +# with or without modifications, as long as this notice is preserved.
2330  
2331 -# serial 7
2332 +# serial 8
2333  
2334  # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
2335  AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
2336  
2337 -# Do all the work for Automake.                            -*- Autoconf -*-
2338 -
2339 -# This macro actually does too much some checks are only needed if
2340 -# your package does certain things.  But this isn't really a big deal.
2341 +# Do all the work for Automake.                             -*- Autoconf -*-
2342  
2343 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
2344 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
2345  # Free Software Foundation, Inc.
2346 +#
2347 +# This file is free software; the Free Software Foundation
2348 +# gives unlimited permission to copy and/or distribute it,
2349 +# with or without modifications, as long as this notice is preserved.
2350  
2351 -# This program is free software; you can redistribute it and/or modify
2352 -# it under the terms of the GNU General Public License as published by
2353 -# the Free Software Foundation; either version 2, or (at your option)
2354 -# any later version.
2355 -
2356 -# This program is distributed in the hope that it will be useful,
2357 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2358 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2359 -# GNU General Public License for more details.
2360 -
2361 -# You should have received a copy of the GNU General Public License
2362 -# along with this program; if not, write to the Free Software
2363 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2364 -# 02111-1307, USA.
2365 +# serial 12
2366  
2367 -# serial 11
2368 +# This macro actually does too much.  Some checks are only needed if
2369 +# your package does certain things.  But this isn't really a big deal.
2370  
2371  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2372  # AM_INIT_AUTOMAKE([OPTIONS])
2373 @@ -6744,51 +6858,27 @@
2374  done
2375  echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
2376  
2377 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
2378 +#
2379 +# This file is free software; the Free Software Foundation
2380 +# gives unlimited permission to copy and/or distribute it,
2381 +# with or without modifications, as long as this notice is preserved.
2382 +
2383  # AM_PROG_INSTALL_SH
2384  # ------------------
2385  # Define $install_sh.
2386 -
2387 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
2388 -
2389 -# This program is free software; you can redistribute it and/or modify
2390 -# it under the terms of the GNU General Public License as published by
2391 -# the Free Software Foundation; either version 2, or (at your option)
2392 -# any later version.
2393 -
2394 -# This program is distributed in the hope that it will be useful,
2395 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2396 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2397 -# GNU General Public License for more details.
2398 -
2399 -# You should have received a copy of the GNU General Public License
2400 -# along with this program; if not, write to the Free Software
2401 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2402 -# 02111-1307, USA.
2403 -
2404  AC_DEFUN([AM_PROG_INSTALL_SH],
2405  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2406  install_sh=${install_sh-"$am_aux_dir/install-sh"}
2407  AC_SUBST(install_sh)])
2408  
2409 -#                                                          -*- Autoconf -*-
2410 -# Copyright (C) 2003  Free Software Foundation, Inc.
2411 -
2412 -# This program is free software; you can redistribute it and/or modify
2413 -# it under the terms of the GNU General Public License as published by
2414 -# the Free Software Foundation; either version 2, or (at your option)
2415 -# any later version.
2416 -
2417 -# This program is distributed in the hope that it will be useful,
2418 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2419 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2420 -# GNU General Public License for more details.
2421 -
2422 -# You should have received a copy of the GNU General Public License
2423 -# along with this program; if not, write to the Free Software
2424 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2425 -# 02111-1307, USA.
2426 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
2427 +#
2428 +# This file is free software; the Free Software Foundation
2429 +# gives unlimited permission to copy and/or distribute it,
2430 +# with or without modifications, as long as this notice is preserved.
2431  
2432 -# serial 1
2433 +# serial 2
2434  
2435  # Check whether the underlying file-system supports filenames
2436  # with a leading dot.  For instance MS-DOS doesn't.
2437 @@ -6803,26 +6893,14 @@
2438  rmdir .tst 2>/dev/null
2439  AC_SUBST([am__leading_dot])])
2440  
2441 -
2442 -# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
2443 +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
2444  # Free Software Foundation, Inc.
2445 +#
2446 +# This file is free software; the Free Software Foundation
2447 +# gives unlimited permission to copy and/or distribute it,
2448 +# with or without modifications, as long as this notice is preserved.
2449  
2450 -# This program is free software; you can redistribute it and/or modify
2451 -# it under the terms of the GNU General Public License as published by
2452 -# the Free Software Foundation; either version 2, or (at your option)
2453 -# any later version.
2454 -
2455 -# This program is distributed in the hope that it will be useful,
2456 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2457 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2458 -# GNU General Public License for more details.
2459 -
2460 -# You should have received a copy of the GNU General Public License
2461 -# along with this program; if not, write to the Free Software
2462 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2463 -# 02111-1307, USA.
2464 -
2465 -# serial 4
2466 +# serial 5
2467  
2468  # AM_PROG_LEX
2469  # -----------
2470 @@ -6836,28 +6914,17 @@
2471    LEX=${am_missing_run}flex
2472  fi])
2473  
2474 -# Add --enable-maintainer-mode option to configure.
2475 +# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
2476  # From Jim Meyering
2477  
2478 -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
2479 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
2480  # Free Software Foundation, Inc.
2481 +#
2482 +# This file is free software; the Free Software Foundation
2483 +# gives unlimited permission to copy and/or distribute it,
2484 +# with or without modifications, as long as this notice is preserved.
2485  
2486 -# This program is free software; you can redistribute it and/or modify
2487 -# it under the terms of the GNU General Public License as published by
2488 -# the Free Software Foundation; either version 2, or (at your option)
2489 -# any later version.
2490 -
2491 -# This program is distributed in the hope that it will be useful,
2492 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2493 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2494 -# GNU General Public License for more details.
2495 -
2496 -# You should have received a copy of the GNU General Public License
2497 -# along with this program; if not, write to the Free Software
2498 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2499 -# 02111-1307, USA.
2500 -
2501 -# serial 3
2502 +# serial 4
2503  
2504  AC_DEFUN([AM_MAINTAINER_MODE],
2505  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
2506 @@ -6876,26 +6943,15 @@
2507  
2508  AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
2509  
2510 -# Check to see how 'make' treats includes.     -*- Autoconf -*-
2511 -
2512 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
2513 -
2514 -# This program is free software; you can redistribute it and/or modify
2515 -# it under the terms of the GNU General Public License as published by
2516 -# the Free Software Foundation; either version 2, or (at your option)
2517 -# any later version.
2518 -
2519 -# This program is distributed in the hope that it will be useful,
2520 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2521 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2522 -# GNU General Public License for more details.
2523 +# Check to see how 'make' treats includes.                 -*- Autoconf -*-
2524  
2525 -# You should have received a copy of the GNU General Public License
2526 -# along with this program; if not, write to the Free Software
2527 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2528 -# 02111-1307, USA.
2529 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
2530 +#
2531 +# This file is free software; the Free Software Foundation
2532 +# gives unlimited permission to copy and/or distribute it,
2533 +# with or without modifications, as long as this notice is preserved.
2534  
2535 -# serial 2
2536 +# serial 3
2537  
2538  # AM_MAKE_INCLUDE()
2539  # -----------------
2540 @@ -6939,27 +6995,16 @@
2541  rm -f confinc confmf
2542  ])
2543  
2544 -#  -*- Autoconf -*-
2545 -
2546 -
2547 -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
2548 -
2549 -# This program is free software; you can redistribute it and/or modify
2550 -# it under the terms of the GNU General Public License as published by
2551 -# the Free Software Foundation; either version 2, or (at your option)
2552 -# any later version.
2553 -
2554 -# This program is distributed in the hope that it will be useful,
2555 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2556 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2557 -# GNU General Public License for more details.
2558 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
2559  
2560 -# You should have received a copy of the GNU General Public License
2561 -# along with this program; if not, write to the Free Software
2562 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2563 -# 02111-1307, USA.
2564 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
2565 +# Free Software Foundation, Inc.
2566 +#
2567 +# This file is free software; the Free Software Foundation
2568 +# gives unlimited permission to copy and/or distribute it,
2569 +# with or without modifications, as long as this notice is preserved.
2570  
2571 -# serial 3
2572 +# serial 4
2573  
2574  # AM_MISSING_PROG(NAME, PROGRAM)
2575  # ------------------------------
2576 @@ -6985,27 +7030,16 @@
2577  fi
2578  ])
2579  
2580 +# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
2581 +#
2582 +# This file is free software; the Free Software Foundation
2583 +# gives unlimited permission to copy and/or distribute it,
2584 +# with or without modifications, as long as this notice is preserved.
2585 +
2586  # AM_PROG_MKDIR_P
2587  # ---------------
2588  # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
2589 -
2590 -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
2591 -
2592 -# This program is free software; you can redistribute it and/or modify
2593 -# it under the terms of the GNU General Public License as published by
2594 -# the Free Software Foundation; either version 2, or (at your option)
2595 -# any later version.
2596 -
2597 -# This program is distributed in the hope that it will be useful,
2598 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2599 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2600 -# GNU General Public License for more details.
2601 -
2602 -# You should have received a copy of the GNU General Public License
2603 -# along with this program; if not, write to the Free Software
2604 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2605 -# 02111-1307, USA.
2606 -
2607 +#
2608  # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
2609  # created by `make install' are always world readable, even if the
2610  # installer happens to have an overly restrictive umask (e.g. 077).
2611 @@ -7059,26 +7093,15 @@
2612  fi
2613  AC_SUBST([mkdir_p])])
2614  
2615 -# Helper functions for option handling.                    -*- Autoconf -*-
2616 -
2617 -# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
2618 -
2619 -# This program is free software; you can redistribute it and/or modify
2620 -# it under the terms of the GNU General Public License as published by
2621 -# the Free Software Foundation; either version 2, or (at your option)
2622 -# any later version.
2623 -
2624 -# This program is distributed in the hope that it will be useful,
2625 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2626 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2627 -# GNU General Public License for more details.
2628 +# Helper functions for option handling.                     -*- Autoconf -*-
2629  
2630 -# You should have received a copy of the GNU General Public License
2631 -# along with this program; if not, write to the Free Software
2632 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2633 -# 02111-1307, USA.
2634 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
2635 +#
2636 +# This file is free software; the Free Software Foundation
2637 +# gives unlimited permission to copy and/or distribute it,
2638 +# with or without modifications, as long as this notice is preserved.
2639  
2640 -# serial 2
2641 +# serial 3
2642  
2643  # _AM_MANGLE_OPTION(NAME)
2644  # -----------------------
2645 @@ -7103,28 +7126,16 @@
2646  AC_DEFUN([_AM_IF_OPTION],
2647  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
2648  
2649 -#
2650 -# Check to make sure that the build environment is sane.
2651 -#
2652 -
2653 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
2654 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
2655  
2656 -# This program is free software; you can redistribute it and/or modify
2657 -# it under the terms of the GNU General Public License as published by
2658 -# the Free Software Foundation; either version 2, or (at your option)
2659 -# any later version.
2660 -
2661 -# This program is distributed in the hope that it will be useful,
2662 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2663 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2664 -# GNU General Public License for more details.
2665 -
2666 -# You should have received a copy of the GNU General Public License
2667 -# along with this program; if not, write to the Free Software
2668 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2669 -# 02111-1307, USA.
2670 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
2671 +# Free Software Foundation, Inc.
2672 +#
2673 +# This file is free software; the Free Software Foundation
2674 +# gives unlimited permission to copy and/or distribute it,
2675 +# with or without modifications, as long as this notice is preserved.
2676  
2677 -# serial 3
2678 +# serial 4
2679  
2680  # AM_SANITY_CHECK
2681  # ---------------
2682 @@ -7167,25 +7178,14 @@
2683  fi
2684  AC_MSG_RESULT(yes)])
2685  
2686 -# AM_PROG_INSTALL_STRIP
2687 -
2688 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
2689 -
2690 -# This program is free software; you can redistribute it and/or modify
2691 -# it under the terms of the GNU General Public License as published by
2692 -# the Free Software Foundation; either version 2, or (at your option)
2693 -# any later version.
2694 -
2695 -# This program is distributed in the hope that it will be useful,
2696 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2697 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2698 -# GNU General Public License for more details.
2699 -
2700 -# You should have received a copy of the GNU General Public License
2701 -# along with this program; if not, write to the Free Software
2702 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2703 -# 02111-1307, USA.
2704 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
2705 +#
2706 +# This file is free software; the Free Software Foundation
2707 +# gives unlimited permission to copy and/or distribute it,
2708 +# with or without modifications, as long as this notice is preserved.
2709  
2710 +# AM_PROG_INSTALL_STRIP
2711 +# ---------------------
2712  # One issue with vendor `install' (even GNU) is that you can't
2713  # specify the program used to strip binaries.  This is especially
2714  # annoying in cross-compiling environments, where the build's strip
2715 @@ -7208,25 +7208,13 @@
2716  
2717  # Check how to create a tarball.                            -*- Autoconf -*-
2718  
2719 -# Copyright (C) 2004  Free Software Foundation, Inc.
2720 -
2721 -# This program is free software; you can redistribute it and/or modify
2722 -# it under the terms of the GNU General Public License as published by
2723 -# the Free Software Foundation; either version 2, or (at your option)
2724 -# any later version.
2725 -
2726 -# This program is distributed in the hope that it will be useful,
2727 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2728 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2729 -# GNU General Public License for more details.
2730 -
2731 -# You should have received a copy of the GNU General Public License
2732 -# along with this program; if not, write to the Free Software
2733 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2734 -# 02111-1307, USA.
2735 -
2736 -# serial 1
2737 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
2738 +#
2739 +# This file is free software; the Free Software Foundation
2740 +# gives unlimited permission to copy and/or distribute it,
2741 +# with or without modifications, as long as this notice is preserved.
2742  
2743 +# serial 2
2744  
2745  # _AM_PROG_TAR(FORMAT)
2746  # --------------------