0.6.1.20060928-1 release
[manu/suphp.git] / debian / patches / 03_libtool.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 03_libtool.dpatch by  <elacour@home-dn.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Libtool update
6
7 @DPATCH@
8 --- ./Makefile.in       2005-11-26 20:29:02.000000000 +0100
9 +++ ./Makefile.in       2006-10-10 17:43:48.000000000 +0200
10 @@ -39,7 +39,7 @@
11         $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
12         ChangeLog INSTALL NEWS config/config.guess config/config.sub \
13         config/depcomp config/install-sh config/ltmain.sh \
14 -       config/missing
15 +       config/missing config/mkinstalldirs
16  subdir = .
17  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
18  am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
19 @@ -48,7 +48,7 @@
20         $(ACLOCAL_M4)
21  am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
22   configure.lineno configure.status.lineno
23 -mkinstalldirs = $(install_sh) -d
24 +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
25  CONFIG_HEADER = $(top_builddir)/src/config.h
26  CONFIG_CLEAN_FILES =
27  SOURCES =
28 @@ -115,6 +115,7 @@
29  EXEEXT = @EXEEXT@
30  F77 = @F77@
31  FFLAGS = @FFLAGS@
32 +GREP = @GREP@
33  INSTALL_DATA = @INSTALL_DATA@
34  INSTALL_PROGRAM = @INSTALL_PROGRAM@
35  INSTALL_SCRIPT = @INSTALL_SCRIPT@
36 @@ -140,12 +141,9 @@
37  SHELL = @SHELL@
38  STRIP = @STRIP@
39  VERSION = @VERSION@
40 -ac_ct_AR = @ac_ct_AR@
41  ac_ct_CC = @ac_ct_CC@
42  ac_ct_CXX = @ac_ct_CXX@
43  ac_ct_F77 = @ac_ct_F77@
44 -ac_ct_RANLIB = @ac_ct_RANLIB@
45 -ac_ct_STRIP = @ac_ct_STRIP@
46  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
47  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
48  am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
49 @@ -162,23 +160,30 @@
50  build_os = @build_os@
51  build_vendor = @build_vendor@
52  datadir = @datadir@
53 +datarootdir = @datarootdir@
54 +docdir = @docdir@
55 +dvidir = @dvidir@
56  exec_prefix = @exec_prefix@
57  host = @host@
58  host_alias = @host_alias@
59  host_cpu = @host_cpu@
60  host_os = @host_os@
61  host_vendor = @host_vendor@
62 +htmldir = @htmldir@
63  includedir = @includedir@
64  infodir = @infodir@
65  install_sh = @install_sh@
66  libdir = @libdir@
67  libexecdir = @libexecdir@
68 +localedir = @localedir@
69  localstatedir = @localstatedir@
70  mandir = @mandir@
71  mkdir_p = @mkdir_p@
72  oldincludedir = @oldincludedir@
73 +pdfdir = @pdfdir@
74  prefix = @prefix@
75  program_transform_name = @program_transform_name@
76 +psdir = @psdir@
77  sbindir = @sbindir@
78  sharedstatedir = @sharedstatedir@
79  sysconfdir = @sysconfdir@
80 --- ./acinclude.m4      2005-11-26 16:10:57.000000000 +0100
81 +++ ./acinclude.m4      2006-10-10 17:27:50.000000000 +0200
82 @@ -40,7 +40,7 @@
83  dnl value of apr_config to fetch any necessary build/link information.
84  dnl
85  
86 -AC_DEFUN(APR_FIND_APR, [
87 +AC_DEFUN([APR_FIND_APR], [
88    apr_found="no"
89  
90    if test "$ac_cv_emxos2" = "yes"; then
91 --- ./aclocal.m4        2005-11-26 20:29:02.000000000 +0100
92 +++ ./aclocal.m4        2006-10-10 17:27:56.000000000 +0200
93 @@ -13,7 +13,7 @@
94  
95  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
96  
97 -# serial 47 AC_PROG_LIBTOOL
98 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
99  
100  
101  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
102 @@ -143,7 +143,7 @@
103  default_ofile=libtool
104  can_build_shared=yes
105  
106 -# All known linkers require a `.a' archive for static linking (except M$VC,
107 +# All known linkers require a `.a' archive for static linking (except MSVC,
108  # which needs '.lib').
109  libext=a
110  ltmain="$ac_aux_dir/ltmain.sh"
111 @@ -163,6 +163,7 @@
112  test -z "$AS" && AS=as
113  test -z "$CC" && CC=cc
114  test -z "$LTCC" && LTCC=$CC
115 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
116  test -z "$DLLTOOL" && DLLTOOL=dlltool
117  test -z "$LD" && LD=ld
118  test -z "$LN_S" && LN_S="ln -s"
119 @@ -182,10 +183,10 @@
120  if test -n "$RANLIB"; then
121    case $host_os in
122    openbsd*)
123 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
124 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
125      ;;
126    *)
127 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
128 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
129      ;;
130    esac
131    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
132 @@ -218,14 +219,6 @@
133      [pic_mode=default])
134  test -z "$pic_mode" && pic_mode=default
135  
136 -# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
137 -#
138 -# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
139 -#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
140 -#        calls AC_LIBTOOL_CONFIG and creates libtool.
141 -#
142 -_LT_VERSION_CHECK
143 -
144  # Use C for the default configuration in the libtool script
145  tagname=
146  AC_LIBTOOL_LANG_C_CONFIG
147 @@ -233,41 +226,6 @@
148  ])# AC_LIBTOOL_SETUP
149  
150  
151 -# _LT_VERSION_CHECK
152 -# -----------------
153 -AC_DEFUN([_LT_VERSION_CHECK],
154 -[AC_MSG_CHECKING([for correct ltmain.sh version])
155 -if test -z "$ltmain"; then
156 -  AC_MSG_RESULT(no)
157 -  echo
158 -  echo "*** [Gentoo] sanity check failed! ***"
159 -  echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
160 -  echo
161 -  exit 1
162 -fi
163 -gentoo_lt_version="1.5.18"
164 -gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
165 -if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
166 -  AC_MSG_RESULT(no)
167 -  echo
168 -  echo "*** [Gentoo] sanity check failed! ***"
169 -  echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
170 -  echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
171 -  echo
172 -  echo "Please run:"
173 -  echo
174 -  echo "  libtoolize --copy --force"
175 -  echo
176 -  echo "if appropriate, please contact the maintainer of this"
177 -  echo "package (or your distribution) for help."
178 -  echo
179 -  exit 1
180 -else
181 -  AC_MSG_RESULT(yes)
182 -fi
183 -])# _LT_VERSION_CHECK
184 -
185 -
186  # _LT_AC_SYS_COMPILER
187  # -------------------
188  AC_DEFUN([_LT_AC_SYS_COMPILER],
189 @@ -276,6 +234,9 @@
190  # If no C compiler was specified, use CC.
191  LTCC=${LTCC-"$CC"}
192  
193 +# If no C compiler flags were specified, use CFLAGS.
194 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
195 +
196  # Allow CC to be a program name with arguments.
197  compiler=$CC
198  ])# _LT_AC_SYS_COMPILER
199 @@ -304,7 +265,7 @@
200  AC_DEFUN([_LT_COMPILER_BOILERPLATE],
201  [ac_outfile=conftest.$ac_objext
202  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
203 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
204 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
205  _lt_compiler_boilerplate=`cat conftest.err`
206  $rm conftest*
207  ])# _LT_COMPILER_BOILERPLATE
208 @@ -317,7 +278,7 @@
209  AC_DEFUN([_LT_LINKER_BOILERPLATE],
210  [ac_outfile=conftest.$ac_objext
211  printf "$lt_simple_link_test_code" >conftest.$ac_ext
212 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
213 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
214  _lt_linker_boilerplate=`cat conftest.err`
215  $rm conftest*
216  ])# _LT_LINKER_BOILERPLATE
217 @@ -402,8 +363,8 @@
218  # find a string as large as possible, as long as the shell can cope with it
219    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
220      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
221 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
222 -       echo_test_string="`eval $cmd`" &&
223 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
224 +       echo_test_string=`eval $cmd` &&
225         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
226      then
227        break
228 @@ -572,7 +533,7 @@
229    # Find out which ABI we are using.
230    echo 'int i;' > conftest.$ac_ext
231    if AC_TRY_EVAL(ac_compile); then
232 -    case "`/usr/bin/file conftest.o`" in
233 +    case `/usr/bin/file conftest.o` in
234      *32-bit*)
235        case $host in
236          x86_64-*linux*)
237 @@ -610,20 +571,6 @@
238    rm -rf conftest*
239    ;;
240  
241 -*-*-linux*)
242 -  # Test if the compiler is 64bit
243 -  echo 'int i;' > conftest.$ac_ext
244 -  lt_cv_cc_64bit_output=no
245 -  if AC_TRY_EVAL(ac_compile); then
246 -    case `/usr/bin/file conftest.$ac_objext` in
247 -    *"ELF 64"*)
248 -      lt_cv_cc_64bit_output=yes
249 -      ;;
250 -    esac
251 -  fi
252 -  rm -rf conftest*
253 -  ;;
254 -  
255  *-*-sco3.2v5*)
256    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
257    SAVE_CFLAGS="$CFLAGS"
258 @@ -637,6 +584,22 @@
259      CFLAGS="$SAVE_CFLAGS"
260    fi
261    ;;
262 +sparc*-*solaris*)
263 +  # Find out which ABI we are using.
264 +  echo 'int i;' > conftest.$ac_ext
265 +  if AC_TRY_EVAL(ac_compile); then
266 +    case `/usr/bin/file conftest.o` in
267 +    *64-bit*)
268 +      case $lt_cv_prog_gnu_ld in
269 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
270 +      *)    LD="${LD-ld} -64" ;;
271 +      esac
272 +      ;;
273 +    esac
274 +  fi
275 +  rm -rf conftest*
276 +  ;;
277 +
278  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
279  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
280    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
281 @@ -668,7 +631,7 @@
282     # with a dollar sign (not a hyphen), so the echo should work correctly.
283     # The option is referenced via a variable to avoid confusing sed.
284     lt_compile=`echo "$ac_compile" | $SED \
285 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
286 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
287     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
288     -e 's:$: $lt_compiler_flag:'`
289     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
290 @@ -679,9 +642,9 @@
291     if (exit $ac_status) && test -s "$ac_outfile"; then
292       # The compiler can only warn and ignore the option if not recognized
293       # So say no if there are warnings other than the usual output.
294 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
295 -     $SED '/^$/d' conftest.err >conftest.er2
296 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
297 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
298 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
299 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
300         $2=yes
301       fi
302     fi
303 @@ -707,13 +670,13 @@
304     LDFLAGS="$LDFLAGS $3"
305     printf "$lt_simple_link_test_code" > conftest.$ac_ext
306     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
307 -     # The compiler can only warn and ignore the option if not recognized
308 +     # The linker can only warn and ignore the option if not recognized
309       # So say no if there are warnings
310       if test -s conftest.err; then
311         # Append any errors to the config.log.
312         cat conftest.err 1>&AS_MESSAGE_LOG_FD
313 -       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
314 -       $SED '/^$/d' conftest.err >conftest.er2
315 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
316 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
317         if diff conftest.exp conftest.er2 >/dev/null; then
318           $2=yes
319         fi
320 @@ -782,25 +745,42 @@
321      elif test -x /usr/sbin/sysctl; then
322        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
323      else
324 -      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
325 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
326      fi
327      # And add a safety zone
328      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
329      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
330      ;;
331 +
332 +  interix*)
333 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
334 +    lt_cv_sys_max_cmd_len=196608
335 +    ;;
336 +
337    osf*)
338      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
339      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
340      # nice to cause kernel panics so lets avoid the loop below.
341      # First set a reasonable default.
342      lt_cv_sys_max_cmd_len=16384
343 -    # 
344 +    #
345      if test -x /sbin/sysconfig; then
346        case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
347          *1*) lt_cv_sys_max_cmd_len=-1 ;;
348        esac
349      fi
350      ;;
351 +  sco3.2v5*)
352 +    lt_cv_sys_max_cmd_len=102400
353 +    ;;
354 +  sysv5* | sco5v6* | sysv4.2uw2*)
355 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
356 +    if test -n "$kargmax"; then
357 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
358 +    else
359 +      lt_cv_sys_max_cmd_len=32768
360 +    fi
361 +    ;;
362    *)
363      # If test is not a shell built-in, we'll probably end up computing a
364      # maximum length that is only half of the actual maximum length, but
365 @@ -832,7 +812,7 @@
366  
367  
368  # _LT_AC_CHECK_DLFCN
369 -# --------------------
370 +# ------------------
371  AC_DEFUN([_LT_AC_CHECK_DLFCN],
372  [AC_CHECK_HEADERS(dlfcn.h)dnl
373  ])# _LT_AC_CHECK_DLFCN
374 @@ -840,7 +820,7 @@
375  
376  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
377  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
378 -# ------------------------------------------------------------------
379 +# ---------------------------------------------------------------------
380  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
381  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
382  if test "$cross_compiling" = yes; then :
383 @@ -906,17 +886,19 @@
384        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
385        /* dlclose (self); */
386      }
387 +  else
388 +    puts (dlerror ());
389  
390      exit (status);
391  }]
392  EOF
393    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
394 -    (./conftest; exit; ) 2>/dev/null
395 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
396      lt_status=$?
397      case x$lt_status in
398        x$lt_dlno_uscore) $1 ;;
399        x$lt_dlneed_uscore) $2 ;;
400 -      x$lt_unknown|x*) $3 ;;
401 +      x$lt_dlunknown|x*) $3 ;;
402      esac
403    else :
404      # compilation failed
405 @@ -928,7 +910,7 @@
406  
407  
408  # AC_LIBTOOL_DLOPEN_SELF
409 -# -------------------
410 +# ----------------------
411  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
412  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
413  if test "x$enable_dlopen" != xyes; then
414 @@ -999,7 +981,7 @@
415      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
416  
417      save_LDFLAGS="$LDFLAGS"
418 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
419 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
420  
421      save_LIBS="$LIBS"
422      LIBS="$lt_cv_dlopen_libs $LIBS"
423 @@ -1012,7 +994,7 @@
424      ])
425  
426      if test "x$lt_cv_dlopen_self" = xyes; then
427 -      LDFLAGS="$LDFLAGS $link_static_flag"
428 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
429        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
430           lt_cv_dlopen_self_static, [dnl
431           _LT_AC_TRY_DLOPEN_SELF(
432 @@ -1060,7 +1042,7 @@
433     # Note that $ac_compile itself does not contain backslashes and begins
434     # with a dollar sign (not a hyphen), so the echo should work correctly.
435     lt_compile=`echo "$ac_compile" | $SED \
436 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
437 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
438     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
439     -e 's:$: $lt_compiler_flag:'`
440     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
441 @@ -1072,13 +1054,13 @@
442     then
443       # The compiler can only warn and ignore the option if not recognized
444       # So say no if there are warnings
445 -     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
446 -     $SED '/^$/d' out/conftest.err >out/conftest.er2
447 -     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
448 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
449 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
450 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
451         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
452       fi
453     fi
454 -   chmod u+w .
455 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
456     $rm conftest*
457     # SGI C++ compiler will create directory out/ii_files/ for
458     # template instantiation
459 @@ -1338,7 +1320,8 @@
460        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
461        dldir=$destdir/`dirname \$dlpath`~
462        test -d \$dldir || mkdir -p \$dldir~
463 -      $install_prog $dir/$dlname \$dldir/$dlname'
464 +      $install_prog $dir/$dlname \$dldir/$dlname~
465 +      chmod a+x \$dldir/$dlname'
466      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
467        dlpath=$dir/\$dldll~
468         $rm \$dlpath'
469 @@ -1373,30 +1356,6 @@
470      esac
471      ;;
472  
473 -  linux*)
474 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
475 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
476 -      supports_anon_versioning=no
477 -      case `$LD -v 2>/dev/null` in
478 -        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
479 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
480 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
481 -        *\ 2.11.*) ;; # other 2.11 versions
482 -        *) supports_anon_versioning=yes ;;
483 -      esac
484 -      if test $supports_anon_versioning = yes; then
485 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
486 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
487 -$echo "local: *; };" >> $output_objdir/$libname.ver~
488 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
489 -      else
490 -        $archive_expsym_cmds="$archive_cmds"
491 -      fi
492 -    else
493 -      ld_shlibs=no
494 -    fi
495 -    ;;
496 -
497    *)
498      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
499      ;;
500 @@ -1415,7 +1374,7 @@
501    soname_spec='${libname}${release}${major}$shared_ext'
502    shlibpath_overrides_runpath=yes
503    shlibpath_var=DYLD_LIBRARY_PATH
504 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
505 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
506    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
507    if test "$GCC" = yes; then
508      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"`
509 @@ -1438,22 +1397,17 @@
510    dynamic_linker=no
511    ;;
512  
513 -kfreebsd*-gnu)
514 -  version_type=linux
515 -  need_lib_prefix=no
516 -  need_version=no
517 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
518 -  soname_spec='${libname}${release}${shared_ext}$major'
519 -  shlibpath_var=LD_LIBRARY_PATH
520 -  shlibpath_overrides_runpath=no
521 -  hardcode_into_libs=yes
522 -  dynamic_linker='GNU ld.so'
523 -  ;;
524 -
525  freebsd* | dragonfly*)
526    # DragonFly does not have aout.  When/if they implement a new
527    # versioning mechanism, adjust this.
528 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
529 +  if test -x /usr/bin/objformat; then
530 +    objformat=`/usr/bin/objformat`
531 +  else
532 +    case $host_os in
533 +    freebsd[[123]]*) objformat=aout ;;
534 +    *) objformat=elf ;;
535 +    esac
536 +  fi
537    version_type=freebsd-$objformat
538    case $version_type in
539      freebsd-elf*)
540 @@ -1475,10 +1429,15 @@
541      shlibpath_overrides_runpath=yes
542      hardcode_into_libs=yes
543      ;;
544 -  *) # from 3.2 on
545 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
546 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
547      shlibpath_overrides_runpath=no
548      hardcode_into_libs=yes
549      ;;
550 +  freebsd*) # from 4.6 on
551 +    shlibpath_overrides_runpath=yes
552 +    hardcode_into_libs=yes
553 +    ;;
554    esac
555    ;;
556  
557 @@ -1498,7 +1457,7 @@
558    version_type=sunos
559    need_lib_prefix=no
560    need_version=no
561 -  case "$host_cpu" in
562 +  case $host_cpu in
563    ia64*)
564      shrext_cmds='.so'
565      hardcode_into_libs=yes
566 @@ -1538,6 +1497,18 @@
567    postinstall_cmds='chmod 555 $lib'
568    ;;
569  
570 +interix3*)
571 +  version_type=linux
572 +  need_lib_prefix=no
573 +  need_version=no
574 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
575 +  soname_spec='${libname}${release}${shared_ext}$major'
576 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
577 +  shlibpath_var=LD_LIBRARY_PATH
578 +  shlibpath_overrides_runpath=no
579 +  hardcode_into_libs=yes
580 +  ;;
581 +
582  irix5* | irix6* | nonstopux*)
583    case $host_os in
584      nonstopux*) version_type=nonstopux ;;
585 @@ -1581,7 +1552,7 @@
586    ;;
587  
588  # This must be Linux ELF.
589 -linux*)
590 +linux* | k*bsd*-gnu)
591    version_type=linux
592    need_lib_prefix=no
593    need_version=no
594 @@ -1601,13 +1572,6 @@
595      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
596    fi
597  
598 -  case $host_cpu:$lt_cv_cc_64bit_output in
599 -  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
600 -    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
601 -    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
602 -    ;;
603 -  esac
604 -
605    # We used to test for /lib/ld.so.1 and disable shared libraries on
606    # powerpc, because MkLinux only supported shared libraries with the
607    # GNU dynamic linker.  Since this was broken with cross compilers,
608 @@ -1615,29 +1579,9 @@
609    # people can always --disable-shared, the test was removed, and we
610    # assume the GNU/Linux dynamic linker is in use.
611    dynamic_linker='GNU/Linux ld.so'
612 -
613 -  # Find out which ABI we are using (multilib Linux x86_64 hack).
614 -  libsuff=
615 -  case "$host_cpu" in
616 -  x86_64*)
617 -    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
618 -    if AC_TRY_EVAL(ac_compile); then
619 -      case `/usr/bin/file conftest.$ac_objext` in
620 -      *64-bit*)
621 -        libsuff=64
622 -        ;;
623 -      esac
624 -    fi
625 -    rm -rf conftest*
626 -    ;;
627 -  *)
628 -    ;;
629 -  esac
630 -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
631 -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
632    ;;
633  
634 -knetbsd*-gnu)
635 +netbsdelf*-gnu)
636    version_type=linux
637    need_lib_prefix=no
638    need_version=no
639 @@ -1646,7 +1590,7 @@
640    shlibpath_var=LD_LIBRARY_PATH
641    shlibpath_overrides_runpath=no
642    hardcode_into_libs=yes
643 -  dynamic_linker='GNU ld.so'
644 +  dynamic_linker='NetBSD ld.elf_so'
645    ;;
646  
647  netbsd*)
648 @@ -1686,6 +1630,7 @@
649  
650  openbsd*)
651    version_type=sunos
652 +  sys_lib_dlsearch_path_spec="/usr/lib"
653    need_lib_prefix=no
654    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
655    case $host_os in
656 @@ -1729,13 +1674,6 @@
657    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
658    ;;
659  
660 -sco3.2v5*)
661 -  version_type=osf
662 -  soname_spec='${libname}${release}${shared_ext}$major'
663 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
664 -  shlibpath_var=LD_LIBRARY_PATH
665 -  ;;
666 -
667  solaris*)
668    version_type=linux
669    need_lib_prefix=no
670 @@ -1761,7 +1699,7 @@
671    need_version=yes
672    ;;
673  
674 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
675 +sysv4 | sysv4.3*)
676    version_type=linux
677    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
678    soname_spec='${libname}${release}${shared_ext}$major'
679 @@ -1794,6 +1732,29 @@
680    fi
681    ;;
682  
683 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
684 +  version_type=freebsd-elf
685 +  need_lib_prefix=no
686 +  need_version=no
687 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
688 +  soname_spec='${libname}${release}${shared_ext}$major'
689 +  shlibpath_var=LD_LIBRARY_PATH
690 +  hardcode_into_libs=yes
691 +  if test "$with_gnu_ld" = yes; then
692 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
693 +    shlibpath_overrides_runpath=no
694 +  else
695 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
696 +    shlibpath_overrides_runpath=yes
697 +    case $host_os in
698 +      sco3.2v5*)
699 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
700 +       ;;
701 +    esac
702 +  fi
703 +  sys_lib_dlsearch_path_spec='/usr/lib'
704 +  ;;
705 +
706  uts4*)
707    version_type=linux
708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
709 @@ -1807,6 +1768,11 @@
710  esac
711  AC_MSG_RESULT([$dynamic_linker])
712  test "$dynamic_linker" = no && can_build_shared=no
713 +
714 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
715 +if test "$GCC" = yes; then
716 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
717 +fi
718  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
719  
720  
721 @@ -1831,6 +1797,9 @@
722        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
723      fi
724    fi
725 +  if test -z "$LTCFLAGS"; then
726 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
727 +  fi
728  
729    # Extract list of available tagged configurations in $ofile.
730    # Note that this assumes the entire list is on one line.
731 @@ -1921,7 +1890,7 @@
732  
733  # AC_LIBTOOL_WIN32_DLL
734  # --------------------
735 -# declare package support for building win32 dll's
736 +# declare package support for building win32 DLLs
737  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
738  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
739  ])# AC_LIBTOOL_WIN32_DLL
740 @@ -1959,7 +1928,7 @@
741  
742  # AC_DISABLE_SHARED
743  # -----------------
744 -#- set the default shared flag to --disable-shared
745 +# set the default shared flag to --disable-shared
746  AC_DEFUN([AC_DISABLE_SHARED],
747  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
748  AC_ENABLE_SHARED(no)
749 @@ -2095,7 +2064,7 @@
750        if test -n "$file_magic_test_file"; then
751         case $deplibs_check_method in
752         "file_magic "*)
753 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
754 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
755           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
756           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
757             $EGREP "$file_magic_regex" > /dev/null; then
758 @@ -2205,7 +2174,7 @@
759      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
760        lt_cv_path_LD="$ac_dir/$ac_prog"
761        # Check to see if the program is GNU ld.  I'd rather use --version,
762 -      # but apparently some GNU ld's only accept -v.
763 +      # but apparently some variants of GNU ld only accept -v.
764        # Break only if it was the GNU/non-GNU ld that we prefer.
765        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
766        *GNU* | *'with BFD'*)
767 @@ -2237,7 +2206,7 @@
768  AC_DEFUN([AC_PROG_LD_GNU],
769  [AC_REQUIRE([AC_PROG_EGREP])dnl
770  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
771 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
772 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
773  case `$LD -v 2>&1 </dev/null` in
774  *GNU* | *'with BFD'*)
775    lt_cv_prog_gnu_ld=yes
776 @@ -2267,7 +2236,7 @@
777  case $host_os in
778    darwin*)
779      if test "$GCC" = yes; then
780 -      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
781 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
782      else
783        reload_cmds='$LD$reload_flag -o $output$reload_objs'
784      fi
785 @@ -2329,7 +2298,7 @@
786    lt_cv_deplibs_check_method=pass_all
787    ;;
788  
789 -freebsd* | kfreebsd*-gnu | dragonfly*)
790 +freebsd* | dragonfly*)
791    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
792      case $host_cpu in
793      i*86 )
794 @@ -2351,7 +2320,7 @@
795  
796  hpux10.20* | hpux11*)
797    lt_cv_file_magic_cmd=/usr/bin/file
798 -  case "$host_cpu" in
799 +  case $host_cpu in
800    ia64*)
801      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
802      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
803 @@ -2367,6 +2336,11 @@
804    esac
805    ;;
806  
807 +interix3*)
808 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
809 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
810 +  ;;
811 +
812  irix5* | irix6* | nonstopux*)
813    case $LD in
814    *-32|*"-32 ") libmagic=32-bit;;
815 @@ -2378,11 +2352,11 @@
816    ;;
817  
818  # This must be Linux ELF.
819 -linux*)
820 +linux* | k*bsd*-gnu)
821    lt_cv_deplibs_check_method=pass_all
822    ;;
823  
824 -netbsd*)
825 +netbsd* | netbsdelf*-gnu)
826    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
827      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
828    else
829 @@ -2412,15 +2386,11 @@
830    lt_cv_deplibs_check_method=pass_all
831    ;;
832  
833 -sco3.2v5*)
834 -  lt_cv_deplibs_check_method=pass_all
835 -  ;;
836 -
837  solaris*)
838    lt_cv_deplibs_check_method=pass_all
839    ;;
840  
841 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
842 +sysv4 | sysv4.3*)
843    case $host_vendor in
844    motorola)
845      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]]'
846 @@ -2441,10 +2411,13 @@
847    siemens)
848      lt_cv_deplibs_check_method=pass_all
849      ;;
850 +  pc)
851 +    lt_cv_deplibs_check_method=pass_all
852 +    ;;
853    esac
854    ;;
855  
856 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
857 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
858    lt_cv_deplibs_check_method=pass_all
859    ;;
860  esac
861 @@ -2464,36 +2437,43 @@
862    # Let the user override the test.
863    lt_cv_path_NM="$NM"
864  else
865 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
866 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
867 -    IFS="$lt_save_ifs"
868 -    test -z "$ac_dir" && ac_dir=.
869 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
870 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
871 -      # Check to see if the nm accepts a BSD-compat flag.
872 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
873 -      #   nm: unknown option "B" ignored
874 -      # Tru64's nm complains that /dev/null is an invalid object file
875 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
876 -      */dev/null* | *'Invalid file or object type'*)
877 -       lt_cv_path_NM="$tmp_nm -B"
878 -       break
879 -        ;;
880 -      *)
881 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
882 -       */dev/null*)
883 -         lt_cv_path_NM="$tmp_nm -p"
884 +  lt_nm_to_check="${ac_tool_prefix}nm"
885 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
886 +    lt_nm_to_check="$lt_nm_to_check nm"
887 +  fi
888 +  for lt_tmp_nm in $lt_nm_to_check; do
889 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
890 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
891 +      IFS="$lt_save_ifs"
892 +      test -z "$ac_dir" && ac_dir=.
893 +      tmp_nm="$ac_dir/$lt_tmp_nm"
894 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
895 +       # Check to see if the nm accepts a BSD-compat flag.
896 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
897 +       #   nm: unknown option "B" ignored
898 +       # Tru64's nm complains that /dev/null is an invalid object file
899 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
900 +       */dev/null* | *'Invalid file or object type'*)
901 +         lt_cv_path_NM="$tmp_nm -B"
902           break
903           ;;
904         *)
905 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
906 -         continue # so that we can try to find one that supports BSD flags
907 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
908 +         */dev/null*)
909 +           lt_cv_path_NM="$tmp_nm -p"
910 +           break
911 +           ;;
912 +         *)
913 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
914 +           continue # so that we can try to find one that supports BSD flags
915 +           ;;
916 +         esac
917           ;;
918         esac
919 -      esac
920 -    fi
921 +      fi
922 +    done
923 +    IFS="$lt_save_ifs"
924    done
925 -  IFS="$lt_save_ifs"
926    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
927  fi])
928  NM="$lt_cv_path_NM"
929 @@ -2525,13 +2505,13 @@
930  # -----------------------------------
931  # sets LIBLTDL to the link flags for the libltdl convenience library and
932  # LTDLINCL to the include flags for the libltdl header and adds
933 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
934 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
935 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
936 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
937 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
938 -# flat and you're not using automake, define top_builddir and
939 -# top_srcdir appropriately in the Makefiles.
940 +# --enable-ltdl-convenience to the configure arguments.  Note that
941 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
942 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
943 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
944 +# (note the single quotes!).  If your package is not flat and you're not
945 +# using automake, define top_builddir and top_srcdir appropriately in
946 +# the Makefiles.
947  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
948  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
949    case $enable_ltdl_convenience in
950 @@ -2550,13 +2530,13 @@
951  # -----------------------------------
952  # sets LIBLTDL to the link flags for the libltdl installable library and
953  # LTDLINCL to the include flags for the libltdl header and adds
954 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
955 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
956 -# DIRECTORY is not provided and an installed libltdl is not found, it is
957 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
958 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
959 -# quotes!).  If your package is not flat and you're not using automake,
960 -# define top_builddir and top_srcdir appropriately in the Makefiles.
961 +# --enable-ltdl-install to the configure arguments.  Note that
962 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
963 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
964 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
965 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
966 +# flat and you're not using automake, define top_builddir and top_srcdir
967 +# appropriately in the Makefiles.
968  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
969  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
970  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
971 @@ -2599,7 +2579,7 @@
972  ])# _LT_AC_LANG_CXX
973  
974  # _LT_AC_PROG_CXXCPP
975 -# ---------------
976 +# ------------------
977  AC_DEFUN([_LT_AC_PROG_CXXCPP],
978  [
979  AC_REQUIRE([AC_PROG_CXX])
980 @@ -2648,7 +2628,7 @@
981  
982  
983  # AC_LIBTOOL_RC
984 -# --------------
985 +# -------------
986  # enable support for Windows resource files
987  AC_DEFUN([AC_LIBTOOL_RC],
988  [AC_REQUIRE([LT_AC_PROG_RC])
989 @@ -2685,37 +2665,6 @@
990  _LT_COMPILER_BOILERPLATE
991  _LT_LINKER_BOILERPLATE
992  
993 -#
994 -# Check for any special shared library compilation flags.
995 -#
996 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
997 -if test "$GCC" = no; then
998 -  case $host_os in
999 -  sco3.2v5*)
1000 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1001 -    ;;
1002 -  esac
1003 -fi
1004 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1005 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1006 -  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
1007 -  else
1008 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1009 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1010 -  fi
1011 -fi
1012 -
1013 -
1014 -#
1015 -# Check to make sure the static flag actually works.
1016 -#
1017 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1018 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1019 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1020 -  [],
1021 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1022 -
1023 -
1024  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1025  AC_LIBTOOL_PROG_COMPILER_PIC($1)
1026  AC_LIBTOOL_PROG_CC_C_O($1)
1027 @@ -2724,9 +2673,9 @@
1028  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1029  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1030  AC_LIBTOOL_SYS_LIB_STRIP
1031 -AC_LIBTOOL_DLOPEN_SELF($1)
1032 +AC_LIBTOOL_DLOPEN_SELF
1033  
1034 -# Report which librarie types wil actually be built
1035 +# Report which library types will actually be built
1036  AC_MSG_CHECKING([if libtool supports shared libraries])
1037  AC_MSG_RESULT([$can_build_shared])
1038  
1039 @@ -2735,7 +2684,7 @@
1040  
1041  # On AIX, shared libraries and static libraries use the same namespace, and
1042  # are all built from PIC.
1043 -case "$host_os" in
1044 +case $host_os in
1045  aix3*)
1046    test "$enable_shared" = yes && enable_static=no
1047    if test -n "$RANLIB"; then
1048 @@ -2785,6 +2734,7 @@
1049  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1050  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1051  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1052 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1053  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1054  _LT_AC_TAGVAR(module_cmds, $1)=
1055  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1056 @@ -2802,7 +2752,7 @@
1057  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1058  
1059  # Source file extension for C++ test sources.
1060 -ac_ext=cc
1061 +ac_ext=cpp
1062  
1063  # Object file extension for compiled C++ test sources.
1064  objext=o
1065 @@ -2812,7 +2762,7 @@
1066  lt_simple_compile_test_code="int some_variable = 0;\n"
1067  
1068  # Code to be used in simple link tests
1069 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1070 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
1071  
1072  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1073  _LT_AC_SYS_COMPILER
1074 @@ -2831,12 +2781,12 @@
1075  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1076    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1077  else
1078 -  unset lt_cv_prog_gnu_ld
1079 +  $as_unset lt_cv_prog_gnu_ld
1080  fi
1081  if test -n "${lt_cv_path_LDCXX+set}"; then
1082    lt_cv_path_LD=$lt_cv_path_LDCXX
1083  else
1084 -  unset lt_cv_path_LD
1085 +  $as_unset lt_cv_path_LD
1086  fi
1087  test -z "${LDCXX+set}" || LD=$LDCXX
1088  CC=${CXX-"c++"}
1089 @@ -2931,6 +2881,7 @@
1090             ;;
1091           esac
1092         done
1093 +       ;;
1094        esac
1095  
1096        exp_sym_flag='-bexport'
1097 @@ -2968,6 +2919,7 @@
1098           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1099           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1100         fi
1101 +       ;;
1102        esac
1103        shared_flag='-shared'
1104        if test "$aix_use_runtimelinking" = yes; then
1105 @@ -2999,12 +2951,12 @@
1106        _LT_AC_SYS_LIBPATH_AIX
1107        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1108  
1109 -      _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"
1110 +      _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"
1111       else
1112        if test "$host_cpu" = ia64; then
1113         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1114         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1115 -       _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"
1116 +       _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"
1117        else
1118         # Determine the default libpath from the value encoded in an empty executable.
1119         _LT_AC_SYS_LIBPATH_AIX
1120 @@ -3013,16 +2965,26 @@
1121         # -berok will link without error, but may produce a broken library.
1122         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1123         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1124 -       # -bexpall does not export symbols beginning with underscore (_)
1125 -       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1126         # Exported symbols can be pulled into shared objects from archives
1127 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1128 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1129         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1130 -       # This is similar to how AIX traditionally builds it's shared libraries.
1131 -       _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'
1132 +       # This is similar to how AIX traditionally builds its shared libraries.
1133 +       _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'
1134        fi
1135      fi
1136      ;;
1137 +
1138 +  beos*)
1139 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1140 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1141 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1142 +      # support --undefined.  This deserves some investigation.  FIXME
1143 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1144 +    else
1145 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1146 +    fi
1147 +    ;;
1148 +
1149    chorus*)
1150      case $cc_basename in
1151        *)
1152 @@ -3032,7 +2994,6 @@
1153      esac
1154      ;;
1155  
1156 -
1157    cygwin* | mingw* | pw32*)
1158      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1159      # as there is no search path for DLLs.
1160 @@ -3042,7 +3003,7 @@
1161      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1162  
1163      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1164 -      _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'
1165 +      _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'
1166        # If the export-symbols file already is a .def file (1st line
1167        # is EXPORTS), use it as is; otherwise, prepend...
1168        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1169 @@ -3051,13 +3012,13 @@
1170         echo EXPORTS > $output_objdir/$soname.def;
1171         cat $export_symbols >> $output_objdir/$soname.def;
1172        fi~
1173 -      $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'
1174 +      $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'
1175      else
1176        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1177      fi
1178    ;;
1179        darwin* | rhapsody*)
1180 -        case "$host_os" in
1181 +        case $host_os in
1182          rhapsody* | darwin1.[[012]])
1183           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1184           ;;
1185 @@ -3095,7 +3056,7 @@
1186            _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'
1187          fi
1188          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1189 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1190 +        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1191            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1192              _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}'
1193            else
1194 @@ -3108,7 +3069,7 @@
1195           output_verbose_link_cmd='echo'
1196            _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'
1197            _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1198 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1199 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1200            _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}'
1201            _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}'
1202            ;;
1203 @@ -3143,7 +3104,7 @@
1204    freebsd-elf*)
1205      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1206      ;;
1207 -  freebsd* | kfreebsd*-gnu | dragonfly*)
1208 +  freebsd* | dragonfly*)
1209      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1210      # conventions
1211      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1212 @@ -3188,33 +3149,22 @@
1213      ;;
1214    hpux10*|hpux11*)
1215      if test $with_gnu_ld = no; then
1216 -      case "$host_cpu" in
1217 -      hppa*64*)
1218 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1219 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1220 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1221 +
1222 +      case $host_cpu in
1223 +      hppa*64*|ia64*)
1224         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1225 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1226 -        ;;
1227 -      ia64*)
1228 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1229          ;;
1230        *)
1231 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1232 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1233         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1234          ;;
1235        esac
1236      fi
1237 -    case "$host_cpu" in
1238 -    hppa*64*)
1239 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1240 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1241 -      ;;
1242 -    ia64*)
1243 +    case $host_cpu in
1244 +    hppa*64*|ia64*)
1245        _LT_AC_TAGVAR(hardcode_direct, $1)=no
1246        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1247 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1248 -                                             # but as the default
1249 -                                             # location of the library.
1250        ;;
1251      *)
1252        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1253 @@ -3230,9 +3180,12 @@
1254         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1255         ;;
1256        aCC*)
1257 -       case "$host_cpu" in
1258 -       hppa*64*|ia64*)
1259 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1260 +       case $host_cpu in
1261 +       hppa*64*)
1262 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1263 +         ;;
1264 +       ia64*)
1265 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1266           ;;
1267         *)
1268           _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'
1269 @@ -3251,9 +3204,12 @@
1270        *)
1271         if test "$GXX" = yes; then
1272           if test $with_gnu_ld = no; then
1273 -           case "$host_cpu" in
1274 -           ia64*|hppa*64*)
1275 -             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1276 +           case $host_cpu in
1277 +           hppa*64*)
1278 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1279 +             ;;
1280 +           ia64*)
1281 +             _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'
1282               ;;
1283             *)
1284               _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'
1285 @@ -3267,6 +3223,20 @@
1286         ;;
1287      esac
1288      ;;
1289 +  interix3*)
1290 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1291 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1292 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1293 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1294 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1295 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
1296 +    # default) and relocated if they conflict, which is a slow very memory
1297 +    # consuming and fragmenting process.  To avoid this, we pick a random,
1298 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1299 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1300 +    _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'
1301 +    _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'
1302 +    ;;
1303    irix5* | irix6*)
1304      case $cc_basename in
1305        CC*)
1306 @@ -3293,7 +3263,7 @@
1307      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1308      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1309      ;;
1310 -  linux*)
1311 +  linux* | k*bsd*-gnu)
1312      case $cc_basename in
1313        KCC*)
1314         # Kuck and Associates, Inc. (KAI) C++ Compiler
1315 @@ -3352,7 +3322,7 @@
1316  
1317         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1318         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1319 -       _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'
1320 +       _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'
1321          ;;
1322        cxx*)
1323         # Compaq C++
1324 @@ -3395,7 +3365,7 @@
1325         ;;
1326      esac
1327      ;;
1328 -  netbsd*)
1329 +  netbsd* | netbsdelf*-gnu)
1330      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1331        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1332        wlarc=
1333 @@ -3549,19 +3519,6 @@
1334      # FIXME: insert proper C++ library support
1335      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1336      ;;
1337 -  sco*)
1338 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1339 -    case $cc_basename in
1340 -      CC*)
1341 -       # FIXME: insert proper C++ library support
1342 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
1343 -       ;;
1344 -      *)
1345 -       # FIXME: insert proper C++ library support
1346 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
1347 -       ;;
1348 -    esac
1349 -    ;;
1350    sunos4*)
1351      case $cc_basename in
1352        CC*)
1353 @@ -3584,10 +3541,11 @@
1354      case $cc_basename in
1355        CC*)
1356         # Sun C++ 4.2, 5.x and Centerline C++
1357 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
1358         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
1359 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1360 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1361         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1362 -       $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'
1363 +       $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'
1364  
1365         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1366         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1367 @@ -3607,15 +3565,7 @@
1368         esac
1369         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1370  
1371 -       # Commands to make compiler produce verbose output that lists
1372 -       # what "hidden" libraries, object files and flags are used when
1373 -       # linking a shared library.
1374 -       #
1375 -       # There doesn't appear to be a way to prevent this compiler from
1376 -       # explicitly linking system object files so we need to strip them
1377 -       # from the output so that they don't get included in the library
1378 -       # dependencies.
1379 -       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'
1380 +       output_verbose_link_cmd='echo'
1381  
1382         # Archives containing C++ object files must be created using
1383         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
1384 @@ -3661,8 +3611,59 @@
1385         ;;
1386      esac
1387      ;;
1388 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
1389 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
1390 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1391      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1392 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1393 +    runpath_var='LD_RUN_PATH'
1394 +
1395 +    case $cc_basename in
1396 +      CC*)
1397 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1398 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1399 +       ;;
1400 +      *)
1401 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1402 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1403 +       ;;
1404 +    esac
1405 +    ;;
1406 +  sysv5* | sco3.2v5* | sco5v6*)
1407 +    # Note: We can NOT use -z defs as we might desire, because we do not
1408 +    # link with -lc, and that would cause any symbols used from libc to
1409 +    # always be unresolved, which means just about no library would
1410 +    # ever link correctly.  If we're not using GNU ld we use -z text
1411 +    # though, which does catch some bad symbols but isn't as heavy-handed
1412 +    # as -z defs.
1413 +    # For security reasons, it is highly recommended that you always
1414 +    # use absolute paths for naming shared libraries, and exclude the
1415 +    # DT_RUNPATH tag from executables and libraries.  But doing so
1416 +    # requires that you compile everything twice, which is a pain.
1417 +    # So that behaviour is only enabled if SCOABSPATH is set to a
1418 +    # non-empty value in the environment.  Most likely only useful for
1419 +    # creating official distributions of packages.
1420 +    # This is a hack until libtool officially supports absolute path
1421 +    # names for shared libraries.
1422 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1423 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
1424 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1425 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1426 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1427 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1428 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1429 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1430 +    runpath_var='LD_RUN_PATH'
1431 +
1432 +    case $cc_basename in
1433 +      CC*)
1434 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1435 +       _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'
1436 +       ;;
1437 +      *)
1438 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1439 +       _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'
1440 +       ;;
1441 +    esac
1442      ;;
1443    tandem*)
1444      case $cc_basename in
1445 @@ -3699,8 +3700,6 @@
1446  AC_LIBTOOL_PROG_LD_SHLIBS($1)
1447  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1448  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1449 -AC_LIBTOOL_SYS_LIB_STRIP
1450 -AC_LIBTOOL_DLOPEN_SELF($1)
1451  
1452  AC_LIBTOOL_CONFIG($1)
1453  
1454 @@ -3718,7 +3717,7 @@
1455  ])# AC_LIBTOOL_LANG_CXX_CONFIG
1456  
1457  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1458 -# ------------------------
1459 +# ------------------------------------
1460  # Figure out "hidden" library dependencies from verbose
1461  # compiler output when linking a shared library.
1462  # Parse the compiler output and extract the necessary
1463 @@ -3772,7 +3771,7 @@
1464    # The `*' in the case matches for architectures that use `case' in
1465    # $output_verbose_cmd can trigger glob expansion during the loop
1466    # eval without this substitution.
1467 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
1468 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1469  
1470    for p in `eval $output_verbose_link_cmd`; do
1471      case $p in
1472 @@ -3848,13 +3847,37 @@
1473  
1474  $rm -f confest.$objext
1475  
1476 +# PORTME: override above test on systems where it is broken
1477 +ifelse([$1],[CXX],
1478 +[case $host_os in
1479 +interix3*)
1480 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
1481 +  # hack all around it, let's just trust "g++" to DTRT.
1482 +  _LT_AC_TAGVAR(predep_objects,$1)=
1483 +  _LT_AC_TAGVAR(postdep_objects,$1)=
1484 +  _LT_AC_TAGVAR(postdeps,$1)=
1485 +  ;;
1486 +
1487 +solaris*)
1488 +  case $cc_basename in
1489 +  CC*)
1490 +    # Adding this requires a known-good setup of shared libraries for
1491 +    # Sun compiler versions before 5.6, else PIC objects from an old
1492 +    # archive will be linked into the output, leading to subtle bugs.
1493 +    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
1494 +    ;;
1495 +  esac
1496 +  ;;
1497 +esac
1498 +])
1499 +
1500  case " $_LT_AC_TAGVAR(postdeps, $1) " in
1501  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
1502  esac
1503  ])# AC_LIBTOOL_POSTDEP_PREDEP
1504  
1505  # AC_LIBTOOL_LANG_F77_CONFIG
1506 -# ------------------------
1507 +# --------------------------
1508  # Ensure that the configuration vars for the C compiler are
1509  # suitably defined.  Those variables are subsequently used by
1510  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1511 @@ -3917,7 +3940,7 @@
1512  
1513  # On AIX, shared libraries and static libraries use the same namespace, and
1514  # are all built from PIC.
1515 -case "$host_os" in
1516 +case $host_os in
1517  aix3*)
1518    test "$enable_shared" = yes && enable_static=no
1519    if test -n "$RANLIB"; then
1520 @@ -3938,8 +3961,6 @@
1521  test "$enable_shared" = yes || enable_static=yes
1522  AC_MSG_RESULT([$enable_static])
1523  
1524 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
1525 -
1526  _LT_AC_TAGVAR(GCC, $1)="$G77"
1527  _LT_AC_TAGVAR(LD, $1)="$LD"
1528  
1529 @@ -3949,8 +3970,6 @@
1530  AC_LIBTOOL_PROG_LD_SHLIBS($1)
1531  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1532  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1533 -AC_LIBTOOL_SYS_LIB_STRIP
1534 -
1535  
1536  AC_LIBTOOL_CONFIG($1)
1537  
1538 @@ -4007,8 +4026,6 @@
1539  AC_LIBTOOL_PROG_LD_SHLIBS($1)
1540  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1541  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1542 -AC_LIBTOOL_SYS_LIB_STRIP
1543 -AC_LIBTOOL_DLOPEN_SELF($1)
1544  
1545  AC_LIBTOOL_CONFIG($1)
1546  
1547 @@ -4018,7 +4035,7 @@
1548  
1549  
1550  # AC_LIBTOOL_LANG_RC_CONFIG
1551 -# --------------------------
1552 +# -------------------------
1553  # Ensure that the configuration vars for the Windows resource compiler are
1554  # suitably defined.  Those variables are subsequently used by
1555  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1556 @@ -4081,7 +4098,7 @@
1557    # Now quote all the things that may contain metacharacters while being
1558    # careful not to overquote the AC_SUBSTed values.  We take copies of the
1559    # variables and quote the copies for generation of the libtool script.
1560 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1561 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1562      SED SHELL STRIP \
1563      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1564      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1565 @@ -4250,6 +4267,9 @@
1566  # A C compiler.
1567  LTCC=$lt_LTCC
1568  
1569 +# LTCC compiler flags.
1570 +LTCFLAGS=$lt_LTCFLAGS
1571 +
1572  # A language-specific compiler.
1573  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
1574  
1575 @@ -4610,7 +4630,7 @@
1576    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1577    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'"
1578    ;;
1579 -linux*)
1580 +linux* | k*bsd*-gnu)
1581    if test "$host_cpu" = ia64; then
1582      symcode='[[ABCDGIRSTW]]'
1583      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1584 @@ -4623,9 +4643,18 @@
1585  osf*)
1586    symcode='[[BCDEGQRST]]'
1587    ;;
1588 -solaris* | sysv5*)
1589 +solaris*)
1590    symcode='[[BDRT]]'
1591    ;;
1592 +sco3.2v5*)
1593 +  symcode='[[DT]]'
1594 +  ;;
1595 +sysv4.2uw2*)
1596 +  symcode='[[DT]]'
1597 +  ;;
1598 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
1599 +  symcode='[[ABDT]]'
1600 +  ;;
1601  sysv4)
1602    symcode='[[DFNSTU]]'
1603    ;;
1604 @@ -4808,6 +4837,10 @@
1605        # DJGPP does not support shared libraries at all
1606        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1607        ;;
1608 +    interix3*)
1609 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1610 +      # Instead, we relocate shared libraries at runtime.
1611 +      ;;
1612      sysv4*MP*)
1613        if test -d /usr/nec; then
1614         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1615 @@ -4816,7 +4849,7 @@
1616      hpux*)
1617        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1618        # not for PA HP-UX.
1619 -      case "$host_cpu" in
1620 +      case $host_cpu in
1621        hppa*64*|ia64*)
1622         ;;
1623        *)
1624 @@ -4870,22 +4903,22 @@
1625             ;;
1626         esac
1627         ;;
1628 -      freebsd* | kfreebsd*-gnu | dragonfly*)
1629 +      freebsd* | dragonfly*)
1630         # FreeBSD uses GNU C++
1631         ;;
1632        hpux9* | hpux10* | hpux11*)
1633         case $cc_basename in
1634           CC*)
1635             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1636 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1637 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1638             if test "$host_cpu" != ia64; then
1639               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1640             fi
1641             ;;
1642           aCC*)
1643             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1644 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1645 -           case "$host_cpu" in
1646 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1647 +           case $host_cpu in
1648             hppa*64*|ia64*)
1649               # +Z the default
1650               ;;
1651 @@ -4898,6 +4931,10 @@
1652             ;;
1653         esac
1654         ;;
1655 +      interix*)
1656 +       # This is c89, which is MS Visual C++ (no shared libs)
1657 +       # Anyone wants to do a port?
1658 +       ;;
1659        irix5* | irix6* | nonstopux*)
1660         case $cc_basename in
1661           CC*)
1662 @@ -4909,7 +4946,7 @@
1663             ;;
1664         esac
1665         ;;
1666 -      linux*)
1667 +      linux* | k*bsd*-gnu)
1668         case $cc_basename in
1669           KCC*)
1670             # KAI C++ Compiler
1671 @@ -4926,7 +4963,7 @@
1672             # Portland Group C++ compiler.
1673             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1674             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1675 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1676 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1677             ;;
1678           cxx*)
1679             # Compaq C++
1680 @@ -4952,7 +4989,7 @@
1681             ;;
1682         esac
1683         ;;
1684 -      netbsd*)
1685 +      netbsd* | netbsdelf*-gnu)
1686         ;;
1687        osf3* | osf4* | osf5*)
1688         case $cc_basename in
1689 @@ -4977,15 +5014,6 @@
1690         ;;
1691        psos*)
1692         ;;
1693 -      sco*)
1694 -       case $cc_basename in
1695 -         CC*)
1696 -           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1697 -           ;;
1698 -         *)
1699 -           ;;
1700 -       esac
1701 -       ;;
1702        solaris*)
1703         case $cc_basename in
1704           CC*)
1705 @@ -5027,7 +5055,14 @@
1706             ;;
1707         esac
1708         ;;
1709 -      unixware*)
1710 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1711 +       case $cc_basename in
1712 +         CC*)
1713 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1714 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1715 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1716 +           ;;
1717 +       esac
1718         ;;
1719        vxworks*)
1720         ;;
1721 @@ -5074,6 +5109,11 @@
1722        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1723        ;;
1724  
1725 +    interix3*)
1726 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1727 +      # Instead, we relocate shared libraries at runtime.
1728 +      ;;
1729 +
1730      msdosdjgpp*)
1731        # Just because we use GCC doesn't mean we suddenly get shared libraries
1732        # on systems that don't support them.
1733 @@ -5090,7 +5130,7 @@
1734      hpux*)
1735        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1736        # not for PA HP-UX.
1737 -      case "$host_cpu" in
1738 +      case $host_cpu in
1739        hppa*64*|ia64*)
1740         # +Z the default
1741         ;;
1742 @@ -5137,7 +5177,7 @@
1743        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1744        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1745        # not for PA HP-UX.
1746 -      case "$host_cpu" in
1747 +      case $host_cpu in
1748        hppa*64*|ia64*)
1749         # +Z the default
1750         ;;
1751 @@ -5160,19 +5200,19 @@
1752        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1753        ;;
1754  
1755 -    linux*)
1756 +    linux* | k*bsd*-gnu)
1757        case $cc_basename in
1758        icc* | ecc*)
1759         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1760         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1761         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1762          ;;
1763 -      pgcc* | pgf77* | pgf90*)
1764 +      pgcc* | pgf77* | pgf90* | pgf95*)
1765          # Portland Group compilers (*not* the Pentium gcc compiler,
1766         # which looks to be a dead project)
1767         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1768         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1769 -       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1770 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1771          ;;
1772        ccc*)
1773          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1774 @@ -5188,11 +5228,6 @@
1775        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1776        ;;
1777  
1778 -    sco3.2v5*)
1779 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
1780 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
1781 -      ;;
1782 -
1783      solaris*)
1784        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1785        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1786 @@ -5210,7 +5245,7 @@
1787        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1788        ;;
1789  
1790 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1791 +    sysv4 | sysv4.2uw2* | sysv4.3*)
1792        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1793        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1794        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1795 @@ -5223,6 +5258,12 @@
1796        fi
1797        ;;
1798  
1799 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1800 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1801 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1802 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1803 +      ;;
1804 +
1805      unicos*)
1806        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1807        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1808 @@ -5255,7 +5296,7 @@
1809      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1810       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
1811  fi
1812 -case "$host_os" in
1813 +case $host_os in
1814    # For platforms which do not support PIC, -DPIC is meaningless:
1815    *djgpp*)
1816      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1817 @@ -5264,6 +5305,16 @@
1818      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
1819      ;;
1820  esac
1821 +
1822 +#
1823 +# Check to make sure the static flag actually works.
1824 +#
1825 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
1826 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
1827 +  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1828 +  $lt_tmp_static_flag,
1829 +  [],
1830 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1831  ])
1832  
1833  
1834 @@ -5290,6 +5341,9 @@
1835    cygwin* | mingw*)
1836      _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'
1837    ;;
1838 +  linux* | k*bsd*-gnu)
1839 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1840 +  ;;
1841    *)
1842      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1843    ;;
1844 @@ -5342,6 +5396,10 @@
1845        with_gnu_ld=no
1846      fi
1847      ;;
1848 +  interix*)
1849 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
1850 +    with_gnu_ld=yes
1851 +    ;;
1852    openbsd*)
1853      with_gnu_ld=no
1854      ;;
1855 @@ -5351,7 +5409,7 @@
1856    if test "$with_gnu_ld" = yes; then
1857      # If archive_cmds runs LD, not CC, wlarc should be empty
1858      wlarc='${wl}'
1859 -    
1860 +
1861      # Set some defaults for GNU ld with shared library support. These
1862      # are reset later if shared libraries are not supported. Putting them
1863      # here allows them to be overridden if necessary.
1864 @@ -5372,7 +5430,7 @@
1865        *\ 2.11.*) ;; # other 2.11 versions
1866        *) supports_anon_versioning=yes ;;
1867      esac
1868 -    
1869 +
1870      # See if GNU ld supports shared libraries.
1871      case $host_os in
1872      aix3* | aix4* | aix5*)
1873 @@ -5426,7 +5484,7 @@
1874        _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'
1875  
1876        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1877 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1878 +        _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'
1879         # If the export-symbols file already is a .def file (1st line
1880         # is EXPORTS), use it as is; otherwise, prepend...
1881         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1882 @@ -5435,22 +5493,37 @@
1883           echo EXPORTS > $output_objdir/$soname.def;
1884           cat $export_symbols >> $output_objdir/$soname.def;
1885         fi~
1886 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
1887 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1888        else
1889         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1890        fi
1891        ;;
1892  
1893 -    linux*)
1894 +    interix3*)
1895 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1896 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1897 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1898 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1899 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1900 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
1901 +      # default) and relocated if they conflict, which is a slow very memory
1902 +      # consuming and fragmenting process.  To avoid this, we pick a random,
1903 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1904 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1905 +      _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'
1906 +      _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'
1907 +      ;;
1908 +
1909 +    linux* | k*bsd*-gnu)
1910        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1911         tmp_addflag=
1912         case $cc_basename,$host_cpu in
1913         pgcc*)                          # Portland Group C compiler
1914 -         _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'
1915 +         _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'
1916           tmp_addflag=' $pic_flag'
1917           ;;
1918 -       pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
1919 -         _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'
1920 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
1921 +         _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'
1922           tmp_addflag=' $pic_flag -Mnomain' ;;
1923         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
1924           tmp_addflag=' -i_dynamic' ;;
1925 @@ -5467,12 +5540,13 @@
1926    $echo "local: *; };" >> $output_objdir/$libname.ver~
1927           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1928         fi
1929 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1930        else
1931         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1932        fi
1933        ;;
1934  
1935 -    netbsd*)
1936 +    netbsd* | netbsdelf*-gnu)
1937        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1938         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1939         wlarc=
1940 @@ -5482,7 +5556,7 @@
1941        fi
1942        ;;
1943  
1944 -    solaris* | sysv5*)
1945 +    solaris*)
1946        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1947         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1948         cat <<EOF 1>&2
1949 @@ -5503,6 +5577,33 @@
1950        fi
1951        ;;
1952  
1953 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1954 +      case `$LD -v 2>&1` in
1955 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
1956 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
1957 +       cat <<_LT_EOF 1>&2
1958 +
1959 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
1960 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
1961 +*** is disabling shared libraries support.  We urge you to upgrade GNU
1962 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
1963 +*** your PATH or compiler configuration so that the native linker is
1964 +*** used, and then restart.
1965 +
1966 +_LT_EOF
1967 +       ;;
1968 +       *)
1969 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1970 +           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1971 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
1972 +           _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'
1973 +         else
1974 +           _LT_AC_TAGVAR(ld_shlibs, $1)=no
1975 +         fi
1976 +       ;;
1977 +      esac
1978 +      ;;
1979 +
1980      sunos4*)
1981        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1982        wlarc=
1983 @@ -5536,7 +5637,7 @@
1984        # Note: this linker hardcodes the directories in LIBPATH if there
1985        # are no directories specified by -L.
1986        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1987 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
1988 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1989         # Neither direct hardcoding nor static linking is supported with a
1990         # broken collect2.
1991         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1992 @@ -5570,6 +5671,7 @@
1993             break
1994           fi
1995           done
1996 +         ;;
1997         esac
1998  
1999         exp_sym_flag='-bexport'
2000 @@ -5607,6 +5709,7 @@
2001           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2002           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2003           fi
2004 +         ;;
2005         esac
2006         shared_flag='-shared'
2007         if test "$aix_use_runtimelinking" = yes; then
2008 @@ -5619,11 +5722,11 @@
2009         # chokes on -Wl,-G. The following line is correct:
2010           shared_flag='-G'
2011         else
2012 -       if test "$aix_use_runtimelinking" = yes; then
2013 +         if test "$aix_use_runtimelinking" = yes; then
2014             shared_flag='${wl}-G'
2015           else
2016             shared_flag='${wl}-bM:SRE'
2017 -       fi
2018 +         fi
2019         fi
2020        fi
2021  
2022 @@ -5637,12 +5740,12 @@
2023         # Determine the default libpath from the value encoded in an empty executable.
2024         _LT_AC_SYS_LIBPATH_AIX
2025         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2026 -       _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"
2027 +       _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"
2028         else
2029         if test "$host_cpu" = ia64; then
2030           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2031           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2032 -         _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"
2033 +         _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"
2034         else
2035          # Determine the default libpath from the value encoded in an empty executable.
2036          _LT_AC_SYS_LIBPATH_AIX
2037 @@ -5651,13 +5754,11 @@
2038           # -berok will link without error, but may produce a broken library.
2039           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2040           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2041 -         # -bexpall does not export symbols beginning with underscore (_)
2042 -         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2043           # Exported symbols can be pulled into shared objects from archives
2044 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2045 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2046           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2047 -         # This is similar to how AIX traditionally builds it's shared libraries.
2048 -         _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'
2049 +         # This is similar to how AIX traditionally builds its shared libraries.
2050 +         _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'
2051         fi
2052        fi
2053        ;;
2054 @@ -5696,7 +5797,7 @@
2055        ;;
2056  
2057      darwin* | rhapsody*)
2058 -      case "$host_os" in
2059 +      case $host_os in
2060          rhapsody* | darwin1.[[012]])
2061           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2062           ;;
2063 @@ -5725,7 +5826,7 @@
2064         output_verbose_link_cmd='echo'
2065          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2066        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2067 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2068 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2069        _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}'
2070        _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}'
2071      else
2072 @@ -5734,7 +5835,7 @@
2073           output_verbose_link_cmd='echo'
2074           _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'
2075           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2076 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2077 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2078           _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}'
2079            _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}'
2080            ;;
2081 @@ -5775,7 +5876,7 @@
2082        ;;
2083  
2084      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2085 -    freebsd* | kfreebsd*-gnu | dragonfly*)
2086 +    freebsd* | dragonfly*)
2087        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2088        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2089        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2090 @@ -5798,47 +5899,62 @@
2091        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2092        ;;
2093  
2094 -    hpux10* | hpux11*)
2095 +    hpux10*)
2096        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2097 -       case "$host_cpu" in
2098 -       hppa*64*|ia64*)
2099 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2100 +      else
2101 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
2102 +      fi
2103 +      if test "$with_gnu_ld" = no; then
2104 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2105 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2106 +
2107 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2108 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2109 +
2110 +       # hardcode_minus_L: Not really in the search PATH,
2111 +       # but as the default location of the library.
2112 +       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2113 +      fi
2114 +      ;;
2115 +
2116 +    hpux11*)
2117 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2118 +       case $host_cpu in
2119 +       hppa*64*)
2120           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2121           ;;
2122 +       ia64*)
2123 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2124 +         ;;
2125         *)
2126           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2127           ;;
2128         esac
2129        else
2130 -       case "$host_cpu" in
2131 -       hppa*64*|ia64*)
2132 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
2133 +       case $host_cpu in
2134 +       hppa*64*)
2135 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2136 +         ;;
2137 +       ia64*)
2138 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2139           ;;
2140         *)
2141 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
2142 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2143           ;;
2144         esac
2145        fi
2146        if test "$with_gnu_ld" = no; then
2147 -       case "$host_cpu" in
2148 -       hppa*64*)
2149 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2150 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2151 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2152 +
2153 +       case $host_cpu in
2154 +       hppa*64*|ia64*)
2155           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2156 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2157           _LT_AC_TAGVAR(hardcode_direct, $1)=no
2158           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2159           ;;
2160 -       ia64*)
2161 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2162 -         _LT_AC_TAGVAR(hardcode_direct, $1)=no
2163 -         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2164 -
2165 -         # hardcode_minus_L: Not really in the search PATH,
2166 -         # but as the default location of the library.
2167 -         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2168 -         ;;
2169         *)
2170 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2171 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2172           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2173           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2174  
2175 @@ -5862,7 +5978,7 @@
2176        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2177        ;;
2178  
2179 -    netbsd*)
2180 +    netbsd* | netbsdelf*-gnu)
2181        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2182         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
2183        else
2184 @@ -5940,14 +6056,6 @@
2185        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2186        ;;
2187  
2188 -    sco3.2v5*)
2189 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2190 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2191 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2192 -      runpath_var=LD_RUN_PATH
2193 -      hardcode_runpath_var=yes
2194 -      ;;
2195 -
2196      solaris*)
2197        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
2198        if test "$GCC" = yes; then
2199 @@ -6033,36 +6141,45 @@
2200        fi
2201        ;;
2202  
2203 -    sysv4.2uw2*)
2204 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2205 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2206 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2207 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
2208 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2209 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2210        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2211 -      hardcode_runpath_var=yes
2212 -      runpath_var=LD_RUN_PATH
2213 -      ;;
2214 +      runpath_var='LD_RUN_PATH'
2215  
2216 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
2217 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
2218        if test "$GCC" = yes; then
2219 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2220 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2221 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2222        else
2223 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2224 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2225 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2226        fi
2227 -      runpath_var='LD_RUN_PATH'
2228 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2229        ;;
2230  
2231 -    sysv5*)
2232 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
2233 -      # $CC -shared without GNU ld will not create a library from C++
2234 -      # object files and a static libstdc++, better avoid it by now
2235 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2236 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2237 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2238 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2239 +    sysv5* | sco3.2v5* | sco5v6*)
2240 +      # Note: We can NOT use -z defs as we might desire, because we do not
2241 +      # link with -lc, and that would cause any symbols used from libc to
2242 +      # always be unresolved, which means just about no library would
2243 +      # ever link correctly.  If we're not using GNU ld we use -z text
2244 +      # though, which does catch some bad symbols but isn't as heavy-handed
2245 +      # as -z defs.
2246 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2247 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2248 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2249        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2250 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2251 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2252 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2253 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2254        runpath_var='LD_RUN_PATH'
2255 +
2256 +      if test "$GCC" = yes; then
2257 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2258 +       _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'
2259 +      else
2260 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2261 +       _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'
2262 +      fi
2263        ;;
2264  
2265      uts4*)
2266 @@ -6080,11 +6197,6 @@
2267  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
2268  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2269  
2270 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2271 -if test "$GCC" = yes; then
2272 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2273 -fi
2274 -
2275  #
2276  # Do we need to explicitly link libc?
2277  #
2278 @@ -6112,6 +6224,7 @@
2279          libobjs=conftest.$ac_objext
2280          deplibs=
2281          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
2282 +       pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
2283          compiler_flags=-v
2284          linker_flags=-v
2285          verstring=
2286 --- ./config/config.guess       2005-11-26 20:29:02.000000000 +0100
2287 +++ ./config/config.guess       2006-08-10 17:17:12.000000000 +0200
2288 @@ -1,9 +1,10 @@
2289  #! /bin/sh
2290  # Attempt to guess a canonical system name.
2291  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2292 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
2293 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
2294 +#   Inc.
2295  
2296 -timestamp='2005-03-24'
2297 +timestamp='2006-07-02'
2298  
2299  # This file is free software; you can redistribute it and/or modify it
2300  # under the terms of the GNU General Public License as published by
2301 @@ -17,13 +18,15 @@
2302  #
2303  # You should have received a copy of the GNU General Public License
2304  # along with this program; if not, write to the Free Software
2305 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2306 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
2307 +# 02110-1301, USA.
2308  #
2309  # As a special exception to the GNU General Public License, if you
2310  # distribute this file as part of a program that contains a
2311  # configuration script generated by Autoconf, you may include it under
2312  # the same distribution terms that you use for the rest of that program.
2313  
2314 +
2315  # Originally written by Per Bothner <per@bothner.com>.
2316  # Please send patches to <config-patches@gnu.org>.  Submit a context
2317  # diff and a properly formatted ChangeLog entry.
2318 @@ -66,11 +69,11 @@
2319  while test $# -gt 0 ; do
2320    case $1 in
2321      --time-stamp | --time* | -t )
2322 -       echo "$timestamp" ; exit 0 ;;
2323 +       echo "$timestamp" ; exit ;;
2324      --version | -v )
2325 -       echo "$version" ; exit 0 ;;
2326 +       echo "$version" ; exit ;;
2327      --help | --h* | -h )
2328 -       echo "$usage"; exit 0 ;;
2329 +       echo "$usage"; exit ;;
2330      -- )     # Stop option processing
2331         shift; break ;;
2332      - )        # Use stdin as input.
2333 @@ -104,7 +107,7 @@
2334  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
2335  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
2336  : ${TMPDIR=/tmp} ;
2337 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
2338 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
2339   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
2340   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
2341   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
2342 @@ -123,7 +126,7 @@
2343         ;;
2344   ,,*)   CC_FOR_BUILD=$CC ;;
2345   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
2346 -esac ;'
2347 +esac ; set_cc_for_build= ;'
2348  
2349  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
2350  # (ghazi@noc.rutgers.edu 1994-08-24)
2351 @@ -136,23 +139,6 @@
2352  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
2353  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
2354  
2355 -if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
2356 -       eval $set_cc_for_build
2357 -       cat << EOF > $dummy.c
2358 -       #include <features.h>
2359 -       #ifdef __UCLIBC__
2360 -       # ifdef __UCLIBC_CONFIG_VERSION__
2361 -       LIBC=uclibc __UCLIBC_CONFIG_VERSION__
2362 -       # else
2363 -       LIBC=uclibc
2364 -       # endif
2365 -       #else
2366 -       LIBC=gnu
2367 -       #endif
2368 -EOF
2369 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
2370 -fi
2371 -
2372  # Note: order is significant - the case branches are not exclusive.
2373  
2374  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
2375 @@ -213,55 +199,23 @@
2376         # contains redundant information, the shorter form:
2377         # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2378         echo "${machine}-${os}${release}"
2379 -       exit 0 ;;
2380 -    amd64:OpenBSD:*:*)
2381 -       echo x86_64-unknown-openbsd${UNAME_RELEASE}
2382 -       exit 0 ;;
2383 -    amiga:OpenBSD:*:*)
2384 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
2385 -       exit 0 ;;
2386 -    cats:OpenBSD:*:*)
2387 -       echo arm-unknown-openbsd${UNAME_RELEASE}
2388 -       exit 0 ;;
2389 -    hp300:OpenBSD:*:*)
2390 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
2391 -       exit 0 ;;
2392 -    luna88k:OpenBSD:*:*)
2393 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
2394 -       exit 0 ;;
2395 -    mac68k:OpenBSD:*:*)
2396 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
2397 -       exit 0 ;;
2398 -    macppc:OpenBSD:*:*)
2399 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
2400 -       exit 0 ;;
2401 -    mvme68k:OpenBSD:*:*)
2402 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
2403 -       exit 0 ;;
2404 -    mvme88k:OpenBSD:*:*)
2405 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
2406 -       exit 0 ;;
2407 -    mvmeppc:OpenBSD:*:*)
2408 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
2409 -       exit 0 ;;
2410 -    sgi:OpenBSD:*:*)
2411 -       echo mips64-unknown-openbsd${UNAME_RELEASE}
2412 -       exit 0 ;;
2413 -    sun3:OpenBSD:*:*)
2414 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
2415 -       exit 0 ;;
2416 +       exit ;;
2417      *:OpenBSD:*:*)
2418 -       echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
2419 -       exit 0 ;;
2420 +       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
2421 +       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
2422 +       exit ;;
2423      *:ekkoBSD:*:*)
2424         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
2425 -       exit 0 ;;
2426 +       exit ;;
2427 +    *:SolidBSD:*:*)
2428 +       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
2429 +       exit ;;
2430      macppc:MirBSD:*:*)
2431 -       echo powerppc-unknown-mirbsd${UNAME_RELEASE}
2432 -       exit 0 ;;
2433 +       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
2434 +       exit ;;
2435      *:MirBSD:*:*)
2436         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
2437 -       exit 0 ;;
2438 +       exit ;;
2439      alpha:OSF1:*:*)
2440         case $UNAME_RELEASE in
2441         *4.0)
2442 @@ -314,40 +268,43 @@
2443         # A Xn.n version is an unreleased experimental baselevel.
2444         # 1.2 uses "1.2" for uname -r.
2445         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2446 -       exit 0 ;;
2447 +       exit ;;
2448      Alpha\ *:Windows_NT*:*)
2449         # How do we know it's Interix rather than the generic POSIX subsystem?
2450         # Should we change UNAME_MACHINE based on the output of uname instead
2451         # of the specific Alpha model?
2452         echo alpha-pc-interix
2453 -       exit 0 ;;
2454 +       exit ;;
2455      21064:Windows_NT:50:3)
2456         echo alpha-dec-winnt3.5
2457 -       exit 0 ;;
2458 +       exit ;;
2459      Amiga*:UNIX_System_V:4.0:*)
2460         echo m68k-unknown-sysv4
2461 -       exit 0;;
2462 +       exit ;;
2463      *:[Aa]miga[Oo][Ss]:*:*)
2464         echo ${UNAME_MACHINE}-unknown-amigaos
2465 -       exit 0 ;;
2466 +       exit ;;
2467      *:[Mm]orph[Oo][Ss]:*:*)
2468         echo ${UNAME_MACHINE}-unknown-morphos
2469 -       exit 0 ;;
2470 +       exit ;;
2471      *:OS/390:*:*)
2472         echo i370-ibm-openedition
2473 -       exit 0 ;;
2474 +       exit ;;
2475      *:z/VM:*:*)
2476         echo s390-ibm-zvmoe
2477 -       exit 0 ;;
2478 +       exit ;;
2479      *:OS400:*:*)
2480          echo powerpc-ibm-os400
2481 -       exit 0 ;;
2482 +       exit ;;
2483      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
2484         echo arm-acorn-riscix${UNAME_RELEASE}
2485 -       exit 0;;
2486 +       exit ;;
2487 +    arm:riscos:*:*|arm:RISCOS:*:*)
2488 +       echo arm-unknown-riscos
2489 +       exit ;;
2490      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
2491         echo hppa1.1-hitachi-hiuxmpp
2492 -       exit 0;;
2493 +       exit ;;
2494      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
2495         # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
2496         if test "`(/bin/universe) 2>/dev/null`" = att ; then
2497 @@ -355,32 +312,32 @@
2498         else
2499                 echo pyramid-pyramid-bsd
2500         fi
2501 -       exit 0 ;;
2502 +       exit ;;
2503      NILE*:*:*:dcosx)
2504         echo pyramid-pyramid-svr4
2505 -       exit 0 ;;
2506 +       exit ;;
2507      DRS?6000:unix:4.0:6*)
2508         echo sparc-icl-nx6
2509 -       exit 0 ;;
2510 +       exit ;;
2511      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
2512         case `/usr/bin/uname -p` in
2513 -           sparc) echo sparc-icl-nx7 && exit 0 ;;
2514 +           sparc) echo sparc-icl-nx7; exit ;;
2515         esac ;;
2516      sun4H:SunOS:5.*:*)
2517         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2518 -       exit 0 ;;
2519 +       exit ;;
2520      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
2521         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2522 -       exit 0 ;;
2523 +       exit ;;
2524      i86pc:SunOS:5.*:*)
2525         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2526 -       exit 0 ;;
2527 +       exit ;;
2528      sun4*:SunOS:6*:*)
2529         # According to config.sub, this is the proper way to canonicalize
2530         # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
2531         # it's likely to be more like Solaris than SunOS4.
2532         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2533 -       exit 0 ;;
2534 +       exit ;;
2535      sun4*:SunOS:*:*)
2536         case "`/usr/bin/arch -k`" in
2537             Series*|S4*)
2538 @@ -389,10 +346,10 @@
2539         esac
2540         # Japanese Language versions have a version number like `4.1.3-JL'.
2541         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
2542 -       exit 0 ;;
2543 +       exit ;;
2544      sun3*:SunOS:*:*)
2545         echo m68k-sun-sunos${UNAME_RELEASE}
2546 -       exit 0 ;;
2547 +       exit ;;
2548      sun*:*:4.2BSD:*)
2549         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
2550         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
2551 @@ -404,10 +361,10 @@
2552                 echo sparc-sun-sunos${UNAME_RELEASE}
2553                 ;;
2554         esac
2555 -       exit 0 ;;
2556 +       exit ;;
2557      aushp:SunOS:*:*)
2558         echo sparc-auspex-sunos${UNAME_RELEASE}
2559 -       exit 0 ;;
2560 +       exit ;;
2561      # The situation for MiNT is a little confusing.  The machine name
2562      # can be virtually everything (everything which is not
2563      # "atarist" or "atariste" at least should have a processor
2564 @@ -418,40 +375,40 @@
2565      # be no problem.
2566      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
2567          echo m68k-atari-mint${UNAME_RELEASE}
2568 -       exit 0 ;;
2569 +       exit ;;
2570      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
2571         echo m68k-atari-mint${UNAME_RELEASE}
2572 -        exit 0 ;;
2573 +        exit ;;
2574      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
2575          echo m68k-atari-mint${UNAME_RELEASE}
2576 -       exit 0 ;;
2577 +       exit ;;
2578      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
2579          echo m68k-milan-mint${UNAME_RELEASE}
2580 -        exit 0 ;;
2581 +        exit ;;
2582      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
2583          echo m68k-hades-mint${UNAME_RELEASE}
2584 -        exit 0 ;;
2585 +        exit ;;
2586      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
2587          echo m68k-unknown-mint${UNAME_RELEASE}
2588 -        exit 0 ;;
2589 +        exit ;;
2590      m68k:machten:*:*)
2591         echo m68k-apple-machten${UNAME_RELEASE}
2592 -       exit 0 ;;
2593 +       exit ;;
2594      powerpc:machten:*:*)
2595         echo powerpc-apple-machten${UNAME_RELEASE}
2596 -       exit 0 ;;
2597 +       exit ;;
2598      RISC*:Mach:*:*)
2599         echo mips-dec-mach_bsd4.3
2600 -       exit 0 ;;
2601 +       exit ;;
2602      RISC*:ULTRIX:*:*)
2603         echo mips-dec-ultrix${UNAME_RELEASE}
2604 -       exit 0 ;;
2605 +       exit ;;
2606      VAX*:ULTRIX*:*:*)
2607         echo vax-dec-ultrix${UNAME_RELEASE}
2608 -       exit 0 ;;
2609 +       exit ;;
2610      2020:CLIX:*:* | 2430:CLIX:*:*)
2611         echo clipper-intergraph-clix${UNAME_RELEASE}
2612 -       exit 0 ;;
2613 +       exit ;;
2614      mips:*:*:UMIPS | mips:*:*:RISCos)
2615         eval $set_cc_for_build
2616         sed 's/^        //' << EOF >$dummy.c
2617 @@ -475,32 +432,33 @@
2618           exit (-1);
2619         }
2620  EOF
2621 -       $CC_FOR_BUILD -o $dummy $dummy.c \
2622 -         && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
2623 -         && exit 0
2624 +       $CC_FOR_BUILD -o $dummy $dummy.c &&
2625 +         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
2626 +         SYSTEM_NAME=`$dummy $dummyarg` &&
2627 +           { echo "$SYSTEM_NAME"; exit; }
2628         echo mips-mips-riscos${UNAME_RELEASE}
2629 -       exit 0 ;;
2630 +       exit ;;
2631      Motorola:PowerMAX_OS:*:*)
2632         echo powerpc-motorola-powermax
2633 -       exit 0 ;;
2634 +       exit ;;
2635      Motorola:*:4.3:PL8-*)
2636         echo powerpc-harris-powermax
2637 -       exit 0 ;;
2638 +       exit ;;
2639      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
2640         echo powerpc-harris-powermax
2641 -       exit 0 ;;
2642 +       exit ;;
2643      Night_Hawk:Power_UNIX:*:*)
2644         echo powerpc-harris-powerunix
2645 -       exit 0 ;;
2646 +       exit ;;
2647      m88k:CX/UX:7*:*)
2648         echo m88k-harris-cxux7
2649 -       exit 0 ;;
2650 +       exit ;;
2651      m88k:*:4*:R4*)
2652         echo m88k-motorola-sysv4
2653 -       exit 0 ;;
2654 +       exit ;;
2655      m88k:*:3*:R3*)
2656         echo m88k-motorola-sysv3
2657 -       exit 0 ;;
2658 +       exit ;;
2659      AViiON:dgux:*:*)
2660          # DG/UX returns AViiON for all architectures
2661          UNAME_PROCESSOR=`/usr/bin/uname -p`
2662 @@ -516,29 +474,29 @@
2663         else
2664             echo i586-dg-dgux${UNAME_RELEASE}
2665         fi
2666 -       exit 0 ;;
2667 +       exit ;;
2668      M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
2669         echo m88k-dolphin-sysv3
2670 -       exit 0 ;;
2671 +       exit ;;
2672      M88*:*:R3*:*)
2673         # Delta 88k system running SVR3
2674         echo m88k-motorola-sysv3
2675 -       exit 0 ;;
2676 +       exit ;;
2677      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
2678         echo m88k-tektronix-sysv3
2679 -       exit 0 ;;
2680 +       exit ;;
2681      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
2682         echo m68k-tektronix-bsd
2683 -       exit 0 ;;
2684 +       exit ;;
2685      *:IRIX*:*:*)
2686         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
2687 -       exit 0 ;;
2688 +       exit ;;
2689      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
2690 -       echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
2691 -       exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
2692 +       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
2693 +       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
2694      i*86:AIX:*:*)
2695         echo i386-ibm-aix
2696 -       exit 0 ;;
2697 +       exit ;;
2698      ia64:AIX:*:*)
2699         if [ -x /usr/bin/oslevel ] ; then
2700                 IBM_REV=`/usr/bin/oslevel`
2701 @@ -546,7 +504,7 @@
2702                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
2703         fi
2704         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
2705 -       exit 0 ;;
2706 +       exit ;;
2707      *:AIX:2:3)
2708         if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
2709                 eval $set_cc_for_build
2710 @@ -561,14 +519,18 @@
2711                         exit(0);
2712                         }
2713  EOF
2714 -               $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2715 -               echo rs6000-ibm-aix3.2.5
2716 +               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
2717 +               then
2718 +                       echo "$SYSTEM_NAME"
2719 +               else
2720 +                       echo rs6000-ibm-aix3.2.5
2721 +               fi
2722         elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
2723                 echo rs6000-ibm-aix3.2.4
2724         else
2725                 echo rs6000-ibm-aix3.2
2726         fi
2727 -       exit 0 ;;
2728 +       exit ;;
2729      *:AIX:*:[45])
2730         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
2731         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
2732 @@ -582,28 +544,28 @@
2733                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
2734         fi
2735         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
2736 -       exit 0 ;;
2737 +       exit ;;
2738      *:AIX:*:*)
2739         echo rs6000-ibm-aix
2740 -       exit 0 ;;
2741 +       exit ;;
2742      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
2743         echo romp-ibm-bsd4.4
2744 -       exit 0 ;;
2745 +       exit ;;
2746      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
2747         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
2748 -       exit 0 ;;                           # report: romp-ibm BSD 4.3
2749 +       exit ;;                             # report: romp-ibm BSD 4.3
2750      *:BOSX:*:*)
2751         echo rs6000-bull-bosx
2752 -       exit 0 ;;
2753 +       exit ;;
2754      DPX/2?00:B.O.S.:*:*)
2755         echo m68k-bull-sysv3
2756 -       exit 0 ;;
2757 +       exit ;;
2758      9000/[34]??:4.3bsd:1.*:*)
2759         echo m68k-hp-bsd
2760 -       exit 0 ;;
2761 +       exit ;;
2762      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
2763         echo m68k-hp-bsd4.4
2764 -       exit 0 ;;
2765 +       exit ;;
2766      9000/[34678]??:HP-UX:*:*)
2767         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
2768         case "${UNAME_MACHINE}" in
2769 @@ -665,9 +627,19 @@
2770         esac
2771         if [ ${HP_ARCH} = "hppa2.0w" ]
2772         then
2773 -           # avoid double evaluation of $set_cc_for_build
2774 -           test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
2775 -           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
2776 +           eval $set_cc_for_build
2777 +
2778 +           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
2779 +           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
2780 +           # generating 64-bit code.  GNU and HP use different nomenclature:
2781 +           #
2782 +           # $ CC_FOR_BUILD=cc ./config.guess
2783 +           # => hppa2.0w-hp-hpux11.23
2784 +           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
2785 +           # => hppa64-hp-hpux11.23
2786 +
2787 +           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
2788 +               grep __LP64__ >/dev/null
2789             then
2790                 HP_ARCH="hppa2.0w"
2791             else
2792 @@ -675,11 +647,11 @@
2793             fi
2794         fi
2795         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
2796 -       exit 0 ;;
2797 +       exit ;;
2798      ia64:HP-UX:*:*)
2799         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
2800         echo ia64-hp-hpux${HPUX_REV}
2801 -       exit 0 ;;
2802 +       exit ;;
2803      3050*:HI-UX:*:*)
2804         eval $set_cc_for_build
2805         sed 's/^        //' << EOF >$dummy.c
2806 @@ -707,161 +679,179 @@
2807           exit (0);
2808         }
2809  EOF
2810 -       $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2811 +       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
2812 +               { echo "$SYSTEM_NAME"; exit; }
2813         echo unknown-hitachi-hiuxwe2
2814 -       exit 0 ;;
2815 +       exit ;;
2816      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
2817         echo hppa1.1-hp-bsd
2818 -       exit 0 ;;
2819 +       exit ;;
2820      9000/8??:4.3bsd:*:*)
2821         echo hppa1.0-hp-bsd
2822 -       exit 0 ;;
2823 +       exit ;;
2824      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
2825         echo hppa1.0-hp-mpeix
2826 -       exit 0 ;;
2827 +       exit ;;
2828      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
2829         echo hppa1.1-hp-osf
2830 -       exit 0 ;;
2831 +       exit ;;
2832      hp8??:OSF1:*:*)
2833         echo hppa1.0-hp-osf
2834 -       exit 0 ;;
2835 +       exit ;;
2836      i*86:OSF1:*:*)
2837         if [ -x /usr/sbin/sysversion ] ; then
2838             echo ${UNAME_MACHINE}-unknown-osf1mk
2839         else
2840             echo ${UNAME_MACHINE}-unknown-osf1
2841         fi
2842 -       exit 0 ;;
2843 +       exit ;;
2844      parisc*:Lites*:*:*)
2845         echo hppa1.1-hp-lites
2846 -       exit 0 ;;
2847 +       exit ;;
2848      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
2849         echo c1-convex-bsd
2850 -        exit 0 ;;
2851 +        exit ;;
2852      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
2853         if getsysinfo -f scalar_acc
2854         then echo c32-convex-bsd
2855         else echo c2-convex-bsd
2856         fi
2857 -        exit 0 ;;
2858 +        exit ;;
2859      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
2860         echo c34-convex-bsd
2861 -        exit 0 ;;
2862 +        exit ;;
2863      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
2864         echo c38-convex-bsd
2865 -        exit 0 ;;
2866 +        exit ;;
2867      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
2868         echo c4-convex-bsd
2869 -        exit 0 ;;
2870 +        exit ;;
2871      CRAY*Y-MP:*:*:*)
2872         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2873 -       exit 0 ;;
2874 +       exit ;;
2875      CRAY*[A-Z]90:*:*:*)
2876         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
2877         | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
2878               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
2879               -e 's/\.[^.]*$/.X/'
2880 -       exit 0 ;;
2881 +       exit ;;
2882      CRAY*TS:*:*:*)
2883         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2884 -       exit 0 ;;
2885 +       exit ;;
2886      CRAY*T3E:*:*:*)
2887         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2888 -       exit 0 ;;
2889 +       exit ;;
2890      CRAY*SV1:*:*:*)
2891         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2892 -       exit 0 ;;
2893 +       exit ;;
2894      *:UNICOS/mp:*:*)
2895         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2896 -       exit 0 ;;
2897 +       exit ;;
2898      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2899         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2900          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2901          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2902          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2903 -        exit 0 ;;
2904 +        exit ;;
2905      5000:UNIX_System_V:4.*:*)
2906          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2907          FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2908          echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2909 -       exit 0 ;;
2910 +       exit ;;
2911      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
2912         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
2913 -       exit 0 ;;
2914 +       exit ;;
2915      sparc*:BSD/OS:*:*)
2916         echo sparc-unknown-bsdi${UNAME_RELEASE}
2917 -       exit 0 ;;
2918 +       exit ;;
2919      *:BSD/OS:*:*)
2920         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
2921 -       exit 0 ;;
2922 +       exit ;;
2923      *:FreeBSD:*:*)
2924 -       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2925 -       exit 0 ;;
2926 +       case ${UNAME_MACHINE} in
2927 +           pc98)
2928 +               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2929 +           amd64)
2930 +               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2931 +           *)
2932 +               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2933 +       esac
2934 +       exit ;;
2935      i*:CYGWIN*:*)
2936         echo ${UNAME_MACHINE}-pc-cygwin
2937 -       exit 0 ;;
2938 +       exit ;;
2939      i*:MINGW*:*)
2940         echo ${UNAME_MACHINE}-pc-mingw32
2941 -       exit 0 ;;
2942 +       exit ;;
2943 +    i*:windows32*:*)
2944 +       # uname -m includes "-pc" on this system.
2945 +       echo ${UNAME_MACHINE}-mingw32
2946 +       exit ;;
2947      i*:PW*:*)
2948         echo ${UNAME_MACHINE}-pc-pw32
2949 -       exit 0 ;;
2950 -    x86:Interix*:[34]*)
2951 -       echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
2952 -       exit 0 ;;
2953 +       exit ;;
2954 +    x86:Interix*:[3456]*)
2955 +       echo i586-pc-interix${UNAME_RELEASE}
2956 +       exit ;;
2957 +    EM64T:Interix*:[3456]*)
2958 +       echo x86_64-unknown-interix${UNAME_RELEASE}
2959 +       exit ;;
2960      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
2961         echo i${UNAME_MACHINE}-pc-mks
2962 -       exit 0 ;;
2963 +       exit ;;
2964      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
2965         # How do we know it's Interix rather than the generic POSIX subsystem?
2966         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
2967         # UNAME_MACHINE based on the output of uname instead of i386?
2968         echo i586-pc-interix
2969 -       exit 0 ;;
2970 +       exit ;;
2971      i*:UWIN*:*)
2972         echo ${UNAME_MACHINE}-pc-uwin
2973 -       exit 0 ;;
2974 -    amd64:CYGWIN*:*:*)
2975 +       exit ;;
2976 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
2977         echo x86_64-unknown-cygwin
2978 -       exit 0 ;;
2979 +       exit ;;
2980      p*:CYGWIN*:*)
2981         echo powerpcle-unknown-cygwin
2982 -       exit 0 ;;
2983 +       exit ;;
2984      prep*:SunOS:5.*:*)
2985         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2986 -       exit 0 ;;
2987 +       exit ;;
2988      *:GNU:*:*)
2989         # the GNU system
2990         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
2991 -       exit 0 ;;
2992 +       exit ;;
2993      *:GNU/*:*:*)
2994         # other systems with GNU libc and userland
2995         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
2996 -       exit 0 ;;
2997 +       exit ;;
2998      i*86:Minix:*:*)
2999         echo ${UNAME_MACHINE}-pc-minix
3000 -       exit 0 ;;
3001 +       exit ;;
3002      arm*:Linux:*:*)
3003 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3004 -       exit 0 ;;
3005 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3006 +       exit ;;
3007 +    avr32*:Linux:*:*)
3008 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3009 +       exit ;;
3010      cris:Linux:*:*)
3011 -       echo cris-axis-linux-${LIBC}
3012 -       exit 0 ;;
3013 +       echo cris-axis-linux-gnu
3014 +       exit ;;
3015      crisv32:Linux:*:*)
3016 -       echo crisv32-axis-linux-${LIBC}
3017 -       exit 0 ;;
3018 +       echo crisv32-axis-linux-gnu
3019 +       exit ;;
3020      frv:Linux:*:*)
3021 -       echo frv-unknown-linux-${LIBC}
3022 -       exit 0 ;;
3023 +       echo frv-unknown-linux-gnu
3024 +       exit ;;
3025      ia64:Linux:*:*)
3026 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3027 -       exit 0 ;;
3028 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3029 +       exit ;;
3030      m32r*:Linux:*:*)
3031 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3032 -       exit 0 ;;
3033 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3034 +       exit ;;
3035      m68*:Linux:*:*)
3036 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3037 -       exit 0 ;;
3038 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3039 +       exit ;;
3040      mips:Linux:*:*)
3041         eval $set_cc_for_build
3042         sed 's/^        //' << EOF >$dummy.c
3043 @@ -878,8 +868,12 @@
3044         #endif
3045         #endif
3046  EOF
3047 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
3048 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
3049 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3050 +           /^CPU/{
3051 +               s: ::g
3052 +               p
3053 +           }'`"
3054 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
3055         ;;
3056      mips64:Linux:*:*)
3057         eval $set_cc_for_build
3058 @@ -897,15 +891,22 @@
3059         #endif
3060         #endif
3061  EOF
3062 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
3063 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
3064 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3065 +           /^CPU/{
3066 +               s: ::g
3067 +               p
3068 +           }'`"
3069 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
3070         ;;
3071 +    or32:Linux:*:*)
3072 +       echo or32-unknown-linux-gnu
3073 +       exit ;;
3074      ppc:Linux:*:*)
3075 -       echo powerpc-unknown-linux-${LIBC}
3076 -       exit 0 ;;
3077 +       echo powerpc-unknown-linux-gnu
3078 +       exit ;;
3079      ppc64:Linux:*:*)
3080 -       echo powerpc64-unknown-linux-${LIBC}
3081 -       exit 0 ;;
3082 +       echo powerpc64-unknown-linux-gnu
3083 +       exit ;;
3084      alpha:Linux:*:*)
3085         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
3086           EV5)   UNAME_MACHINE=alphaev5 ;;
3087 @@ -917,35 +918,38 @@
3088           EV68*) UNAME_MACHINE=alphaev68 ;;
3089          esac
3090         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
3091 -       if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
3092 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3093 -       exit 0 ;;
3094 +       if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
3095 +       echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
3096 +       exit ;;
3097      parisc:Linux:*:* | hppa:Linux:*:*)
3098         # Look for CPU level
3099         case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
3100 -         PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
3101 -         PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
3102 -         *)    echo hppa-unknown-linux-${LIBC} ;;
3103 +         PA7*) echo hppa1.1-unknown-linux-gnu ;;
3104 +         PA8*) echo hppa2.0-unknown-linux-gnu ;;
3105 +         *)    echo hppa-unknown-linux-gnu ;;
3106         esac
3107 -       exit 0 ;;
3108 +       exit ;;
3109      parisc64:Linux:*:* | hppa64:Linux:*:*)
3110 -       echo hppa64-unknown-linux-${LIBC}
3111 -       exit 0 ;;
3112 +       echo hppa64-unknown-linux-gnu
3113 +       exit ;;
3114      s390:Linux:*:* | s390x:Linux:*:*)
3115         echo ${UNAME_MACHINE}-ibm-linux
3116 -       exit 0 ;;
3117 +       exit ;;
3118      sh64*:Linux:*:*)
3119 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3120 -       exit 0 ;;
3121 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3122 +       exit ;;
3123      sh*:Linux:*:*)
3124 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3125 -       exit 0 ;;
3126 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3127 +       exit ;;
3128      sparc:Linux:*:* | sparc64:Linux:*:*)
3129 -       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3130 -       exit 0 ;;
3131 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
3132 +       exit ;;
3133 +    vax:Linux:*:*)
3134 +       echo ${UNAME_MACHINE}-dec-linux-gnu
3135 +       exit ;;
3136      x86_64:Linux:*:*)
3137 -       echo x86_64-unknown-linux-${LIBC}
3138 -       exit 0 ;;
3139 +       echo x86_64-unknown-linux-gnu
3140 +       exit ;;
3141      i*86:Linux:*:*)
3142         # The BFD linker knows what the default object file format is, so
3143         # first see if it will tell us. cd to the root directory to prevent
3144 @@ -959,21 +963,20 @@
3145                                     p'`
3146          case "$ld_supported_targets" in
3147           elf32-i386)
3148 -               TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
3149 +               TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
3150                 ;;
3151           a.out-i386-linux)
3152 -               echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
3153 -               exit 0 ;;
3154 +               echo "${UNAME_MACHINE}-pc-linux-gnuaout"
3155 +               exit ;;
3156           coff-i386)
3157 -               echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
3158 -               exit 0 ;;
3159 +               echo "${UNAME_MACHINE}-pc-linux-gnucoff"
3160 +               exit ;;
3161           "")
3162                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
3163                 # one that does not give us useful --help.
3164 -               echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
3165 -               exit 0 ;;
3166 +               echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
3167 +               exit ;;
3168         esac
3169 -       if [ "`echo $LIBC | sed -e 's:uclibc::'`" != "$LIBC" ] ; then echo "$TENTATIVE" && exit 0 ; fi
3170         # Determine whether the default compiler is a.out or elf
3171         eval $set_cc_for_build
3172         sed 's/^        //' << EOF >$dummy.c
3173 @@ -989,7 +992,7 @@
3174         LIBC=gnulibc1
3175         # endif
3176         #else
3177 -       #ifdef __INTEL_COMPILER
3178 +       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
3179         LIBC=gnu
3180         #else
3181         LIBC=gnuaout
3182 @@ -999,16 +1002,23 @@
3183         LIBC=dietlibc
3184         #endif
3185  EOF
3186 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
3187 -       test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
3188 -       test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
3189 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3190 +           /^LIBC/{
3191 +               s: ::g
3192 +               p
3193 +           }'`"
3194 +       test x"${LIBC}" != x && {
3195 +               echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
3196 +               exit
3197 +       }
3198 +       test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
3199         ;;
3200      i*86:DYNIX/ptx:4*:*)
3201         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
3202         # earlier versions are messed up and put the nodename in both
3203         # sysname and nodename.
3204         echo i386-sequent-sysv4
3205 -       exit 0 ;;
3206 +       exit ;;
3207      i*86:UNIX_SV:4.2MP:2.*)
3208          # Unixware is an offshoot of SVR4, but it has its own version
3209          # number series starting with 2...
3210 @@ -1016,27 +1026,27 @@
3211         # I just have to hope.  -- rms.
3212          # Use sysv4.2uw... so that sysv4* matches it.
3213         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
3214 -       exit 0 ;;
3215 +       exit ;;
3216      i*86:OS/2:*:*)
3217         # If we were able to find `uname', then EMX Unix compatibility
3218         # is probably installed.
3219         echo ${UNAME_MACHINE}-pc-os2-emx
3220 -       exit 0 ;;
3221 +       exit ;;
3222      i*86:XTS-300:*:STOP)
3223         echo ${UNAME_MACHINE}-unknown-stop
3224 -       exit 0 ;;
3225 +       exit ;;
3226      i*86:atheos:*:*)
3227         echo ${UNAME_MACHINE}-unknown-atheos
3228 -       exit 0 ;;
3229 -       i*86:syllable:*:*)
3230 +       exit ;;
3231 +    i*86:syllable:*:*)
3232         echo ${UNAME_MACHINE}-pc-syllable
3233 -       exit 0 ;;
3234 +       exit ;;
3235      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
3236         echo i386-unknown-lynxos${UNAME_RELEASE}
3237 -       exit 0 ;;
3238 +       exit ;;
3239      i*86:*DOS:*:*)
3240         echo ${UNAME_MACHINE}-pc-msdosdjgpp
3241 -       exit 0 ;;
3242 +       exit ;;
3243      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
3244         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
3245         if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
3246 @@ -1044,15 +1054,16 @@
3247         else
3248                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
3249         fi
3250 -       exit 0 ;;
3251 -    i*86:*:5:[78]*)
3252 +       exit ;;
3253 +    i*86:*:5:[678]*)
3254 +       # UnixWare 7.x, OpenUNIX and OpenServer 6.
3255         case `/bin/uname -X | grep "^Machine"` in
3256             *486*)           UNAME_MACHINE=i486 ;;
3257             *Pentium)        UNAME_MACHINE=i586 ;;
3258             *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
3259         esac
3260         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
3261 -       exit 0 ;;
3262 +       exit ;;
3263      i*86:*:3.2:*)
3264         if test -f /usr/options/cb.name; then
3265                 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
3266 @@ -1070,73 +1081,73 @@
3267         else
3268                 echo ${UNAME_MACHINE}-pc-sysv32
3269         fi
3270 -       exit 0 ;;
3271 +       exit ;;
3272      pc:*:*:*)
3273         # Left here for compatibility:
3274          # uname -m prints for DJGPP always 'pc', but it prints nothing about
3275          # the processor, so we play safe by assuming i386.
3276         echo i386-pc-msdosdjgpp
3277 -        exit 0 ;;
3278 +        exit ;;
3279      Intel:Mach:3*:*)
3280         echo i386-pc-mach3
3281 -       exit 0 ;;
3282 +       exit ;;
3283      paragon:*:*:*)
3284         echo i860-intel-osf1
3285 -       exit 0 ;;
3286 +       exit ;;
3287      i860:*:4.*:*) # i860-SVR4
3288         if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
3289           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
3290         else # Add other i860-SVR4 vendors below as they are discovered.
3291           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
3292         fi
3293 -       exit 0 ;;
3294 +       exit ;;
3295      mini*:CTIX:SYS*5:*)
3296         # "miniframe"
3297         echo m68010-convergent-sysv
3298 -       exit 0 ;;
3299 +       exit ;;
3300      mc68k:UNIX:SYSTEM5:3.51m)
3301         echo m68k-convergent-sysv
3302 -       exit 0 ;;
3303 +       exit ;;
3304      M680?0:D-NIX:5.3:*)
3305         echo m68k-diab-dnix
3306 -       exit 0 ;;
3307 +       exit ;;
3308      M68*:*:R3V[5678]*:*)
3309 -       test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
3310 +       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
3311      3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
3312         OS_REL=''
3313         test -r /etc/.relid \
3314         && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
3315         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
3316 -         && echo i486-ncr-sysv4.3${OS_REL} && exit 0
3317 +         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
3318         /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
3319 -         && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
3320 +         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3321      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
3322          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
3323 -          && echo i486-ncr-sysv4 && exit 0 ;;
3324 +          && { echo i486-ncr-sysv4; exit; } ;;
3325      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
3326         echo m68k-unknown-lynxos${UNAME_RELEASE}
3327 -       exit 0 ;;
3328 +       exit ;;
3329      mc68030:UNIX_System_V:4.*:*)
3330         echo m68k-atari-sysv4
3331 -       exit 0 ;;
3332 +       exit ;;
3333      TSUNAMI:LynxOS:2.*:*)
3334         echo sparc-unknown-lynxos${UNAME_RELEASE}
3335 -       exit 0 ;;
3336 +       exit ;;
3337      rs6000:LynxOS:2.*:*)
3338         echo rs6000-unknown-lynxos${UNAME_RELEASE}
3339 -       exit 0 ;;
3340 +       exit ;;
3341      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
3342         echo powerpc-unknown-lynxos${UNAME_RELEASE}
3343 -       exit 0 ;;
3344 +       exit ;;
3345      SM[BE]S:UNIX_SV:*:*)
3346         echo mips-dde-sysv${UNAME_RELEASE}
3347 -       exit 0 ;;
3348 +       exit ;;
3349      RM*:ReliantUNIX-*:*:*)
3350         echo mips-sni-sysv4
3351 -       exit 0 ;;
3352 +       exit ;;
3353      RM*:SINIX-*:*:*)
3354         echo mips-sni-sysv4
3355 -       exit 0 ;;
3356 +       exit ;;
3357      *:SINIX-*:*:*)
3358         if uname -p 2>/dev/null >/dev/null ; then
3359                 UNAME_MACHINE=`(uname -p) 2>/dev/null`
3360 @@ -1144,69 +1155,72 @@
3361         else
3362                 echo ns32k-sni-sysv
3363         fi
3364 -       exit 0 ;;
3365 +       exit ;;
3366      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
3367                        # says <Richard.M.Bartel@ccMail.Census.GOV>
3368          echo i586-unisys-sysv4
3369 -        exit 0 ;;
3370 +        exit ;;
3371      *:UNIX_System_V:4*:FTX*)
3372         # From Gerald Hewes <hewes@openmarket.com>.
3373         # How about differentiating between stratus architectures? -djm
3374         echo hppa1.1-stratus-sysv4
3375 -       exit 0 ;;
3376 +       exit ;;
3377      *:*:*:FTX*)
3378         # From seanf@swdc.stratus.com.
3379         echo i860-stratus-sysv4
3380 -       exit 0 ;;
3381 +       exit ;;
3382 +    i*86:VOS:*:*)
3383 +       # From Paul.Green@stratus.com.
3384 +       echo ${UNAME_MACHINE}-stratus-vos
3385 +       exit ;;
3386      *:VOS:*:*)
3387         # From Paul.Green@stratus.com.
3388         echo hppa1.1-stratus-vos
3389 -       exit 0 ;;
3390 +       exit ;;
3391      mc68*:A/UX:*:*)
3392         echo m68k-apple-aux${UNAME_RELEASE}
3393 -       exit 0 ;;
3394 +       exit ;;
3395      news*:NEWS-OS:6*:*)
3396         echo mips-sony-newsos6
3397 -       exit 0 ;;
3398 +       exit ;;
3399      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
3400         if [ -d /usr/nec ]; then
3401                 echo mips-nec-sysv${UNAME_RELEASE}
3402         else
3403                 echo mips-unknown-sysv${UNAME_RELEASE}
3404         fi
3405 -        exit 0 ;;
3406 +        exit ;;
3407      BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
3408         echo powerpc-be-beos
3409 -       exit 0 ;;
3410 +       exit ;;
3411      BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
3412         echo powerpc-apple-beos
3413 -       exit 0 ;;
3414 +       exit ;;
3415      BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
3416         echo i586-pc-beos
3417 -       exit 0 ;;
3418 +       exit ;;
3419      SX-4:SUPER-UX:*:*)
3420         echo sx4-nec-superux${UNAME_RELEASE}
3421 -       exit 0 ;;
3422 +       exit ;;
3423      SX-5:SUPER-UX:*:*)
3424         echo sx5-nec-superux${UNAME_RELEASE}
3425 -       exit 0 ;;
3426 +       exit ;;
3427      SX-6:SUPER-UX:*:*)
3428         echo sx6-nec-superux${UNAME_RELEASE}
3429 -       exit 0 ;;
3430 +       exit ;;
3431      Power*:Rhapsody:*:*)
3432         echo powerpc-apple-rhapsody${UNAME_RELEASE}
3433 -       exit 0 ;;
3434 +       exit ;;
3435      *:Rhapsody:*:*)
3436         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
3437 -       exit 0 ;;
3438 +       exit ;;
3439      *:Darwin:*:*)
3440         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
3441         case $UNAME_PROCESSOR in
3442 -           *86) UNAME_PROCESSOR=i686 ;;
3443             unknown) UNAME_PROCESSOR=powerpc ;;
3444         esac
3445         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3446 -       exit 0 ;;
3447 +       exit ;;
3448      *:procnto*:*:* | *:QNX:[0123456789]*:*)
3449         UNAME_PROCESSOR=`uname -p`
3450         if test "$UNAME_PROCESSOR" = "x86"; then
3451 @@ -1214,25 +1228,25 @@
3452                 UNAME_MACHINE=pc
3453         fi
3454         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
3455 -       exit 0 ;;
3456 +       exit ;;
3457      *:QNX:*:4*)
3458         echo i386-pc-qnx
3459 -       exit 0 ;;
3460 +       exit ;;
3461      NSE-?:NONSTOP_KERNEL:*:*)
3462         echo nse-tandem-nsk${UNAME_RELEASE}
3463 -       exit 0 ;;
3464 +       exit ;;
3465      NSR-?:NONSTOP_KERNEL:*:*)
3466         echo nsr-tandem-nsk${UNAME_RELEASE}
3467 -       exit 0 ;;
3468 +       exit ;;
3469      *:NonStop-UX:*:*)
3470         echo mips-compaq-nonstopux
3471 -       exit 0 ;;
3472 +       exit ;;
3473      BS2000:POSIX*:*:*)
3474         echo bs2000-siemens-sysv
3475 -       exit 0 ;;
3476 +       exit ;;
3477      DS/*:UNIX_System_V:*:*)
3478         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
3479 -       exit 0 ;;
3480 +       exit ;;
3481      *:Plan9:*:*)
3482         # "uname -m" is not consistent, so use $cputype instead. 386
3483         # is converted to i386 for consistency with other x86
3484 @@ -1243,41 +1257,47 @@
3485             UNAME_MACHINE="$cputype"
3486         fi
3487         echo ${UNAME_MACHINE}-unknown-plan9
3488 -       exit 0 ;;
3489 +       exit ;;
3490      *:TOPS-10:*:*)
3491         echo pdp10-unknown-tops10
3492 -       exit 0 ;;
3493 +       exit ;;
3494      *:TENEX:*:*)
3495         echo pdp10-unknown-tenex
3496 -       exit 0 ;;
3497 +       exit ;;
3498      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
3499         echo pdp10-dec-tops20
3500 -       exit 0 ;;
3501 +       exit ;;
3502      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
3503         echo pdp10-xkl-tops20
3504 -       exit 0 ;;
3505 +       exit ;;
3506      *:TOPS-20:*:*)
3507         echo pdp10-unknown-tops20
3508 -       exit 0 ;;
3509 +       exit ;;
3510      *:ITS:*:*)
3511         echo pdp10-unknown-its
3512 -       exit 0 ;;
3513 +       exit ;;
3514      SEI:*:*:SEIUX)
3515          echo mips-sei-seiux${UNAME_RELEASE}
3516 -       exit 0 ;;
3517 +       exit ;;
3518      *:DragonFly:*:*)
3519         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
3520 -       exit 0 ;;
3521 +       exit ;;
3522      *:*VMS:*:*)
3523         UNAME_MACHINE=`(uname -p) 2>/dev/null`
3524         case "${UNAME_MACHINE}" in
3525 -           A*) echo alpha-dec-vms && exit 0 ;;
3526 -           I*) echo ia64-dec-vms && exit 0 ;;
3527 -           V*) echo vax-dec-vms && exit 0 ;;
3528 +           A*) echo alpha-dec-vms ; exit ;;
3529 +           I*) echo ia64-dec-vms ; exit ;;
3530 +           V*) echo vax-dec-vms ; exit ;;
3531         esac ;;
3532      *:XENIX:*:SysV)
3533         echo i386-pc-xenix
3534 -       exit 0 ;;
3535 +       exit ;;
3536 +    i*86:skyos:*:*)
3537 +       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
3538 +       exit ;;
3539 +    i*86:rdos:*:*)
3540 +       echo ${UNAME_MACHINE}-pc-rdos
3541 +       exit ;;
3542  esac
3543  
3544  #echo '(No uname command or uname output not recognized.)' 1>&2
3545 @@ -1309,7 +1329,7 @@
3546  #endif
3547  
3548  #if defined (__arm) && defined (__acorn) && defined (__unix)
3549 -  printf ("arm-acorn-riscix"); exit (0);
3550 +  printf ("arm-acorn-riscix\n"); exit (0);
3551  #endif
3552  
3553  #if defined (hp300) && !defined (hpux)
3554 @@ -1398,11 +1418,12 @@
3555  }
3556  EOF
3557  
3558 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
3559 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
3560 +       { echo "$SYSTEM_NAME"; exit; }
3561  
3562  # Apollos put the system type in the environment.
3563  
3564 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
3565 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
3566  
3567  # Convex versions that predate uname can use getsysinfo(1)
3568  
3569 @@ -1411,22 +1432,22 @@
3570      case `getsysinfo -f cpu_type` in
3571      c1*)
3572         echo c1-convex-bsd
3573 -       exit 0 ;;
3574 +       exit ;;
3575      c2*)
3576         if getsysinfo -f scalar_acc
3577         then echo c32-convex-bsd
3578         else echo c2-convex-bsd
3579         fi
3580 -       exit 0 ;;
3581 +       exit ;;
3582      c34*)
3583         echo c34-convex-bsd
3584 -       exit 0 ;;
3585 +       exit ;;
3586      c38*)
3587         echo c38-convex-bsd
3588 -       exit 0 ;;
3589 +       exit ;;
3590      c4*)
3591         echo c4-convex-bsd
3592 -       exit 0 ;;
3593 +       exit ;;
3594      esac
3595  fi
3596  
3597 --- ./config/config.sub 2005-11-26 20:29:02.000000000 +0100
3598 +++ ./config/config.sub 2006-08-10 17:17:12.000000000 +0200
3599 @@ -1,9 +1,10 @@
3600  #! /bin/sh
3601  # Configuration validation subroutine script.
3602  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3603 -#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3604 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
3605 +#   Inc.
3606  
3607 -timestamp='2005-02-10'
3608 +timestamp='2006-07-02'
3609  
3610  # This file is (in principle) common to ALL GNU software.
3611  # The presence of a machine in this file suggests that SOME GNU software
3612 @@ -21,14 +22,15 @@
3613  #
3614  # You should have received a copy of the GNU General Public License
3615  # along with this program; if not, write to the Free Software
3616 -# Foundation, Inc., 59 Temple Place - Suite 330,
3617 -# Boston, MA 02111-1307, USA.
3618 -
3619 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3620 +# 02110-1301, USA.
3621 +#
3622  # As a special exception to the GNU General Public License, if you
3623  # distribute this file as part of a program that contains a
3624  # configuration script generated by Autoconf, you may include it under
3625  # the same distribution terms that you use for the rest of that program.
3626  
3627 +
3628  # Please send patches to <config-patches@gnu.org>.  Submit a context
3629  # diff and a properly formatted ChangeLog entry.
3630  #
3631 @@ -83,11 +85,11 @@
3632  while test $# -gt 0 ; do
3633    case $1 in
3634      --time-stamp | --time* | -t )
3635 -       echo "$timestamp" ; exit 0 ;;
3636 +       echo "$timestamp" ; exit ;;
3637      --version | -v )
3638 -       echo "$version" ; exit 0 ;;
3639 +       echo "$version" ; exit ;;
3640      --help | --h* | -h )
3641 -       echo "$usage"; exit 0 ;;
3642 +       echo "$usage"; exit ;;
3643      -- )     # Stop option processing
3644         shift; break ;;
3645      - )        # Use stdin as input.
3646 @@ -99,7 +101,7 @@
3647      *local*)
3648         # First pass through any local machine types.
3649         echo $1
3650 -       exit 0;;
3651 +       exit ;;
3652  
3653      * )
3654         break ;;
3655 @@ -118,8 +120,9 @@
3656  # Here we must recognize all the valid KERNEL-OS combinations.
3657  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
3658  case $maybe_os in
3659 -  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
3660 -  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
3661 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
3662 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
3663 +  storm-chaos* | os2-emx* | rtmk-nova*)
3664      os=-$maybe_os
3665      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
3666      ;;
3667 @@ -170,6 +173,10 @@
3668         -hiux*)
3669                 os=-hiuxwe2
3670                 ;;
3671 +       -sco6)
3672 +               os=-sco5v6
3673 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3674 +               ;;
3675         -sco5)
3676                 os=-sco3.2v5
3677                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3678 @@ -186,6 +193,10 @@
3679                 # Don't forget version if it is 3.2v4 or newer.
3680                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3681                 ;;
3682 +       -sco5v6*)
3683 +               # Don't forget version if it is 3.2v4 or newer.
3684 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3685 +               ;;
3686         -sco*)
3687                 os=-sco3.2v2
3688                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3689 @@ -230,14 +241,16 @@
3690         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
3691         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
3692         | am33_2.0 \
3693 -       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
3694 +       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
3695 +       | bfin \
3696         | c4x | clipper \
3697         | d10v | d30v | dlx | dsp16xx \
3698         | fr30 | frv \
3699         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
3700         | i370 | i860 | i960 | ia64 \
3701         | ip2k | iq2000 \
3702 -       | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
3703 +       | m32c | m32r | m32rle | m68000 | m68k | m88k \
3704 +       | maxq | mb | microblaze | mcore \
3705         | mips | mipsbe | mipseb | mipsel | mipsle \
3706         | mips16 \
3707         | mips64 | mips64el \
3708 @@ -246,6 +259,7 @@
3709         | mips64vr4100 | mips64vr4100el \
3710         | mips64vr4300 | mips64vr4300el \
3711         | mips64vr5000 | mips64vr5000el \
3712 +       | mips64vr5900 | mips64vr5900el \
3713         | mipsisa32 | mipsisa32el \
3714         | mipsisa32r2 | mipsisa32r2el \
3715         | mipsisa64 | mipsisa64el \
3716 @@ -253,19 +267,21 @@
3717         | mipsisa64sb1 | mipsisa64sb1el \
3718         | mipsisa64sr71k | mipsisa64sr71kel \
3719         | mipstx39 | mipstx39el \
3720 -       | mips64r5900 | mips64r5900el \
3721         | mn10200 | mn10300 \
3722 +       | mt \
3723         | msp430 \
3724 +       | nios | nios2 \
3725         | ns16k | ns32k \
3726 -       | openrisc | or32 \
3727 +       | or32 \
3728         | pdp10 | pdp11 | pj | pjl \
3729         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
3730         | pyramid \
3731 -       | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
3732 +       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
3733         | sh64 | sh64le \
3734 -       | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
3735 -       | strongarm \
3736 -       | tahoe | dvp | thumb | tic4x | tic80 | tron \
3737 +       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
3738 +       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
3739 +       | spu | strongarm \
3740 +       | tahoe | thumb | tic4x | tic80 | tron \
3741         | v850 | v850e \
3742         | we32k \
3743         | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
3744 @@ -279,6 +295,9 @@
3745                 ;;
3746         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
3747                 ;;
3748 +       ms1)
3749 +               basic_machine=mt-unknown
3750 +               ;;
3751  
3752         # We use `pc' rather than `unknown'
3753         # because (1) that's what they normally are, and
3754 @@ -298,8 +317,8 @@
3755         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
3756         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3757         | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
3758 -       | avr-* \
3759 -       | bs2000-* \
3760 +       | avr-* | avr32-* \
3761 +       | bfin-* | bs2000-* \
3762         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
3763         | clipper-* | craynv-* | cydra-* \
3764         | d10v-* | d30v-* | dlx-* \
3765 @@ -309,7 +328,7 @@
3766         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
3767         | i*86-* | i860-* | i960-* | ia64-* \
3768         | ip2k-* | iq2000-* \
3769 -       | m32r-* | m32rle-* \
3770 +       | m32c-* | m32r-* | m32rle-* \
3771         | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
3772         | m88110-* | m88k-* | maxq-* | mcore-* \
3773         | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3774 @@ -320,6 +339,7 @@
3775         | mips64vr4100-* | mips64vr4100el-* \
3776         | mips64vr4300-* | mips64vr4300el-* \
3777         | mips64vr5000-* | mips64vr5000el-* \
3778 +       | mips64vr5900-* | mips64vr5900el-* \
3779         | mipsisa32-* | mipsisa32el-* \
3780         | mipsisa32r2-* | mipsisa32r2el-* \
3781         | mipsisa64-* | mipsisa64el-* \
3782 @@ -327,19 +347,21 @@
3783         | mipsisa64sb1-* | mipsisa64sb1el-* \
3784         | mipsisa64sr71k-* | mipsisa64sr71kel-* \
3785         | mipstx39-* | mipstx39el-* \
3786 -       | mips64r5900-* | mips64r5900el-* \
3787         | mmix-* \
3788 +       | mt-* \
3789         | msp430-* \
3790 +       | nios-* | nios2-* \
3791         | none-* | np1-* | ns16k-* | ns32k-* \
3792         | orion-* \
3793         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3794         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3795         | pyramid-* \
3796         | romp-* | rs6000-* \
3797 -       | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
3798 +       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
3799         | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
3800 -       | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
3801 -       | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
3802 +       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
3803 +       | sparclite-* \
3804 +       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
3805         | tahoe-* | thumb-* \
3806         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
3807         | tron-* \
3808 @@ -667,24 +689,6 @@
3809                 basic_machine=m68k-atari
3810                 os=-mint
3811                 ;;
3812 -       mipsEE* | ee | ps2)
3813 -               basic_machine=mips64r5900el-scei
3814 -               case $os in
3815 -                   -linux*)
3816 -                       ;;
3817 -                   *)
3818 -                       os=-elf
3819 -                       ;;
3820 -               esac
3821 -               ;;
3822 -       iop)
3823 -               basic_machine=mipsel-scei
3824 -               os=-irx
3825 -               ;;
3826 -       dvp)
3827 -               basic_machine=dvp-scei
3828 -               os=-elf
3829 -               ;;
3830         mips3*-*)
3831                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
3832                 ;;
3833 @@ -703,6 +707,9 @@
3834                 basic_machine=i386-pc
3835                 os=-msdos
3836                 ;;
3837 +       ms1-*)
3838 +               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
3839 +               ;;
3840         mvs)
3841                 basic_machine=i370-ibm
3842                 os=-mvs
3843 @@ -778,9 +785,8 @@
3844                 basic_machine=hppa1.1-oki
3845                 os=-proelf
3846                 ;;
3847 -       or32 | or32-*)
3848 +       openrisc | openrisc-*)
3849                 basic_machine=or32-unknown
3850 -               os=-coff
3851                 ;;
3852         os400)
3853                 basic_machine=powerpc-ibm
3854 @@ -811,6 +817,12 @@
3855         pc532 | pc532-*)
3856                 basic_machine=ns32k-pc532
3857                 ;;
3858 +       pc98)
3859 +               basic_machine=i386-pc
3860 +               ;;
3861 +       pc98-*)
3862 +               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
3863 +               ;;
3864         pentium | p5 | k5 | k6 | nexgen | viac3)
3865                 basic_machine=i586-pc
3866                 ;;
3867 @@ -867,6 +879,10 @@
3868                 basic_machine=i586-unknown
3869                 os=-pw32
3870                 ;;
3871 +       rdos)
3872 +               basic_machine=i386-pc
3873 +               os=-rdos
3874 +               ;;
3875         rom68k)
3876                 basic_machine=m68k-rom68k
3877                 os=-coff
3878 @@ -1106,13 +1122,10 @@
3879         we32k)
3880                 basic_machine=we32k-att
3881                 ;;
3882 -       sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
3883 +       sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
3884                 basic_machine=sh-unknown
3885                 ;;
3886 -       sh64)
3887 -               basic_machine=sh64-unknown
3888 -               ;;
3889 -       sparc | sparcv8 | sparcv9 | sparcv9b)
3890 +       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
3891                 basic_machine=sparc-sun
3892                 ;;
3893         cydra)
3894 @@ -1185,20 +1198,23 @@
3895               | -aos* \
3896               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
3897               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
3898 -             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
3899 +             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
3900 +             | -openbsd* | -solidbsd* \
3901               | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
3902               | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3903               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3904               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3905               | -chorusos* | -chorusrdb* \
3906               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3907 -             | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
3908 +             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
3909 +             | -uxpv* | -beos* | -mpeix* | -udk* \
3910               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3911               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3912               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
3913               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
3914               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
3915 -             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -irx*)
3916 +             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
3917 +             | -skyos* | -haiku* | -rdos* | -toppers*)
3918         # Remember, each alternative MUST END IN *, to match a version number.
3919                 ;;
3920         -qnx*)
3921 @@ -1216,7 +1232,7 @@
3922                 os=`echo $os | sed -e 's|nto|nto-qnx|'`
3923                 ;;
3924         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
3925 -             | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
3926 +             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
3927               | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
3928                 ;;
3929         -mac*)
3930 @@ -1350,6 +1366,9 @@
3931  # system, and we'll never get to this point.
3932  
3933  case $basic_machine in
3934 +        spu-*)
3935 +               os=-elf
3936 +               ;;
3937         *-acorn)
3938                 os=-riscix1.2
3939                 ;;
3940 @@ -1359,9 +1378,9 @@
3941         arm*-semi)
3942                 os=-aout
3943                 ;;
3944 -    c4x-* | tic4x-*)
3945 -        os=-coff
3946 -        ;;
3947 +        c4x-* | tic4x-*)
3948 +               os=-coff
3949 +               ;;
3950         # This must come before the *-dec entry.
3951         pdp10-*)
3952                 os=-tops20
3953 @@ -1405,6 +1424,9 @@
3954         *-be)
3955                 os=-beos
3956                 ;;
3957 +       *-haiku)
3958 +               os=-haiku
3959 +               ;;
3960         *-ibm)
3961                 os=-aix
3962                 ;;
3963 @@ -1576,7 +1598,7 @@
3964  esac
3965  
3966  echo $basic_machine$os
3967 -exit 0
3968 +exit
3969  
3970  # Local variables:
3971  # eval: (add-hook 'write-file-hooks 'time-stamp)
3972 --- ./config/ltmain.sh  2005-11-26 20:29:02.000000000 +0100
3973 +++ ./config/ltmain.sh  2006-03-11 19:49:04.000000000 +0100
3974 @@ -33,9 +33,6 @@
3975  # function.
3976  progpath="$0"
3977  
3978 -# define SED for historic ltconfig's generated by Libtool 1.3
3979 -test -z "$SED" && SED=sed
3980 -
3981  # The name of this program:
3982  progname=`echo "$progpath" | $SED $basename`
3983  modename="$progname"
3984 @@ -46,21 +43,14 @@
3985  
3986  PROGRAM=ltmain.sh
3987  PACKAGE=libtool
3988 -VERSION=1.5.18
3989 -TIMESTAMP=" (1.1220.2.246 2005/05/16 10:00:18)"
3990 +VERSION="1.5.22 Debian 1.5.22-4"
3991 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
3992  
3993  # See if we are running on zsh, and set the options which allow our
3994  # commands through without removal of \ escapes.
3995  if test -n "${ZSH_VERSION+set}" ; then
3996    setopt NO_GLOB_SUBST
3997  fi
3998 -# Same for EGREP, and just to be sure, do LTCC as well
3999 -if test "X$EGREP" = X ; then
4000 -    EGREP=egrep
4001 -fi
4002 -if test "X$LTCC" = X ; then
4003 -    LTCC=${CC-gcc}
4004 -fi
4005  
4006  # Check that we have a working $echo.
4007  if test "X$1" = X--no-reexec; then
4008 @@ -98,14 +88,15 @@
4009  Xsed="${SED}"' -e 1s/^X//'
4010  sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
4011  # test EBCDIC or ASCII
4012 -case `echo A|tr A '\301'` in
4013 - A) # EBCDIC based system
4014 -  SP2NL="tr '\100' '\n'"
4015 -  NL2SP="tr '\r\n' '\100\100'"
4016 +case `echo X|tr X '\101'` in
4017 + A) # ASCII based system
4018 +    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4019 +  SP2NL='tr \040 \012'
4020 +  NL2SP='tr \015\012 \040\040'
4021    ;;
4022 - *) # Assume ASCII based system
4023 -  SP2NL="tr '\040' '\012'"
4024 -  NL2SP="tr '\015\012' '\040\040'"
4025 + *) # EBCDIC based system
4026 +  SP2NL='tr \100 \n'
4027 +  NL2SP='tr \r\n \100\100'
4028    ;;
4029  esac
4030  
4031 @@ -141,38 +132,52 @@
4032  show="$echo"
4033  show_help=
4034  execute_dlfiles=
4035 +duplicate_deps=no
4036 +preserve_args=
4037  lo2o="s/\\.lo\$/.${objext}/"
4038  o2lo="s/\\.${objext}\$/.lo/"
4039 -quote_scanset='[[~#^*{};<>?'"'"'       ]'
4040 -
4041 -if test -z "$max_cmd_len"; then
4042 -  i=0
4043 -  testring="ABCD"
4044 -  new_result=
4045 -  
4046 -  # If test is not a shell built-in, we'll probably end up computing a
4047 -  # maximum length that is only half of the actual maximum length, but
4048 -  # we can't tell.
4049 -  while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4050 -             = "XX$testring") >/dev/null 2>&1 &&
4051 -          new_result=`expr "X$testring" : ".*" 2>&1` &&
4052 -          max_cmd_len="$new_result" &&
4053 -          test "$i" != 17 # 1/2 MB should be enough
4054 -  do
4055 -    i=`expr $i + 1`
4056 -    testring="$testring$testring"
4057 -  done
4058 -  testring=
4059 -  # Add a significant safety factor because C++ compilers can tack on massive
4060 -  # amounts of additional arguments before passing them to the linker.
4061 -  # It appears as though 1/2 is a usable value.
4062 -  max_cmd_len=`expr $max_cmd_len \/ 2`
4063 -fi
4064  
4065  #####################################
4066  # Shell function definitions:
4067  # This seems to be the best place for them
4068  
4069 +# func_mktempdir [string]
4070 +# Make a temporary directory that won't clash with other running
4071 +# libtool processes, and avoids race conditions if possible.  If
4072 +# given, STRING is the basename for that directory.
4073 +func_mktempdir ()
4074 +{
4075 +    my_template="${TMPDIR-/tmp}/${1-$progname}"
4076 +
4077 +    if test "$run" = ":"; then
4078 +      # Return a directory name, but don't create it in dry-run mode
4079 +      my_tmpdir="${my_template}-$$"
4080 +    else
4081 +
4082 +      # If mktemp works, use that first and foremost
4083 +      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
4084 +
4085 +      if test ! -d "$my_tmpdir"; then
4086 +       # Failing that, at least try and use $RANDOM to avoid a race
4087 +       my_tmpdir="${my_template}-${RANDOM-0}$$"
4088 +
4089 +       save_mktempdir_umask=`umask`
4090 +       umask 0077
4091 +       $mkdir "$my_tmpdir"
4092 +       umask $save_mktempdir_umask
4093 +      fi
4094 +
4095 +      # If we're not in dry-run mode, bomb out on failure
4096 +      test -d "$my_tmpdir" || {
4097 +        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
4098 +       exit $EXIT_FAILURE
4099 +      }
4100 +    fi
4101 +
4102 +    $echo "X$my_tmpdir" | $Xsed
4103 +}
4104 +
4105 +
4106  # func_win32_libid arg
4107  # return the library type of file 'arg'
4108  #
4109 @@ -191,12 +196,11 @@
4110      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
4111        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
4112        win32_nmres=`eval $NM -f posix -A $1 | \
4113 -       sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
4114 -      if test "X$win32_nmres" = "Ximport" ; then
4115 -        win32_libid_type="x86 archive import"
4116 -      else
4117 -        win32_libid_type="x86 archive static"
4118 -      fi
4119 +       $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
4120 +      case $win32_nmres in
4121 +      import*)  win32_libid_type="x86 archive import";;
4122 +      *)        win32_libid_type="x86 archive static";;
4123 +      esac
4124      fi
4125      ;;
4126    *DLL*)
4127 @@ -226,7 +230,7 @@
4128        CC_quoted=
4129        for arg in $CC; do
4130         case $arg in
4131 -         *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4132 +         *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
4133           arg="\"$arg\""
4134           ;;
4135         esac
4136 @@ -247,23 +251,13 @@
4137             for arg in $CC; do
4138             # Double-quote args containing other shell metacharacters.
4139             case $arg in
4140 -             *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4141 +             *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
4142               arg="\"$arg\""
4143               ;;
4144             esac
4145             CC_quoted="$CC_quoted $arg"
4146           done
4147 -           # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
4148 -           trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
4149 -           # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
4150 -           extendcc=${host}-${CC}
4151             case "$@ " in
4152 -             "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
4153 -             "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
4154 -             tagname=CC
4155 -             break ;;
4156 -             "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
4157 -             "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
4158               " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
4159               # The compiler in the base compile command matches
4160               # the one in the tagged configuration.
4161 @@ -339,9 +333,9 @@
4162        $run ${rm}r "$my_xdir"
4163        $show "$mkdir $my_xdir"
4164        $run $mkdir "$my_xdir"
4165 -      status=$?
4166 -      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
4167 -       exit $status
4168 +      exit_status=$?
4169 +      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
4170 +       exit $exit_status
4171        fi
4172        case $host in
4173        *-darwin*)
4174 @@ -381,7 +375,7 @@
4175             func_extract_an_archive "$my_xdir" "$my_xabs"
4176           fi # $darwin_arches
4177         fi # $run
4178 -      ;;
4179 +       ;;
4180        *)
4181          func_extract_an_archive "$my_xdir" "$my_xabs"
4182          ;;
4183 @@ -396,6 +390,8 @@
4184  # Darwin sucks
4185  eval std_shrext=\"$shrext_cmds\"
4186  
4187 +disable_libs=no
4188 +
4189  # Parse our command line options once, thoroughly.
4190  while test "$#" -gt 0
4191  do
4192 @@ -512,7 +508,11 @@
4193      preserve_args="$preserve_args $arg"
4194      ;;
4195  
4196 -  --tag) prevopt="--tag" prev=tag ;;
4197 +  --tag)
4198 +    prevopt="--tag"
4199 +    prev=tag
4200 +    preserve_args="$preserve_args --tag"
4201 +    ;;
4202    --tag=*)
4203      set tag "$optarg" ${1+"$@"}
4204      shift
4205 @@ -544,6 +544,18 @@
4206    exit $EXIT_FAILURE
4207  fi
4208  
4209 +case $disable_libs in
4210 +no) 
4211 +  ;;
4212 +shared)
4213 +  build_libtool_libs=no
4214 +  build_old_libs=yes
4215 +  ;;
4216 +static)
4217 +  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
4218 +  ;;
4219 +esac
4220 +
4221  # If this variable is set in any of the actions, the command in it
4222  # will be execed at the end.  This prevents here-documents from being
4223  # left over by shells.
4224 @@ -620,7 +632,7 @@
4225  
4226      for arg
4227      do
4228 -      case "$arg_mode" in
4229 +      case $arg_mode in
4230        arg  )
4231         # do not "continue".  Instead, add this to base_compile
4232         lastarg="$arg"
4233 @@ -671,7 +683,7 @@
4234             # Many Bourne shells cannot handle close brackets correctly
4235             # in scan sets, so we specify it separately.
4236             case $arg in
4237 -             *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4238 +             *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
4239               arg="\"$arg\""
4240               ;;
4241             esac
4242 @@ -706,7 +718,7 @@
4243        # in scan sets (worked around with variable expansion),
4244        # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
4245        # at all, so we specify them separately.
4246 -      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4247 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
4248         lastarg="\"$lastarg\""
4249         ;;
4250        esac
4251 @@ -781,13 +793,12 @@
4252  
4253      qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
4254      case $qlibobj in
4255 -      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4256 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
4257         qlibobj="\"$qlibobj\"" ;;
4258      esac
4259 -    if test "X$libobj" != "X$qlibobj"; then
4260 -       $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
4261 -       exit $EXIT_FAILURE
4262 -    fi
4263 +    test "X$libobj" != "X$qlibobj" \
4264 +       && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
4265 +       && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
4266      objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
4267      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
4268      if test "X$xdir" = "X$obj"; then
4269 @@ -840,7 +851,7 @@
4270      # Lock this critical section if it is needed
4271      # We use this script file to make the link, it avoids creating a new file
4272      if test "$need_locks" = yes; then
4273 -      until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
4274 +      until $run ln "$progpath" "$lockfile" 2>/dev/null; do
4275         $show "Waiting for $lockfile to be removed"
4276         sleep 2
4277        done
4278 @@ -868,7 +879,7 @@
4279      fi
4280      qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
4281      case $qsrcfile in
4282 -      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4283 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
4284        qsrcfile="\"$qsrcfile\"" ;;
4285      esac
4286  
4287 @@ -901,9 +912,9 @@
4288        if test ! -d "${xdir}$objdir"; then
4289         $show "$mkdir ${xdir}$objdir"
4290         $run $mkdir ${xdir}$objdir
4291 -       status=$?
4292 -       if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
4293 -         exit $status
4294 +       exit_status=$?
4295 +       if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
4296 +         exit $exit_status
4297         fi
4298        fi
4299  
4300 @@ -1106,6 +1117,7 @@
4301      no_install=no
4302      objs=
4303      non_pic_objects=
4304 +    notinst_path= # paths that contain not-installed libtool libraries
4305      precious_files_regex=
4306      prefer_static_libs=no
4307      preload=no
4308 @@ -1134,14 +1146,15 @@
4309           if test -n "$link_static_flag"; then
4310             dlopen_self=$dlopen_self_static
4311           fi
4312 +         prefer_static_libs=yes
4313         else
4314           if test -z "$pic_flag" && test -n "$link_static_flag"; then
4315             dlopen_self=$dlopen_self_static
4316           fi
4317 +         prefer_static_libs=built
4318         fi
4319         build_libtool_libs=no
4320         build_old_libs=yes
4321 -       prefer_static_libs=yes
4322         break
4323         ;;
4324        esac
4325 @@ -1155,7 +1168,7 @@
4326        arg="$1"
4327        shift
4328        case $arg in
4329 -      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4330 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
4331         qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
4332         ;;
4333        *) qarg=$arg ;;
4334 @@ -1316,6 +1329,11 @@
4335                   if test -z "$pic_object" || test "$pic_object" = none ; then
4336                     arg="$non_pic_object"
4337                   fi
4338 +               else
4339 +                 # If the PIC object exists, use it instead.
4340 +                 # $xdir was prepended to $pic_object above.
4341 +                 non_pic_object="$pic_object"
4342 +                 non_pic_objects="$non_pic_objects $non_pic_object"
4343                 fi
4344               else
4345                 # Only an error if not doing a dry-run.
4346 @@ -1399,8 +1417,8 @@
4347           prev=
4348           continue
4349           ;;
4350 -        darwin_framework)
4351 -         compiler_flags="$compiler_flags $arg"
4352 +       darwin_framework|darwin_framework_skip)
4353 +         test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
4354           compile_command="$compile_command $arg"
4355           finalize_command="$finalize_command $arg"
4356           prev=
4357 @@ -1464,13 +1482,17 @@
4358         continue
4359         ;;
4360  
4361 -      -framework)
4362 -        prev=darwin_framework
4363 -        compiler_flags="$compiler_flags $arg"
4364 +      -framework|-arch|-isysroot)
4365 +       case " $CC " in
4366 +         *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
4367 +               prev=darwin_framework_skip ;;
4368 +         *) compiler_flags="$compiler_flags $arg"
4369 +            prev=darwin_framework ;;
4370 +       esac
4371         compile_command="$compile_command $arg"
4372         finalize_command="$finalize_command $arg"
4373 -        continue
4374 -        ;;
4375 +       continue
4376 +       ;;
4377  
4378        -inst-prefix-dir)
4379         prev=inst_prefix
4380 @@ -1498,7 +1520,8 @@
4381           absdir=`cd "$dir" && pwd`
4382           if test -z "$absdir"; then
4383             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
4384 -           exit $EXIT_FAILURE
4385 +           absdir="$dir"
4386 +           notinst_path="$notinst_path $dir"
4387           fi
4388           dir="$absdir"
4389           ;;
4390 @@ -1512,10 +1535,15 @@
4391         esac
4392         case $host in
4393         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4394 +         testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
4395           case :$dllsearchpath: in
4396           *":$dir:"*) ;;
4397           *) dllsearchpath="$dllsearchpath:$dir";;
4398           esac
4399 +         case :$dllsearchpath: in
4400 +         *":$testbindir:"*) ;;
4401 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
4402 +         esac
4403           ;;
4404         esac
4405         continue
4406 @@ -1524,11 +1552,11 @@
4407        -l*)
4408         if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
4409           case $host in
4410 -         *-*-cygwin* | *-*-pw32* | *-*-beos*)
4411 +         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
4412             # These systems don't actually have a C or math library (as such)
4413             continue
4414             ;;
4415 -         *-*-mingw* | *-*-os2*)
4416 +         *-*-os2*)
4417             # These systems don't actually have a C library (as such)
4418             test "X$arg" = "X-lc" && continue
4419             ;;
4420 @@ -1540,6 +1568,15 @@
4421             # Rhapsody C and math libraries are in the System framework
4422             deplibs="$deplibs -framework System"
4423             continue
4424 +           ;;
4425 +         *-*-sco3.2v5* | *-*-sco5v6*)
4426 +           # Causes problems with __ctype
4427 +           test "X$arg" = "X-lc" && continue
4428 +           ;;
4429 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
4430 +           # Compiler inserts libc in the correct place for threads to work
4431 +           test "X$arg" = "X-lc" && continue
4432 +           ;;
4433           esac
4434         elif test "X$arg" = "X-lc_r"; then
4435          case $host in
4436 @@ -1581,21 +1618,24 @@
4437        # +DA*, +DD* enable 64-bit mode on the HP compiler
4438        # -q* pass through compiler args for the IBM compiler
4439        # -m* pass through architecture-specific compiler args for GCC
4440 -      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
4441 +      # -m*, -t[45]*, -txscale* pass through architecture-specific
4442 +      # compiler args for GCC
4443 +      # -pg pass through profiling flag for GCC
4444 +      # @file GCC response files
4445 +      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
4446 +      -t[45]*|-txscale*|@*)
4447  
4448         # Unknown arguments in both finalize_command and compile_command need
4449         # to be aesthetically quoted because they are evaled later.
4450         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
4451         case $arg in
4452 -       *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4453 +       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
4454           arg="\"$arg\""
4455           ;;
4456         esac
4457          compile_command="$compile_command $arg"
4458          finalize_command="$finalize_command $arg"
4459 -        if test "$with_gcc" = "yes" ; then
4460 -          compiler_flags="$compiler_flags $arg"
4461 -        fi
4462 +        compiler_flags="$compiler_flags $arg"
4463          continue
4464          ;;
4465  
4466 @@ -1703,7 +1743,7 @@
4467         for flag in $args; do
4468           IFS="$save_ifs"
4469           case $flag in
4470 -           *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4471 +           *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
4472             flag="\"$flag\""
4473             ;;
4474           esac
4475 @@ -1721,7 +1761,7 @@
4476         for flag in $args; do
4477           IFS="$save_ifs"
4478           case $flag in
4479 -           *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4480 +           *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
4481             flag="\"$flag\""
4482             ;;
4483           esac
4484 @@ -1748,18 +1788,13 @@
4485         continue
4486         ;;
4487  
4488 -      -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread )
4489 -        compiler_flags="$compiler_flags $arg"
4490 -        continue
4491 -        ;;
4492 -
4493        # Some other compiler flag.
4494        -* | +*)
4495         # Unknown arguments in both finalize_command and compile_command need
4496         # to be aesthetically quoted because they are evaled later.
4497         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
4498         case $arg in
4499 -       *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4500 +       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
4501           arg="\"$arg\""
4502           ;;
4503         esac
4504 @@ -1838,6 +1873,11 @@
4505             if test -z "$pic_object" || test "$pic_object" = none ; then
4506               arg="$non_pic_object"
4507             fi
4508 +         else
4509 +           # If the PIC object exists, use it instead.
4510 +           # $xdir was prepended to $pic_object above.
4511 +           non_pic_object="$pic_object"
4512 +           non_pic_objects="$non_pic_objects $non_pic_object"
4513           fi
4514         else
4515           # Only an error if not doing a dry-run.
4516 @@ -1893,7 +1933,7 @@
4517         # to be aesthetically quoted because they are evaled later.
4518         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
4519         case $arg in
4520 -       *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
4521 +       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
4522           arg="\"$arg\""
4523           ;;
4524         esac
4525 @@ -1943,9 +1983,9 @@
4526      if test ! -d "$output_objdir"; then
4527        $show "$mkdir $output_objdir"
4528        $run $mkdir $output_objdir
4529 -      status=$?
4530 -      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
4531 -       exit $status
4532 +      exit_status=$?
4533 +      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
4534 +       exit $exit_status
4535        fi
4536      fi
4537  
4538 @@ -2008,7 +2048,6 @@
4539      newlib_search_path=
4540      need_relink=no # whether we're linking any uninstalled libtool libraries
4541      notinst_deplibs= # not-installed libtool libraries
4542 -    notinst_path= # paths that contain not-installed libtool libraries
4543      case $linkmode in
4544      lib)
4545         passes="conv link"
4546 @@ -2043,7 +2082,10 @@
4547         case $pass in
4548         dlopen) libs="$dlfiles" ;;
4549         dlpreopen) libs="$dlprefiles" ;;
4550 -       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
4551 +       link)
4552 +         libs="$deplibs %DEPLIBS%"
4553 +         test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
4554 +         ;;
4555         esac
4556        fi
4557        if test "$pass" = dlopen; then
4558 @@ -2244,7 +2286,7 @@
4559         esac # case $deplib
4560         if test "$found" = yes || test -f "$lib"; then :
4561         else
4562 -         $echo "$modename: cannot find the library \`$lib'" 1>&2
4563 +         $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
4564           exit $EXIT_FAILURE
4565         fi
4566  
4567 @@ -2458,7 +2500,7 @@
4568               case "$temp_rpath " in
4569               *" $dir "*) ;;
4570               *" $absdir "*) ;;
4571 -             *) temp_rpath="$temp_rpath $dir" ;;
4572 +             *) temp_rpath="$temp_rpath $absdir" ;;
4573               esac
4574             fi
4575  
4576 @@ -2495,8 +2537,12 @@
4577         fi
4578  
4579         link_static=no # Whether the deplib will be linked statically
4580 +       use_static_libs=$prefer_static_libs
4581 +       if test "$use_static_libs" = built && test "$installed" = yes ; then
4582 +         use_static_libs=no
4583 +       fi
4584         if test -n "$library_names" &&
4585 -          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
4586 +          { test "$use_static_libs" = no || test -z "$old_library"; }; then
4587           if test "$installed" = no; then
4588             notinst_deplibs="$notinst_deplibs $lib"
4589             need_relink=yes
4590 @@ -2609,11 +2655,15 @@
4591               if test "$hardcode_direct" = no; then
4592                 add="$dir/$linklib"
4593                 case $host in
4594 -                 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
4595 +                 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
4596 +                 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
4597 +                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
4598 +                   *-*-unixware7*) add_dir="-L$dir" ;;
4599                   *-*-darwin* )
4600                     # if the lib is a module then we can not link against
4601                     # it, someone is ignoring the new warnings I added
4602 -                   if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
4603 +                   if /usr/bin/file -L $add 2> /dev/null |
4604 +                      $EGREP ": [^:]* bundle" >/dev/null ; then
4605                       $echo "** Warning, lib $linklib is a module, not a shared library"
4606                       if test -z "$old_library" ; then
4607                         $echo
4608 @@ -2644,7 +2694,7 @@
4609                 add_dir="-L$dir"
4610                 # Try looking first in the location we're being installed to.
4611                 if test -n "$inst_prefix_dir"; then
4612 -                 case "$libdir" in
4613 +                 case $libdir in
4614                     [\\/]*)
4615                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
4616                       ;;
4617 @@ -2717,7 +2767,7 @@
4618               add_dir="-L$libdir"
4619               # Try looking first in the location we're being installed to.
4620               if test -n "$inst_prefix_dir"; then
4621 -               case "$libdir" in
4622 +               case $libdir in
4623                   [\\/]*)
4624                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
4625                     ;;
4626 @@ -2778,8 +2828,6 @@
4627               fi
4628             fi
4629           else
4630 -           convenience="$convenience $dir/$old_library"
4631 -           old_convenience="$old_convenience $dir/$old_library"
4632             deplibs="$dir/$old_library $deplibs"
4633             link_static=yes
4634           fi
4635 @@ -3156,6 +3204,11 @@
4636             age="$number_minor"
4637             revision="$number_minor"
4638             ;;
4639 +         *)
4640 +           $echo "$modename: unknown library version type \`$version_type'" 1>&2
4641 +           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
4642 +           exit $EXIT_FAILURE
4643 +           ;;
4644           esac
4645           ;;
4646         no)
4647 @@ -3366,9 +3419,9 @@
4648  
4649        # Eliminate all temporary directories.
4650        for path in $notinst_path; do
4651 -       lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
4652 -       deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
4653 -       dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
4654 +       lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
4655 +       deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
4656 +       dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
4657        done
4658  
4659        if test -n "$xrpath"; then
4660 @@ -3421,7 +3474,12 @@
4661             ;;
4662           *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
4663             # Do not include libc due to us having libc/libc_r.
4664 -           test "X$arg" = "X-lc" && continue
4665 +           ;;
4666 +         *-*-sco3.2v5* | *-*-sco5v6*)
4667 +           # Causes problems with __ctype
4668 +           ;;
4669 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
4670 +           # Compiler inserts libc in the correct place for threads to work
4671             ;;
4672           *)
4673             # Add libc to deplibs on all other systems if necessary.
4674 @@ -3465,11 +3523,11 @@
4675           int main() { return 0; }
4676  EOF
4677           $rm conftest
4678 -         $LTCC -o conftest conftest.c $deplibs
4679 +         $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
4680           if test "$?" -eq 0 ; then
4681             ldd_output=`ldd conftest`
4682             for i in $deplibs; do
4683 -             name="`expr $i : '-l\(.*\)'`"
4684 +             name=`expr $i : '-l\(.*\)'`
4685               # If $name is empty we are operating on a -L argument.
4686                if test "$name" != "" && test "$name" -ne "0"; then
4687                 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4688 @@ -3506,11 +3564,11 @@
4689             # Error occurred in the first compile.  Let's try to salvage
4690             # the situation: Compile a separate program for each library.
4691             for i in $deplibs; do
4692 -             name="`expr $i : '-l\(.*\)'`"
4693 +             name=`expr $i : '-l\(.*\)'`
4694               # If $name is empty we are operating on a -L argument.
4695                if test "$name" != "" && test "$name" != "0"; then
4696                 $rm conftest
4697 -               $LTCC -o conftest conftest.c $i
4698 +               $LTCC $LTCFLAGS -o conftest conftest.c $i
4699                 # Did it work?
4700                 if test "$?" -eq 0 ; then
4701                   ldd_output=`ldd conftest`
4702 @@ -3558,7 +3616,7 @@
4703           set dummy $deplibs_check_method
4704           file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
4705           for a_deplib in $deplibs; do
4706 -           name="`expr $a_deplib : '-l\(.*\)'`"
4707 +           name=`expr $a_deplib : '-l\(.*\)'`
4708             # If $name is empty we are operating on a -L argument.
4709              if test "$name" != "" && test  "$name" != "0"; then
4710               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4711 @@ -3592,13 +3650,6 @@
4712                         *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
4713                         esac
4714                       done
4715 -                     # It is ok to link against an archive when
4716 -                     # building a shared library.
4717 -                     if $AR -t $potlib > /dev/null 2>&1; then
4718 -                       newdeplibs="$newdeplibs $a_deplib"
4719 -                       a_deplib=""
4720 -                       break 2
4721 -                     fi
4722                       if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
4723                          | ${SED} 10q \
4724                          | $EGREP "$file_magic_regex" > /dev/null; then
4725 @@ -3634,7 +3685,7 @@
4726           set dummy $deplibs_check_method
4727           match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
4728           for a_deplib in $deplibs; do
4729 -           name="`expr $a_deplib : '-l\(.*\)'`"
4730 +           name=`expr $a_deplib : '-l\(.*\)'`
4731             # If $name is empty we are operating on a -L argument.
4732             if test -n "$name" && test "$name" != "0"; then
4733               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4734 @@ -3764,6 +3815,35 @@
4735         deplibs=$newdeplibs
4736        fi
4737  
4738 +
4739 +      # move library search paths that coincide with paths to not yet
4740 +      # installed libraries to the beginning of the library search list
4741 +      new_libs=
4742 +      for path in $notinst_path; do
4743 +       case " $new_libs " in
4744 +       *" -L$path/$objdir "*) ;;
4745 +       *)
4746 +         case " $deplibs " in
4747 +         *" -L$path/$objdir "*)
4748 +           new_libs="$new_libs -L$path/$objdir" ;;
4749 +         esac
4750 +         ;;
4751 +       esac
4752 +      done
4753 +      for deplib in $deplibs; do
4754 +       case $deplib in
4755 +       -L*)
4756 +         case " $new_libs " in
4757 +         *" $deplib "*) ;;
4758 +         *) new_libs="$new_libs $deplib" ;;
4759 +         esac
4760 +         ;;
4761 +       *) new_libs="$new_libs $deplib" ;;
4762 +       esac
4763 +      done
4764 +      deplibs="$new_libs"
4765 +
4766 +
4767        # All the library-specific variables (install_libdir is set above).
4768        library_names=
4769        old_library=
4770 @@ -3847,6 +3927,7 @@
4771         fi
4772  
4773         lib="$output_objdir/$realname"
4774 +       linknames=
4775         for link
4776         do
4777           linknames="$linknames $link"
4778 @@ -3875,6 +3956,9 @@
4779                 # The command line is too long to execute in one step.
4780                 $show "using reloadable object file for export list..."
4781                 skipped_export=:
4782 +               # Break out early, otherwise skipped_export may be
4783 +               # set to false by a later but shorter cmd.
4784 +               break
4785               fi
4786             done
4787             IFS="$save_ifs"
4788 @@ -3944,7 +4028,8 @@
4789           fi
4790         fi
4791  
4792 -       if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
4793 +       if test "X$skipped_export" != "X:" &&
4794 +          len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4795            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4796           :
4797         else
4798 @@ -3979,7 +4064,7 @@
4799           do
4800             eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4801             if test "X$objlist" = X ||
4802 -              { len=`expr "X$test_cmds" : ".*"` &&
4803 +              { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4804                  test "$len" -le "$max_cmd_len"; }; then
4805               objlist="$objlist $obj"
4806             else
4807 @@ -4069,13 +4154,30 @@
4808           IFS="$save_ifs"
4809           eval cmd=\"$cmd\"
4810           $show "$cmd"
4811 -         $run eval "$cmd" || exit $?
4812 +         $run eval "$cmd" || {
4813 +           lt_exit=$?
4814 +
4815 +           # Restore the uninstalled library and exit
4816 +           if test "$mode" = relink; then
4817 +             $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4818 +           fi
4819 +
4820 +           exit $lt_exit
4821 +         }
4822         done
4823         IFS="$save_ifs"
4824  
4825         # Restore the uninstalled library and exit
4826         if test "$mode" = relink; then
4827           $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4828 +
4829 +         if test -n "$convenience"; then
4830 +           if test -z "$whole_archive_flag_spec"; then
4831 +             $show "${rm}r $gentop"
4832 +             $run ${rm}r "$gentop"
4833 +           fi
4834 +         fi
4835 +
4836           exit $EXIT_SUCCESS
4837         fi
4838  
4839 @@ -4257,6 +4359,35 @@
4840          ;;
4841        esac
4842  
4843 +
4844 +      # move library search paths that coincide with paths to not yet
4845 +      # installed libraries to the beginning of the library search list
4846 +      new_libs=
4847 +      for path in $notinst_path; do
4848 +       case " $new_libs " in
4849 +       *" -L$path/$objdir "*) ;;
4850 +       *)
4851 +         case " $compile_deplibs " in
4852 +         *" -L$path/$objdir "*)
4853 +           new_libs="$new_libs -L$path/$objdir" ;;
4854 +         esac
4855 +         ;;
4856 +       esac
4857 +      done
4858 +      for deplib in $compile_deplibs; do
4859 +       case $deplib in
4860 +       -L*)
4861 +         case " $new_libs " in
4862 +         *" $deplib "*) ;;
4863 +         *) new_libs="$new_libs $deplib" ;;
4864 +         esac
4865 +         ;;
4866 +       *) new_libs="$new_libs $deplib" ;;
4867 +       esac
4868 +      done
4869 +      compile_deplibs="$new_libs"
4870 +
4871 +
4872        compile_command="$compile_command $compile_deplibs"
4873        finalize_command="$finalize_command $finalize_deplibs"
4874  
4875 @@ -4301,10 +4432,15 @@
4876         fi
4877         case $host in
4878         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4879 +         testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4880           case :$dllsearchpath: in
4881           *":$libdir:"*) ;;
4882           *) dllsearchpath="$dllsearchpath:$libdir";;
4883           esac
4884 +         case :$dllsearchpath: in
4885 +         *":$testbindir:"*) ;;
4886 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
4887 +         esac
4888           ;;
4889         esac
4890        done
4891 @@ -4420,11 +4556,23 @@
4892             if test -z "$export_symbols"; then
4893               export_symbols="$output_objdir/$outputname.exp"
4894               $run $rm $export_symbols
4895 -             $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4896 +             $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4897 +              case $host in
4898 +              *cygwin* | *mingw* )
4899 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4900 +               $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4901 +                ;;
4902 +              esac
4903             else
4904 -             $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4905 +             $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4906               $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4907               $run eval 'mv "$nlist"T "$nlist"'
4908 +              case $host in
4909 +              *cygwin* | *mingw* )
4910 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4911 +               $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4912 +                ;;
4913 +              esac
4914             fi
4915           fi
4916  
4917 @@ -4541,16 +4689,29 @@
4918           esac
4919  
4920           # Now compile the dynamic symbol file.
4921 -         $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4922 -         $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4923 +         $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4924 +         $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4925  
4926           # Clean up the generated files.
4927           $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4928           $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4929  
4930           # Transform the symbol file into the correct name.
4931 -         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4932 -         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4933 +          case $host in
4934 +          *cygwin* | *mingw* )
4935 +            if test -f "$output_objdir/${outputname}.def" ; then
4936 +              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4937 +              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4938 +            else
4939 +              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4940 +              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4941 +             fi
4942 +            ;;
4943 +          * )
4944 +            compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4945 +            finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4946 +            ;;
4947 +          esac
4948           ;;
4949         *)
4950           $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4951 @@ -4575,7 +4736,7 @@
4952         # We have no uninstalled library dependencies, so finalize right now.
4953         $show "$link_command"
4954         $run eval "$link_command"
4955 -       status=$?
4956 +       exit_status=$?
4957  
4958         # Delete the generated files.
4959         if test -n "$dlsyms"; then
4960 @@ -4583,7 +4744,7 @@
4961           $run $rm "$output_objdir/${outputname}S.${objext}"
4962         fi
4963  
4964 -       exit $status
4965 +       exit $exit_status
4966        fi
4967  
4968        if test -n "$shlibpath_var"; then
4969 @@ -4723,10 +4884,12 @@
4970         esac
4971         case $host in
4972           *cygwin* | *mingw* )
4973 -           cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
4974 -           cwrapper=`$echo ${output}.exe`
4975 -           $rm $cwrappersource $cwrapper
4976 -           trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4977 +            output_name=`basename $output`
4978 +            output_path=`dirname $output`
4979 +            cwrappersource="$output_path/$objdir/lt-$output_name.c"
4980 +            cwrapper="$output_path/$output_name.exe"
4981 +            $rm $cwrappersource $cwrapper
4982 +            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4983  
4984             cat > $cwrappersource <<EOF
4985  
4986 @@ -4751,6 +4914,9 @@
4987  #include <malloc.h>
4988  #include <stdarg.h>
4989  #include <assert.h>
4990 +#include <string.h>
4991 +#include <ctype.h>
4992 +#include <sys/stat.h>
4993  
4994  #if defined(PATH_MAX)
4995  # define LT_PATHMAX PATH_MAX
4996 @@ -4761,15 +4927,19 @@
4997  #endif
4998  
4999  #ifndef DIR_SEPARATOR
5000 -#define DIR_SEPARATOR '/'
5001 +# define DIR_SEPARATOR '/'
5002 +# define PATH_SEPARATOR ':'
5003  #endif
5004  
5005  #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5006    defined (__OS2__)
5007 -#define HAVE_DOS_BASED_FILE_SYSTEM
5008 -#ifndef DIR_SEPARATOR_2
5009 -#define DIR_SEPARATOR_2 '\\'
5010 -#endif
5011 +# define HAVE_DOS_BASED_FILE_SYSTEM
5012 +# ifndef DIR_SEPARATOR_2
5013 +#  define DIR_SEPARATOR_2 '\\'
5014 +# endif
5015 +# ifndef PATH_SEPARATOR_2
5016 +#  define PATH_SEPARATOR_2 ';'
5017 +# endif
5018  #endif
5019  
5020  #ifndef DIR_SEPARATOR_2
5021 @@ -4779,17 +4949,32 @@
5022          (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5023  #endif /* DIR_SEPARATOR_2 */
5024  
5025 +#ifndef PATH_SEPARATOR_2
5026 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5027 +#else /* PATH_SEPARATOR_2 */
5028 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5029 +#endif /* PATH_SEPARATOR_2 */
5030 +
5031  #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
5032  #define XFREE(stale) do { \
5033    if (stale) { free ((void *) stale); stale = 0; } \
5034  } while (0)
5035  
5036 +/* -DDEBUG is fairly common in CFLAGS.  */
5037 +#undef DEBUG
5038 +#if defined DEBUGWRAPPER
5039 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5040 +#else
5041 +# define DEBUG(format, ...)
5042 +#endif
5043 +
5044  const char *program_name = NULL;
5045  
5046  void * xmalloc (size_t num);
5047  char * xstrdup (const char *string);
5048 -char * basename (const char *name);
5049 -char * fnqualify(const char *path);
5050 +const char * base_name (const char *name);
5051 +char * find_executable(const char *wrapper);
5052 +int    check_executable(const char *path);
5053  char * strendzap(char *str, const char *pat);
5054  void lt_fatal (const char *message, ...);
5055  
5056 @@ -4799,29 +4984,51 @@
5057    char **newargz;
5058    int i;
5059  
5060 -  program_name = (char *) xstrdup ((char *) basename (argv[0]));
5061 +  program_name = (char *) xstrdup (base_name (argv[0]));
5062 +  DEBUG("(main) argv[0]      : %s\n",argv[0]);
5063 +  DEBUG("(main) program_name : %s\n",program_name);
5064    newargz = XMALLOC(char *, argc+2);
5065  EOF
5066  
5067 -           cat >> $cwrappersource <<EOF
5068 -  newargz[0] = "$SHELL";
5069 +            cat >> $cwrappersource <<EOF
5070 +  newargz[0] = (char *) xstrdup("$SHELL");
5071  EOF
5072  
5073 -           cat >> $cwrappersource <<"EOF"
5074 -  newargz[1] = fnqualify(argv[0]);
5075 +            cat >> $cwrappersource <<"EOF"
5076 +  newargz[1] = find_executable(argv[0]);
5077 +  if (newargz[1] == NULL)
5078 +    lt_fatal("Couldn't find %s", argv[0]);
5079 +  DEBUG("(main) found exe at : %s\n",newargz[1]);
5080    /* we know the script has the same name, without the .exe */
5081    /* so make sure newargz[1] doesn't end in .exe */
5082    strendzap(newargz[1],".exe");
5083    for (i = 1; i < argc; i++)
5084      newargz[i+1] = xstrdup(argv[i]);
5085    newargz[argc+1] = NULL;
5086 +
5087 +  for (i=0; i<argc+1; i++)
5088 +  {
5089 +    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
5090 +    ;
5091 +  }
5092 +
5093  EOF
5094  
5095 -           cat >> $cwrappersource <<EOF
5096 +            case $host_os in
5097 +              mingw*)
5098 +                cat >> $cwrappersource <<EOF
5099 +  execv("$SHELL",(char const **)newargz);
5100 +EOF
5101 +              ;;
5102 +              *)
5103 +                cat >> $cwrappersource <<EOF
5104    execv("$SHELL",newargz);
5105  EOF
5106 +              ;;
5107 +            esac
5108  
5109 -           cat >> $cwrappersource <<"EOF"
5110 +            cat >> $cwrappersource <<"EOF"
5111 +  return 127;
5112  }
5113  
5114  void *
5115 @@ -4841,48 +5048,148 @@
5116  ;
5117  }
5118  
5119 -char *
5120 -basename (const char *name)
5121 +const char *
5122 +base_name (const char *name)
5123  {
5124    const char *base;
5125  
5126  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5127    /* Skip over the disk name in MSDOS pathnames. */
5128 -  if (isalpha (name[0]) && name[1] == ':')
5129 +  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5130      name += 2;
5131  #endif
5132  
5133    for (base = name; *name; name++)
5134      if (IS_DIR_SEPARATOR (*name))
5135        base = name + 1;
5136 -  return (char *) base;
5137 +  return base;
5138 +}
5139 +
5140 +int
5141 +check_executable(const char * path)
5142 +{
5143 +  struct stat st;
5144 +
5145 +  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5146 +  if ((!path) || (!*path))
5147 +    return 0;
5148 +
5149 +  if ((stat (path, &st) >= 0) &&
5150 +      (
5151 +        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5152 +#if defined (S_IXOTH)
5153 +       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5154 +#endif
5155 +#if defined (S_IXGRP)
5156 +       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5157 +#endif
5158 +       ((st.st_mode & S_IXUSR) == S_IXUSR))
5159 +      )
5160 +    return 1;
5161 +  else
5162 +    return 0;
5163  }
5164  
5165 +/* Searches for the full path of the wrapper.  Returns
5166 +   newly allocated full path name if found, NULL otherwise */
5167  char *
5168 -fnqualify(const char *path)
5169 +find_executable (const char* wrapper)
5170  {
5171 -  size_t size;
5172 -  char *p;
5173 +  int has_slash = 0;
5174 +  const char* p;
5175 +  const char* p_next;
5176 +  /* static buffer for getcwd */
5177    char tmp[LT_PATHMAX + 1];
5178 +  int tmp_len;
5179 +  char* concat_name;
5180 +
5181 +  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5182  
5183 -  assert(path != NULL);
5184 +  if ((wrapper == NULL) || (*wrapper == '\0'))
5185 +    return NULL;
5186  
5187 -  /* Is it qualified already? */
5188 +  /* Absolute path? */
5189 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5190 +  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5191 +  {
5192 +    concat_name = xstrdup (wrapper);
5193 +    if (check_executable(concat_name))
5194 +      return concat_name;
5195 +    XFREE(concat_name);
5196 +  }
5197 +  else
5198 +  {
5199 +#endif
5200 +    if (IS_DIR_SEPARATOR (wrapper[0]))
5201 +    {
5202 +      concat_name = xstrdup (wrapper);
5203 +      if (check_executable(concat_name))
5204 +        return concat_name;
5205 +      XFREE(concat_name);
5206 +    }
5207  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5208 -  if (isalpha (path[0]) && path[1] == ':')
5209 -    return xstrdup (path);
5210 +  }
5211  #endif
5212 -  if (IS_DIR_SEPARATOR (path[0]))
5213 -    return xstrdup (path);
5214  
5215 -  /* prepend the current directory */
5216 -  /* doesn't handle '~' */
5217 +  for (p = wrapper; *p; p++)
5218 +    if (*p == '/')
5219 +    {
5220 +      has_slash = 1;
5221 +      break;
5222 +    }
5223 +  if (!has_slash)
5224 +  {
5225 +    /* no slashes; search PATH */
5226 +    const char* path = getenv ("PATH");
5227 +    if (path != NULL)
5228 +    {
5229 +      for (p = path; *p; p = p_next)
5230 +      {
5231 +        const char* q;
5232 +        size_t p_len;
5233 +        for (q = p; *q; q++)
5234 +          if (IS_PATH_SEPARATOR(*q))
5235 +            break;
5236 +        p_len = q - p;
5237 +        p_next = (*q == '\0' ? q : q + 1);
5238 +        if (p_len == 0)
5239 +        {
5240 +          /* empty path: current directory */
5241 +          if (getcwd (tmp, LT_PATHMAX) == NULL)
5242 +            lt_fatal ("getcwd failed");
5243 +          tmp_len = strlen(tmp);
5244 +          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5245 +          memcpy (concat_name, tmp, tmp_len);
5246 +          concat_name[tmp_len] = '/';
5247 +          strcpy (concat_name + tmp_len + 1, wrapper);
5248 +        }
5249 +        else
5250 +        {
5251 +          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5252 +          memcpy (concat_name, p, p_len);
5253 +          concat_name[p_len] = '/';
5254 +          strcpy (concat_name + p_len + 1, wrapper);
5255 +        }
5256 +        if (check_executable(concat_name))
5257 +          return concat_name;
5258 +        XFREE(concat_name);
5259 +      }
5260 +    }
5261 +    /* not found in PATH; assume curdir */
5262 +  }
5263 +  /* Relative path | not found in path: prepend cwd */
5264    if (getcwd (tmp, LT_PATHMAX) == NULL)
5265      lt_fatal ("getcwd failed");
5266 -  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
5267 -  p = XMALLOC(char, size);
5268 -  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
5269 -  return p;
5270 +  tmp_len = strlen(tmp);
5271 +  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5272 +  memcpy (concat_name, tmp, tmp_len);
5273 +  concat_name[tmp_len] = '/';
5274 +  strcpy (concat_name + tmp_len + 1, wrapper);
5275 +
5276 +  if (check_executable(concat_name))
5277 +    return concat_name;
5278 +  XFREE(concat_name);
5279 +  return NULL;
5280  }
5281  
5282  char *
5283 @@ -4926,16 +5233,16 @@
5284    va_end (ap);
5285  }
5286  EOF
5287 -         # we should really use a build-platform specific compiler
5288 -         # here, but OTOH, the wrappers (shell script and this C one)
5289 -         # are only useful if you want to execute the "real" binary.
5290 -         # Since the "real" binary is built for $host, then this
5291 -         # wrapper might as well be built for $host, too.
5292 -         $run $LTCC -s -o $cwrapper $cwrappersource
5293 -         ;;
5294 -       esac
5295 -       $rm $output
5296 -       trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5297 +          # we should really use a build-platform specific compiler
5298 +          # here, but OTOH, the wrappers (shell script and this C one)
5299 +          # are only useful if you want to execute the "real" binary.
5300 +          # Since the "real" binary is built for $host, then this
5301 +          # wrapper might as well be built for $host, too.
5302 +          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5303 +          ;;
5304 +        esac
5305 +        $rm $output
5306 +        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5307  
5308         $echo > $output "\
5309  #! $SHELL
5310 @@ -5085,13 +5392,13 @@
5311         # Backslashes separate directories on plain windows
5312         *-*-mingw | *-*-os2*)
5313           $echo >> $output "\
5314 -      exec \$progdir\\\\\$program \${1+\"\$@\"}
5315 +      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5316  "
5317           ;;
5318  
5319         *)
5320           $echo >> $output "\
5321 -      exec \$progdir/\$program \${1+\"\$@\"}
5322 +      exec \"\$progdir/\$program\" \${1+\"\$@\"}
5323  "
5324           ;;
5325         esac
5326 @@ -5101,7 +5408,7 @@
5327      fi
5328    else
5329      # The program doesn't exist.
5330 -    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
5331 +    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5332      \$echo \"This script is just a wrapper for \$program.\" 1>&2
5333      $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5334      exit $EXIT_FAILURE
5335 @@ -5165,9 +5472,9 @@
5336             $run ${rm}r "$gentop"
5337             $show "$mkdir $gentop"
5338             $run $mkdir "$gentop"
5339 -           status=$?
5340 -           if test "$status" -ne 0 && test ! -d "$gentop"; then
5341 -             exit $status
5342 +           exit_status=$?
5343 +           if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5344 +             exit $exit_status
5345             fi
5346           fi
5347  
5348 @@ -5224,7 +5531,7 @@
5349             oldobjs="$objlist $obj"
5350             objlist="$objlist $obj"
5351             eval test_cmds=\"$old_archive_cmds\"
5352 -           if len=`expr "X$test_cmds" : ".*"` &&
5353 +           if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5354                test "$len" -le "$max_cmd_len"; then
5355               :
5356             else
5357 @@ -5307,53 +5614,9 @@
5358                   $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5359                   exit $EXIT_FAILURE
5360                 fi
5361 -               if test "X$EGREP" = X ; then
5362 -                       EGREP=egrep
5363 -               fi
5364 -               # We do not want portage's install root ($D) present.  Check only for
5365 -               # this if the .la is being installed.
5366 -               if test "$installed" = yes && test "$D"; then
5367 -                 eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5368 -               else
5369 -                 mynewdependency_lib="$libdir/$name"
5370 -               fi
5371 -               # Do not add duplicates
5372 -               if test "$mynewdependency_lib"; then
5373 -                 my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
5374 -                 if test -z "$my_little_ninja_foo_1"; then
5375 -                   newdependency_libs="$newdependency_libs $mynewdependency_lib"
5376 -                 fi
5377 -               fi
5378 -               ;;
5379 -                 *)
5380 -               if test "$installed" = yes; then
5381 -                 # Rather use S=WORKDIR if our version of portage supports it.
5382 -                 # This is because some ebuild (gcc) do not use $S as buildroot.
5383 -                 if test "$PWORKDIR"; then
5384 -                   S="$PWORKDIR"
5385 -                 fi
5386 -                 # We do not want portage's build root ($S) present.
5387 -                 my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
5388 -                 if test -n "$my_little_ninja_foo_2" && test "$S"; then
5389 -                   mynewdependency_lib=""
5390 -                 # We do not want portage's install root ($D) present.
5391 -                 my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
5392 -                 elif test -n "$my_little_ninja_foo_3" && test "$D"; then
5393 -                   eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5394 -                 else
5395 -                   mynewdependency_lib="$deplib"
5396 -                 fi
5397 -               else
5398 -                 mynewdependency_lib="$deplib"
5399 -               fi
5400 -               # Do not add duplicates
5401 -               if test "$mynewdependency_lib"; then
5402 -                 my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
5403 -                 if test -z "$my_little_ninja_foo_4"; then
5404 -                       newdependency_libs="$newdependency_libs $mynewdependency_lib"
5405 -                 fi
5406 -               fi
5407 +               newdependency_libs="$newdependency_libs $libdir/$name"
5408                 ;;
5409 +             *) newdependency_libs="$newdependency_libs $deplib" ;;
5410               esac
5411             done
5412             dependency_libs="$newdependency_libs"
5413 @@ -5405,10 +5668,6 @@
5414           case $host,$output,$installed,$module,$dlname in
5415             *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5416           esac
5417 -         # Do not add duplicates
5418 -         if test "$installed" = yes && test "$D"; then
5419 -           install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5420 -         fi
5421           $echo > $output "\
5422  # $outputname - a libtool library file
5423  # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5424 @@ -5469,11 +5728,11 @@
5425      # install_prog (especially on Windows NT).
5426      if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5427         # Allow the use of GNU shtool's install command.
5428 -       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
5429 +       $echo "X$nonopt" | grep shtool > /dev/null; then
5430        # Aesthetically quote it.
5431        arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5432        case $arg in
5433 -      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
5434 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
5435         arg="\"$arg\""
5436         ;;
5437        esac
5438 @@ -5482,14 +5741,14 @@
5439        shift
5440      else
5441        install_prog=
5442 -      arg="$nonopt"
5443 +      arg=$nonopt
5444      fi
5445  
5446      # The real first argument should be the name of the installation program.
5447      # Aesthetically quote it.
5448      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5449      case $arg in
5450 -    *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
5451 +    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*|"")
5452        arg="\"$arg\""
5453        ;;
5454      esac
5455 @@ -5507,28 +5766,31 @@
5456      do
5457        if test -n "$dest"; then
5458         files="$files $dest"
5459 -       dest="$arg"
5460 +       dest=$arg
5461         continue
5462        fi
5463  
5464        case $arg in
5465        -d) isdir=yes ;;
5466 -      -f) prev="-f" ;;
5467 -      -g) prev="-g" ;;
5468 -      -m) prev="-m" ;;
5469 -      -o) prev="-o" ;;
5470 +      -f) 
5471 +       case " $install_prog " in
5472 +       *[\\\ /]cp\ *) ;;
5473 +       *) prev=$arg ;;
5474 +       esac
5475 +       ;;
5476 +      -g | -m | -o) prev=$arg ;;
5477        -s)
5478         stripme=" -s"
5479         continue
5480         ;;
5481 -      -*) ;;
5482 -
5483 +      -*)
5484 +       ;;
5485        *)
5486         # If the previous option needed an argument, then skip it.
5487         if test -n "$prev"; then
5488           prev=
5489         else
5490 -         dest="$arg"
5491 +         dest=$arg
5492           continue
5493         fi
5494         ;;
5495 @@ -5537,7 +5799,7 @@
5496        # Aesthetically quote the argument.
5497        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5498        case $arg in
5499 -      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
5500 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
5501         arg="\"$arg\""
5502         ;;
5503        esac
5504 @@ -5706,11 +5968,14 @@
5505  
5506           if test "$#" -gt 0; then
5507             # Delete the old symlinks, and create new ones.
5508 +           # Try `ln -sf' first, because the `ln' binary might depend on
5509 +           # the symlink we replace!  Solaris /bin/ln does not understand -f,
5510 +           # so we also need to try rm && ln -s.
5511             for linkname
5512             do
5513               if test "$linkname" != "$realname"; then
5514 -               $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5515 -               $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
5516 +                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5517 +                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5518               fi
5519             done
5520           fi
5521 @@ -5723,7 +5988,16 @@
5522             IFS="$save_ifs"
5523             eval cmd=\"$cmd\"
5524             $show "$cmd"
5525 -           $run eval "$cmd" || exit $?
5526 +           $run eval "$cmd" || {
5527 +             lt_exit=$?
5528 +
5529 +             # Restore the uninstalled library and exit
5530 +             if test "$mode" = relink; then
5531 +               $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
5532 +             fi
5533 +
5534 +             exit $lt_exit
5535 +           }
5536           done
5537           IFS="$save_ifs"
5538         fi
5539 @@ -5817,17 +6091,15 @@
5540           notinst_deplibs=
5541           relink_command=
5542  
5543 -         # To insure that "foo" is sourced, and not "foo.exe",
5544 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
5545 -         # which disallows the automatic-append-.exe behavior.
5546 -         case $build in
5547 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5548 -         *) wrapperdot=${wrapper} ;;
5549 -         esac
5550 +         # Note that it is not necessary on cygwin/mingw to append a dot to
5551 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
5552 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
5553 +         # `FILE.' does not work on cygwin managed mounts.
5554 +         #
5555           # If there is no directory component, then add one.
5556 -         case $file in
5557 -         */* | *\\*) . ${wrapperdot} ;;
5558 -         *) . ./${wrapperdot} ;;
5559 +         case $wrapper in
5560 +         */* | *\\*) . ${wrapper} ;;
5561 +         *) . ./${wrapper} ;;
5562           esac
5563  
5564           # Check the variables that should have been set.
5565 @@ -5855,34 +6127,21 @@
5566           done
5567  
5568           relink_command=
5569 -         # To insure that "foo" is sourced, and not "foo.exe",
5570 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
5571 -         # which disallows the automatic-append-.exe behavior.
5572 -         case $build in
5573 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
5574 -         *) wrapperdot=${wrapper} ;;
5575 -         esac
5576 +         # Note that it is not necessary on cygwin/mingw to append a dot to
5577 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
5578 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
5579 +         # `FILE.' does not work on cygwin managed mounts.
5580 +         #
5581           # If there is no directory component, then add one.
5582 -         case $file in
5583 -         */* | *\\*) . ${wrapperdot} ;;
5584 -         *) . ./${wrapperdot} ;;
5585 +         case $wrapper in
5586 +         */* | *\\*) . ${wrapper} ;;
5587 +         *) . ./${wrapper} ;;
5588           esac
5589  
5590           outputname=
5591           if test "$fast_install" = no && test -n "$relink_command"; then
5592             if test "$finalize" = yes && test -z "$run"; then
5593 -             tmpdir="/tmp"
5594 -             test -n "$TMPDIR" && tmpdir="$TMPDIR"
5595 -             tmpdir="$tmpdir/libtool-$$"
5596 -             save_umask=`umask`
5597 -             umask 0077
5598 -             if $mkdir "$tmpdir"; then
5599 -               umask $save_umask
5600 -             else
5601 -               umask $save_umask
5602 -               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5603 -               continue
5604 -             fi
5605 +             tmpdir=`func_mktempdir`
5606               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5607               outputname="$tmpdir/$file"
5608               # Replace the output file specification.
5609 @@ -5906,7 +6165,7 @@
5610         fi
5611  
5612         # remove .exe since cygwin /usr/bin/install will append another
5613 -       # one anyways
5614 +       # one anyway 
5615         case $install_prog,$host in
5616         */usr/bin/install*,*cygwin*)
5617           case $file:$destfile in
5618 @@ -6006,7 +6265,7 @@
5619      # Exit here if they wanted silent mode.
5620      test "$show" = : && exit $EXIT_SUCCESS
5621  
5622 -    $echo "----------------------------------------------------------------------"
5623 +    $echo "X----------------------------------------------------------------------" | $Xsed
5624      $echo "Libraries have been installed in:"
5625      for libdir in $libdirs; do
5626        $echo "   $libdir"
5627 @@ -6039,7 +6298,7 @@
5628      $echo
5629      $echo "See any operating system documentation about shared libraries for"
5630      $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5631 -    $echo "----------------------------------------------------------------------"
5632 +    $echo "X----------------------------------------------------------------------" | $Xsed
5633      exit $EXIT_SUCCESS
5634      ;;
5635  
5636 @@ -6256,9 +6515,17 @@
5637             rmfiles="$rmfiles $objdir/$n"
5638           done
5639           test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
5640 -         test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
5641  
5642 -         if test "$mode" = uninstall; then
5643 +         case "$mode" in
5644 +         clean)
5645 +           case "  $library_names " in
5646 +           # "  " in the beginning catches empty $dlname
5647 +           *" $dlname "*) ;;
5648 +           *) rmfiles="$rmfiles $objdir/$dlname" ;;
5649 +           esac
5650 +            test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
5651 +           ;;
5652 +         uninstall)
5653             if test -n "$library_names"; then
5654               # Do each command in the postuninstall commands.
5655               cmds=$postuninstall_cmds
5656 @@ -6291,7 +6558,8 @@
5657               IFS="$save_ifs"
5658             fi
5659             # FIXME: should reinstall the best remaining shared library.
5660 -         fi
5661 +           ;;
5662 +         esac
5663         fi
5664         ;;
5665  
5666 @@ -6590,12 +6858,11 @@
5667  # configuration.  But we'll never go from static-only to shared-only.
5668  
5669  # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
5670 -build_libtool_libs=no
5671 -build_old_libs=yes
5672 +disable_libs=shared
5673  # ### END LIBTOOL TAG CONFIG: disable-shared
5674  
5675  # ### BEGIN LIBTOOL TAG CONFIG: disable-static
5676 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
5677 +disable_libs=static
5678  # ### END LIBTOOL TAG CONFIG: disable-static
5679  
5680  # Local Variables:
5681 --- ./configure 2005-11-26 20:46:25.000000000 +0100
5682 +++ ./configure 2006-10-10 17:43:59.000000000 +0200
5683 @@ -1,10 +1,11 @@
5684  #! /bin/sh
5685  # Guess values for system-dependent variables and create Makefiles.
5686 -# Generated by GNU Autoconf 2.59 for suPHP 0.6.1.
5687 +# Generated by GNU Autoconf 2.60a for suPHP 0.6.1.
5688  #
5689  # Report bugs to <sebastian.marsching@suphp.org>.
5690  #
5691 -# Copyright (C) 2003 Free Software Foundation, Inc.
5692 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5693 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5694  # This configure script is free software; the Free Software Foundation
5695  # gives unlimited permission to copy, distribute and modify it.
5696  ## --------------------- ##
5697 @@ -18,11 +19,35 @@
5698    # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5699    # is contrary to our usage.  Disable this feature.
5700    alias -g '${1+"$@"}'='"$@"'
5701 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5702 -  set -o posix
5703 +  setopt NO_GLOB_SUBST
5704 +else
5705 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
5706  fi
5707 +BIN_SH=xpg4; export BIN_SH # for Tru64
5708  DUALCASE=1; export DUALCASE # for MKS sh
5709  
5710 +
5711 +# PATH needs CR
5712 +# Avoid depending upon Character Ranges.
5713 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5714 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5715 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5716 +as_cr_digits='0123456789'
5717 +as_cr_alnum=$as_cr_Letters$as_cr_digits
5718 +
5719 +# The user is always right.
5720 +if test "${PATH_SEPARATOR+set}" != set; then
5721 +  echo "#! /bin/sh" >conf$$.sh
5722 +  echo  "exit 0"   >>conf$$.sh
5723 +  chmod +x conf$$.sh
5724 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5725 +    PATH_SEPARATOR=';'
5726 +  else
5727 +    PATH_SEPARATOR=:
5728 +  fi
5729 +  rm -f conf$$.sh
5730 +fi
5731 +
5732  # Support unset when possible.
5733  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5734    as_unset=unset
5735 @@ -31,8 +56,43 @@
5736  fi
5737  
5738  
5739 +# IFS
5740 +# We need space, tab and new line, in precisely that order.  Quoting is
5741 +# there to prevent editors from complaining about space-tab.
5742 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5743 +# splitting by setting IFS to empty value.)
5744 +as_nl='
5745 +'
5746 +IFS=" ""       $as_nl"
5747 +
5748 +# Find who we are.  Look in the path if we contain no directory separator.
5749 +case $0 in
5750 +  *[\\/]* ) as_myself=$0 ;;
5751 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 +for as_dir in $PATH
5753 +do
5754 +  IFS=$as_save_IFS
5755 +  test -z "$as_dir" && as_dir=.
5756 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5757 +done
5758 +IFS=$as_save_IFS
5759 +
5760 +     ;;
5761 +esac
5762 +# We did not find ourselves, most probably we were run as `sh COMMAND'
5763 +# in which case we are not to be found in the path.
5764 +if test "x$as_myself" = x; then
5765 +  as_myself=$0
5766 +fi
5767 +if test ! -f "$as_myself"; then
5768 +  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5769 +  { (exit 1); exit 1; }
5770 +fi
5771 +
5772  # Work around bugs in pre-3.0 UWIN ksh.
5773 -$as_unset ENV MAIL MAILPATH
5774 +for as_var in ENV MAIL MAILPATH
5775 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5776 +done
5777  PS1='$ '
5778  PS2='> '
5779  PS4='+ '
5780 @@ -46,18 +106,19 @@
5781    if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5782      eval $as_var=C; export $as_var
5783    else
5784 -    $as_unset $as_var
5785 +    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5786    fi
5787  done
5788  
5789  # Required to use basename.
5790 -if expr a : '\(a\)' >/dev/null 2>&1; then
5791 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5792 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5793    as_expr=expr
5794  else
5795    as_expr=false
5796  fi
5797  
5798 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5799 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5800    as_basename=basename
5801  else
5802    as_basename=false
5803 @@ -65,157 +126,386 @@
5804  
5805  
5806  # Name of the executable.
5807 -as_me=`$as_basename "$0" ||
5808 +as_me=`$as_basename -- "$0" ||
5809  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5810          X"$0" : 'X\(//\)$' \| \
5811 -        X"$0" : 'X\(/\)$' \| \
5812 -        .     : '\(.\)' 2>/dev/null ||
5813 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5814  echo X/"$0" |
5815 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5816 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
5817 -         /^X\/\(\/\).*/{ s//\1/; q; }
5818 -         s/.*/./; q'`
5819 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
5820 +           s//\1/
5821 +           q
5822 +         }
5823 +         /^X\/\(\/\/\)$/{
5824 +           s//\1/
5825 +           q
5826 +         }
5827 +         /^X\/\(\/\).*/{
5828 +           s//\1/
5829 +           q
5830 +         }
5831 +         s/.*/./; q'`
5832  
5833 +# CDPATH.
5834 +$as_unset CDPATH
5835  
5836 -# PATH needs CR, and LINENO needs CR and PATH.
5837 -# Avoid depending upon Character Ranges.
5838 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5839 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5840 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5841 -as_cr_digits='0123456789'
5842 -as_cr_alnum=$as_cr_Letters$as_cr_digits
5843  
5844 -# The user is always right.
5845 -if test "${PATH_SEPARATOR+set}" != set; then
5846 -  echo "#! /bin/sh" >conf$$.sh
5847 -  echo  "exit 0"   >>conf$$.sh
5848 -  chmod +x conf$$.sh
5849 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5850 -    PATH_SEPARATOR=';'
5851 -  else
5852 -    PATH_SEPARATOR=:
5853 -  fi
5854 -  rm -f conf$$.sh
5855 +if test "x$CONFIG_SHELL" = x; then
5856 +  if (eval ":") 2>/dev/null; then
5857 +  as_have_required=yes
5858 +else
5859 +  as_have_required=no
5860  fi
5861  
5862 +  if test $as_have_required = yes &&    (eval ":
5863 +(as_func_return () {
5864 +  (exit \$1)
5865 +}
5866 +as_func_success () {
5867 +  as_func_return 0
5868 +}
5869 +as_func_failure () {
5870 +  as_func_return 1
5871 +}
5872 +as_func_ret_success () {
5873 +  return 0
5874 +}
5875 +as_func_ret_failure () {
5876 +  return 1
5877 +}
5878  
5879 -  as_lineno_1=$LINENO
5880 -  as_lineno_2=$LINENO
5881 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5882 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
5883 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5884 -  # Find who we are.  Look in the path if we contain no path at all
5885 -  # relative or not.
5886 -  case $0 in
5887 -    *[\\/]* ) as_myself=$0 ;;
5888 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 -for as_dir in $PATH
5890 -do
5891 -  IFS=$as_save_IFS
5892 -  test -z "$as_dir" && as_dir=.
5893 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5894 -done
5895 +exitcode=0
5896 +if as_func_success; then
5897 +  :
5898 +else
5899 +  exitcode=1
5900 +  echo as_func_success failed.
5901 +fi
5902  
5903 -       ;;
5904 -  esac
5905 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
5906 -  # in which case we are not to be found in the path.
5907 -  if test "x$as_myself" = x; then
5908 -    as_myself=$0
5909 -  fi
5910 -  if test ! -f "$as_myself"; then
5911 -    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
5912 -   { (exit 1); exit 1; }; }
5913 -  fi
5914 -  case $CONFIG_SHELL in
5915 -  '')
5916 +if as_func_failure; then
5917 +  exitcode=1
5918 +  echo as_func_failure succeeded.
5919 +fi
5920 +
5921 +if as_func_ret_success; then
5922 +  :
5923 +else
5924 +  exitcode=1
5925 +  echo as_func_ret_success failed.
5926 +fi
5927 +
5928 +if as_func_ret_failure; then
5929 +  exitcode=1
5930 +  echo as_func_ret_failure succeeded.
5931 +fi
5932 +
5933 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
5934 +  :
5935 +else
5936 +  exitcode=1
5937 +  echo positional parameters were not saved.
5938 +fi
5939 +
5940 +test \$exitcode = 0) || { (exit 1); exit 1; }
5941 +
5942 +(
5943 +  as_lineno_1=\$LINENO
5944 +  as_lineno_2=\$LINENO
5945 +  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
5946 +  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
5947 +") 2> /dev/null; then
5948 +  :
5949 +else
5950 +  as_candidate_shells=
5951      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5953 +for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5954  do
5955    IFS=$as_save_IFS
5956    test -z "$as_dir" && as_dir=.
5957 -  for as_base in sh bash ksh sh5; do
5958 -        case $as_dir in
5959 +  case $as_dir in
5960          /*)
5961 -          if ("$as_dir/$as_base" -c '
5962 +          for as_base in sh bash ksh sh5; do
5963 +            as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
5964 +          done;;
5965 +       esac
5966 +done
5967 +IFS=$as_save_IFS
5968 +
5969 +
5970 +      for as_shell in $as_candidate_shells $SHELL; do
5971 +        # Try only shells that exist, to save several forks.
5972 +        if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5973 +               { ("$as_shell") 2> /dev/null <<\_ASEOF
5974 +# Be Bourne compatible
5975 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5976 +  emulate sh
5977 +  NULLCMD=:
5978 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5979 +  # is contrary to our usage.  Disable this feature.
5980 +  alias -g '${1+"$@"}'='"$@"'
5981 +  setopt NO_GLOB_SUBST
5982 +else
5983 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
5984 +fi
5985 +BIN_SH=xpg4; export BIN_SH # for Tru64
5986 +DUALCASE=1; export DUALCASE # for MKS sh
5987 +
5988 +:
5989 +_ASEOF
5990 +}; then
5991 +  CONFIG_SHELL=$as_shell
5992 +              as_have_required=yes
5993 +              if { "$as_shell" 2> /dev/null <<\_ASEOF
5994 +# Be Bourne compatible
5995 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5996 +  emulate sh
5997 +  NULLCMD=:
5998 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5999 +  # is contrary to our usage.  Disable this feature.
6000 +  alias -g '${1+"$@"}'='"$@"'
6001 +  setopt NO_GLOB_SUBST
6002 +else
6003 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6004 +fi
6005 +BIN_SH=xpg4; export BIN_SH # for Tru64
6006 +DUALCASE=1; export DUALCASE # for MKS sh
6007 +
6008 +:
6009 +(as_func_return () {
6010 +  (exit $1)
6011 +}
6012 +as_func_success () {
6013 +  as_func_return 0
6014 +}
6015 +as_func_failure () {
6016 +  as_func_return 1
6017 +}
6018 +as_func_ret_success () {
6019 +  return 0
6020 +}
6021 +as_func_ret_failure () {
6022 +  return 1
6023 +}
6024 +
6025 +exitcode=0
6026 +if as_func_success; then
6027 +  :
6028 +else
6029 +  exitcode=1
6030 +  echo as_func_success failed.
6031 +fi
6032 +
6033 +if as_func_failure; then
6034 +  exitcode=1
6035 +  echo as_func_failure succeeded.
6036 +fi
6037 +
6038 +if as_func_ret_success; then
6039 +  :
6040 +else
6041 +  exitcode=1
6042 +  echo as_func_ret_success failed.
6043 +fi
6044 +
6045 +if as_func_ret_failure; then
6046 +  exitcode=1
6047 +  echo as_func_ret_failure succeeded.
6048 +fi
6049 +
6050 +if ( set x; as_func_ret_success y && test x = "$1" ); then
6051 +  :
6052 +else
6053 +  exitcode=1
6054 +  echo positional parameters were not saved.
6055 +fi
6056 +
6057 +test $exitcode = 0) || { (exit 1); exit 1; }
6058 +
6059 +(
6060    as_lineno_1=$LINENO
6061    as_lineno_2=$LINENO
6062 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6063    test "x$as_lineno_1" != "x$as_lineno_2" &&
6064 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6065 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6066 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6067 -            CONFIG_SHELL=$as_dir/$as_base
6068 -            export CONFIG_SHELL
6069 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6070 -          fi;;
6071 -        esac
6072 -       done
6073 -done
6074 -;;
6075 -  esac
6076 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
6077 +
6078 +_ASEOF
6079 +}; then
6080 +  break
6081 +fi
6082 +
6083 +fi
6084 +
6085 +      done
6086 +
6087 +      if test "x$CONFIG_SHELL" != x; then
6088 +  for as_var in BASH_ENV ENV
6089 +        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6090 +        done
6091 +        export CONFIG_SHELL
6092 +        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
6093 +fi
6094 +
6095 +
6096 +    if test $as_have_required = no; then
6097 +  echo This script requires a shell more modern than all the
6098 +      echo shells that I found on your system.  Please install a
6099 +      echo modern shell, or manually run the script under such a
6100 +      echo shell if you do have one.
6101 +      { (exit 1); exit 1; }
6102 +fi
6103 +
6104 +
6105 +fi
6106 +
6107 +fi
6108 +
6109 +
6110 +
6111 +(eval "as_func_return () {
6112 +  (exit \$1)
6113 +}
6114 +as_func_success () {
6115 +  as_func_return 0
6116 +}
6117 +as_func_failure () {
6118 +  as_func_return 1
6119 +}
6120 +as_func_ret_success () {
6121 +  return 0
6122 +}
6123 +as_func_ret_failure () {
6124 +  return 1
6125 +}
6126 +
6127 +exitcode=0
6128 +if as_func_success; then
6129 +  :
6130 +else
6131 +  exitcode=1
6132 +  echo as_func_success failed.
6133 +fi
6134 +
6135 +if as_func_failure; then
6136 +  exitcode=1
6137 +  echo as_func_failure succeeded.
6138 +fi
6139 +
6140 +if as_func_ret_success; then
6141 +  :
6142 +else
6143 +  exitcode=1
6144 +  echo as_func_ret_success failed.
6145 +fi
6146 +
6147 +if as_func_ret_failure; then
6148 +  exitcode=1
6149 +  echo as_func_ret_failure succeeded.
6150 +fi
6151 +
6152 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
6153 +  :
6154 +else
6155 +  exitcode=1
6156 +  echo positional parameters were not saved.
6157 +fi
6158 +
6159 +test \$exitcode = 0") || {
6160 +  echo No shell found that supports shell functions.
6161 +  echo Please tell autoconf@gnu.org about your system,
6162 +  echo including any error possibly output before this
6163 +  echo message
6164 +}
6165 +
6166 +
6167 +
6168 +  as_lineno_1=$LINENO
6169 +  as_lineno_2=$LINENO
6170 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
6171 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6172  
6173    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6174    # uniformly replaced by the line number.  The first 'sed' inserts a
6175 -  # line-number line before each line; the second 'sed' does the real
6176 -  # work.  The second script uses 'N' to pair each line-number line
6177 -  # with the numbered line, and appends trailing '-' during
6178 -  # substitution so that $LINENO is not a special case at line end.
6179 +  # line-number line after each line using $LINENO; the second 'sed'
6180 +  # does the real work.  The second script uses 'N' to pair each
6181 +  # line-number line with the line containing $LINENO, and appends
6182 +  # trailing '-' during substitution so that $LINENO is not a special
6183 +  # case at line end.
6184    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6185 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6186 -  sed '=' <$as_myself |
6187 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
6188 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
6189 +  sed -n '
6190 +    p
6191 +    /[$]LINENO/=
6192 +  ' <$as_myself |
6193      sed '
6194 +      s/[$]LINENO.*/&-/
6195 +      t lineno
6196 +      b
6197 +      :lineno
6198        N
6199 -      s,$,-,
6200 -      : loop
6201 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6202 +      :loop
6203 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6204        t loop
6205 -      s,-$,,
6206 -      s,^['$as_cr_digits']*\n,,
6207 +      s/-\n.*//
6208      ' >$as_me.lineno &&
6209 -  chmod +x $as_me.lineno ||
6210 +  chmod +x "$as_me.lineno" ||
6211      { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6212     { (exit 1); exit 1; }; }
6213  
6214    # Don't try to exec as it changes $[0], causing all sort of problems
6215    # (the dirname of $[0] is not the place where we might find the
6216 -  # original and so on.  Autoconf is especially sensible to this).
6217 -  . ./$as_me.lineno
6218 +  # original and so on.  Autoconf is especially sensitive to this).
6219 +  . "./$as_me.lineno"
6220    # Exit status is that of the last command.
6221    exit
6222  }
6223  
6224  
6225 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6226 -  *c*,-n*) ECHO_N= ECHO_C='
6227 -' ECHO_T='     ' ;;
6228 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6229 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6230 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6231 +  as_dirname=dirname
6232 +else
6233 +  as_dirname=false
6234 +fi
6235 +
6236 +ECHO_C= ECHO_N= ECHO_T=
6237 +case `echo -n x` in
6238 +-n*)
6239 +  case `echo 'x\c'` in
6240 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
6241 +  *)   ECHO_C='\c';;
6242 +  esac;;
6243 +*)
6244 +  ECHO_N='-n';;
6245  esac
6246  
6247 -if expr a : '\(a\)' >/dev/null 2>&1; then
6248 +if expr a : '\(a\)' >/dev/null 2>&1 &&
6249 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6250    as_expr=expr
6251  else
6252    as_expr=false
6253  fi
6254  
6255  rm -f conf$$ conf$$.exe conf$$.file
6256 +if test -d conf$$.dir; then
6257 +  rm -f conf$$.dir/conf$$.file
6258 +else
6259 +  rm -f conf$$.dir
6260 +  mkdir conf$$.dir
6261 +fi
6262  echo >conf$$.file
6263  if ln -s conf$$.file conf$$ 2>/dev/null; then
6264 -  # We could just check for DJGPP; but this test a) works b) is more generic
6265 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6266 -  if test -f conf$$.exe; then
6267 -    # Don't use ln at all; we don't have any links
6268 +  as_ln_s='ln -s'
6269 +  # ... but there are two gotchas:
6270 +  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6271 +  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6272 +  # In both cases, we have to default to `cp -p'.
6273 +  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6274      as_ln_s='cp -p'
6275 -  else
6276 -    as_ln_s='ln -s'
6277 -  fi
6278  elif ln conf$$.file conf$$ 2>/dev/null; then
6279    as_ln_s=ln
6280  else
6281    as_ln_s='cp -p'
6282  fi
6283 -rm -f conf$$ conf$$.exe conf$$.file
6284 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6285 +rmdir conf$$.dir 2>/dev/null
6286  
6287  if mkdir -p . 2>/dev/null; then
6288    as_mkdir_p=:
6289 @@ -224,7 +514,19 @@
6290    as_mkdir_p=false
6291  fi
6292  
6293 -as_executable_p="test -f"
6294 +# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
6295 +# systems may use methods other than mode bits to determine executability.
6296 +cat >conf$$.file <<_ASEOF
6297 +#! /bin/sh
6298 +exit 0
6299 +_ASEOF
6300 +chmod +x conf$$.file
6301 +if test -x conf$$.file >/dev/null 2>&1; then
6302 +  as_executable_p="test -x"
6303 +else
6304 +  as_executable_p=:
6305 +fi
6306 +rm -f conf$$.file
6307  
6308  # Sed expression to map a string onto a valid CPP name.
6309  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6310 @@ -233,15 +535,6 @@
6311  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6312  
6313  
6314 -# IFS
6315 -# We need space, tab and new line, in precisely that order.
6316 -as_nl='
6317 -'
6318 -IFS="  $as_nl"
6319 -
6320 -# CDPATH.
6321 -$as_unset CDPATH
6322 -
6323  
6324  
6325  # Check that we are running under the correct shell.
6326 @@ -287,8 +580,8 @@
6327  # find a string as large as possible, as long as the shell can cope with it
6328    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
6329      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
6330 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
6331 -       echo_test_string="`eval $cmd`" &&
6332 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
6333 +       echo_test_string=`eval $cmd` &&
6334         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
6335      then
6336        break
6337 @@ -397,29 +690,26 @@
6338  
6339  tagnames=${tagnames+${tagnames},}F77
6340  
6341 +exec 7<&0 </dev/null 6>&1
6342 +
6343  # Name of the host.
6344  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
6345  # so uname gets run too.
6346  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
6347  
6348 -exec 6>&1
6349 -
6350  #
6351  # Initializations.
6352  #
6353  ac_default_prefix=/usr/local
6354 +ac_clean_files=
6355  ac_config_libobj_dir=.
6356 +LIBOBJS=
6357  cross_compiling=no
6358  subdirs=
6359  MFLAGS=
6360  MAKEFLAGS=
6361  SHELL=${CONFIG_SHELL-/bin/sh}
6362  
6363 -# Maximum number of lines to put in a shell here document.
6364 -# This variable seems obsolete.  It should probably be removed, and
6365 -# only ac_max_sed_lines should be used.
6366 -: ${ac_max_here_lines=38}
6367 -
6368  # Identity of this package.
6369  PACKAGE_NAME='suPHP'
6370  PACKAGE_TARNAME='suphp'
6371 @@ -431,42 +721,171 @@
6372  # Factoring default headers for most tests.
6373  ac_includes_default="\
6374  #include <stdio.h>
6375 -#if HAVE_SYS_TYPES_H
6376 +#ifdef HAVE_SYS_TYPES_H
6377  # include <sys/types.h>
6378  #endif
6379 -#if HAVE_SYS_STAT_H
6380 +#ifdef HAVE_SYS_STAT_H
6381  # include <sys/stat.h>
6382  #endif
6383 -#if STDC_HEADERS
6384 +#ifdef STDC_HEADERS
6385  # include <stdlib.h>
6386  # include <stddef.h>
6387  #else
6388 -# if HAVE_STDLIB_H
6389 +# ifdef HAVE_STDLIB_H
6390  #  include <stdlib.h>
6391  # endif
6392  #endif
6393 -#if HAVE_STRING_H
6394 -# if !STDC_HEADERS && HAVE_MEMORY_H
6395 +#ifdef HAVE_STRING_H
6396 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6397  #  include <memory.h>
6398  # endif
6399  # include <string.h>
6400  #endif
6401 -#if HAVE_STRINGS_H
6402 +#ifdef HAVE_STRINGS_H
6403  # include <strings.h>
6404  #endif
6405 -#if HAVE_INTTYPES_H
6406 +#ifdef HAVE_INTTYPES_H
6407  # include <inttypes.h>
6408 -#else
6409 -# if HAVE_STDINT_H
6410 -#  include <stdint.h>
6411 -# endif
6412  #endif
6413 -#if HAVE_UNISTD_H
6414 +#ifdef HAVE_STDINT_H
6415 +# include <stdint.h>
6416 +#endif
6417 +#ifdef HAVE_UNISTD_H
6418  # include <unistd.h>
6419  #endif"
6420  
6421 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS APR_INCLUDEDIR OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_FALSE LIBOBJS LTLIBOBJS'
6422 +ac_subst_vars='SHELL
6423 +PATH_SEPARATOR
6424 +PACKAGE_NAME
6425 +PACKAGE_TARNAME
6426 +PACKAGE_VERSION
6427 +PACKAGE_STRING
6428 +PACKAGE_BUGREPORT
6429 +exec_prefix
6430 +prefix
6431 +program_transform_name
6432 +bindir
6433 +sbindir
6434 +libexecdir
6435 +datarootdir
6436 +datadir
6437 +sysconfdir
6438 +sharedstatedir
6439 +localstatedir
6440 +includedir
6441 +oldincludedir
6442 +docdir
6443 +infodir
6444 +htmldir
6445 +dvidir
6446 +pdfdir
6447 +psdir
6448 +libdir
6449 +localedir
6450 +mandir
6451 +DEFS
6452 +ECHO_C
6453 +ECHO_N
6454 +ECHO_T
6455 +LIBS
6456 +build_alias
6457 +host_alias
6458 +target_alias
6459 +INSTALL_PROGRAM
6460 +INSTALL_SCRIPT
6461 +INSTALL_DATA
6462 +CYGPATH_W
6463 +PACKAGE
6464 +VERSION
6465 +ACLOCAL
6466 +AUTOCONF
6467 +AUTOMAKE
6468 +AUTOHEADER
6469 +MAKEINFO
6470 +install_sh
6471 +STRIP
6472 +INSTALL_STRIP_PROGRAM
6473 +mkdir_p
6474 +AWK
6475 +SET_MAKE
6476 +am__leading_dot
6477 +AMTAR
6478 +am__tar
6479 +am__untar
6480 +CC
6481 +CFLAGS
6482 +LDFLAGS
6483 +CPPFLAGS
6484 +ac_ct_CC
6485 +EXEEXT
6486 +OBJEXT
6487 +DEPDIR
6488 +am__include
6489 +am__quote
6490 +AMDEP_TRUE
6491 +AMDEP_FALSE
6492 +AMDEPBACKSLASH
6493 +CCDEPMODE
6494 +am__fastdepCC_TRUE
6495 +am__fastdepCC_FALSE
6496 +CXX
6497 +CXXFLAGS
6498 +ac_ct_CXX
6499 +CXXDEPMODE
6500 +am__fastdepCXX_TRUE
6501 +am__fastdepCXX_FALSE
6502 +build
6503 +build_cpu
6504 +build_vendor
6505 +build_os
6506 +host
6507 +host_cpu
6508 +host_vendor
6509 +host_os
6510 +GREP
6511 +EGREP
6512 +LN_S
6513 +ECHO
6514 +AR
6515 +RANLIB
6516 +CPP
6517 +CXXCPP
6518 +F77
6519 +FFLAGS
6520 +ac_ct_F77
6521 +LIBTOOL
6522 +APXS
6523 +APACHE_VERSION_1_3
6524 +APACHE_VERSION_2
6525 +APXS_INCLUDEDIR
6526 +APXS_LIBEXECDIR
6527 +APXS_EXTRA_CFLAGS
6528 +APR_INCLUDEDIR
6529 +OPT_APACHEMOD_USERGROUP_DEF
6530 +COND_AP13_TRUE
6531 +COND_AP13_FALSE
6532 +COND_AP20_TRUE
6533 +COND_AP20_FALSE
6534 +COND_APUSERGROUP_TRUE
6535 +COND_APUSERGROUP_FALSE
6536 +LIBOBJS
6537 +LTLIBOBJS'
6538  ac_subst_files=''
6539 +      ac_precious_vars='build_alias
6540 +host_alias
6541 +target_alias
6542 +CC
6543 +CFLAGS
6544 +LDFLAGS
6545 +CPPFLAGS
6546 +CXX
6547 +CXXFLAGS
6548 +CCC
6549 +CPP
6550 +CXXCPP
6551 +F77
6552 +FFLAGS'
6553 +
6554  
6555  # Initialize some variables set by options.
6556  ac_init_help=
6557 @@ -493,34 +912,48 @@
6558  # and all the variables that are supposed to be based on exec_prefix
6559  # by default will actually change.
6560  # Use braces instead of parens because sh, perl, etc. also accept them.
6561 +# (The list follows the same order as the GNU Coding Standards.)
6562  bindir='${exec_prefix}/bin'
6563  sbindir='${exec_prefix}/sbin'
6564  libexecdir='${exec_prefix}/libexec'
6565 -datadir='${prefix}/share'
6566 +datarootdir='${prefix}/share'
6567 +datadir='${datarootdir}'
6568  sysconfdir='${prefix}/etc'
6569  sharedstatedir='${prefix}/com'
6570  localstatedir='${prefix}/var'
6571 -libdir='${exec_prefix}/lib'
6572  includedir='${prefix}/include'
6573  oldincludedir='/usr/include'
6574 -infodir='${prefix}/info'
6575 -mandir='${prefix}/man'
6576 +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
6577 +infodir='${datarootdir}/info'
6578 +htmldir='${docdir}'
6579 +dvidir='${docdir}'
6580 +pdfdir='${docdir}'
6581 +psdir='${docdir}'
6582 +libdir='${exec_prefix}/lib'
6583 +localedir='${datarootdir}/locale'
6584 +mandir='${datarootdir}/man'
6585  
6586  ac_prev=
6587 +ac_dashdash=
6588  for ac_option
6589  do
6590    # If the previous option needs an argument, assign it.
6591    if test -n "$ac_prev"; then
6592 -    eval "$ac_prev=\$ac_option"
6593 +    eval $ac_prev=\$ac_option
6594      ac_prev=
6595      continue
6596    fi
6597  
6598 -  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
6599 +  case $ac_option in
6600 +  *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
6601 +  *)   ac_optarg=yes ;;
6602 +  esac
6603  
6604    # Accept the important Cygnus configure options, so we can diagnose typos.
6605  
6606 -  case $ac_option in
6607 +  case $ac_dashdash$ac_option in
6608 +  --)
6609 +    ac_dashdash=yes ;;
6610  
6611    -bindir | --bindir | --bindi | --bind | --bin | --bi)
6612      ac_prev=bindir ;;
6613 @@ -542,12 +975,18 @@
6614    --config-cache | -C)
6615      cache_file=config.cache ;;
6616  
6617 -  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
6618 +  -datadir | --datadir | --datadi | --datad)
6619      ac_prev=datadir ;;
6620 -  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
6621 -  | --da=*)
6622 +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
6623      datadir=$ac_optarg ;;
6624  
6625 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
6626 +  | --dataroo | --dataro | --datar)
6627 +    ac_prev=datarootdir ;;
6628 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
6629 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
6630 +    datarootdir=$ac_optarg ;;
6631 +
6632    -disable-* | --disable-*)
6633      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6634      # Reject names that are not valid shell variable names.
6635 @@ -555,7 +994,17 @@
6636        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
6637     { (exit 1); exit 1; }; }
6638      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
6639 -    eval "enable_$ac_feature=no" ;;
6640 +    eval enable_$ac_feature=no ;;
6641 +
6642 +  -docdir | --docdir | --docdi | --doc | --do)
6643 +    ac_prev=docdir ;;
6644 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
6645 +    docdir=$ac_optarg ;;
6646 +
6647 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
6648 +    ac_prev=dvidir ;;
6649 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
6650 +    dvidir=$ac_optarg ;;
6651  
6652    -enable-* | --enable-*)
6653      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6654 @@ -564,11 +1013,7 @@
6655        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
6656     { (exit 1); exit 1; }; }
6657      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
6658 -    case $ac_option in
6659 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6660 -      *) ac_optarg=yes ;;
6661 -    esac
6662 -    eval "enable_$ac_feature='$ac_optarg'" ;;
6663 +    eval enable_$ac_feature=\$ac_optarg ;;
6664  
6665    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
6666    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
6667 @@ -595,6 +1040,12 @@
6668    -host=* | --host=* | --hos=* | --ho=*)
6669      host_alias=$ac_optarg ;;
6670  
6671 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
6672 +    ac_prev=htmldir ;;
6673 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
6674 +  | --ht=*)
6675 +    htmldir=$ac_optarg ;;
6676 +
6677    -includedir | --includedir | --includedi | --included | --include \
6678    | --includ | --inclu | --incl | --inc)
6679      ac_prev=includedir ;;
6680 @@ -619,13 +1070,16 @@
6681    | --libexe=* | --libex=* | --libe=*)
6682      libexecdir=$ac_optarg ;;
6683  
6684 +  -localedir | --localedir | --localedi | --localed | --locale)
6685 +    ac_prev=localedir ;;
6686 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
6687 +    localedir=$ac_optarg ;;
6688 +
6689    -localstatedir | --localstatedir | --localstatedi | --localstated \
6690 -  | --localstate | --localstat | --localsta | --localst \
6691 -  | --locals | --local | --loca | --loc | --lo)
6692 +  | --localstate | --localstat | --localsta | --localst | --locals)
6693      ac_prev=localstatedir ;;
6694    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
6695 -  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
6696 -  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6697 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6698      localstatedir=$ac_optarg ;;
6699  
6700    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
6701 @@ -690,6 +1144,16 @@
6702    | --progr-tra=* | --program-tr=* | --program-t=*)
6703      program_transform_name=$ac_optarg ;;
6704  
6705 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
6706 +    ac_prev=pdfdir ;;
6707 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
6708 +    pdfdir=$ac_optarg ;;
6709 +
6710 +  -psdir | --psdir | --psdi | --psd | --ps)
6711 +    ac_prev=psdir ;;
6712 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
6713 +    psdir=$ac_optarg ;;
6714 +
6715    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6716    | -silent | --silent | --silen | --sile | --sil)
6717      silent=yes ;;
6718 @@ -746,11 +1210,7 @@
6719        { echo "$as_me: error: invalid package name: $ac_package" >&2
6720     { (exit 1); exit 1; }; }
6721      ac_package=`echo $ac_package| sed 's/-/_/g'`
6722 -    case $ac_option in
6723 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6724 -      *) ac_optarg=yes ;;
6725 -    esac
6726 -    eval "with_$ac_package='$ac_optarg'" ;;
6727 +    eval with_$ac_package=\$ac_optarg ;;
6728  
6729    -without-* | --without-*)
6730      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6731 @@ -759,7 +1219,7 @@
6732        { echo "$as_me: error: invalid package name: $ac_package" >&2
6733     { (exit 1); exit 1; }; }
6734      ac_package=`echo $ac_package | sed 's/-/_/g'`
6735 -    eval "with_$ac_package=no" ;;
6736 +    eval with_$ac_package=no ;;
6737  
6738    --x)
6739      # Obsolete; use --with-x.
6740 @@ -790,8 +1250,7 @@
6741      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
6742        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
6743     { (exit 1); exit 1; }; }
6744 -    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
6745 -    eval "$ac_envvar='$ac_optarg'"
6746 +    eval $ac_envvar=\$ac_optarg
6747      export $ac_envvar ;;
6748  
6749    *)
6750 @@ -811,27 +1270,19 @@
6751     { (exit 1); exit 1; }; }
6752  fi
6753  
6754 -# Be sure to have absolute paths.
6755 -for ac_var in exec_prefix prefix
6756 -do
6757 -  eval ac_val=$`echo $ac_var`
6758 -  case $ac_val in
6759 -    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
6760 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6761 -   { (exit 1); exit 1; }; };;
6762 -  esac
6763 -done
6764 -
6765 -# Be sure to have absolute paths.
6766 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
6767 -             localstatedir libdir includedir oldincludedir infodir mandir
6768 +# Be sure to have absolute directory names.
6769 +for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
6770 +               datadir sysconfdir sharedstatedir localstatedir includedir \
6771 +               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
6772 +               libdir localedir mandir
6773  do
6774 -  eval ac_val=$`echo $ac_var`
6775 +  eval ac_val=\$$ac_var
6776    case $ac_val in
6777 -    [\\/$]* | ?:[\\/]* ) ;;
6778 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6779 -   { (exit 1); exit 1; }; };;
6780 +    [\\/$]* | ?:[\\/]* )  continue;;
6781 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6782    esac
6783 +  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
6784 +   { (exit 1); exit 1; }; }
6785  done
6786  
6787  # There might be people who depend on the old broken behavior: `$host'
6788 @@ -858,94 +1309,76 @@
6789  test "$silent" = yes && exec 6>/dev/null
6790  
6791  
6792 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
6793 +ac_ls_di=`ls -di .` &&
6794 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
6795 +  { echo "$as_me: error: Working directory cannot be determined" >&2
6796 +   { (exit 1); exit 1; }; }
6797 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
6798 +  { echo "$as_me: error: pwd does not report name of working directory" >&2
6799 +   { (exit 1); exit 1; }; }
6800 +
6801 +
6802  # Find the source files, if location was not specified.
6803  if test -z "$srcdir"; then
6804    ac_srcdir_defaulted=yes
6805 -  # Try the directory containing this script, then its parent.
6806 -  ac_confdir=`(dirname "$0") 2>/dev/null ||
6807 +  # Try the directory containing this script, then the parent directory.
6808 +  ac_confdir=`$as_dirname -- "$0" ||
6809  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6810          X"$0" : 'X\(//\)[^/]' \| \
6811          X"$0" : 'X\(//\)$' \| \
6812 -        X"$0" : 'X\(/\)' \| \
6813 -        .     : '\(.\)' 2>/dev/null ||
6814 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6815  echo X"$0" |
6816 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6817 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6818 -         /^X\(\/\/\)$/{ s//\1/; q; }
6819 -         /^X\(\/\).*/{ s//\1/; q; }
6820 -         s/.*/./; q'`
6821 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6822 +           s//\1/
6823 +           q
6824 +         }
6825 +         /^X\(\/\/\)[^/].*/{
6826 +           s//\1/
6827 +           q
6828 +         }
6829 +         /^X\(\/\/\)$/{
6830 +           s//\1/
6831 +           q
6832 +         }
6833 +         /^X\(\/\).*/{
6834 +           s//\1/
6835 +           q
6836 +         }
6837 +         s/.*/./; q'`
6838    srcdir=$ac_confdir
6839 -  if test ! -r $srcdir/$ac_unique_file; then
6840 +  if test ! -r "$srcdir/$ac_unique_file"; then
6841      srcdir=..
6842    fi
6843  else
6844    ac_srcdir_defaulted=no
6845  fi
6846 -if test ! -r $srcdir/$ac_unique_file; then
6847 -  if test "$ac_srcdir_defaulted" = yes; then
6848 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
6849 -   { (exit 1); exit 1; }; }
6850 -  else
6851 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6852 +if test ! -r "$srcdir/$ac_unique_file"; then
6853 +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
6854 +  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6855     { (exit 1); exit 1; }; }
6856 -  fi
6857  fi
6858 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
6859 -  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
6860 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
6861 +ac_abs_confdir=`(
6862 +       cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
6863     { (exit 1); exit 1; }; }
6864 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
6865 -ac_env_build_alias_set=${build_alias+set}
6866 -ac_env_build_alias_value=$build_alias
6867 -ac_cv_env_build_alias_set=${build_alias+set}
6868 -ac_cv_env_build_alias_value=$build_alias
6869 -ac_env_host_alias_set=${host_alias+set}
6870 -ac_env_host_alias_value=$host_alias
6871 -ac_cv_env_host_alias_set=${host_alias+set}
6872 -ac_cv_env_host_alias_value=$host_alias
6873 -ac_env_target_alias_set=${target_alias+set}
6874 -ac_env_target_alias_value=$target_alias
6875 -ac_cv_env_target_alias_set=${target_alias+set}
6876 -ac_cv_env_target_alias_value=$target_alias
6877 -ac_env_CC_set=${CC+set}
6878 -ac_env_CC_value=$CC
6879 -ac_cv_env_CC_set=${CC+set}
6880 -ac_cv_env_CC_value=$CC
6881 -ac_env_CFLAGS_set=${CFLAGS+set}
6882 -ac_env_CFLAGS_value=$CFLAGS
6883 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
6884 -ac_cv_env_CFLAGS_value=$CFLAGS
6885 -ac_env_LDFLAGS_set=${LDFLAGS+set}
6886 -ac_env_LDFLAGS_value=$LDFLAGS
6887 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
6888 -ac_cv_env_LDFLAGS_value=$LDFLAGS
6889 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
6890 -ac_env_CPPFLAGS_value=$CPPFLAGS
6891 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
6892 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
6893 -ac_env_CXX_set=${CXX+set}
6894 -ac_env_CXX_value=$CXX
6895 -ac_cv_env_CXX_set=${CXX+set}
6896 -ac_cv_env_CXX_value=$CXX
6897 -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
6898 -ac_env_CXXFLAGS_value=$CXXFLAGS
6899 -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
6900 -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
6901 -ac_env_CPP_set=${CPP+set}
6902 -ac_env_CPP_value=$CPP
6903 -ac_cv_env_CPP_set=${CPP+set}
6904 -ac_cv_env_CPP_value=$CPP
6905 -ac_env_CXXCPP_set=${CXXCPP+set}
6906 -ac_env_CXXCPP_value=$CXXCPP
6907 -ac_cv_env_CXXCPP_set=${CXXCPP+set}
6908 -ac_cv_env_CXXCPP_value=$CXXCPP
6909 -ac_env_F77_set=${F77+set}
6910 -ac_env_F77_value=$F77
6911 -ac_cv_env_F77_set=${F77+set}
6912 -ac_cv_env_F77_value=$F77
6913 -ac_env_FFLAGS_set=${FFLAGS+set}
6914 -ac_env_FFLAGS_value=$FFLAGS
6915 -ac_cv_env_FFLAGS_set=${FFLAGS+set}
6916 -ac_cv_env_FFLAGS_value=$FFLAGS
6917 +       pwd)`
6918 +# When building in place, set srcdir=.
6919 +if test "$ac_abs_confdir" = "$ac_pwd"; then
6920 +  srcdir=.
6921 +fi
6922 +# Remove unnecessary trailing slashes from srcdir.
6923 +# Double slashes in file names in object file debugging info
6924 +# mess up M-x gdb in Emacs.
6925 +case $srcdir in
6926 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
6927 +esac
6928 +for ac_var in $ac_precious_vars; do
6929 +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
6930 +  eval ac_env_${ac_var}_value=\$${ac_var}
6931 +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
6932 +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
6933 +done
6934  
6935  #
6936  # Report the --help message.
6937 @@ -974,9 +1407,6 @@
6938    -n, --no-create         do not create output files
6939        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
6940  
6941 -_ACEOF
6942 -
6943 -  cat <<_ACEOF
6944  Installation directories:
6945    --prefix=PREFIX         install architecture-independent files in PREFIX
6946                           [$ac_default_prefix]
6947 @@ -994,15 +1424,22 @@
6948    --bindir=DIR           user executables [EPREFIX/bin]
6949    --sbindir=DIR          system admin executables [EPREFIX/sbin]
6950    --libexecdir=DIR       program executables [EPREFIX/libexec]
6951 -  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
6952    --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
6953    --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
6954    --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
6955    --libdir=DIR           object code libraries [EPREFIX/lib]
6956    --includedir=DIR       C header files [PREFIX/include]
6957    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
6958 -  --infodir=DIR          info documentation [PREFIX/info]
6959 -  --mandir=DIR           man documentation [PREFIX/man]
6960 +  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
6961 +  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
6962 +  --infodir=DIR          info documentation [DATAROOTDIR/info]
6963 +  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
6964 +  --mandir=DIR           man documentation [DATAROOTDIR/man]
6965 +  --docdir=DIR           documentation root [DATAROOTDIR/doc/suphp]
6966 +  --htmldir=DIR          html documentation [DOCDIR]
6967 +  --dvidir=DIR           dvi documentation [DOCDIR]
6968 +  --pdfdir=DIR           pdf documentation [DOCDIR]
6969 +  --psdir=DIR            ps documentation [DOCDIR]
6970  _ACEOF
6971  
6972    cat <<\_ACEOF
6973 @@ -1029,10 +1466,8 @@
6974    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
6975    --disable-dependency-tracking  speeds up one-time build
6976    --enable-dependency-tracking   do not reject slow dependency extractors
6977 -  --enable-shared[=PKGS]
6978 -                          build shared libraries [default=yes]
6979 -  --enable-static[=PKGS]
6980 -                          build static libraries [default=yes]
6981 +  --enable-shared[=PKGS]  build shared libraries [default=yes]
6982 +  --enable-static[=PKGS]  build static libraries [default=yes]
6983    --enable-fast-install[=PKGS]
6984                            optimize for fast installation [default=yes]
6985    --disable-libtool-lock  avoid locking (might break parallel builds)
6986 @@ -1045,8 +1480,7 @@
6987    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
6988    --with-pic              try to use only PIC/non-PIC objects [default=use
6989                            both]
6990 -  --with-tags[=TAGS]
6991 -                          include additional configurations [automatic]
6992 +  --with-tags[=TAGS]      include additional configurations [automatic]
6993    --with-apr=DIR|FILE     prefix for installed APR, path to APR build tree,
6994                            or the full path to apr-config
6995    --with-apxs=FILE        Build shared Apache module. FILE is the optional
6996 @@ -1070,8 +1504,8 @@
6997    CFLAGS      C compiler flags
6998    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
6999                nonstandard directory <lib dir>
7000 -  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
7001 -              headers in a nonstandard directory <include dir>
7002 +  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
7003 +              you have headers in a nonstandard directory <include dir>
7004    CXX         C++ compiler command
7005    CXXFLAGS    C++ compiler flags
7006    CPP         C preprocessor
7007 @@ -1084,120 +1518,86 @@
7008  
7009  Report bugs to <sebastian.marsching@suphp.org>.
7010  _ACEOF
7011 +ac_status=$?
7012  fi
7013  
7014  if test "$ac_init_help" = "recursive"; then
7015    # If there are subdirs, report their specific --help.
7016 -  ac_popdir=`pwd`
7017    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7018 -    test -d $ac_dir || continue
7019 +    test -d "$ac_dir" || continue
7020      ac_builddir=.
7021  
7022 -if test "$ac_dir" != .; then
7023 +case "$ac_dir" in
7024 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7025 +*)
7026    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7027 -  # A "../" for each directory in $ac_dir_suffix.
7028 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7029 -else
7030 -  ac_dir_suffix= ac_top_builddir=
7031 -fi
7032 +  # A ".." for each directory in $ac_dir_suffix.
7033 +  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7034 +  case $ac_top_builddir_sub in
7035 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7036 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7037 +  esac ;;
7038 +esac
7039 +ac_abs_top_builddir=$ac_pwd
7040 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
7041 +# for backward compatibility:
7042 +ac_top_builddir=$ac_top_build_prefix
7043  
7044  case $srcdir in
7045 -  .)  # No --srcdir option.  We are building in place.
7046 +  .)  # We are building in place.
7047      ac_srcdir=.
7048 -    if test -z "$ac_top_builddir"; then
7049 -       ac_top_srcdir=.
7050 -    else
7051 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7052 -    fi ;;
7053 -  [\\/]* | ?:[\\/]* )  # Absolute path.
7054 +    ac_top_srcdir=$ac_top_builddir_sub
7055 +    ac_abs_top_srcdir=$ac_pwd ;;
7056 +  [\\/]* | ?:[\\/]* )  # Absolute name.
7057      ac_srcdir=$srcdir$ac_dir_suffix;
7058 -    ac_top_srcdir=$srcdir ;;
7059 -  *) # Relative path.
7060 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7061 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7062 -esac
7063 -
7064 -# Do not use `cd foo && pwd` to compute absolute paths, because
7065 -# the directories may not exist.
7066 -case `pwd` in
7067 -.) ac_abs_builddir="$ac_dir";;
7068 -*)
7069 -  case "$ac_dir" in
7070 -  .) ac_abs_builddir=`pwd`;;
7071 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7072 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7073 -  esac;;
7074 -esac
7075 -case $ac_abs_builddir in
7076 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
7077 -*)
7078 -  case ${ac_top_builddir}. in
7079 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
7080 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7081 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7082 -  esac;;
7083 -esac
7084 -case $ac_abs_builddir in
7085 -.) ac_abs_srcdir=$ac_srcdir;;
7086 -*)
7087 -  case $ac_srcdir in
7088 -  .) ac_abs_srcdir=$ac_abs_builddir;;
7089 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7090 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7091 -  esac;;
7092 -esac
7093 -case $ac_abs_builddir in
7094 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
7095 -*)
7096 -  case $ac_top_srcdir in
7097 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7098 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7099 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7100 -  esac;;
7101 +    ac_top_srcdir=$srcdir
7102 +    ac_abs_top_srcdir=$srcdir ;;
7103 +  *) # Relative name.
7104 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7105 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
7106 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7107  esac
7108 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7109  
7110 -    cd $ac_dir
7111 -    # Check for guested configure; otherwise get Cygnus style configure.
7112 -    if test -f $ac_srcdir/configure.gnu; then
7113 -      echo
7114 -      $SHELL $ac_srcdir/configure.gnu  --help=recursive
7115 -    elif test -f $ac_srcdir/configure; then
7116 -      echo
7117 -      $SHELL $ac_srcdir/configure  --help=recursive
7118 -    elif test -f $ac_srcdir/configure.ac ||
7119 -          test -f $ac_srcdir/configure.in; then
7120 -      echo
7121 -      $ac_configure --help
7122 +    cd "$ac_dir" || { ac_status=$?; continue; }
7123 +    # Check for guested configure.
7124 +    if test -f "$ac_srcdir/configure.gnu"; then
7125 +      echo &&
7126 +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
7127 +    elif test -f "$ac_srcdir/configure"; then
7128 +      echo &&
7129 +      $SHELL "$ac_srcdir/configure" --help=recursive
7130      else
7131        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7132 -    fi
7133 -    cd $ac_popdir
7134 +    fi || ac_status=$?
7135 +    cd "$ac_pwd" || { ac_status=$?; break; }
7136    done
7137  fi
7138  
7139 -test -n "$ac_init_help" && exit 0
7140 +test -n "$ac_init_help" && exit $ac_status
7141  if $ac_init_version; then
7142    cat <<\_ACEOF
7143  suPHP configure 0.6.1
7144 -generated by GNU Autoconf 2.59
7145 +generated by GNU Autoconf 2.60a
7146  
7147 -Copyright (C) 2003 Free Software Foundation, Inc.
7148 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7149 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7150  This configure script is free software; the Free Software Foundation
7151  gives unlimited permission to copy, distribute and modify it.
7152  _ACEOF
7153 -  exit 0
7154 +  exit
7155  fi
7156 -exec 5>config.log
7157 -cat >&5 <<_ACEOF
7158 +cat >config.log <<_ACEOF
7159  This file contains any messages produced by compilers while
7160  running configure, to aid debugging if configure makes a mistake.
7161  
7162  It was created by suPHP $as_me 0.6.1, which was
7163 -generated by GNU Autoconf 2.59.  Invocation command line was
7164 +generated by GNU Autoconf 2.60a.  Invocation command line was
7165  
7166    $ $0 $@
7167  
7168  _ACEOF
7169 +exec 5>>config.log
7170  {
7171  cat <<_ASUNAME
7172  ## --------- ##
7173 @@ -1216,7 +1616,7 @@
7174  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
7175  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
7176  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7177 -hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
7178 +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
7179  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
7180  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
7181  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
7182 @@ -1230,6 +1630,7 @@
7183    test -z "$as_dir" && as_dir=.
7184    echo "PATH: $as_dir"
7185  done
7186 +IFS=$as_save_IFS
7187  
7188  } >&5
7189  
7190 @@ -1251,7 +1652,6 @@
7191  ac_configure_args=
7192  ac_configure_args0=
7193  ac_configure_args1=
7194 -ac_sep=
7195  ac_must_keep_next=false
7196  for ac_pass in 1 2
7197  do
7198 @@ -1262,7 +1662,7 @@
7199      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7200      | -silent | --silent | --silen | --sile | --sil)
7201        continue ;;
7202 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
7203 +    *\'*)
7204        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7205      esac
7206      case $ac_pass in
7207 @@ -1284,9 +1684,7 @@
7208           -* ) ac_must_keep_next=true ;;
7209         esac
7210        fi
7211 -      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
7212 -      # Get rid of the leading space.
7213 -      ac_sep=" "
7214 +      ac_configure_args="$ac_configure_args '$ac_arg'"
7215        ;;
7216      esac
7217    done
7218 @@ -1297,8 +1695,8 @@
7219  # When interrupted or exit'd, cleanup temporary files, and complete
7220  # config.log.  We remove comments because anyway the quotes in there
7221  # would cause problems or look ugly.
7222 -# WARNING: Be sure not to use single quotes in there, as some shells,
7223 -# such as our DU 5.0 friend, will then `close' the trap.
7224 +# WARNING: Use '\'' to represent an apostrophe within the trap.
7225 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
7226  trap 'exit_status=$?
7227    # Save into config.log some information that might help in debugging.
7228    {
7229 @@ -1311,20 +1709,34 @@
7230  _ASBOX
7231      echo
7232      # The following way of writing the cache mishandles newlines in values,
7233 -{
7234 +(
7235 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
7236 +    eval ac_val=\$$ac_var
7237 +    case $ac_val in #(
7238 +    *${as_nl}*)
7239 +      case $ac_var in #(
7240 +      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7241 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7242 +      esac
7243 +      case $ac_var in #(
7244 +      _ | IFS | as_nl) ;; #(
7245 +      *) $as_unset $ac_var ;;
7246 +      esac ;;
7247 +    esac
7248 +  done
7249    (set) 2>&1 |
7250 -    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
7251 -    *ac_space=\ *)
7252 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
7253 +    *${as_nl}ac_space=\ *)
7254        sed -n \
7255 -       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
7256 -         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
7257 -      ;;
7258 +       "s/'\''/'\''\\\\'\'''\''/g;
7259 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
7260 +      ;; #(
7261      *)
7262 -      sed -n \
7263 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7264 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7265        ;;
7266 -    esac;
7267 -}
7268 +    esac |
7269 +    sort
7270 +)
7271      echo
7272  
7273      cat <<\_ASBOX
7274 @@ -1335,22 +1747,28 @@
7275      echo
7276      for ac_var in $ac_subst_vars
7277      do
7278 -      eval ac_val=$`echo $ac_var`
7279 -      echo "$ac_var='"'"'$ac_val'"'"'"
7280 +      eval ac_val=\$$ac_var
7281 +      case $ac_val in
7282 +      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7283 +      esac
7284 +      echo "$ac_var='\''$ac_val'\''"
7285      done | sort
7286      echo
7287  
7288      if test -n "$ac_subst_files"; then
7289        cat <<\_ASBOX
7290 -## ------------- ##
7291 -## Output files. ##
7292 -## ------------- ##
7293 +## ------------------- ##
7294 +## File substitutions. ##
7295 +## ------------------- ##
7296  _ASBOX
7297        echo
7298        for ac_var in $ac_subst_files
7299        do
7300 -       eval ac_val=$`echo $ac_var`
7301 -       echo "$ac_var='"'"'$ac_val'"'"'"
7302 +       eval ac_val=\$$ac_var
7303 +       case $ac_val in
7304 +       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7305 +       esac
7306 +       echo "$ac_var='\''$ac_val'\''"
7307        done | sort
7308        echo
7309      fi
7310 @@ -1362,26 +1780,24 @@
7311  ## ----------- ##
7312  _ASBOX
7313        echo
7314 -      sed "/^$/d" confdefs.h | sort
7315 +      cat confdefs.h
7316        echo
7317      fi
7318      test "$ac_signal" != 0 &&
7319        echo "$as_me: caught signal $ac_signal"
7320      echo "$as_me: exit $exit_status"
7321    } >&5
7322 -  rm -f core *.core &&
7323 -  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
7324 +  rm -f core *.core core.conftest.* &&
7325 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
7326      exit $exit_status
7327 -     ' 0
7328 +' 0
7329  for ac_signal in 1 2 13 15; do
7330    trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
7331  done
7332  ac_signal=0
7333  
7334  # confdefs.h avoids OS command line length limits that DEFS can exceed.
7335 -rm -rf conftest* confdefs.h
7336 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
7337 -echo >confdefs.h
7338 +rm -f -r conftest* confdefs.h
7339  
7340  # Predefined preprocessor variables.
7341  
7342 @@ -1412,14 +1828,17 @@
7343  
7344  # Let the site file select an alternate cache file if it wants to.
7345  # Prefer explicitly selected file to automatically selected ones.
7346 -if test -z "$CONFIG_SITE"; then
7347 -  if test "x$prefix" != xNONE; then
7348 -    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
7349 -  else
7350 -    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
7351 -  fi
7352 +if test -n "$CONFIG_SITE"; then
7353 +  set x "$CONFIG_SITE"
7354 +elif test "x$prefix" != xNONE; then
7355 +  set x "$prefix/share/config.site" "$prefix/etc/config.site"
7356 +else
7357 +  set x "$ac_default_prefix/share/config.site" \
7358 +       "$ac_default_prefix/etc/config.site"
7359  fi
7360 -for ac_site_file in $CONFIG_SITE; do
7361 +shift
7362 +for ac_site_file
7363 +do
7364    if test -r "$ac_site_file"; then
7365      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
7366  echo "$as_me: loading site script $ac_site_file" >&6;}
7367 @@ -1435,8 +1854,8 @@
7368      { echo "$as_me:$LINENO: loading cache $cache_file" >&5
7369  echo "$as_me: loading cache $cache_file" >&6;}
7370      case $cache_file in
7371 -      [\\/]* | ?:[\\/]* ) . $cache_file;;
7372 -      *)                      . ./$cache_file;;
7373 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
7374 +      *)                      . "./$cache_file";;
7375      esac
7376    fi
7377  else
7378 @@ -1448,12 +1867,11 @@
7379  # Check that the precious variables saved in the cache have kept the same
7380  # value.
7381  ac_cache_corrupted=false
7382 -for ac_var in `(set) 2>&1 |
7383 -              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
7384 +for ac_var in $ac_precious_vars; do
7385    eval ac_old_set=\$ac_cv_env_${ac_var}_set
7386    eval ac_new_set=\$ac_env_${ac_var}_set
7387 -  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
7388 -  eval ac_new_val="\$ac_env_${ac_var}_value"
7389 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
7390 +  eval ac_new_val=\$ac_env_${ac_var}_value
7391    case $ac_old_set,$ac_new_set in
7392      set,)
7393        { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
7394 @@ -1478,8 +1896,7 @@
7395    # Pass precious variables to config.status.
7396    if test "$ac_new_set" = set; then
7397      case $ac_new_val in
7398 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
7399 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
7400 +    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
7401      *) ac_arg=$ac_var=$ac_new_val ;;
7402      esac
7403      case " $ac_configure_args " in
7404 @@ -1496,12 +1913,6 @@
7405     { (exit 1); exit 1; }; }
7406  fi
7407  
7408 -ac_ext=c
7409 -ac_cpp='$CPP $CPPFLAGS'
7410 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413 -
7414  
7415  
7416  
7417 @@ -1526,34 +1937,45 @@
7418  
7419  
7420  
7421 +ac_ext=c
7422 +ac_cpp='$CPP $CPPFLAGS'
7423 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
7426  
7427  
7428  
7429  # Auxiliary tools
7430  ac_aux_dir=
7431 -for ac_dir in config $srcdir/config; do
7432 -  if test -f $ac_dir/install-sh; then
7433 +for ac_dir in config "$srcdir"/config; do
7434 +  if test -f "$ac_dir/install-sh"; then
7435      ac_aux_dir=$ac_dir
7436      ac_install_sh="$ac_aux_dir/install-sh -c"
7437      break
7438 -  elif test -f $ac_dir/install.sh; then
7439 +  elif test -f "$ac_dir/install.sh"; then
7440      ac_aux_dir=$ac_dir
7441      ac_install_sh="$ac_aux_dir/install.sh -c"
7442      break
7443 -  elif test -f $ac_dir/shtool; then
7444 +  elif test -f "$ac_dir/shtool"; then
7445      ac_aux_dir=$ac_dir
7446      ac_install_sh="$ac_aux_dir/shtool install -c"
7447      break
7448    fi
7449  done
7450  if test -z "$ac_aux_dir"; then
7451 -  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
7452 -echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
7453 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
7454 +echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
7455     { (exit 1); exit 1; }; }
7456  fi
7457 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
7458 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
7459 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7460 +
7461 +# These three variables are undocumented and unsupported,
7462 +# and are intended to be withdrawn in a future Autoconf release.
7463 +# They can cause serious problems if a builder's source tree is in a directory
7464 +# whose full name contains unusual characters.
7465 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
7466 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
7467 +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
7468 +
7469  
7470  
7471  am__api_version="1.9"
7472 @@ -1570,8 +1992,8 @@
7473  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7474  # OS/2's system install, which has a completely different semantic
7475  # ./install, which can be erroneously created by make from ./install.sh.
7476 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7477 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7478 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7479 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7480  if test -z "$INSTALL"; then
7481  if test "${ac_cv_path_install+set}" = set; then
7482    echo $ECHO_N "(cached) $ECHO_C" >&6
7483 @@ -1593,7 +2015,7 @@
7484      # by default.
7485      for ac_prog in ginstall scoinst install; do
7486        for ac_exec_ext in '' $ac_executable_extensions; do
7487 -       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7488 +       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7489           if test $ac_prog = install &&
7490             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7491             # AIX install.  It has an incompatible calling convention.
7492 @@ -1612,21 +2034,22 @@
7493      ;;
7494  esac
7495  done
7496 +IFS=$as_save_IFS
7497  
7498  
7499  fi
7500    if test "${ac_cv_path_install+set}" = set; then
7501      INSTALL=$ac_cv_path_install
7502    else
7503 -    # As a last resort, use the slow shell script.  We don't cache a
7504 -    # path for INSTALL within a source directory, because that will
7505 +    # As a last resort, use the slow shell script.  Don't cache a
7506 +    # value for INSTALL within a source directory, because that will
7507      # break other packages using the cache if that directory is
7508 -    # removed, or if the path is relative.
7509 +    # removed, or if the value is a relative name.
7510      INSTALL=$ac_install_sh
7511    fi
7512  fi
7513 -echo "$as_me:$LINENO: result: $INSTALL" >&5
7514 -echo "${ECHO_T}$INSTALL" >&6
7515 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7516 +echo "${ECHO_T}$INSTALL" >&6; }
7517  
7518  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7519  # It thinks the first close brace ends the variable substitution.
7520 @@ -1636,8 +2059,8 @@
7521  
7522  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7523  
7524 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7525 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
7526 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7527 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
7528  # Just in case
7529  sleep 1
7530  echo timestamp > conftest.file
7531 @@ -1679,20 +2102,20 @@
7532  Check your system clock" >&2;}
7533     { (exit 1); exit 1; }; }
7534  fi
7535 -echo "$as_me:$LINENO: result: yes" >&5
7536 -echo "${ECHO_T}yes" >&6
7537 +{ echo "$as_me:$LINENO: result: yes" >&5
7538 +echo "${ECHO_T}yes" >&6; }
7539  test "$program_prefix" != NONE &&
7540 -  program_transform_name="s,^,$program_prefix,;$program_transform_name"
7541 +  program_transform_name="s&^&$program_prefix&;$program_transform_name"
7542  # Use a double $ so make ignores it.
7543  test "$program_suffix" != NONE &&
7544 -  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
7545 +  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7546  # Double any \ or $.  echo might interpret backslashes.
7547  # By default was `s,x,x', remove it if useless.
7548  cat <<\_ACEOF >conftest.sed
7549  s/[\\$]/&&/g;s/;s,x,x,$//
7550  _ACEOF
7551  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7552 -rm conftest.sed
7553 +rm -f conftest.sed
7554  
7555  # expand $ac_aux_dir to an absolute path
7556  am_aux_dir=`cd $ac_aux_dir && pwd`
7557 @@ -1744,8 +2167,8 @@
7558  do
7559    # Extract the first word of "$ac_prog", so it can be a program name with args.
7560  set dummy $ac_prog; ac_word=$2
7561 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7563 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7564 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7565  if test "${ac_cv_prog_AWK+set}" = set; then
7566    echo $ECHO_N "(cached) $ECHO_C" >&6
7567  else
7568 @@ -1758,54 +2181,57 @@
7569    IFS=$as_save_IFS
7570    test -z "$as_dir" && as_dir=.
7571    for ac_exec_ext in '' $ac_executable_extensions; do
7572 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7574      ac_cv_prog_AWK="$ac_prog"
7575      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576      break 2
7577    fi
7578  done
7579  done
7580 +IFS=$as_save_IFS
7581  
7582  fi
7583  fi
7584  AWK=$ac_cv_prog_AWK
7585  if test -n "$AWK"; then
7586 -  echo "$as_me:$LINENO: result: $AWK" >&5
7587 -echo "${ECHO_T}$AWK" >&6
7588 +  { echo "$as_me:$LINENO: result: $AWK" >&5
7589 +echo "${ECHO_T}$AWK" >&6; }
7590  else
7591 -  echo "$as_me:$LINENO: result: no" >&5
7592 -echo "${ECHO_T}no" >&6
7593 +  { echo "$as_me:$LINENO: result: no" >&5
7594 +echo "${ECHO_T}no" >&6; }
7595  fi
7596  
7597 +
7598    test -n "$AWK" && break
7599  done
7600  
7601 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7602 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7603 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7604 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7605 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7606 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7607 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7608 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7609    echo $ECHO_N "(cached) $ECHO_C" >&6
7610  else
7611    cat >conftest.make <<\_ACEOF
7612 +SHELL = /bin/sh
7613  all:
7614 -       @echo 'ac_maketemp="$(MAKE)"'
7615 +       @echo '@@@%%%=$(MAKE)=@@@%%%'
7616  _ACEOF
7617  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7618 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7619 -if test -n "$ac_maketemp"; then
7620 -  eval ac_cv_prog_make_${ac_make}_set=yes
7621 -else
7622 -  eval ac_cv_prog_make_${ac_make}_set=no
7623 -fi
7624 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
7625 +  *@@@%%%=?*=@@@%%%*)
7626 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
7627 +  *)
7628 +    eval ac_cv_prog_make_${ac_make}_set=no;;
7629 +esac
7630  rm -f conftest.make
7631  fi
7632 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7633 -  echo "$as_me:$LINENO: result: yes" >&5
7634 -echo "${ECHO_T}yes" >&6
7635 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7636 +  { echo "$as_me:$LINENO: result: yes" >&5
7637 +echo "${ECHO_T}yes" >&6; }
7638    SET_MAKE=
7639  else
7640 -  echo "$as_me:$LINENO: result: no" >&5
7641 -echo "${ECHO_T}no" >&6
7642 +  { echo "$as_me:$LINENO: result: no" >&5
7643 +echo "${ECHO_T}no" >&6; }
7644    SET_MAKE="MAKE=${MAKE-make}"
7645  fi
7646  
7647 @@ -1876,8 +2302,8 @@
7648    if test -n "$ac_tool_prefix"; then
7649    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7650  set dummy ${ac_tool_prefix}strip; ac_word=$2
7651 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7653 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655  if test "${ac_cv_prog_STRIP+set}" = set; then
7656    echo $ECHO_N "(cached) $ECHO_C" >&6
7657  else
7658 @@ -1890,32 +2316,34 @@
7659    IFS=$as_save_IFS
7660    test -z "$as_dir" && as_dir=.
7661    for ac_exec_ext in '' $ac_executable_extensions; do
7662 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7665      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666      break 2
7667    fi
7668  done
7669  done
7670 +IFS=$as_save_IFS
7671  
7672  fi
7673  fi
7674  STRIP=$ac_cv_prog_STRIP
7675  if test -n "$STRIP"; then
7676 -  echo "$as_me:$LINENO: result: $STRIP" >&5
7677 -echo "${ECHO_T}$STRIP" >&6
7678 +  { echo "$as_me:$LINENO: result: $STRIP" >&5
7679 +echo "${ECHO_T}$STRIP" >&6; }
7680  else
7681 -  echo "$as_me:$LINENO: result: no" >&5
7682 -echo "${ECHO_T}no" >&6
7683 +  { echo "$as_me:$LINENO: result: no" >&5
7684 +echo "${ECHO_T}no" >&6; }
7685  fi
7686  
7687 +
7688  fi
7689  if test -z "$ac_cv_prog_STRIP"; then
7690    ac_ct_STRIP=$STRIP
7691    # Extract the first word of "strip", so it can be a program name with args.
7692  set dummy strip; ac_word=$2
7693 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7694 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7696 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7697  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7698    echo $ECHO_N "(cached) $ECHO_C" >&6
7699  else
7700 @@ -1928,27 +2356,41 @@
7701    IFS=$as_save_IFS
7702    test -z "$as_dir" && as_dir=.
7703    for ac_exec_ext in '' $ac_executable_extensions; do
7704 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706      ac_cv_prog_ac_ct_STRIP="strip"
7707      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708      break 2
7709    fi
7710  done
7711  done
7712 +IFS=$as_save_IFS
7713  
7714 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7715  fi
7716  fi
7717  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7718  if test -n "$ac_ct_STRIP"; then
7719 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7720 -echo "${ECHO_T}$ac_ct_STRIP" >&6
7721 +  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7722 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7723  else
7724 -  echo "$as_me:$LINENO: result: no" >&5
7725 -echo "${ECHO_T}no" >&6
7726 +  { echo "$as_me:$LINENO: result: no" >&5
7727 +echo "${ECHO_T}no" >&6; }
7728  fi
7729  
7730 -  STRIP=$ac_ct_STRIP
7731 +  if test "x$ac_ct_STRIP" = x; then
7732 +    STRIP=":"
7733 +  else
7734 +    case $cross_compiling:$ac_tool_warned in
7735 +yes:)
7736 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7737 +whose name does not start with the host triplet.  If you think this
7738 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7739 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7740 +whose name does not start with the host triplet.  If you think this
7741 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7742 +ac_tool_warned=yes ;;
7743 +esac
7744 +    STRIP=$ac_ct_STRIP
7745 +  fi
7746  else
7747    STRIP="$ac_cv_prog_STRIP"
7748  fi
7749 @@ -1971,12 +2413,12 @@
7750  # Check for right directory
7751  
7752  # Config headers for automake
7753 -          ac_config_headers="$ac_config_headers src/config.h"
7754 +ac_config_headers="$ac_config_headers src/config.h"
7755  
7756  
7757  # Build time sanity check
7758 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7759 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
7760 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7761 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
7762  # Just in case
7763  sleep 1
7764  echo timestamp > conftest.file
7765 @@ -2018,8 +2460,8 @@
7766  Check your system clock" >&2;}
7767     { (exit 1); exit 1; }; }
7768  fi
7769 -echo "$as_me:$LINENO: result: yes" >&5
7770 -echo "${ECHO_T}yes" >&6
7771 +{ echo "$as_me:$LINENO: result: yes" >&5
7772 +echo "${ECHO_T}yes" >&6; }
7773  
7774  # Look for install program
7775  # Find a good install program.  We prefer a C program (faster),
7776 @@ -2035,8 +2477,8 @@
7777  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7778  # OS/2's system install, which has a completely different semantic
7779  # ./install, which can be erroneously created by make from ./install.sh.
7780 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7781 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7782 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7783 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7784  if test -z "$INSTALL"; then
7785  if test "${ac_cv_path_install+set}" = set; then
7786    echo $ECHO_N "(cached) $ECHO_C" >&6
7787 @@ -2058,7 +2500,7 @@
7788      # by default.
7789      for ac_prog in ginstall scoinst install; do
7790        for ac_exec_ext in '' $ac_executable_extensions; do
7791 -       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7792 +       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7793           if test $ac_prog = install &&
7794             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7795             # AIX install.  It has an incompatible calling convention.
7796 @@ -2077,21 +2519,22 @@
7797      ;;
7798  esac
7799  done
7800 +IFS=$as_save_IFS
7801  
7802  
7803  fi
7804    if test "${ac_cv_path_install+set}" = set; then
7805      INSTALL=$ac_cv_path_install
7806    else
7807 -    # As a last resort, use the slow shell script.  We don't cache a
7808 -    # path for INSTALL within a source directory, because that will
7809 +    # As a last resort, use the slow shell script.  Don't cache a
7810 +    # value for INSTALL within a source directory, because that will
7811      # break other packages using the cache if that directory is
7812 -    # removed, or if the path is relative.
7813 +    # removed, or if the value is a relative name.
7814      INSTALL=$ac_install_sh
7815    fi
7816  fi
7817 -echo "$as_me:$LINENO: result: $INSTALL" >&5
7818 -echo "${ECHO_T}$INSTALL" >&6
7819 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7820 +echo "${ECHO_T}$INSTALL" >&6; }
7821  
7822  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7823  # It thinks the first close brace ends the variable substitution.
7824 @@ -2111,8 +2554,8 @@
7825  if test -n "$ac_tool_prefix"; then
7826    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7827  set dummy ${ac_tool_prefix}gcc; ac_word=$2
7828 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832  if test "${ac_cv_prog_CC+set}" = set; then
7833    echo $ECHO_N "(cached) $ECHO_C" >&6
7834  else
7835 @@ -2125,32 +2568,34 @@
7836    IFS=$as_save_IFS
7837    test -z "$as_dir" && as_dir=.
7838    for ac_exec_ext in '' $ac_executable_extensions; do
7839 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7841      ac_cv_prog_CC="${ac_tool_prefix}gcc"
7842      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843      break 2
7844    fi
7845  done
7846  done
7847 +IFS=$as_save_IFS
7848  
7849  fi
7850  fi
7851  CC=$ac_cv_prog_CC
7852  if test -n "$CC"; then
7853 -  echo "$as_me:$LINENO: result: $CC" >&5
7854 -echo "${ECHO_T}$CC" >&6
7855 +  { echo "$as_me:$LINENO: result: $CC" >&5
7856 +echo "${ECHO_T}$CC" >&6; }
7857  else
7858 -  echo "$as_me:$LINENO: result: no" >&5
7859 -echo "${ECHO_T}no" >&6
7860 +  { echo "$as_me:$LINENO: result: no" >&5
7861 +echo "${ECHO_T}no" >&6; }
7862  fi
7863  
7864 +
7865  fi
7866  if test -z "$ac_cv_prog_CC"; then
7867    ac_ct_CC=$CC
7868    # Extract the first word of "gcc", so it can be a program name with args.
7869  set dummy gcc; ac_word=$2
7870 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7875    echo $ECHO_N "(cached) $ECHO_C" >&6
7876  else
7877 @@ -2163,36 +2608,51 @@
7878    IFS=$as_save_IFS
7879    test -z "$as_dir" && as_dir=.
7880    for ac_exec_ext in '' $ac_executable_extensions; do
7881 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7883      ac_cv_prog_ac_ct_CC="gcc"
7884      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885      break 2
7886    fi
7887  done
7888  done
7889 +IFS=$as_save_IFS
7890  
7891  fi
7892  fi
7893  ac_ct_CC=$ac_cv_prog_ac_ct_CC
7894  if test -n "$ac_ct_CC"; then
7895 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7896 -echo "${ECHO_T}$ac_ct_CC" >&6
7897 +  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7898 +echo "${ECHO_T}$ac_ct_CC" >&6; }
7899  else
7900 -  echo "$as_me:$LINENO: result: no" >&5
7901 -echo "${ECHO_T}no" >&6
7902 +  { echo "$as_me:$LINENO: result: no" >&5
7903 +echo "${ECHO_T}no" >&6; }
7904  fi
7905  
7906 -  CC=$ac_ct_CC
7907 +  if test "x$ac_ct_CC" = x; then
7908 +    CC=""
7909 +  else
7910 +    case $cross_compiling:$ac_tool_warned in
7911 +yes:)
7912 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7913 +whose name does not start with the host triplet.  If you think this
7914 +configuration is useful to you, please write to autoconf@gnu.org." >&5
7915 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7916 +whose name does not start with the host triplet.  If you think this
7917 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7918 +ac_tool_warned=yes ;;
7919 +esac
7920 +    CC=$ac_ct_CC
7921 +  fi
7922  else
7923    CC="$ac_cv_prog_CC"
7924  fi
7925  
7926  if test -z "$CC"; then
7927 -  if test -n "$ac_tool_prefix"; then
7928 -  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7929 +          if test -n "$ac_tool_prefix"; then
7930 +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7931  set dummy ${ac_tool_prefix}cc; ac_word=$2
7932 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7933 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7934 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936  if test "${ac_cv_prog_CC+set}" = set; then
7937    echo $ECHO_N "(cached) $ECHO_C" >&6
7938  else
7939 @@ -2205,74 +2665,34 @@
7940    IFS=$as_save_IFS
7941    test -z "$as_dir" && as_dir=.
7942    for ac_exec_ext in '' $ac_executable_extensions; do
7943 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7945      ac_cv_prog_CC="${ac_tool_prefix}cc"
7946      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947      break 2
7948    fi
7949  done
7950  done
7951 +IFS=$as_save_IFS
7952  
7953  fi
7954  fi
7955  CC=$ac_cv_prog_CC
7956  if test -n "$CC"; then
7957 -  echo "$as_me:$LINENO: result: $CC" >&5
7958 -echo "${ECHO_T}$CC" >&6
7959 -else
7960 -  echo "$as_me:$LINENO: result: no" >&5
7961 -echo "${ECHO_T}no" >&6
7962 -fi
7963 -
7964 -fi
7965 -if test -z "$ac_cv_prog_CC"; then
7966 -  ac_ct_CC=$CC
7967 -  # Extract the first word of "cc", so it can be a program name with args.
7968 -set dummy cc; ac_word=$2
7969 -echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7971 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7972 -  echo $ECHO_N "(cached) $ECHO_C" >&6
7973 -else
7974 -  if test -n "$ac_ct_CC"; then
7975 -  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7976 -else
7977 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 -for as_dir in $PATH
7979 -do
7980 -  IFS=$as_save_IFS
7981 -  test -z "$as_dir" && as_dir=.
7982 -  for ac_exec_ext in '' $ac_executable_extensions; do
7983 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 -    ac_cv_prog_ac_ct_CC="cc"
7985 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 -    break 2
7987 -  fi
7988 -done
7989 -done
7990 -
7991 -fi
7992 -fi
7993 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
7994 -if test -n "$ac_ct_CC"; then
7995 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7996 -echo "${ECHO_T}$ac_ct_CC" >&6
7997 +  { echo "$as_me:$LINENO: result: $CC" >&5
7998 +echo "${ECHO_T}$CC" >&6; }
7999  else
8000 -  echo "$as_me:$LINENO: result: no" >&5
8001 -echo "${ECHO_T}no" >&6
8002 +  { echo "$as_me:$LINENO: result: no" >&5
8003 +echo "${ECHO_T}no" >&6; }
8004  fi
8005  
8006 -  CC=$ac_ct_CC
8007 -else
8008 -  CC="$ac_cv_prog_CC"
8009 -fi
8010  
8011 +  fi
8012  fi
8013  if test -z "$CC"; then
8014    # Extract the first word of "cc", so it can be a program name with args.
8015  set dummy cc; ac_word=$2
8016 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020  if test "${ac_cv_prog_CC+set}" = set; then
8021    echo $ECHO_N "(cached) $ECHO_C" >&6
8022  else
8023 @@ -2286,7 +2706,7 @@
8024    IFS=$as_save_IFS
8025    test -z "$as_dir" && as_dir=.
8026    for ac_exec_ext in '' $ac_executable_extensions; do
8027 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8030         ac_prog_rejected=yes
8031         continue
8032 @@ -2297,6 +2717,7 @@
8033    fi
8034  done
8035  done
8036 +IFS=$as_save_IFS
8037  
8038  if test $ac_prog_rejected = yes; then
8039    # We found a bogon in the path, so make sure we never use it.
8040 @@ -2314,22 +2735,23 @@
8041  fi
8042  CC=$ac_cv_prog_CC
8043  if test -n "$CC"; then
8044 -  echo "$as_me:$LINENO: result: $CC" >&5
8045 -echo "${ECHO_T}$CC" >&6
8046 +  { echo "$as_me:$LINENO: result: $CC" >&5
8047 +echo "${ECHO_T}$CC" >&6; }
8048  else
8049 -  echo "$as_me:$LINENO: result: no" >&5
8050 -echo "${ECHO_T}no" >&6
8051 +  { echo "$as_me:$LINENO: result: no" >&5
8052 +echo "${ECHO_T}no" >&6; }
8053  fi
8054  
8055 +
8056  fi
8057  if test -z "$CC"; then
8058    if test -n "$ac_tool_prefix"; then
8059 -  for ac_prog in cl
8060 +  for ac_prog in cl.exe
8061    do
8062      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8063  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8064 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8066 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8067 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8068  if test "${ac_cv_prog_CC+set}" = set; then
8069    echo $ECHO_N "(cached) $ECHO_C" >&6
8070  else
8071 @@ -2342,36 +2764,38 @@
8072    IFS=$as_save_IFS
8073    test -z "$as_dir" && as_dir=.
8074    for ac_exec_ext in '' $ac_executable_extensions; do
8075 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8077      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8078      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079      break 2
8080    fi
8081  done
8082  done
8083 +IFS=$as_save_IFS
8084  
8085  fi
8086  fi
8087  CC=$ac_cv_prog_CC
8088  if test -n "$CC"; then
8089 -  echo "$as_me:$LINENO: result: $CC" >&5
8090 -echo "${ECHO_T}$CC" >&6
8091 +  { echo "$as_me:$LINENO: result: $CC" >&5
8092 +echo "${ECHO_T}$CC" >&6; }
8093  else
8094 -  echo "$as_me:$LINENO: result: no" >&5
8095 -echo "${ECHO_T}no" >&6
8096 +  { echo "$as_me:$LINENO: result: no" >&5
8097 +echo "${ECHO_T}no" >&6; }
8098  fi
8099  
8100 +
8101      test -n "$CC" && break
8102    done
8103  fi
8104  if test -z "$CC"; then
8105    ac_ct_CC=$CC
8106 -  for ac_prog in cl
8107 +  for ac_prog in cl.exe
8108  do
8109    # Extract the first word of "$ac_prog", so it can be a program name with args.
8110  set dummy $ac_prog; ac_word=$2
8111 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8112 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8115  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8116    echo $ECHO_N "(cached) $ECHO_C" >&6
8117  else
8118 @@ -2384,29 +2808,45 @@
8119    IFS=$as_save_IFS
8120    test -z "$as_dir" && as_dir=.
8121    for ac_exec_ext in '' $ac_executable_extensions; do
8122 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8124      ac_cv_prog_ac_ct_CC="$ac_prog"
8125      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126      break 2
8127    fi
8128  done
8129  done
8130 +IFS=$as_save_IFS
8131  
8132  fi
8133  fi
8134  ac_ct_CC=$ac_cv_prog_ac_ct_CC
8135  if test -n "$ac_ct_CC"; then
8136 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8137 -echo "${ECHO_T}$ac_ct_CC" >&6
8138 +  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8139 +echo "${ECHO_T}$ac_ct_CC" >&6; }
8140  else
8141 -  echo "$as_me:$LINENO: result: no" >&5
8142 -echo "${ECHO_T}no" >&6
8143 +  { echo "$as_me:$LINENO: result: no" >&5
8144 +echo "${ECHO_T}no" >&6; }
8145  fi
8146  
8147 +
8148    test -n "$ac_ct_CC" && break
8149  done
8150  
8151 -  CC=$ac_ct_CC
8152 +  if test "x$ac_ct_CC" = x; then
8153 +    CC=""
8154 +  else
8155 +    case $cross_compiling:$ac_tool_warned in
8156 +yes:)
8157 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8158 +whose name does not start with the host triplet.  If you think this
8159 +configuration is useful to you, please write to autoconf@gnu.org." >&5
8160 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8161 +whose name does not start with the host triplet.  If you think this
8162 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8163 +ac_tool_warned=yes ;;
8164 +esac
8165 +    CC=$ac_ct_CC
8166 +  fi
8167  fi
8168  
8169  fi
8170 @@ -2419,21 +2859,35 @@
8171     { (exit 1); exit 1; }; }
8172  
8173  # Provide some information about the compiler.
8174 -echo "$as_me:$LINENO:" \
8175 -     "checking for C compiler version" >&5
8176 +echo "$as_me:$LINENO: checking for C compiler version" >&5
8177  ac_compiler=`set X $ac_compile; echo $2`
8178 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8179 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
8180 +{ (ac_try="$ac_compiler --version >&5"
8181 +case "(($ac_try" in
8182 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 +  *) ac_try_echo=$ac_try;;
8184 +esac
8185 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 +  (eval "$ac_compiler --version >&5") 2>&5
8187    ac_status=$?
8188    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189    (exit $ac_status); }
8190 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8191 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
8192 +{ (ac_try="$ac_compiler -v >&5"
8193 +case "(($ac_try" in
8194 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 +  *) ac_try_echo=$ac_try;;
8196 +esac
8197 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 +  (eval "$ac_compiler -v >&5") 2>&5
8199    ac_status=$?
8200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201    (exit $ac_status); }
8202 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8203 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
8204 +{ (ac_try="$ac_compiler -V >&5"
8205 +case "(($ac_try" in
8206 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 +  *) ac_try_echo=$ac_try;;
8208 +esac
8209 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 +  (eval "$ac_compiler -V >&5") 2>&5
8211    ac_status=$?
8212    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213    (exit $ac_status); }
8214 @@ -2458,47 +2912,77 @@
8215  # Try to create an executable without -o first, disregard a.out.
8216  # It will help us diagnose broken compilers, and finding out an intuition
8217  # of exeext.
8218 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
8219 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
8220 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
8221 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
8222  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8223 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
8224 -  (eval $ac_link_default) 2>&5
8225 +#
8226 +# List of possible output files, starting from the most likely.
8227 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
8228 +# only as a last resort.  b.out is created by i960 compilers.
8229 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
8230 +#
8231 +# The IRIX 6 linker writes into existing files which may not be
8232 +# executable, retaining their permissions.  Remove them first so a
8233 +# subsequent execution test works.
8234 +ac_rmfiles=
8235 +for ac_file in $ac_files
8236 +do
8237 +  case $ac_file in
8238 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
8239 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8240 +  esac
8241 +done
8242 +rm -f $ac_rmfiles
8243 +
8244 +if { (ac_try="$ac_link_default"
8245 +case "(($ac_try" in
8246 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 +  *) ac_try_echo=$ac_try;;
8248 +esac
8249 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 +  (eval "$ac_link_default") 2>&5
8251    ac_status=$?
8252    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253    (exit $ac_status); }; then
8254 -  # Find the output, starting from the most likely.  This scheme is
8255 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
8256 -# resort.
8257 -
8258 -# Be careful to initialize this variable, since it used to be cached.
8259 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
8260 -ac_cv_exeext=
8261 -# b.out is created by i960 compilers.
8262 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
8263 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8264 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8265 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
8266 +# so that the user can short-circuit this test for compilers unknown to
8267 +# Autoconf.
8268 +for ac_file in $ac_files ''
8269  do
8270    test -f "$ac_file" || continue
8271    case $ac_file in
8272 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8273 -       ;;
8274 -    conftest.$ac_ext )
8275 -       # This is the source file.
8276 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8277         ;;
8278      [ab].out )
8279         # We found the default executable, but exeext='' is most
8280         # certainly right.
8281         break;;
8282      *.* )
8283 -       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8284 -       # FIXME: I believe we export ac_cv_exeext for Libtool,
8285 -       # but it would be cool to find out if it's true.  Does anybody
8286 -       # maintain Libtool? --akim.
8287 -       export ac_cv_exeext
8288 +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8289 +       then :; else
8290 +          ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8291 +       fi
8292 +       # We set ac_cv_exeext here because the later test for it is not
8293 +       # safe: cross compilers may not add the suffix if given an `-o'
8294 +       # argument, so we may need to know it at that point already.
8295 +       # Even if this section looks crufty: it has the advantage of
8296 +       # actually working.
8297         break;;
8298      * )
8299         break;;
8300    esac
8301  done
8302 +test "$ac_cv_exeext" = no && ac_cv_exeext=
8303 +
8304  else
8305 +  ac_file=''
8306 +fi
8307 +
8308 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
8309 +echo "${ECHO_T}$ac_file" >&6; }
8310 +if test -z "$ac_file"; then
8311    echo "$as_me: failed program was:" >&5
8312  sed 's/^/| /' conftest.$ac_ext >&5
8313  
8314 @@ -2510,19 +2994,21 @@
8315  fi
8316  
8317  ac_exeext=$ac_cv_exeext
8318 -echo "$as_me:$LINENO: result: $ac_file" >&5
8319 -echo "${ECHO_T}$ac_file" >&6
8320  
8321 -# Check the compiler produces executables we can run.  If not, either
8322 +# Check that the compiler produces executables we can run.  If not, either
8323  # the compiler is broken, or we cross compile.
8324 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
8325 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
8326 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
8327 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
8328  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
8329  # If not cross compiling, check that we can run a simple program.
8330  if test "$cross_compiling" != yes; then
8331    if { ac_try='./$ac_file'
8332 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 -  (eval $ac_try) 2>&5
8334 +  { (case "(($ac_try" in
8335 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 +  *) ac_try_echo=$ac_try;;
8337 +esac
8338 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 +  (eval "$ac_try") 2>&5
8340    ac_status=$?
8341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342    (exit $ac_status); }; }; then
8343 @@ -2541,22 +3027,27 @@
8344      fi
8345    fi
8346  fi
8347 -echo "$as_me:$LINENO: result: yes" >&5
8348 -echo "${ECHO_T}yes" >&6
8349 +{ echo "$as_me:$LINENO: result: yes" >&5
8350 +echo "${ECHO_T}yes" >&6; }
8351  
8352  rm -f a.out a.exe conftest$ac_cv_exeext b.out
8353  ac_clean_files=$ac_clean_files_save
8354 -# Check the compiler produces executables we can run.  If not, either
8355 +# Check that the compiler produces executables we can run.  If not, either
8356  # the compiler is broken, or we cross compile.
8357 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
8358 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
8359 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
8360 -echo "${ECHO_T}$cross_compiling" >&6
8361 -
8362 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
8363 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
8364 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365 -  (eval $ac_link) 2>&5
8366 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
8367 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
8368 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
8369 +echo "${ECHO_T}$cross_compiling" >&6; }
8370 +
8371 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
8372 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
8373 +if { (ac_try="$ac_link"
8374 +case "(($ac_try" in
8375 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 +  *) ac_try_echo=$ac_try;;
8377 +esac
8378 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 +  (eval "$ac_link") 2>&5
8380    ac_status=$?
8381    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382    (exit $ac_status); }; then
8383 @@ -2567,9 +3058,8 @@
8384  for ac_file in conftest.exe conftest conftest.*; do
8385    test -f "$ac_file" || continue
8386    case $ac_file in
8387 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
8388 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
8389      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8390 -         export ac_cv_exeext
8391           break;;
8392      * ) break;;
8393    esac
8394 @@ -2583,14 +3073,14 @@
8395  fi
8396  
8397  rm -f conftest$ac_cv_exeext
8398 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
8399 -echo "${ECHO_T}$ac_cv_exeext" >&6
8400 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
8401 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
8402  
8403  rm -f conftest.$ac_ext
8404  EXEEXT=$ac_cv_exeext
8405  ac_exeext=$EXEEXT
8406 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
8407 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
8408 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
8409 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
8410  if test "${ac_cv_objext+set}" = set; then
8411    echo $ECHO_N "(cached) $ECHO_C" >&6
8412  else
8413 @@ -2610,14 +3100,20 @@
8414  }
8415  _ACEOF
8416  rm -f conftest.o conftest.obj
8417 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 -  (eval $ac_compile) 2>&5
8419 +if { (ac_try="$ac_compile"
8420 +case "(($ac_try" in
8421 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 +  *) ac_try_echo=$ac_try;;
8423 +esac
8424 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 +  (eval "$ac_compile") 2>&5
8426    ac_status=$?
8427    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428    (exit $ac_status); }; then
8429 -  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
8430 +  for ac_file in conftest.o conftest.obj conftest.*; do
8431 +  test -f "$ac_file" || continue;
8432    case $ac_file in
8433 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
8434 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
8435      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8436         break;;
8437    esac
8438 @@ -2635,12 +3131,12 @@
8439  
8440  rm -f conftest.$ac_cv_objext conftest.$ac_ext
8441  fi
8442 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
8443 -echo "${ECHO_T}$ac_cv_objext" >&6
8444 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
8445 +echo "${ECHO_T}$ac_cv_objext" >&6; }
8446  OBJEXT=$ac_cv_objext
8447  ac_objext=$OBJEXT
8448 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8449 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8450 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8451 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
8452  if test "${ac_cv_c_compiler_gnu+set}" = set; then
8453    echo $ECHO_N "(cached) $ECHO_C" >&6
8454  else
8455 @@ -2663,24 +3159,36 @@
8456  }
8457  _ACEOF
8458  rm -f conftest.$ac_objext
8459 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 -  (eval $ac_compile) 2>conftest.er1
8461 +if { (ac_try="$ac_compile"
8462 +case "(($ac_try" in
8463 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 +  *) ac_try_echo=$ac_try;;
8465 +esac
8466 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 +  (eval "$ac_compile") 2>conftest.er1
8468    ac_status=$?
8469    grep -v '^ *+' conftest.er1 >conftest.err
8470    rm -f conftest.er1
8471    cat conftest.err >&5
8472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473    (exit $ac_status); } &&
8474 -        { ac_try='test -z "$ac_c_werror_flag"
8475 -                        || test ! -s conftest.err'
8476 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 -  (eval $ac_try) 2>&5
8478 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8479 +  { (case "(($ac_try" in
8480 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 +  *) ac_try_echo=$ac_try;;
8482 +esac
8483 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 +  (eval "$ac_try") 2>&5
8485    ac_status=$?
8486    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487    (exit $ac_status); }; } &&
8488          { ac_try='test -s conftest.$ac_objext'
8489 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 -  (eval $ac_try) 2>&5
8491 +  { (case "(($ac_try" in
8492 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 +  *) ac_try_echo=$ac_try;;
8494 +esac
8495 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 +  (eval "$ac_try") 2>&5
8497    ac_status=$?
8498    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499    (exit $ac_status); }; }; then
8500 @@ -2689,24 +3197,28 @@
8501    echo "$as_me: failed program was:" >&5
8502  sed 's/^/| /' conftest.$ac_ext >&5
8503  
8504 -ac_compiler_gnu=no
8505 +       ac_compiler_gnu=no
8506  fi
8507 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 +
8509 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510  ac_cv_c_compiler_gnu=$ac_compiler_gnu
8511  
8512  fi
8513 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8514 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8515 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8516 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
8517  GCC=`test $ac_compiler_gnu = yes && echo yes`
8518  ac_test_CFLAGS=${CFLAGS+set}
8519  ac_save_CFLAGS=$CFLAGS
8520 -CFLAGS="-g"
8521 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8522 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8523 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8524 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
8525  if test "${ac_cv_prog_cc_g+set}" = set; then
8526    echo $ECHO_N "(cached) $ECHO_C" >&6
8527  else
8528 -  cat >conftest.$ac_ext <<_ACEOF
8529 +  ac_save_c_werror_flag=$ac_c_werror_flag
8530 +   ac_c_werror_flag=yes
8531 +   ac_cv_prog_cc_g=no
8532 +   CFLAGS="-g"
8533 +   cat >conftest.$ac_ext <<_ACEOF
8534  /* confdefs.h.  */
8535  _ACEOF
8536  cat confdefs.h >>conftest.$ac_ext
8537 @@ -2722,24 +3234,147 @@
8538  }
8539  _ACEOF
8540  rm -f conftest.$ac_objext
8541 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542 -  (eval $ac_compile) 2>conftest.er1
8543 +if { (ac_try="$ac_compile"
8544 +case "(($ac_try" in
8545 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 +  *) ac_try_echo=$ac_try;;
8547 +esac
8548 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 +  (eval "$ac_compile") 2>conftest.er1
8550 +  ac_status=$?
8551 +  grep -v '^ *+' conftest.er1 >conftest.err
8552 +  rm -f conftest.er1
8553 +  cat conftest.err >&5
8554 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 +  (exit $ac_status); } &&
8556 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 +  { (case "(($ac_try" in
8558 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 +  *) ac_try_echo=$ac_try;;
8560 +esac
8561 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 +  (eval "$ac_try") 2>&5
8563 +  ac_status=$?
8564 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 +  (exit $ac_status); }; } &&
8566 +        { ac_try='test -s conftest.$ac_objext'
8567 +  { (case "(($ac_try" in
8568 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 +  *) ac_try_echo=$ac_try;;
8570 +esac
8571 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 +  (eval "$ac_try") 2>&5
8573 +  ac_status=$?
8574 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 +  (exit $ac_status); }; }; then
8576 +  ac_cv_prog_cc_g=yes
8577 +else
8578 +  echo "$as_me: failed program was:" >&5
8579 +sed 's/^/| /' conftest.$ac_ext >&5
8580 +
8581 +       CFLAGS=""
8582 +      cat >conftest.$ac_ext <<_ACEOF
8583 +/* confdefs.h.  */
8584 +_ACEOF
8585 +cat confdefs.h >>conftest.$ac_ext
8586 +cat >>conftest.$ac_ext <<_ACEOF
8587 +/* end confdefs.h.  */
8588 +
8589 +int
8590 +main ()
8591 +{
8592 +
8593 +  ;
8594 +  return 0;
8595 +}
8596 +_ACEOF
8597 +rm -f conftest.$ac_objext
8598 +if { (ac_try="$ac_compile"
8599 +case "(($ac_try" in
8600 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 +  *) ac_try_echo=$ac_try;;
8602 +esac
8603 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 +  (eval "$ac_compile") 2>conftest.er1
8605 +  ac_status=$?
8606 +  grep -v '^ *+' conftest.er1 >conftest.err
8607 +  rm -f conftest.er1
8608 +  cat conftest.err >&5
8609 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 +  (exit $ac_status); } &&
8611 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612 +  { (case "(($ac_try" in
8613 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 +  *) ac_try_echo=$ac_try;;
8615 +esac
8616 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 +  (eval "$ac_try") 2>&5
8618 +  ac_status=$?
8619 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 +  (exit $ac_status); }; } &&
8621 +        { ac_try='test -s conftest.$ac_objext'
8622 +  { (case "(($ac_try" in
8623 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 +  *) ac_try_echo=$ac_try;;
8625 +esac
8626 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 +  (eval "$ac_try") 2>&5
8628 +  ac_status=$?
8629 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 +  (exit $ac_status); }; }; then
8631 +  :
8632 +else
8633 +  echo "$as_me: failed program was:" >&5
8634 +sed 's/^/| /' conftest.$ac_ext >&5
8635 +
8636 +       ac_c_werror_flag=$ac_save_c_werror_flag
8637 +        CFLAGS="-g"
8638 +        cat >conftest.$ac_ext <<_ACEOF
8639 +/* confdefs.h.  */
8640 +_ACEOF
8641 +cat confdefs.h >>conftest.$ac_ext
8642 +cat >>conftest.$ac_ext <<_ACEOF
8643 +/* end confdefs.h.  */
8644 +
8645 +int
8646 +main ()
8647 +{
8648 +
8649 +  ;
8650 +  return 0;
8651 +}
8652 +_ACEOF
8653 +rm -f conftest.$ac_objext
8654 +if { (ac_try="$ac_compile"
8655 +case "(($ac_try" in
8656 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 +  *) ac_try_echo=$ac_try;;
8658 +esac
8659 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 +  (eval "$ac_compile") 2>conftest.er1
8661    ac_status=$?
8662    grep -v '^ *+' conftest.er1 >conftest.err
8663    rm -f conftest.er1
8664    cat conftest.err >&5
8665    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666    (exit $ac_status); } &&
8667 -        { ac_try='test -z "$ac_c_werror_flag"
8668 -                        || test ! -s conftest.err'
8669 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 -  (eval $ac_try) 2>&5
8671 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8672 +  { (case "(($ac_try" in
8673 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 +  *) ac_try_echo=$ac_try;;
8675 +esac
8676 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 +  (eval "$ac_try") 2>&5
8678    ac_status=$?
8679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680    (exit $ac_status); }; } &&
8681          { ac_try='test -s conftest.$ac_objext'
8682 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 -  (eval $ac_try) 2>&5
8684 +  { (case "(($ac_try" in
8685 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 +  *) ac_try_echo=$ac_try;;
8687 +esac
8688 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 +  (eval "$ac_try") 2>&5
8690    ac_status=$?
8691    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692    (exit $ac_status); }; }; then
8693 @@ -2748,12 +3383,20 @@
8694    echo "$as_me: failed program was:" >&5
8695  sed 's/^/| /' conftest.$ac_ext >&5
8696  
8697 -ac_cv_prog_cc_g=no
8698 +
8699 +fi
8700 +
8701 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 +fi
8703 +
8704 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705  fi
8706 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707 +
8708 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 +   ac_c_werror_flag=$ac_save_c_werror_flag
8710  fi
8711 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8712 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8713 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8714 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
8715  if test "$ac_test_CFLAGS" = set; then
8716    CFLAGS=$ac_save_CFLAGS
8717  elif test $ac_cv_prog_cc_g = yes; then
8718 @@ -2769,12 +3412,12 @@
8719      CFLAGS=
8720    fi
8721  fi
8722 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8723 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8724 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
8725 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
8726 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
8727 +if test "${ac_cv_prog_cc_c89+set}" = set; then
8728    echo $ECHO_N "(cached) $ECHO_C" >&6
8729  else
8730 -  ac_cv_prog_cc_stdc=no
8731 +  ac_cv_prog_cc_c89=no
8732  ac_save_CC=$CC
8733  cat >conftest.$ac_ext <<_ACEOF
8734  /* confdefs.h.  */
8735 @@ -2808,12 +3451,17 @@
8736  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8737     function prototypes and stuff, but not '\xHH' hex character constants.
8738     These don't provoke an error unfortunately, instead are silently treated
8739 -   as 'x'.  The following induces an error, until -std1 is added to get
8740 +   as 'x'.  The following induces an error, until -std is added to get
8741     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8742     array size at least.  It's necessary to write '\x00'==0 to get something
8743 -   that's true only with -std1.  */
8744 +   that's true only with -std.  */
8745  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8746  
8747 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8748 +   inside strings and character constants.  */
8749 +#define FOO(x) 'x'
8750 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8751 +
8752  int test (int i, double x);
8753  struct s1 {int (*f) (int a);};
8754  struct s2 {int (*f) (double a);};
8755 @@ -2828,205 +3476,74 @@
8756    return 0;
8757  }
8758  _ACEOF
8759 -# Don't try gcc -ansi; that turns off useful extensions and
8760 -# breaks some systems' header files.
8761 -# AIX                  -qlanglvl=ansi
8762 -# Ultrix and OSF/1     -std1
8763 -# HP-UX 10.20 and later        -Ae
8764 -# HP-UX older versions -Aa -D_HPUX_SOURCE
8765 -# SVR4                 -Xc -D__EXTENSIONS__
8766 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8767 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8768 +       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8769  do
8770    CC="$ac_save_CC $ac_arg"
8771    rm -f conftest.$ac_objext
8772 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773 -  (eval $ac_compile) 2>conftest.er1
8774 +if { (ac_try="$ac_compile"
8775 +case "(($ac_try" in
8776 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 +  *) ac_try_echo=$ac_try;;
8778 +esac
8779 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 +  (eval "$ac_compile") 2>conftest.er1
8781    ac_status=$?
8782    grep -v '^ *+' conftest.er1 >conftest.err
8783    rm -f conftest.er1
8784    cat conftest.err >&5
8785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786    (exit $ac_status); } &&
8787 -        { ac_try='test -z "$ac_c_werror_flag"
8788 -                        || test ! -s conftest.err'
8789 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 -  (eval $ac_try) 2>&5
8791 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8792 +  { (case "(($ac_try" in
8793 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 +  *) ac_try_echo=$ac_try;;
8795 +esac
8796 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 +  (eval "$ac_try") 2>&5
8798    ac_status=$?
8799    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800    (exit $ac_status); }; } &&
8801          { ac_try='test -s conftest.$ac_objext'
8802 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 -  (eval $ac_try) 2>&5
8804 +  { (case "(($ac_try" in
8805 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 +  *) ac_try_echo=$ac_try;;
8807 +esac
8808 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 +  (eval "$ac_try") 2>&5
8810    ac_status=$?
8811    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812    (exit $ac_status); }; }; then
8813 -  ac_cv_prog_cc_stdc=$ac_arg
8814 -break
8815 +  ac_cv_prog_cc_c89=$ac_arg
8816  else
8817    echo "$as_me: failed program was:" >&5
8818  sed 's/^/| /' conftest.$ac_ext >&5
8819  
8820 +
8821  fi
8822 -rm -f conftest.err conftest.$ac_objext
8823 +
8824 +rm -f core conftest.err conftest.$ac_objext
8825 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
8826  done
8827 -rm -f conftest.$ac_ext conftest.$ac_objext
8828 +rm -f conftest.$ac_ext
8829  CC=$ac_save_CC
8830  
8831  fi
8832 -
8833 -case "x$ac_cv_prog_cc_stdc" in
8834 -  x|xno)
8835 -    echo "$as_me:$LINENO: result: none needed" >&5
8836 -echo "${ECHO_T}none needed" >&6 ;;
8837 +# AC_CACHE_VAL
8838 +case "x$ac_cv_prog_cc_c89" in
8839 +  x)
8840 +    { echo "$as_me:$LINENO: result: none needed" >&5
8841 +echo "${ECHO_T}none needed" >&6; } ;;
8842 +  xno)
8843 +    { echo "$as_me:$LINENO: result: unsupported" >&5
8844 +echo "${ECHO_T}unsupported" >&6; } ;;
8845    *)
8846 -    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8847 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8848 -    CC="$CC $ac_cv_prog_cc_stdc" ;;
8849 +    CC="$CC $ac_cv_prog_cc_c89"
8850 +    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
8851 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
8852  esac
8853  
8854 -# Some people use a C++ compiler to compile C.  Since we use `exit',
8855 -# in C++ we need to declare it.  In case someone uses the same compiler
8856 -# for both compiling C and C++ we need to have the C++ compiler decide
8857 -# the declaration of exit, since it's the most demanding environment.
8858 -cat >conftest.$ac_ext <<_ACEOF
8859 -#ifndef __cplusplus
8860 -  choke me
8861 -#endif
8862 -_ACEOF
8863 -rm -f conftest.$ac_objext
8864 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865 -  (eval $ac_compile) 2>conftest.er1
8866 -  ac_status=$?
8867 -  grep -v '^ *+' conftest.er1 >conftest.err
8868 -  rm -f conftest.er1
8869 -  cat conftest.err >&5
8870 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 -  (exit $ac_status); } &&
8872 -        { ac_try='test -z "$ac_c_werror_flag"
8873 -                        || test ! -s conftest.err'
8874 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 -  (eval $ac_try) 2>&5
8876 -  ac_status=$?
8877 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 -  (exit $ac_status); }; } &&
8879 -        { ac_try='test -s conftest.$ac_objext'
8880 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 -  (eval $ac_try) 2>&5
8882 -  ac_status=$?
8883 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 -  (exit $ac_status); }; }; then
8885 -  for ac_declaration in \
8886 -   '' \
8887 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
8888 -   'extern "C" void std::exit (int); using std::exit;' \
8889 -   'extern "C" void exit (int) throw ();' \
8890 -   'extern "C" void exit (int);' \
8891 -   'void exit (int);'
8892 -do
8893 -  cat >conftest.$ac_ext <<_ACEOF
8894 -/* confdefs.h.  */
8895 -_ACEOF
8896 -cat confdefs.h >>conftest.$ac_ext
8897 -cat >>conftest.$ac_ext <<_ACEOF
8898 -/* end confdefs.h.  */
8899 -$ac_declaration
8900 -#include <stdlib.h>
8901 -int
8902 -main ()
8903 -{
8904 -exit (42);
8905 -  ;
8906 -  return 0;
8907 -}
8908 -_ACEOF
8909 -rm -f conftest.$ac_objext
8910 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 -  (eval $ac_compile) 2>conftest.er1
8912 -  ac_status=$?
8913 -  grep -v '^ *+' conftest.er1 >conftest.err
8914 -  rm -f conftest.er1
8915 -  cat conftest.err >&5
8916 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 -  (exit $ac_status); } &&
8918 -        { ac_try='test -z "$ac_c_werror_flag"
8919 -                        || test ! -s conftest.err'
8920 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 -  (eval $ac_try) 2>&5
8922 -  ac_status=$?
8923 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 -  (exit $ac_status); }; } &&
8925 -        { ac_try='test -s conftest.$ac_objext'
8926 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 -  (eval $ac_try) 2>&5
8928 -  ac_status=$?
8929 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 -  (exit $ac_status); }; }; then
8931 -  :
8932 -else
8933 -  echo "$as_me: failed program was:" >&5
8934 -sed 's/^/| /' conftest.$ac_ext >&5
8935 -
8936 -continue
8937 -fi
8938 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 -  cat >conftest.$ac_ext <<_ACEOF
8940 -/* confdefs.h.  */
8941 -_ACEOF
8942 -cat confdefs.h >>conftest.$ac_ext
8943 -cat >>conftest.$ac_ext <<_ACEOF
8944 -/* end confdefs.h.  */
8945 -$ac_declaration
8946 -int
8947 -main ()
8948 -{
8949 -exit (42);
8950 -  ;
8951 -  return 0;
8952 -}
8953 -_ACEOF
8954 -rm -f conftest.$ac_objext
8955 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956 -  (eval $ac_compile) 2>conftest.er1
8957 -  ac_status=$?
8958 -  grep -v '^ *+' conftest.er1 >conftest.err
8959 -  rm -f conftest.er1
8960 -  cat conftest.err >&5
8961 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 -  (exit $ac_status); } &&
8963 -        { ac_try='test -z "$ac_c_werror_flag"
8964 -                        || test ! -s conftest.err'
8965 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 -  (eval $ac_try) 2>&5
8967 -  ac_status=$?
8968 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 -  (exit $ac_status); }; } &&
8970 -        { ac_try='test -s conftest.$ac_objext'
8971 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 -  (eval $ac_try) 2>&5
8973 -  ac_status=$?
8974 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 -  (exit $ac_status); }; }; then
8976 -  break
8977 -else
8978 -  echo "$as_me: failed program was:" >&5
8979 -sed 's/^/| /' conftest.$ac_ext >&5
8980 -
8981 -fi
8982 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8983 -done
8984 -rm -f conftest*
8985 -if test -n "$ac_declaration"; then
8986 -  echo '#ifdef __cplusplus' >>confdefs.h
8987 -  echo $ac_declaration      >>confdefs.h
8988 -  echo '#endif'             >>confdefs.h
8989 -fi
8990  
8991 -else
8992 -  echo "$as_me: failed program was:" >&5
8993 -sed 's/^/| /' conftest.$ac_ext >&5
8994 -
8995 -fi
8996 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8997  ac_ext=c
8998  ac_cpp='$CPP $CPPFLAGS'
8999  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9000 @@ -3034,7 +3551,7 @@
9001  ac_compiler_gnu=$ac_cv_c_compiler_gnu
9002  DEPDIR="${am__leading_dot}deps"
9003  
9004 -          ac_config_commands="$ac_config_commands depfiles"
9005 +ac_config_commands="$ac_config_commands depfiles"
9006  
9007  
9008  am_make=${MAKE-make}
9009 @@ -3044,8 +3561,8 @@
9010  .PHONY: am__doit
9011  END
9012  # If we don't find an include directive, just comment out the code.
9013 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9014 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
9015 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9016 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
9017  am__include="#"
9018  am__quote=
9019  _am_result=none
9020 @@ -3072,15 +3589,15 @@
9021  fi
9022  
9023  
9024 -echo "$as_me:$LINENO: result: $_am_result" >&5
9025 -echo "${ECHO_T}$_am_result" >&6
9026 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
9027 +echo "${ECHO_T}$_am_result" >&6; }
9028  rm -f confinc confmf
9029  
9030 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
9031 +# Check whether --enable-dependency-tracking was given.
9032  if test "${enable_dependency_tracking+set}" = set; then
9033 -  enableval="$enable_dependency_tracking"
9034 +  enableval=$enable_dependency_tracking;
9035 +fi
9036  
9037 -fi;
9038  if test "x$enable_dependency_tracking" != xno; then
9039    am_depcomp="$ac_aux_dir/depcomp"
9040    AMDEPBACKSLASH='\'
9041 @@ -3100,8 +3617,8 @@
9042  
9043  depcc="$CC"   am_compiler_list=
9044  
9045 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9046 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9047 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9048 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
9049  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9050    echo $ECHO_N "(cached) $ECHO_C" >&6
9051  else
9052 @@ -3190,8 +3707,8 @@
9053  fi
9054  
9055  fi
9056 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9057 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9058 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9059 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
9060  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9061  
9062  
9063 @@ -3207,18 +3724,22 @@
9064  fi
9065  
9066  
9067 -ac_ext=cc
9068 +ac_ext=cpp
9069  ac_cpp='$CXXCPP $CPPFLAGS'
9070  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9073 -if test -n "$ac_tool_prefix"; then
9074 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9075 +if test -z "$CXX"; then
9076 +  if test -n "$CCC"; then
9077 +    CXX=$CCC
9078 +  else
9079 +    if test -n "$ac_tool_prefix"; then
9080 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9081    do
9082      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9083  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9084 -echo "$as_me:$LINENO: checking for $ac_word" >&5
9085 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9087 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9088  if test "${ac_cv_prog_CXX+set}" = set; then
9089    echo $ECHO_N "(cached) $ECHO_C" >&6
9090  else
9091 @@ -3231,36 +3752,38 @@
9092    IFS=$as_save_IFS
9093    test -z "$as_dir" && as_dir=.
9094    for ac_exec_ext in '' $ac_executable_extensions; do
9095 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9097      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9098      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099      break 2
9100    fi
9101  done
9102  done
9103 +IFS=$as_save_IFS
9104  
9105  fi
9106  fi
9107  CXX=$ac_cv_prog_CXX
9108  if test -n "$CXX"; then
9109 -  echo "$as_me:$LINENO: result: $CXX" >&5
9110 -echo "${ECHO_T}$CXX" >&6
9111 +  { echo "$as_me:$LINENO: result: $CXX" >&5
9112 +echo "${ECHO_T}$CXX" >&6; }
9113  else
9114 -  echo "$as_me:$LINENO: result: no" >&5
9115 -echo "${ECHO_T}no" >&6
9116 +  { echo "$as_me:$LINENO: result: no" >&5
9117 +echo "${ECHO_T}no" >&6; }
9118  fi
9119  
9120 +
9121      test -n "$CXX" && break
9122    done
9123  fi
9124  if test -z "$CXX"; then
9125    ac_ct_CXX=$CXX
9126 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9127 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9128  do
9129    # Extract the first word of "$ac_prog", so it can be a program name with args.
9130  set dummy $ac_prog; ac_word=$2
9131 -echo "$as_me:$LINENO: checking for $ac_word" >&5
9132 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9133 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9134 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9135  if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9136    echo $ECHO_N "(cached) $ECHO_C" >&6
9137  else
9138 @@ -3273,55 +3796,85 @@
9139    IFS=$as_save_IFS
9140    test -z "$as_dir" && as_dir=.
9141    for ac_exec_ext in '' $ac_executable_extensions; do
9142 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9144      ac_cv_prog_ac_ct_CXX="$ac_prog"
9145      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9146      break 2
9147    fi
9148  done
9149  done
9150 +IFS=$as_save_IFS
9151  
9152  fi
9153  fi
9154  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9155  if test -n "$ac_ct_CXX"; then
9156 -  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9157 -echo "${ECHO_T}$ac_ct_CXX" >&6
9158 +  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9159 +echo "${ECHO_T}$ac_ct_CXX" >&6; }
9160  else
9161 -  echo "$as_me:$LINENO: result: no" >&5
9162 -echo "${ECHO_T}no" >&6
9163 +  { echo "$as_me:$LINENO: result: no" >&5
9164 +echo "${ECHO_T}no" >&6; }
9165  fi
9166  
9167 +
9168    test -n "$ac_ct_CXX" && break
9169  done
9170 -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
9171  
9172 -  CXX=$ac_ct_CXX
9173 +  if test "x$ac_ct_CXX" = x; then
9174 +    CXX="g++"
9175 +  else
9176 +    case $cross_compiling:$ac_tool_warned in
9177 +yes:)
9178 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9179 +whose name does not start with the host triplet.  If you think this
9180 +configuration is useful to you, please write to autoconf@gnu.org." >&5
9181 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9182 +whose name does not start with the host triplet.  If you think this
9183 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9184 +ac_tool_warned=yes ;;
9185 +esac
9186 +    CXX=$ac_ct_CXX
9187 +  fi
9188  fi
9189  
9190 -
9191 +  fi
9192 +fi
9193  # Provide some information about the compiler.
9194 -echo "$as_me:$LINENO:" \
9195 -     "checking for C++ compiler version" >&5
9196 +echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9197  ac_compiler=`set X $ac_compile; echo $2`
9198 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9199 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
9200 +{ (ac_try="$ac_compiler --version >&5"
9201 +case "(($ac_try" in
9202 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 +  *) ac_try_echo=$ac_try;;
9204 +esac
9205 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 +  (eval "$ac_compiler --version >&5") 2>&5
9207    ac_status=$?
9208    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209    (exit $ac_status); }
9210 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9211 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
9212 +{ (ac_try="$ac_compiler -v >&5"
9213 +case "(($ac_try" in
9214 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 +  *) ac_try_echo=$ac_try;;
9216 +esac
9217 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 +  (eval "$ac_compiler -v >&5") 2>&5
9219    ac_status=$?
9220    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221    (exit $ac_status); }
9222 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9223 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
9224 +{ (ac_try="$ac_compiler -V >&5"
9225 +case "(($ac_try" in
9226 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 +  *) ac_try_echo=$ac_try;;
9228 +esac
9229 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 +  (eval "$ac_compiler -V >&5") 2>&5
9231    ac_status=$?
9232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233    (exit $ac_status); }
9234  
9235 -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9236 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
9237 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9238 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
9239  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9240    echo $ECHO_N "(cached) $ECHO_C" >&6
9241  else
9242 @@ -3344,24 +3897,36 @@
9243  }
9244  _ACEOF
9245  rm -f conftest.$ac_objext
9246 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 -  (eval $ac_compile) 2>conftest.er1
9248 +if { (ac_try="$ac_compile"
9249 +case "(($ac_try" in
9250 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 +  *) ac_try_echo=$ac_try;;
9252 +esac
9253 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 +  (eval "$ac_compile") 2>conftest.er1
9255    ac_status=$?
9256    grep -v '^ *+' conftest.er1 >conftest.err
9257    rm -f conftest.er1
9258    cat conftest.err >&5
9259    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260    (exit $ac_status); } &&
9261 -        { ac_try='test -z "$ac_cxx_werror_flag"
9262 -                        || test ! -s conftest.err'
9263 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 -  (eval $ac_try) 2>&5
9265 +        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9266 +  { (case "(($ac_try" in
9267 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 +  *) ac_try_echo=$ac_try;;
9269 +esac
9270 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 +  (eval "$ac_try") 2>&5
9272    ac_status=$?
9273    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274    (exit $ac_status); }; } &&
9275          { ac_try='test -s conftest.$ac_objext'
9276 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 -  (eval $ac_try) 2>&5
9278 +  { (case "(($ac_try" in
9279 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 +  *) ac_try_echo=$ac_try;;
9281 +esac
9282 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 +  (eval "$ac_try") 2>&5
9284    ac_status=$?
9285    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286    (exit $ac_status); }; }; then
9287 @@ -3370,24 +3935,28 @@
9288    echo "$as_me: failed program was:" >&5
9289  sed 's/^/| /' conftest.$ac_ext >&5
9290  
9291 -ac_compiler_gnu=no
9292 +       ac_compiler_gnu=no
9293  fi
9294 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9295 +
9296 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9298  
9299  fi
9300 -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9301 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
9302 +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9303 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
9304  GXX=`test $ac_compiler_gnu = yes && echo yes`
9305  ac_test_CXXFLAGS=${CXXFLAGS+set}
9306  ac_save_CXXFLAGS=$CXXFLAGS
9307 -CXXFLAGS="-g"
9308 -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9309 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
9310 +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9311 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
9312  if test "${ac_cv_prog_cxx_g+set}" = set; then
9313    echo $ECHO_N "(cached) $ECHO_C" >&6
9314  else
9315 -  cat >conftest.$ac_ext <<_ACEOF
9316 +  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9317 +   ac_cxx_werror_flag=yes
9318 +   ac_cv_prog_cxx_g=no
9319 +   CXXFLAGS="-g"
9320 +   cat >conftest.$ac_ext <<_ACEOF
9321  /* confdefs.h.  */
9322  _ACEOF
9323  cat confdefs.h >>conftest.$ac_ext
9324 @@ -3403,24 +3972,36 @@
9325  }
9326  _ACEOF
9327  rm -f conftest.$ac_objext
9328 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 -  (eval $ac_compile) 2>conftest.er1
9330 +if { (ac_try="$ac_compile"
9331 +case "(($ac_try" in
9332 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 +  *) ac_try_echo=$ac_try;;
9334 +esac
9335 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 +  (eval "$ac_compile") 2>conftest.er1
9337    ac_status=$?
9338    grep -v '^ *+' conftest.er1 >conftest.err
9339    rm -f conftest.er1
9340    cat conftest.err >&5
9341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342    (exit $ac_status); } &&
9343 -        { ac_try='test -z "$ac_cxx_werror_flag"
9344 -                        || test ! -s conftest.err'
9345 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 -  (eval $ac_try) 2>&5
9347 +        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9348 +  { (case "(($ac_try" in
9349 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 +  *) ac_try_echo=$ac_try;;
9351 +esac
9352 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 +  (eval "$ac_try") 2>&5
9354    ac_status=$?
9355    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356    (exit $ac_status); }; } &&
9357          { ac_try='test -s conftest.$ac_objext'
9358 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 -  (eval $ac_try) 2>&5
9360 +  { (case "(($ac_try" in
9361 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 +  *) ac_try_echo=$ac_try;;
9363 +esac
9364 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 +  (eval "$ac_try") 2>&5
9366    ac_status=$?
9367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368    (exit $ac_status); }; }; then
9369 @@ -3429,70 +4010,53 @@
9370    echo "$as_me: failed program was:" >&5
9371  sed 's/^/| /' conftest.$ac_ext >&5
9372  
9373 -ac_cv_prog_cxx_g=no
9374 -fi
9375 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9376 -fi
9377 -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9378 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
9379 -if test "$ac_test_CXXFLAGS" = set; then
9380 -  CXXFLAGS=$ac_save_CXXFLAGS
9381 -elif test $ac_cv_prog_cxx_g = yes; then
9382 -  if test "$GXX" = yes; then
9383 -    CXXFLAGS="-g -O2"
9384 -  else
9385 -    CXXFLAGS="-g"
9386 -  fi
9387 -else
9388 -  if test "$GXX" = yes; then
9389 -    CXXFLAGS="-O2"
9390 -  else
9391 -    CXXFLAGS=
9392 -  fi
9393 -fi
9394 -for ac_declaration in \
9395 -   '' \
9396 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
9397 -   'extern "C" void std::exit (int); using std::exit;' \
9398 -   'extern "C" void exit (int) throw ();' \
9399 -   'extern "C" void exit (int);' \
9400 -   'void exit (int);'
9401 -do
9402 -  cat >conftest.$ac_ext <<_ACEOF
9403 +       CXXFLAGS=""
9404 +      cat >conftest.$ac_ext <<_ACEOF
9405  /* confdefs.h.  */
9406  _ACEOF
9407  cat confdefs.h >>conftest.$ac_ext
9408  cat >>conftest.$ac_ext <<_ACEOF
9409  /* end confdefs.h.  */
9410 -$ac_declaration
9411 -#include <stdlib.h>
9412 +
9413  int
9414  main ()
9415  {
9416 -exit (42);
9417 +
9418    ;
9419    return 0;
9420  }
9421  _ACEOF
9422  rm -f conftest.$ac_objext
9423 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 -  (eval $ac_compile) 2>conftest.er1
9425 +if { (ac_try="$ac_compile"
9426 +case "(($ac_try" in
9427 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 +  *) ac_try_echo=$ac_try;;
9429 +esac
9430 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 +  (eval "$ac_compile") 2>conftest.er1
9432    ac_status=$?
9433    grep -v '^ *+' conftest.er1 >conftest.err
9434    rm -f conftest.er1
9435    cat conftest.err >&5
9436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437    (exit $ac_status); } &&
9438 -        { ac_try='test -z "$ac_cxx_werror_flag"
9439 -                        || test ! -s conftest.err'
9440 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 -  (eval $ac_try) 2>&5
9442 +        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9443 +  { (case "(($ac_try" in
9444 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 +  *) ac_try_echo=$ac_try;;
9446 +esac
9447 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448 +  (eval "$ac_try") 2>&5
9449    ac_status=$?
9450    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451    (exit $ac_status); }; } &&
9452          { ac_try='test -s conftest.$ac_objext'
9453 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 -  (eval $ac_try) 2>&5
9455 +  { (case "(($ac_try" in
9456 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 +  *) ac_try_echo=$ac_try;;
9458 +esac
9459 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 +  (eval "$ac_try") 2>&5
9461    ac_status=$?
9462    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463    (exit $ac_status); }; }; then
9464 @@ -3501,61 +4065,91 @@
9465    echo "$as_me: failed program was:" >&5
9466  sed 's/^/| /' conftest.$ac_ext >&5
9467  
9468 -continue
9469 -fi
9470 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9471 -  cat >conftest.$ac_ext <<_ACEOF
9472 +       ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9473 +        CXXFLAGS="-g"
9474 +        cat >conftest.$ac_ext <<_ACEOF
9475  /* confdefs.h.  */
9476  _ACEOF
9477  cat confdefs.h >>conftest.$ac_ext
9478  cat >>conftest.$ac_ext <<_ACEOF
9479  /* end confdefs.h.  */
9480 -$ac_declaration
9481 +
9482  int
9483  main ()
9484  {
9485 -exit (42);
9486 +
9487    ;
9488    return 0;
9489  }
9490  _ACEOF
9491  rm -f conftest.$ac_objext
9492 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493 -  (eval $ac_compile) 2>conftest.er1
9494 +if { (ac_try="$ac_compile"
9495 +case "(($ac_try" in
9496 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 +  *) ac_try_echo=$ac_try;;
9498 +esac
9499 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 +  (eval "$ac_compile") 2>conftest.er1
9501    ac_status=$?
9502    grep -v '^ *+' conftest.er1 >conftest.err
9503    rm -f conftest.er1
9504    cat conftest.err >&5
9505    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506    (exit $ac_status); } &&
9507 -        { ac_try='test -z "$ac_cxx_werror_flag"
9508 -                        || test ! -s conftest.err'
9509 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 -  (eval $ac_try) 2>&5
9511 +        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9512 +  { (case "(($ac_try" in
9513 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 +  *) ac_try_echo=$ac_try;;
9515 +esac
9516 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 +  (eval "$ac_try") 2>&5
9518    ac_status=$?
9519    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520    (exit $ac_status); }; } &&
9521          { ac_try='test -s conftest.$ac_objext'
9522 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 -  (eval $ac_try) 2>&5
9524 +  { (case "(($ac_try" in
9525 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 +  *) ac_try_echo=$ac_try;;
9527 +esac
9528 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 +  (eval "$ac_try") 2>&5
9530    ac_status=$?
9531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532    (exit $ac_status); }; }; then
9533 -  break
9534 +  ac_cv_prog_cxx_g=yes
9535  else
9536    echo "$as_me: failed program was:" >&5
9537  sed 's/^/| /' conftest.$ac_ext >&5
9538  
9539 +
9540  fi
9541 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9542 -done
9543 -rm -f conftest*
9544 -if test -n "$ac_declaration"; then
9545 -  echo '#ifdef __cplusplus' >>confdefs.h
9546 -  echo $ac_declaration      >>confdefs.h
9547 -  echo '#endif'             >>confdefs.h
9548 +
9549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 +fi
9551 +
9552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553  fi
9554  
9555 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9557 +fi
9558 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9559 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
9560 +if test "$ac_test_CXXFLAGS" = set; then
9561 +  CXXFLAGS=$ac_save_CXXFLAGS
9562 +elif test $ac_cv_prog_cxx_g = yes; then
9563 +  if test "$GXX" = yes; then
9564 +    CXXFLAGS="-g -O2"
9565 +  else
9566 +    CXXFLAGS="-g"
9567 +  fi
9568 +else
9569 +  if test "$GXX" = yes; then
9570 +    CXXFLAGS="-O2"
9571 +  else
9572 +    CXXFLAGS=
9573 +  fi
9574 +fi
9575  ac_ext=c
9576  ac_cpp='$CPP $CPPFLAGS'
9577  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9578 @@ -3564,8 +4158,8 @@
9579  
9580  depcc="$CXX"  am_compiler_list=
9581  
9582 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9583 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9584 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9585 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
9586  if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9587    echo $ECHO_N "(cached) $ECHO_C" >&6
9588  else
9589 @@ -3654,8 +4248,8 @@
9590  fi
9591  
9592  fi
9593 -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9594 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
9595 +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9596 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
9597  CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9598  
9599  
9600 @@ -3671,10 +4265,9 @@
9601  fi
9602  
9603  
9604 -# Check whether --enable-shared or --disable-shared was given.
9605 +# Check whether --enable-shared was given.
9606  if test "${enable_shared+set}" = set; then
9607 -  enableval="$enable_shared"
9608 -  p=${PACKAGE-default}
9609 +  enableval=$enable_shared; p=${PACKAGE-default}
9610      case $enableval in
9611      yes) enable_shared=yes ;;
9612      no) enable_shared=no ;;
9613 @@ -3693,12 +4286,12 @@
9614      esac
9615  else
9616    enable_shared=yes
9617 -fi;
9618 +fi
9619  
9620 -# Check whether --enable-static or --disable-static was given.
9621 +
9622 +# Check whether --enable-static was given.
9623  if test "${enable_static+set}" = set; then
9624 -  enableval="$enable_static"
9625 -  p=${PACKAGE-default}
9626 +  enableval=$enable_static; p=${PACKAGE-default}
9627      case $enableval in
9628      yes) enable_static=yes ;;
9629      no) enable_static=no ;;
9630 @@ -3717,12 +4310,12 @@
9631      esac
9632  else
9633    enable_static=yes
9634 -fi;
9635 +fi
9636  
9637 -# Check whether --enable-fast-install or --disable-fast-install was given.
9638 +
9639 +# Check whether --enable-fast-install was given.
9640  if test "${enable_fast_install+set}" = set; then
9641 -  enableval="$enable_fast_install"
9642 -  p=${PACKAGE-default}
9643 +  enableval=$enable_fast_install; p=${PACKAGE-default}
9644      case $enableval in
9645      yes) enable_fast_install=yes ;;
9646      no) enable_fast_install=no ;;
9647 @@ -3741,64 +4334,94 @@
9648      esac
9649  else
9650    enable_fast_install=yes
9651 -fi;
9652 +fi
9653 +
9654  
9655  # Make sure we can run config.sub.
9656 -$ac_config_sub sun4 >/dev/null 2>&1 ||
9657 -  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
9658 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
9659 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
9660 +  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
9661 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
9662     { (exit 1); exit 1; }; }
9663  
9664 -echo "$as_me:$LINENO: checking build system type" >&5
9665 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
9666 +{ echo "$as_me:$LINENO: checking build system type" >&5
9667 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
9668  if test "${ac_cv_build+set}" = set; then
9669    echo $ECHO_N "(cached) $ECHO_C" >&6
9670  else
9671 -  ac_cv_build_alias=$build_alias
9672 -test -z "$ac_cv_build_alias" &&
9673 -  ac_cv_build_alias=`$ac_config_guess`
9674 -test -z "$ac_cv_build_alias" &&
9675 +  ac_build_alias=$build_alias
9676 +test "x$ac_build_alias" = x &&
9677 +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
9678 +test "x$ac_build_alias" = x &&
9679    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
9680  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
9681     { (exit 1); exit 1; }; }
9682 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
9683 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
9684 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
9685 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
9686 +  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
9687 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
9688     { (exit 1); exit 1; }; }
9689  
9690  fi
9691 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
9692 -echo "${ECHO_T}$ac_cv_build" >&6
9693 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
9694 +echo "${ECHO_T}$ac_cv_build" >&6; }
9695 +case $ac_cv_build in
9696 +*-*-*) ;;
9697 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
9698 +echo "$as_me: error: invalid value of canonical build" >&2;}
9699 +   { (exit 1); exit 1; }; };;
9700 +esac
9701  build=$ac_cv_build
9702 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9703 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9704 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9705 +ac_save_IFS=$IFS; IFS='-'
9706 +set x $ac_cv_build
9707 +shift
9708 +build_cpu=$1
9709 +build_vendor=$2
9710 +shift; shift
9711 +# Remember, the first character of IFS is used to create $*,
9712 +# except with old shells:
9713 +build_os=$*
9714 +IFS=$ac_save_IFS
9715 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
9716  
9717  
9718 -echo "$as_me:$LINENO: checking host system type" >&5
9719 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
9720 +{ echo "$as_me:$LINENO: checking host system type" >&5
9721 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
9722  if test "${ac_cv_host+set}" = set; then
9723    echo $ECHO_N "(cached) $ECHO_C" >&6
9724  else
9725 -  ac_cv_host_alias=$host_alias
9726 -test -z "$ac_cv_host_alias" &&
9727 -  ac_cv_host_alias=$ac_cv_build_alias
9728 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9729 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9730 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9731 +  if test "x$host_alias" = x; then
9732 +  ac_cv_host=$ac_cv_build
9733 +else
9734 +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
9735 +    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
9736 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
9737     { (exit 1); exit 1; }; }
9738 +fi
9739  
9740  fi
9741 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9742 -echo "${ECHO_T}$ac_cv_host" >&6
9743 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9744 +echo "${ECHO_T}$ac_cv_host" >&6; }
9745 +case $ac_cv_host in
9746 +*-*-*) ;;
9747 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
9748 +echo "$as_me: error: invalid value of canonical host" >&2;}
9749 +   { (exit 1); exit 1; }; };;
9750 +esac
9751  host=$ac_cv_host
9752 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9753 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9754 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9755 +ac_save_IFS=$IFS; IFS='-'
9756 +set x $ac_cv_host
9757 +shift
9758 +host_cpu=$1
9759 +host_vendor=$2
9760 +shift; shift
9761 +# Remember, the first character of IFS is used to create $*,
9762 +# except with old shells:
9763 +host_os=$*
9764 +IFS=$ac_save_IFS
9765 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9766  
9767  
9768 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9769 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9770 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9771 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
9772  if test "${lt_cv_path_SED+set}" = set; then
9773    echo $ECHO_N "(cached) $ECHO_C" >&6
9774  else
9775 @@ -3851,37 +4474,184 @@
9776  fi
9777  
9778  SED=$lt_cv_path_SED
9779 -echo "$as_me:$LINENO: result: $SED" >&5
9780 -echo "${ECHO_T}$SED" >&6
9781 +{ echo "$as_me:$LINENO: result: $SED" >&5
9782 +echo "${ECHO_T}$SED" >&6; }
9783 +
9784 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
9785 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
9786 +if test "${ac_cv_path_GREP+set}" = set; then
9787 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9788 +else
9789 +  # Extract the first word of "grep ggrep" to use in msg output
9790 +if test -z "$GREP"; then
9791 +set dummy grep ggrep; ac_prog_name=$2
9792 +if test "${ac_cv_path_GREP+set}" = set; then
9793 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9794 +else
9795 +  ac_path_GREP_found=false
9796 +# Loop through the user's path and test for each of PROGNAME-LIST
9797 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9799 +do
9800 +  IFS=$as_save_IFS
9801 +  test -z "$as_dir" && as_dir=.
9802 +  for ac_prog in grep ggrep; do
9803 +  for ac_exec_ext in '' $ac_executable_extensions; do
9804 +    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9805 +    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
9806 +    # Check for GNU ac_path_GREP and select it if it is found.
9807 +  # Check for GNU $ac_path_GREP
9808 +case `"$ac_path_GREP" --version 2>&1` in
9809 +*GNU*)
9810 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9811 +*)
9812 +  ac_count=0
9813 +  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
9814 +  while :
9815 +  do
9816 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
9817 +    mv "conftest.tmp" "conftest.in"
9818 +    cp "conftest.in" "conftest.nl"
9819 +    echo 'GREP' >> "conftest.nl"
9820 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9821 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9822 +    ac_count=`expr $ac_count + 1`
9823 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
9824 +      # Best one so far, save it but keep looking for a better one
9825 +      ac_cv_path_GREP="$ac_path_GREP"
9826 +      ac_path_GREP_max=$ac_count
9827 +    fi
9828 +    # 10*(2^10) chars as input seems more than enough
9829 +    test $ac_count -gt 10 && break
9830 +  done
9831 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9832 +esac
9833 +
9834 +
9835 +    $ac_path_GREP_found && break 3
9836 +  done
9837 +done
9838 +
9839 +done
9840 +IFS=$as_save_IFS
9841 +
9842 +
9843 +fi
9844 +
9845 +GREP="$ac_cv_path_GREP"
9846 +if test -z "$GREP"; then
9847 +  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9848 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9849 +   { (exit 1); exit 1; }; }
9850 +fi
9851 +
9852 +else
9853 +  ac_cv_path_GREP=$GREP
9854 +fi
9855 +
9856 +
9857 +fi
9858 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
9859 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
9860 + GREP="$ac_cv_path_GREP"
9861  
9862 -echo "$as_me:$LINENO: checking for egrep" >&5
9863 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
9864 -if test "${ac_cv_prog_egrep+set}" = set; then
9865 +
9866 +{ echo "$as_me:$LINENO: checking for egrep" >&5
9867 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
9868 +if test "${ac_cv_path_EGREP+set}" = set; then
9869 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9870 +else
9871 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9872 +   then ac_cv_path_EGREP="$GREP -E"
9873 +   else
9874 +     # Extract the first word of "egrep" to use in msg output
9875 +if test -z "$EGREP"; then
9876 +set dummy egrep; ac_prog_name=$2
9877 +if test "${ac_cv_path_EGREP+set}" = set; then
9878    echo $ECHO_N "(cached) $ECHO_C" >&6
9879  else
9880 -  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
9881 -    then ac_cv_prog_egrep='grep -E'
9882 -    else ac_cv_prog_egrep='egrep'
9883 +  ac_path_EGREP_found=false
9884 +# Loop through the user's path and test for each of PROGNAME-LIST
9885 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9887 +do
9888 +  IFS=$as_save_IFS
9889 +  test -z "$as_dir" && as_dir=.
9890 +  for ac_prog in egrep; do
9891 +  for ac_exec_ext in '' $ac_executable_extensions; do
9892 +    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9893 +    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
9894 +    # Check for GNU ac_path_EGREP and select it if it is found.
9895 +  # Check for GNU $ac_path_EGREP
9896 +case `"$ac_path_EGREP" --version 2>&1` in
9897 +*GNU*)
9898 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9899 +*)
9900 +  ac_count=0
9901 +  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
9902 +  while :
9903 +  do
9904 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
9905 +    mv "conftest.tmp" "conftest.in"
9906 +    cp "conftest.in" "conftest.nl"
9907 +    echo 'EGREP' >> "conftest.nl"
9908 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9909 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9910 +    ac_count=`expr $ac_count + 1`
9911 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9912 +      # Best one so far, save it but keep looking for a better one
9913 +      ac_cv_path_EGREP="$ac_path_EGREP"
9914 +      ac_path_EGREP_max=$ac_count
9915      fi
9916 +    # 10*(2^10) chars as input seems more than enough
9917 +    test $ac_count -gt 10 && break
9918 +  done
9919 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9920 +esac
9921 +
9922 +
9923 +    $ac_path_EGREP_found && break 3
9924 +  done
9925 +done
9926 +
9927 +done
9928 +IFS=$as_save_IFS
9929 +
9930 +
9931 +fi
9932 +
9933 +EGREP="$ac_cv_path_EGREP"
9934 +if test -z "$EGREP"; then
9935 +  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
9936 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
9937 +   { (exit 1); exit 1; }; }
9938  fi
9939 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
9940 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
9941 - EGREP=$ac_cv_prog_egrep
9942  
9943 +else
9944 +  ac_cv_path_EGREP=$EGREP
9945 +fi
9946 +
9947 +
9948 +   fi
9949 +fi
9950 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
9951 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
9952 + EGREP="$ac_cv_path_EGREP"
9953  
9954  
9955 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
9956 +
9957 +# Check whether --with-gnu-ld was given.
9958  if test "${with_gnu_ld+set}" = set; then
9959 -  withval="$with_gnu_ld"
9960 -  test "$withval" = no || with_gnu_ld=yes
9961 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9962  else
9963    with_gnu_ld=no
9964 -fi;
9965 +fi
9966 +
9967  ac_prog=ld
9968  if test "$GCC" = yes; then
9969    # Check if gcc -print-prog-name=ld gives a path.
9970 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9971 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9972 +  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9973 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9974    case $host in
9975    *-*-mingw*)
9976      # gcc leaves a trailing carriage return which upsets mingw
9977 @@ -3910,11 +4680,11 @@
9978      ;;
9979    esac
9980  elif test "$with_gnu_ld" = yes; then
9981 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
9982 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9983 +  { echo "$as_me:$LINENO: checking for GNU ld" >&5
9984 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9985  else
9986 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9987 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9988 +  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9989 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9990  fi
9991  if test "${lt_cv_path_LD+set}" = set; then
9992    echo $ECHO_N "(cached) $ECHO_C" >&6
9993 @@ -3927,7 +4697,7 @@
9994      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9995        lt_cv_path_LD="$ac_dir/$ac_prog"
9996        # Check to see if the program is GNU ld.  I'd rather use --version,
9997 -      # but apparently some GNU ld's only accept -v.
9998 +      # but apparently some variants of GNU ld only accept -v.
9999        # Break only if it was the GNU/non-GNU ld that we prefer.
10000        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10001        *GNU* | *'with BFD'*)
10002 @@ -3947,21 +4717,21 @@
10003  
10004  LD="$lt_cv_path_LD"
10005  if test -n "$LD"; then
10006 -  echo "$as_me:$LINENO: result: $LD" >&5
10007 -echo "${ECHO_T}$LD" >&6
10008 +  { echo "$as_me:$LINENO: result: $LD" >&5
10009 +echo "${ECHO_T}$LD" >&6; }
10010  else
10011 -  echo "$as_me:$LINENO: result: no" >&5
10012 -echo "${ECHO_T}no" >&6
10013 +  { echo "$as_me:$LINENO: result: no" >&5
10014 +echo "${ECHO_T}no" >&6; }
10015  fi
10016  test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10017  echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10018     { (exit 1); exit 1; }; }
10019 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10020 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10021 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10022 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10023  if test "${lt_cv_prog_gnu_ld+set}" = set; then
10024    echo $ECHO_N "(cached) $ECHO_C" >&6
10025  else
10026 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10027 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10028  case `$LD -v 2>&1 </dev/null` in
10029  *GNU* | *'with BFD'*)
10030    lt_cv_prog_gnu_ld=yes
10031 @@ -3971,20 +4741,20 @@
10032    ;;
10033  esac
10034  fi
10035 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10036 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10037 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10038 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10039  with_gnu_ld=$lt_cv_prog_gnu_ld
10040  
10041  
10042 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10043 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10044 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10045 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
10046  if test "${lt_cv_ld_reload_flag+set}" = set; then
10047    echo $ECHO_N "(cached) $ECHO_C" >&6
10048  else
10049    lt_cv_ld_reload_flag='-r'
10050  fi
10051 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10052 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10053 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10054 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
10055  reload_flag=$lt_cv_ld_reload_flag
10056  case $reload_flag in
10057  "" | " "*) ;;
10058 @@ -3994,15 +4764,15 @@
10059  case $host_os in
10060    darwin*)
10061      if test "$GCC" = yes; then
10062 -      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10063 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10064      else
10065        reload_cmds='$LD$reload_flag -o $output$reload_objs'
10066      fi
10067      ;;
10068  esac
10069  
10070 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10071 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10072 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10073 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
10074  if test "${lt_cv_path_NM+set}" = set; then
10075    echo $ECHO_N "(cached) $ECHO_C" >&6
10076  else
10077 @@ -4010,56 +4780,63 @@
10078    # Let the user override the test.
10079    lt_cv_path_NM="$NM"
10080  else
10081 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10082 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10083 -    IFS="$lt_save_ifs"
10084 -    test -z "$ac_dir" && ac_dir=.
10085 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10086 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10087 -      # Check to see if the nm accepts a BSD-compat flag.
10088 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10089 -      #   nm: unknown option "B" ignored
10090 -      # Tru64's nm complains that /dev/null is an invalid object file
10091 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10092 -      */dev/null* | *'Invalid file or object type'*)
10093 -       lt_cv_path_NM="$tmp_nm -B"
10094 -       break
10095 -        ;;
10096 -      *)
10097 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10098 -       */dev/null*)
10099 -         lt_cv_path_NM="$tmp_nm -p"
10100 +  lt_nm_to_check="${ac_tool_prefix}nm"
10101 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10102 +    lt_nm_to_check="$lt_nm_to_check nm"
10103 +  fi
10104 +  for lt_tmp_nm in $lt_nm_to_check; do
10105 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10106 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10107 +      IFS="$lt_save_ifs"
10108 +      test -z "$ac_dir" && ac_dir=.
10109 +      tmp_nm="$ac_dir/$lt_tmp_nm"
10110 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10111 +       # Check to see if the nm accepts a BSD-compat flag.
10112 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10113 +       #   nm: unknown option "B" ignored
10114 +       # Tru64's nm complains that /dev/null is an invalid object file
10115 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10116 +       */dev/null* | *'Invalid file or object type'*)
10117 +         lt_cv_path_NM="$tmp_nm -B"
10118           break
10119           ;;
10120         *)
10121 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10122 -         continue # so that we can try to find one that supports BSD flags
10123 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10124 +         */dev/null*)
10125 +           lt_cv_path_NM="$tmp_nm -p"
10126 +           break
10127 +           ;;
10128 +         *)
10129 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10130 +           continue # so that we can try to find one that supports BSD flags
10131 +           ;;
10132 +         esac
10133           ;;
10134         esac
10135 -      esac
10136 -    fi
10137 +      fi
10138 +    done
10139 +    IFS="$lt_save_ifs"
10140    done
10141 -  IFS="$lt_save_ifs"
10142    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10143  fi
10144  fi
10145 -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10146 -echo "${ECHO_T}$lt_cv_path_NM" >&6
10147 +{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10148 +echo "${ECHO_T}$lt_cv_path_NM" >&6; }
10149  NM="$lt_cv_path_NM"
10150  
10151 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
10152 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10153 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10154 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10155  LN_S=$as_ln_s
10156  if test "$LN_S" = "ln -s"; then
10157 -  echo "$as_me:$LINENO: result: yes" >&5
10158 -echo "${ECHO_T}yes" >&6
10159 +  { echo "$as_me:$LINENO: result: yes" >&5
10160 +echo "${ECHO_T}yes" >&6; }
10161  else
10162 -  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10163 -echo "${ECHO_T}no, using $LN_S" >&6
10164 +  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10165 +echo "${ECHO_T}no, using $LN_S" >&6; }
10166  fi
10167  
10168 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10169 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10170 +{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10171 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
10172  if test "${lt_cv_deplibs_check_method+set}" = set; then
10173    echo $ECHO_N "(cached) $ECHO_C" >&6
10174  else
10175 @@ -4109,7 +4886,7 @@
10176    lt_cv_deplibs_check_method=pass_all
10177    ;;
10178  
10179 -freebsd* | kfreebsd*-gnu | dragonfly*)
10180 +freebsd* | dragonfly*)
10181    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10182      case $host_cpu in
10183      i*86 )
10184 @@ -4131,7 +4908,7 @@
10185  
10186  hpux10.20* | hpux11*)
10187    lt_cv_file_magic_cmd=/usr/bin/file
10188 -  case "$host_cpu" in
10189 +  case $host_cpu in
10190    ia64*)
10191      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10192      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10193 @@ -4147,6 +4924,11 @@
10194    esac
10195    ;;
10196  
10197 +interix3*)
10198 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10199 +  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10200 +  ;;
10201 +
10202  irix5* | irix6* | nonstopux*)
10203    case $LD in
10204    *-32|*"-32 ") libmagic=32-bit;;
10205 @@ -4158,11 +4940,11 @@
10206    ;;
10207  
10208  # This must be Linux ELF.
10209 -linux*)
10210 +linux* | k*bsd*-gnu)
10211    lt_cv_deplibs_check_method=pass_all
10212    ;;
10213  
10214 -netbsd*)
10215 +netbsd* | netbsdelf*-gnu)
10216    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10217      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10218    else
10219 @@ -4192,15 +4974,11 @@
10220    lt_cv_deplibs_check_method=pass_all
10221    ;;
10222  
10223 -sco3.2v5*)
10224 -  lt_cv_deplibs_check_method=pass_all
10225 -  ;;
10226 -
10227  solaris*)
10228    lt_cv_deplibs_check_method=pass_all
10229    ;;
10230  
10231 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10232 +sysv4 | sysv4.3*)
10233    case $host_vendor in
10234    motorola)
10235      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]'
10236 @@ -4221,17 +4999,20 @@
10237    siemens)
10238      lt_cv_deplibs_check_method=pass_all
10239      ;;
10240 +  pc)
10241 +    lt_cv_deplibs_check_method=pass_all
10242 +    ;;
10243    esac
10244    ;;
10245  
10246 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10247 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10248    lt_cv_deplibs_check_method=pass_all
10249    ;;
10250  esac
10251  
10252  fi
10253 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10254 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10255 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10256 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
10257  file_magic_cmd=$lt_cv_file_magic_cmd
10258  deplibs_check_method=$lt_cv_deplibs_check_method
10259  test -z "$deplibs_check_method" && deplibs_check_method=unknown
10260 @@ -4242,15 +5023,18 @@
10261  # If no C compiler was specified, use CC.
10262  LTCC=${LTCC-"$CC"}
10263  
10264 +# If no C compiler flags were specified, use CFLAGS.
10265 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10266 +
10267  # Allow CC to be a program name with arguments.
10268  compiler=$CC
10269  
10270  
10271 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10272 +# Check whether --enable-libtool-lock was given.
10273  if test "${enable_libtool_lock+set}" = set; then
10274 -  enableval="$enable_libtool_lock"
10275 +  enableval=$enable_libtool_lock;
10276 +fi
10277  
10278 -fi;
10279  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10280  
10281  # Some flags need to be propagated to the compiler or linker for good
10282 @@ -4277,7 +5061,7 @@
10283    ;;
10284  *-*-irix6*)
10285    # Find out which ABI we are using.
10286 -  echo '#line 4280 "configure"' > conftest.$ac_ext
10287 +  echo '#line 5064 "configure"' > conftest.$ac_ext
10288    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289    (eval $ac_compile) 2>&5
10290    ac_status=$?
10291 @@ -4320,7 +5104,7 @@
10292    ac_status=$?
10293    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294    (exit $ac_status); }; then
10295 -    case "`/usr/bin/file conftest.o`" in
10296 +    case `/usr/bin/file conftest.o` in
10297      *32-bit*)
10298        case $host in
10299          x86_64-*linux*)
10300 @@ -4358,30 +5142,12 @@
10301    rm -rf conftest*
10302    ;;
10303  
10304 -*-*-linux*)
10305 -  # Test if the compiler is 64bit
10306 -  echo 'int i;' > conftest.$ac_ext
10307 -  lt_cv_cc_64bit_output=no
10308 -  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 -  (eval $ac_compile) 2>&5
10310 -  ac_status=$?
10311 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 -  (exit $ac_status); }; then
10313 -    case `/usr/bin/file conftest.$ac_objext` in
10314 -    *"ELF 64"*)
10315 -      lt_cv_cc_64bit_output=yes
10316 -      ;;
10317 -    esac
10318 -  fi
10319 -  rm -rf conftest*
10320 -  ;;
10321 -
10322  *-*-sco3.2v5*)
10323    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10324    SAVE_CFLAGS="$CFLAGS"
10325    CFLAGS="$CFLAGS -belf"
10326 -  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10327 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10328 +  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10329 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
10330  if test "${lt_cv_cc_needs_belf+set}" = set; then
10331    echo $ECHO_N "(cached) $ECHO_C" >&6
10332  else
10333 @@ -4407,24 +5173,36 @@
10334  }
10335  _ACEOF
10336  rm -f conftest.$ac_objext conftest$ac_exeext
10337 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 -  (eval $ac_link) 2>conftest.er1
10339 +if { (ac_try="$ac_link"
10340 +case "(($ac_try" in
10341 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 +  *) ac_try_echo=$ac_try;;
10343 +esac
10344 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 +  (eval "$ac_link") 2>conftest.er1
10346    ac_status=$?
10347    grep -v '^ *+' conftest.er1 >conftest.err
10348    rm -f conftest.er1
10349    cat conftest.err >&5
10350    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351    (exit $ac_status); } &&
10352 -        { ac_try='test -z "$ac_c_werror_flag"
10353 -                        || test ! -s conftest.err'
10354 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 -  (eval $ac_try) 2>&5
10356 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10357 +  { (case "(($ac_try" in
10358 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 +  *) ac_try_echo=$ac_try;;
10360 +esac
10361 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 +  (eval "$ac_try") 2>&5
10363    ac_status=$?
10364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365    (exit $ac_status); }; } &&
10366          { ac_try='test -s conftest$ac_exeext'
10367 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 -  (eval $ac_try) 2>&5
10369 +  { (case "(($ac_try" in
10370 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 +  *) ac_try_echo=$ac_try;;
10372 +esac
10373 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 +  (eval "$ac_try") 2>&5
10375    ac_status=$?
10376    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377    (exit $ac_status); }; }; then
10378 @@ -4433,9 +5211,10 @@
10379    echo "$as_me: failed program was:" >&5
10380  sed 's/^/| /' conftest.$ac_ext >&5
10381  
10382 -lt_cv_cc_needs_belf=no
10383 +       lt_cv_cc_needs_belf=no
10384  fi
10385 -rm -f conftest.err conftest.$ac_objext \
10386 +
10387 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10388        conftest$ac_exeext conftest.$ac_ext
10389       ac_ext=c
10390  ac_cpp='$CPP $CPPFLAGS'
10391 @@ -4444,13 +5223,33 @@
10392  ac_compiler_gnu=$ac_cv_c_compiler_gnu
10393  
10394  fi
10395 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10396 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10397 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10398 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
10399    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10400      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10401      CFLAGS="$SAVE_CFLAGS"
10402    fi
10403    ;;
10404 +sparc*-*solaris*)
10405 +  # Find out which ABI we are using.
10406 +  echo 'int i;' > conftest.$ac_ext
10407 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 +  (eval $ac_compile) 2>&5
10409 +  ac_status=$?
10410 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 +  (exit $ac_status); }; then
10412 +    case `/usr/bin/file conftest.o` in
10413 +    *64-bit*)
10414 +      case $lt_cv_prog_gnu_ld in
10415 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10416 +      *)    LD="${LD-ld} -64" ;;
10417 +      esac
10418 +      ;;
10419 +    esac
10420 +  fi
10421 +  rm -rf conftest*
10422 +  ;;
10423 +
10424  
10425  esac
10426  
10427 @@ -4462,8 +5261,8 @@
10428  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430  ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10432 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10433 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10434 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
10435  # On Suns, sometimes $CPP names a directory.
10436  if test -n "$CPP" && test -d "$CPP"; then
10437    CPP=
10438 @@ -4497,8 +5296,13 @@
10439  #endif
10440                      Syntax error
10441  _ACEOF
10442 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10443 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10444 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10445 +case "(($ac_try" in
10446 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 +  *) ac_try_echo=$ac_try;;
10448 +esac
10449 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10451    ac_status=$?
10452    grep -v '^ *+' conftest.er1 >conftest.err
10453    rm -f conftest.er1
10454 @@ -4523,9 +5327,10 @@
10455    # Broken: fails on valid input.
10456  continue
10457  fi
10458 +
10459  rm -f conftest.err conftest.$ac_ext
10460  
10461 -  # OK, works on sane cases.  Now check whether non-existent headers
10462 +  # OK, works on sane cases.  Now check whether nonexistent headers
10463    # can be detected and how.
10464    cat >conftest.$ac_ext <<_ACEOF
10465  /* confdefs.h.  */
10466 @@ -4535,8 +5340,13 @@
10467  /* end confdefs.h.  */
10468  #include <ac_nonexistent.h>
10469  _ACEOF
10470 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10473 +case "(($ac_try" in
10474 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 +  *) ac_try_echo=$ac_try;;
10476 +esac
10477 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10479    ac_status=$?
10480    grep -v '^ *+' conftest.er1 >conftest.err
10481    rm -f conftest.er1
10482 @@ -4563,6 +5373,7 @@
10483  ac_preproc_ok=:
10484  break
10485  fi
10486 +
10487  rm -f conftest.err conftest.$ac_ext
10488  
10489  done
10490 @@ -4580,8 +5391,8 @@
10491  else
10492    ac_cv_prog_CPP=$CPP
10493  fi
10494 -echo "$as_me:$LINENO: result: $CPP" >&5
10495 -echo "${ECHO_T}$CPP" >&6
10496 +{ echo "$as_me:$LINENO: result: $CPP" >&5
10497 +echo "${ECHO_T}$CPP" >&6; }
10498  ac_preproc_ok=false
10499  for ac_c_preproc_warn_flag in '' yes
10500  do
10501 @@ -4604,8 +5415,13 @@
10502  #endif
10503                      Syntax error
10504  _ACEOF
10505 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10506 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10507 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10508 +case "(($ac_try" in
10509 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 +  *) ac_try_echo=$ac_try;;
10511 +esac
10512 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10514    ac_status=$?
10515    grep -v '^ *+' conftest.er1 >conftest.err
10516    rm -f conftest.er1
10517 @@ -4630,9 +5446,10 @@
10518    # Broken: fails on valid input.
10519  continue
10520  fi
10521 +
10522  rm -f conftest.err conftest.$ac_ext
10523  
10524 -  # OK, works on sane cases.  Now check whether non-existent headers
10525 +  # OK, works on sane cases.  Now check whether nonexistent headers
10526    # can be detected and how.
10527    cat >conftest.$ac_ext <<_ACEOF
10528  /* confdefs.h.  */
10529 @@ -4642,8 +5459,13 @@
10530  /* end confdefs.h.  */
10531  #include <ac_nonexistent.h>
10532  _ACEOF
10533 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10536 +case "(($ac_try" in
10537 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 +  *) ac_try_echo=$ac_try;;
10539 +esac
10540 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10542    ac_status=$?
10543    grep -v '^ *+' conftest.er1 >conftest.err
10544    rm -f conftest.er1
10545 @@ -4670,6 +5492,7 @@
10546  ac_preproc_ok=:
10547  break
10548  fi
10549 +
10550  rm -f conftest.err conftest.$ac_ext
10551  
10552  done
10553 @@ -4692,8 +5515,8 @@
10554  ac_compiler_gnu=$ac_cv_c_compiler_gnu
10555  
10556  
10557 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10558 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10559 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10560 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10561  if test "${ac_cv_header_stdc+set}" = set; then
10562    echo $ECHO_N "(cached) $ECHO_C" >&6
10563  else
10564 @@ -4717,24 +5540,36 @@
10565  }
10566  _ACEOF
10567  rm -f conftest.$ac_objext
10568 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569 -  (eval $ac_compile) 2>conftest.er1
10570 +if { (ac_try="$ac_compile"
10571 +case "(($ac_try" in
10572 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 +  *) ac_try_echo=$ac_try;;
10574 +esac
10575 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 +  (eval "$ac_compile") 2>conftest.er1
10577    ac_status=$?
10578    grep -v '^ *+' conftest.er1 >conftest.err
10579    rm -f conftest.er1
10580    cat conftest.err >&5
10581    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582    (exit $ac_status); } &&
10583 -        { ac_try='test -z "$ac_c_werror_flag"
10584 -                        || test ! -s conftest.err'
10585 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 -  (eval $ac_try) 2>&5
10587 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10588 +  { (case "(($ac_try" in
10589 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 +  *) ac_try_echo=$ac_try;;
10591 +esac
10592 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 +  (eval "$ac_try") 2>&5
10594    ac_status=$?
10595    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596    (exit $ac_status); }; } &&
10597          { ac_try='test -s conftest.$ac_objext'
10598 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 -  (eval $ac_try) 2>&5
10600 +  { (case "(($ac_try" in
10601 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 +  *) ac_try_echo=$ac_try;;
10603 +esac
10604 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 +  (eval "$ac_try") 2>&5
10606    ac_status=$?
10607    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608    (exit $ac_status); }; }; then
10609 @@ -4743,9 +5578,10 @@
10610    echo "$as_me: failed program was:" >&5
10611  sed 's/^/| /' conftest.$ac_ext >&5
10612  
10613 -ac_cv_header_stdc=no
10614 +       ac_cv_header_stdc=no
10615  fi
10616 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10617 +
10618 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619  
10620  if test $ac_cv_header_stdc = yes; then
10621    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10622 @@ -4801,6 +5637,7 @@
10623  cat >>conftest.$ac_ext <<_ACEOF
10624  /* end confdefs.h.  */
10625  #include <ctype.h>
10626 +#include <stdlib.h>
10627  #if ((' ' & 0x0FF) == 0x020)
10628  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10629  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10630 @@ -4820,18 +5657,27 @@
10631    for (i = 0; i < 256; i++)
10632      if (XOR (islower (i), ISLOWER (i))
10633         || toupper (i) != TOUPPER (i))
10634 -      exit(2);
10635 -  exit (0);
10636 +      return 2;
10637 +  return 0;
10638  }
10639  _ACEOF
10640  rm -f conftest$ac_exeext
10641 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 -  (eval $ac_link) 2>&5
10643 +if { (ac_try="$ac_link"
10644 +case "(($ac_try" in
10645 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 +  *) ac_try_echo=$ac_try;;
10647 +esac
10648 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 +  (eval "$ac_link") 2>&5
10650    ac_status=$?
10651    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10653 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 -  (eval $ac_try) 2>&5
10655 +  { (case "(($ac_try" in
10656 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 +  *) ac_try_echo=$ac_try;;
10658 +esac
10659 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 +  (eval "$ac_try") 2>&5
10661    ac_status=$?
10662    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663    (exit $ac_status); }; }; then
10664 @@ -4844,12 +5690,14 @@
10665  ( exit $ac_status )
10666  ac_cv_header_stdc=no
10667  fi
10668 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10669 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10670  fi
10671 +
10672 +
10673  fi
10674  fi
10675 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10676 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
10677 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10678 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10679  if test $ac_cv_header_stdc = yes; then
10680  
10681  cat >>confdefs.h <<\_ACEOF
10682 @@ -4872,9 +5720,9 @@
10683                   inttypes.h stdint.h unistd.h
10684  do
10685  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692    echo $ECHO_N "(cached) $ECHO_C" >&6
10693  else
10694    cat >conftest.$ac_ext <<_ACEOF
10695 @@ -4888,24 +5736,36 @@
10696  #include <$ac_header>
10697  _ACEOF
10698  rm -f conftest.$ac_objext
10699 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 -  (eval $ac_compile) 2>conftest.er1
10701 +if { (ac_try="$ac_compile"
10702 +case "(($ac_try" in
10703 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 +  *) ac_try_echo=$ac_try;;
10705 +esac
10706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 +  (eval "$ac_compile") 2>conftest.er1
10708    ac_status=$?
10709    grep -v '^ *+' conftest.er1 >conftest.err
10710    rm -f conftest.er1
10711    cat conftest.err >&5
10712    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713    (exit $ac_status); } &&
10714 -        { ac_try='test -z "$ac_c_werror_flag"
10715 -                        || test ! -s conftest.err'
10716 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 -  (eval $ac_try) 2>&5
10718 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 +  { (case "(($ac_try" in
10720 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 +  *) ac_try_echo=$ac_try;;
10722 +esac
10723 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 +  (eval "$ac_try") 2>&5
10725    ac_status=$?
10726    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727    (exit $ac_status); }; } &&
10728          { ac_try='test -s conftest.$ac_objext'
10729 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 -  (eval $ac_try) 2>&5
10731 +  { (case "(($ac_try" in
10732 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 +  *) ac_try_echo=$ac_try;;
10734 +esac
10735 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 +  (eval "$ac_try") 2>&5
10737    ac_status=$?
10738    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739    (exit $ac_status); }; }; then
10740 @@ -4914,12 +5774,14 @@
10741    echo "$as_me: failed program was:" >&5
10742  sed 's/^/| /' conftest.$ac_ext >&5
10743  
10744 -eval "$as_ac_Header=no"
10745 +       eval "$as_ac_Header=no"
10746  fi
10747 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 +
10749 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750  fi
10751 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10752 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10753 +ac_res=`eval echo '${'$as_ac_Header'}'`
10754 +              { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 +echo "${ECHO_T}$ac_res" >&6; }
10756  if test `eval echo '${'$as_ac_Header'}'` = yes; then
10757    cat >>confdefs.h <<_ACEOF
10758  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10759 @@ -4934,18 +5796,19 @@
10760  for ac_header in dlfcn.h
10761  do
10762  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10763 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10764 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
10765 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10766 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10767 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 +  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10769 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10770 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10771    echo $ECHO_N "(cached) $ECHO_C" >&6
10772  fi
10773 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10774 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10775 +ac_res=`eval echo '${'$as_ac_Header'}'`
10776 +              { echo "$as_me:$LINENO: result: $ac_res" >&5
10777 +echo "${ECHO_T}$ac_res" >&6; }
10778  else
10779    # Is the header compilable?
10780 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10781 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10782 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10783 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10784  cat >conftest.$ac_ext <<_ACEOF
10785  /* confdefs.h.  */
10786  _ACEOF
10787 @@ -4956,24 +5819,36 @@
10788  #include <$ac_header>
10789  _ACEOF
10790  rm -f conftest.$ac_objext
10791 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792 -  (eval $ac_compile) 2>conftest.er1
10793 +if { (ac_try="$ac_compile"
10794 +case "(($ac_try" in
10795 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 +  *) ac_try_echo=$ac_try;;
10797 +esac
10798 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 +  (eval "$ac_compile") 2>conftest.er1
10800    ac_status=$?
10801    grep -v '^ *+' conftest.er1 >conftest.err
10802    rm -f conftest.er1
10803    cat conftest.err >&5
10804    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805    (exit $ac_status); } &&
10806 -        { ac_try='test -z "$ac_c_werror_flag"
10807 -                        || test ! -s conftest.err'
10808 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 -  (eval $ac_try) 2>&5
10810 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 +  { (case "(($ac_try" in
10812 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 +  *) ac_try_echo=$ac_try;;
10814 +esac
10815 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 +  (eval "$ac_try") 2>&5
10817    ac_status=$?
10818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819    (exit $ac_status); }; } &&
10820          { ac_try='test -s conftest.$ac_objext'
10821 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 -  (eval $ac_try) 2>&5
10823 +  { (case "(($ac_try" in
10824 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 +  *) ac_try_echo=$ac_try;;
10826 +esac
10827 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 +  (eval "$ac_try") 2>&5
10829    ac_status=$?
10830    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831    (exit $ac_status); }; }; then
10832 @@ -4982,15 +5857,16 @@
10833    echo "$as_me: failed program was:" >&5
10834  sed 's/^/| /' conftest.$ac_ext >&5
10835  
10836 -ac_header_compiler=no
10837 +       ac_header_compiler=no
10838  fi
10839 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10841 -echo "${ECHO_T}$ac_header_compiler" >&6
10842 +
10843 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10846  
10847  # Is the header present?
10848 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10849 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10850 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10852  cat >conftest.$ac_ext <<_ACEOF
10853  /* confdefs.h.  */
10854  _ACEOF
10855 @@ -4999,8 +5875,13 @@
10856  /* end confdefs.h.  */
10857  #include <$ac_header>
10858  _ACEOF
10859 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10860 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10861 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10862 +case "(($ac_try" in
10863 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 +  *) ac_try_echo=$ac_try;;
10865 +esac
10866 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10868    ac_status=$?
10869    grep -v '^ *+' conftest.er1 >conftest.err
10870    rm -f conftest.er1
10871 @@ -5024,9 +5905,10 @@
10872  
10873    ac_header_preproc=no
10874  fi
10875 +
10876  rm -f conftest.err conftest.$ac_ext
10877 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10878 -echo "${ECHO_T}$ac_header_preproc" >&6
10879 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10880 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10881  
10882  # So?  What about this header?
10883  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10884 @@ -5050,25 +5932,24 @@
10885  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10886      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10887  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10888 -    (
10889 -      cat <<\_ASBOX
10890 +    ( cat <<\_ASBOX
10891  ## -------------------------------------------- ##
10892  ## Report this to sebastian.marsching@suphp.org ##
10893  ## -------------------------------------------- ##
10894  _ASBOX
10895 -    ) |
10896 -      sed "s/^/$as_me: WARNING:     /" >&2
10897 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
10898      ;;
10899  esac
10900 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10902 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10903 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10904 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906    echo $ECHO_N "(cached) $ECHO_C" >&6
10907  else
10908    eval "$as_ac_Header=\$ac_header_preproc"
10909  fi
10910 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10911 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10912 +ac_res=`eval echo '${'$as_ac_Header'}'`
10913 +              { echo "$as_me:$LINENO: result: $ac_res" >&5
10914 +echo "${ECHO_T}$ac_res" >&6; }
10915  
10916  fi
10917  if test `eval echo '${'$as_ac_Header'}'` = yes; then
10918 @@ -5085,13 +5966,13 @@
10919  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10920      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10921      (test "X$CXX" != "Xg++"))) ; then
10922 -  ac_ext=cc
10923 +  ac_ext=cpp
10924  ac_cpp='$CXXCPP $CPPFLAGS'
10925  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10928 -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10929 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10930 +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10931 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10932  if test -z "$CXXCPP"; then
10933    if test "${ac_cv_prog_CXXCPP+set}" = set; then
10934    echo $ECHO_N "(cached) $ECHO_C" >&6
10935 @@ -5121,8 +6002,13 @@
10936  #endif
10937                      Syntax error
10938  _ACEOF
10939 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10942 +case "(($ac_try" in
10943 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 +  *) ac_try_echo=$ac_try;;
10945 +esac
10946 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10948    ac_status=$?
10949    grep -v '^ *+' conftest.er1 >conftest.err
10950    rm -f conftest.er1
10951 @@ -5147,9 +6033,10 @@
10952    # Broken: fails on valid input.
10953  continue
10954  fi
10955 +
10956  rm -f conftest.err conftest.$ac_ext
10957  
10958 -  # OK, works on sane cases.  Now check whether non-existent headers
10959 +  # OK, works on sane cases.  Now check whether nonexistent headers
10960    # can be detected and how.
10961    cat >conftest.$ac_ext <<_ACEOF
10962  /* confdefs.h.  */
10963 @@ -5159,8 +6046,13 @@
10964  /* end confdefs.h.  */
10965  #include <ac_nonexistent.h>
10966  _ACEOF
10967 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10968 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10969 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10970 +case "(($ac_try" in
10971 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 +  *) ac_try_echo=$ac_try;;
10973 +esac
10974 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10976    ac_status=$?
10977    grep -v '^ *+' conftest.er1 >conftest.err
10978    rm -f conftest.er1
10979 @@ -5187,6 +6079,7 @@
10980  ac_preproc_ok=:
10981  break
10982  fi
10983 +
10984  rm -f conftest.err conftest.$ac_ext
10985  
10986  done
10987 @@ -5204,8 +6097,8 @@
10988  else
10989    ac_cv_prog_CXXCPP=$CXXCPP
10990  fi
10991 -echo "$as_me:$LINENO: result: $CXXCPP" >&5
10992 -echo "${ECHO_T}$CXXCPP" >&6
10993 +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
10994 +echo "${ECHO_T}$CXXCPP" >&6; }
10995  ac_preproc_ok=false
10996  for ac_cxx_preproc_warn_flag in '' yes
10997  do
10998 @@ -5228,8 +6121,13 @@
10999  #endif
11000                      Syntax error
11001  _ACEOF
11002 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11003 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11004 +if { (ac_try="$ac_cpp conftest.$ac_ext"
11005 +case "(($ac_try" in
11006 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 +  *) ac_try_echo=$ac_try;;
11008 +esac
11009 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11011    ac_status=$?
11012    grep -v '^ *+' conftest.er1 >conftest.err
11013    rm -f conftest.er1
11014 @@ -5254,9 +6152,10 @@
11015    # Broken: fails on valid input.
11016  continue
11017  fi
11018 +
11019  rm -f conftest.err conftest.$ac_ext
11020  
11021 -  # OK, works on sane cases.  Now check whether non-existent headers
11022 +  # OK, works on sane cases.  Now check whether nonexistent headers
11023    # can be detected and how.
11024    cat >conftest.$ac_ext <<_ACEOF
11025  /* confdefs.h.  */
11026 @@ -5266,8 +6165,13 @@
11027  /* end confdefs.h.  */
11028  #include <ac_nonexistent.h>
11029  _ACEOF
11030 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11031 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11032 +if { (ac_try="$ac_cpp conftest.$ac_ext"
11033 +case "(($ac_try" in
11034 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 +  *) ac_try_echo=$ac_try;;
11036 +esac
11037 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11039    ac_status=$?
11040    grep -v '^ *+' conftest.er1 >conftest.err
11041    rm -f conftest.er1
11042 @@ -5294,6 +6198,7 @@
11043  ac_preproc_ok=:
11044  break
11045  fi
11046 +
11047  rm -f conftest.err conftest.$ac_ext
11048  
11049  done
11050 @@ -5309,7 +6214,7 @@
11051     { (exit 1); exit 1; }; }
11052  fi
11053  
11054 -ac_ext=cc
11055 +ac_ext=cpp
11056  ac_cpp='$CXXCPP $CPPFLAGS'
11057  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11058  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11059 @@ -5323,12 +6228,12 @@
11060  ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11061  ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11062  if test -n "$ac_tool_prefix"; then
11063 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11064 +  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
11065    do
11066      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11067  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11068 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11069 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11070 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11071 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11072  if test "${ac_cv_prog_F77+set}" = set; then
11073    echo $ECHO_N "(cached) $ECHO_C" >&6
11074  else
11075 @@ -5341,36 +6246,38 @@
11076    IFS=$as_save_IFS
11077    test -z "$as_dir" && as_dir=.
11078    for ac_exec_ext in '' $ac_executable_extensions; do
11079 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11081      ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11082      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11083      break 2
11084    fi
11085  done
11086  done
11087 +IFS=$as_save_IFS
11088  
11089  fi
11090  fi
11091  F77=$ac_cv_prog_F77
11092  if test -n "$F77"; then
11093 -  echo "$as_me:$LINENO: result: $F77" >&5
11094 -echo "${ECHO_T}$F77" >&6
11095 +  { echo "$as_me:$LINENO: result: $F77" >&5
11096 +echo "${ECHO_T}$F77" >&6; }
11097  else
11098 -  echo "$as_me:$LINENO: result: no" >&5
11099 -echo "${ECHO_T}no" >&6
11100 +  { echo "$as_me:$LINENO: result: no" >&5
11101 +echo "${ECHO_T}no" >&6; }
11102  fi
11103  
11104 +
11105      test -n "$F77" && break
11106    done
11107  fi
11108  if test -z "$F77"; then
11109    ac_ct_F77=$F77
11110 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11111 +  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
11112  do
11113    # Extract the first word of "$ac_prog", so it can be a program name with args.
11114  set dummy $ac_prog; ac_word=$2
11115 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11116 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11117 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11118 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11119  if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11120    echo $ECHO_N "(cached) $ECHO_C" >&6
11121  else
11122 @@ -5383,48 +6290,78 @@
11123    IFS=$as_save_IFS
11124    test -z "$as_dir" && as_dir=.
11125    for ac_exec_ext in '' $ac_executable_extensions; do
11126 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11127 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11128      ac_cv_prog_ac_ct_F77="$ac_prog"
11129      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11130      break 2
11131    fi
11132  done
11133  done
11134 +IFS=$as_save_IFS
11135  
11136  fi
11137  fi
11138  ac_ct_F77=$ac_cv_prog_ac_ct_F77
11139  if test -n "$ac_ct_F77"; then
11140 -  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11141 -echo "${ECHO_T}$ac_ct_F77" >&6
11142 +  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11143 +echo "${ECHO_T}$ac_ct_F77" >&6; }
11144  else
11145 -  echo "$as_me:$LINENO: result: no" >&5
11146 -echo "${ECHO_T}no" >&6
11147 +  { echo "$as_me:$LINENO: result: no" >&5
11148 +echo "${ECHO_T}no" >&6; }
11149  fi
11150  
11151 +
11152    test -n "$ac_ct_F77" && break
11153  done
11154  
11155 -  F77=$ac_ct_F77
11156 +  if test "x$ac_ct_F77" = x; then
11157 +    F77=""
11158 +  else
11159 +    case $cross_compiling:$ac_tool_warned in
11160 +yes:)
11161 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11162 +whose name does not start with the host triplet.  If you think this
11163 +configuration is useful to you, please write to autoconf@gnu.org." >&5
11164 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11165 +whose name does not start with the host triplet.  If you think this
11166 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11167 +ac_tool_warned=yes ;;
11168 +esac
11169 +    F77=$ac_ct_F77
11170 +  fi
11171  fi
11172  
11173  
11174  # Provide some information about the compiler.
11175 -echo "$as_me:5413:" \
11176 -     "checking for Fortran 77 compiler version" >&5
11177 +echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
11178  ac_compiler=`set X $ac_compile; echo $2`
11179 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11180 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
11181 +{ (ac_try="$ac_compiler --version >&5"
11182 +case "(($ac_try" in
11183 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 +  *) ac_try_echo=$ac_try;;
11185 +esac
11186 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 +  (eval "$ac_compiler --version >&5") 2>&5
11188    ac_status=$?
11189    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190    (exit $ac_status); }
11191 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11192 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
11193 +{ (ac_try="$ac_compiler -v >&5"
11194 +case "(($ac_try" in
11195 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 +  *) ac_try_echo=$ac_try;;
11197 +esac
11198 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 +  (eval "$ac_compiler -v >&5") 2>&5
11200    ac_status=$?
11201    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202    (exit $ac_status); }
11203 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11204 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
11205 +{ (ac_try="$ac_compiler -V >&5"
11206 +case "(($ac_try" in
11207 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 +  *) ac_try_echo=$ac_try;;
11209 +esac
11210 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 +  (eval "$ac_compiler -V >&5") 2>&5
11212    ac_status=$?
11213    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214    (exit $ac_status); }
11215 @@ -5434,8 +6371,8 @@
11216  # input file.  (Note that this only needs to work for GNU compilers.)
11217  ac_save_ext=$ac_ext
11218  ac_ext=F
11219 -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11220 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11221 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11222 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
11223  if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11224    echo $ECHO_N "(cached) $ECHO_C" >&6
11225  else
11226 @@ -5448,24 +6385,36 @@
11227        end
11228  _ACEOF
11229  rm -f conftest.$ac_objext
11230 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 -  (eval $ac_compile) 2>conftest.er1
11232 +if { (ac_try="$ac_compile"
11233 +case "(($ac_try" in
11234 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 +  *) ac_try_echo=$ac_try;;
11236 +esac
11237 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 +  (eval "$ac_compile") 2>conftest.er1
11239    ac_status=$?
11240    grep -v '^ *+' conftest.er1 >conftest.err
11241    rm -f conftest.er1
11242    cat conftest.err >&5
11243    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244    (exit $ac_status); } &&
11245 -        { ac_try='test -z "$ac_f77_werror_flag"
11246 -                        || test ! -s conftest.err'
11247 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 -  (eval $ac_try) 2>&5
11249 +        { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
11250 +  { (case "(($ac_try" in
11251 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 +  *) ac_try_echo=$ac_try;;
11253 +esac
11254 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 +  (eval "$ac_try") 2>&5
11256    ac_status=$?
11257    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258    (exit $ac_status); }; } &&
11259          { ac_try='test -s conftest.$ac_objext'
11260 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 -  (eval $ac_try) 2>&5
11262 +  { (case "(($ac_try" in
11263 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 +  *) ac_try_echo=$ac_try;;
11265 +esac
11266 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 +  (eval "$ac_try") 2>&5
11268    ac_status=$?
11269    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270    (exit $ac_status); }; }; then
11271 @@ -5474,20 +6423,21 @@
11272    echo "$as_me: failed program was:" >&5
11273  sed 's/^/| /' conftest.$ac_ext >&5
11274  
11275 -ac_compiler_gnu=no
11276 +       ac_compiler_gnu=no
11277  fi
11278 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11279 +
11280 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281  ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11282  
11283  fi
11284 -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11285 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11286 +{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11287 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
11288  ac_ext=$ac_save_ext
11289  ac_test_FFLAGS=${FFLAGS+set}
11290  ac_save_FFLAGS=$FFLAGS
11291  FFLAGS=
11292 -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11293 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11294 +{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11295 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
11296  if test "${ac_cv_prog_f77_g+set}" = set; then
11297    echo $ECHO_N "(cached) $ECHO_C" >&6
11298  else
11299 @@ -5498,24 +6448,36 @@
11300        end
11301  _ACEOF
11302  rm -f conftest.$ac_objext
11303 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 -  (eval $ac_compile) 2>conftest.er1
11305 +if { (ac_try="$ac_compile"
11306 +case "(($ac_try" in
11307 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 +  *) ac_try_echo=$ac_try;;
11309 +esac
11310 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 +  (eval "$ac_compile") 2>conftest.er1
11312    ac_status=$?
11313    grep -v '^ *+' conftest.er1 >conftest.err
11314    rm -f conftest.er1
11315    cat conftest.err >&5
11316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317    (exit $ac_status); } &&
11318 -        { ac_try='test -z "$ac_f77_werror_flag"
11319 -                        || test ! -s conftest.err'
11320 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 -  (eval $ac_try) 2>&5
11322 +        { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
11323 +  { (case "(($ac_try" in
11324 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 +  *) ac_try_echo=$ac_try;;
11326 +esac
11327 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 +  (eval "$ac_try") 2>&5
11329    ac_status=$?
11330    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331    (exit $ac_status); }; } &&
11332          { ac_try='test -s conftest.$ac_objext'
11333 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 -  (eval $ac_try) 2>&5
11335 +  { (case "(($ac_try" in
11336 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 +  *) ac_try_echo=$ac_try;;
11338 +esac
11339 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 +  (eval "$ac_try") 2>&5
11341    ac_status=$?
11342    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343    (exit $ac_status); }; }; then
11344 @@ -5524,13 +6486,14 @@
11345    echo "$as_me: failed program was:" >&5
11346  sed 's/^/| /' conftest.$ac_ext >&5
11347  
11348 -ac_cv_prog_f77_g=no
11349 +       ac_cv_prog_f77_g=no
11350  fi
11351 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11352 +
11353 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354  
11355  fi
11356 -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11357 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11358 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11359 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
11360  if test "$ac_test_FFLAGS" = set; then
11361    FFLAGS=$ac_save_FFLAGS
11362  elif test $ac_cv_prog_f77_g = yes; then
11363 @@ -5559,8 +6522,8 @@
11364  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11365  
11366  # find the maximum length of command line arguments
11367 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11368 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11369 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11370 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
11371  if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11372    echo $ECHO_N "(cached) $ECHO_C" >&6
11373  else
11374 @@ -5607,12 +6570,18 @@
11375      elif test -x /usr/sbin/sysctl; then
11376        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11377      else
11378 -      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11379 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
11380      fi
11381      # And add a safety zone
11382      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11383      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11384      ;;
11385 +
11386 +  interix*)
11387 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11388 +    lt_cv_sys_max_cmd_len=196608
11389 +    ;;
11390 +
11391    osf*)
11392      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11393      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11394 @@ -5626,6 +6595,17 @@
11395        esac
11396      fi
11397      ;;
11398 +  sco3.2v5*)
11399 +    lt_cv_sys_max_cmd_len=102400
11400 +    ;;
11401 +  sysv5* | sco5v6* | sysv4.2uw2*)
11402 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11403 +    if test -n "$kargmax"; then
11404 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
11405 +    else
11406 +      lt_cv_sys_max_cmd_len=32768
11407 +    fi
11408 +    ;;
11409    *)
11410      # If test is not a shell built-in, we'll probably end up computing a
11411      # maximum length that is only half of the actual maximum length, but
11412 @@ -5651,19 +6631,19 @@
11413  fi
11414  
11415  if test -n $lt_cv_sys_max_cmd_len ; then
11416 -  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11417 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11418 +  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11419 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
11420  else
11421 -  echo "$as_me:$LINENO: result: none" >&5
11422 -echo "${ECHO_T}none" >&6
11423 +  { echo "$as_me:$LINENO: result: none" >&5
11424 +echo "${ECHO_T}none" >&6; }
11425  fi
11426  
11427  
11428  
11429  
11430  # Check for command to grab the raw symbol name followed by C symbol from nm.
11431 -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11432 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11433 +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11434 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
11435  if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11436    echo $ECHO_N "(cached) $ECHO_C" >&6
11437  else
11438 @@ -5698,7 +6678,7 @@
11439    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11440    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'"
11441    ;;
11442 -linux*)
11443 +linux* | k*bsd*-gnu)
11444    if test "$host_cpu" = ia64; then
11445      symcode='[ABCDGIRSTW]'
11446      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11447 @@ -5711,9 +6691,18 @@
11448  osf*)
11449    symcode='[BCDEGQRST]'
11450    ;;
11451 -solaris* | sysv5*)
11452 +solaris*)
11453    symcode='[BDRT]'
11454    ;;
11455 +sco3.2v5*)
11456 +  symcode='[DT]'
11457 +  ;;
11458 +sysv4.2uw2*)
11459 +  symcode='[DT]'
11460 +  ;;
11461 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
11462 +  symcode='[ABDT]'
11463 +  ;;
11464  sysv4)
11465    symcode='[DFNSTU]'
11466    ;;
11467 @@ -5858,15 +6847,15 @@
11468    lt_cv_sys_global_symbol_to_cdecl=
11469  fi
11470  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11471 -  echo "$as_me:$LINENO: result: failed" >&5
11472 -echo "${ECHO_T}failed" >&6
11473 +  { echo "$as_me:$LINENO: result: failed" >&5
11474 +echo "${ECHO_T}failed" >&6; }
11475  else
11476 -  echo "$as_me:$LINENO: result: ok" >&5
11477 -echo "${ECHO_T}ok" >&6
11478 +  { echo "$as_me:$LINENO: result: ok" >&5
11479 +echo "${ECHO_T}ok" >&6; }
11480  fi
11481  
11482 -echo "$as_me:$LINENO: checking for objdir" >&5
11483 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11484 +{ echo "$as_me:$LINENO: checking for objdir" >&5
11485 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
11486  if test "${lt_cv_objdir+set}" = set; then
11487    echo $ECHO_N "(cached) $ECHO_C" >&6
11488  else
11489 @@ -5880,8 +6869,8 @@
11490  fi
11491  rmdir .libs 2>/dev/null
11492  fi
11493 -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11494 -echo "${ECHO_T}$lt_cv_objdir" >&6
11495 +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11496 +echo "${ECHO_T}$lt_cv_objdir" >&6; }
11497  objdir=$lt_cv_objdir
11498  
11499  
11500 @@ -5922,7 +6911,7 @@
11501  default_ofile=libtool
11502  can_build_shared=yes
11503  
11504 -# All known linkers require a `.a' archive for static linking (except M$VC,
11505 +# All known linkers require a `.a' archive for static linking (except MSVC,
11506  # which needs '.lib').
11507  libext=a
11508  ltmain="$ac_aux_dir/ltmain.sh"
11509 @@ -5932,8 +6921,8 @@
11510  if test -n "$ac_tool_prefix"; then
11511    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11512  set dummy ${ac_tool_prefix}ar; ac_word=$2
11513 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11514 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11515 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11516 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11517  if test "${ac_cv_prog_AR+set}" = set; then
11518    echo $ECHO_N "(cached) $ECHO_C" >&6
11519  else
11520 @@ -5946,32 +6935,34 @@
11521    IFS=$as_save_IFS
11522    test -z "$as_dir" && as_dir=.
11523    for ac_exec_ext in '' $ac_executable_extensions; do
11524 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11526      ac_cv_prog_AR="${ac_tool_prefix}ar"
11527      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11528      break 2
11529    fi
11530  done
11531  done
11532 +IFS=$as_save_IFS
11533  
11534  fi
11535  fi
11536  AR=$ac_cv_prog_AR
11537  if test -n "$AR"; then
11538 -  echo "$as_me:$LINENO: result: $AR" >&5
11539 -echo "${ECHO_T}$AR" >&6
11540 +  { echo "$as_me:$LINENO: result: $AR" >&5
11541 +echo "${ECHO_T}$AR" >&6; }
11542  else
11543 -  echo "$as_me:$LINENO: result: no" >&5
11544 -echo "${ECHO_T}no" >&6
11545 +  { echo "$as_me:$LINENO: result: no" >&5
11546 +echo "${ECHO_T}no" >&6; }
11547  fi
11548  
11549 +
11550  fi
11551  if test -z "$ac_cv_prog_AR"; then
11552    ac_ct_AR=$AR
11553    # Extract the first word of "ar", so it can be a program name with args.
11554  set dummy ar; ac_word=$2
11555 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11556 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11557 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11559  if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11560    echo $ECHO_N "(cached) $ECHO_C" >&6
11561  else
11562 @@ -5984,27 +6975,41 @@
11563    IFS=$as_save_IFS
11564    test -z "$as_dir" && as_dir=.
11565    for ac_exec_ext in '' $ac_executable_extensions; do
11566 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11568      ac_cv_prog_ac_ct_AR="ar"
11569      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11570      break 2
11571    fi
11572  done
11573  done
11574 +IFS=$as_save_IFS
11575  
11576 -  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11577  fi
11578  fi
11579  ac_ct_AR=$ac_cv_prog_ac_ct_AR
11580  if test -n "$ac_ct_AR"; then
11581 -  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11582 -echo "${ECHO_T}$ac_ct_AR" >&6
11583 +  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11584 +echo "${ECHO_T}$ac_ct_AR" >&6; }
11585  else
11586 -  echo "$as_me:$LINENO: result: no" >&5
11587 -echo "${ECHO_T}no" >&6
11588 +  { echo "$as_me:$LINENO: result: no" >&5
11589 +echo "${ECHO_T}no" >&6; }
11590  fi
11591  
11592 -  AR=$ac_ct_AR
11593 +  if test "x$ac_ct_AR" = x; then
11594 +    AR="false"
11595 +  else
11596 +    case $cross_compiling:$ac_tool_warned in
11597 +yes:)
11598 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11599 +whose name does not start with the host triplet.  If you think this
11600 +configuration is useful to you, please write to autoconf@gnu.org." >&5
11601 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11602 +whose name does not start with the host triplet.  If you think this
11603 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11604 +ac_tool_warned=yes ;;
11605 +esac
11606 +    AR=$ac_ct_AR
11607 +  fi
11608  else
11609    AR="$ac_cv_prog_AR"
11610  fi
11611 @@ -6012,8 +7017,8 @@
11612  if test -n "$ac_tool_prefix"; then
11613    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11614  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11615 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11616 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11617 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11618 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11619  if test "${ac_cv_prog_RANLIB+set}" = set; then
11620    echo $ECHO_N "(cached) $ECHO_C" >&6
11621  else
11622 @@ -6026,32 +7031,34 @@
11623    IFS=$as_save_IFS
11624    test -z "$as_dir" && as_dir=.
11625    for ac_exec_ext in '' $ac_executable_extensions; do
11626 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11628      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11629      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630      break 2
11631    fi
11632  done
11633  done
11634 +IFS=$as_save_IFS
11635  
11636  fi
11637  fi
11638  RANLIB=$ac_cv_prog_RANLIB
11639  if test -n "$RANLIB"; then
11640 -  echo "$as_me:$LINENO: result: $RANLIB" >&5
11641 -echo "${ECHO_T}$RANLIB" >&6
11642 +  { echo "$as_me:$LINENO: result: $RANLIB" >&5
11643 +echo "${ECHO_T}$RANLIB" >&6; }
11644  else
11645 -  echo "$as_me:$LINENO: result: no" >&5
11646 -echo "${ECHO_T}no" >&6
11647 +  { echo "$as_me:$LINENO: result: no" >&5
11648 +echo "${ECHO_T}no" >&6; }
11649  fi
11650  
11651 +
11652  fi
11653  if test -z "$ac_cv_prog_RANLIB"; then
11654    ac_ct_RANLIB=$RANLIB
11655    # Extract the first word of "ranlib", so it can be a program name with args.
11656  set dummy ranlib; ac_word=$2
11657 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11658 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11659 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11660 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11661  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11662    echo $ECHO_N "(cached) $ECHO_C" >&6
11663  else
11664 @@ -6064,27 +7071,41 @@
11665    IFS=$as_save_IFS
11666    test -z "$as_dir" && as_dir=.
11667    for ac_exec_ext in '' $ac_executable_extensions; do
11668 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11670      ac_cv_prog_ac_ct_RANLIB="ranlib"
11671      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672      break 2
11673    fi
11674  done
11675  done
11676 +IFS=$as_save_IFS
11677  
11678 -  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11679  fi
11680  fi
11681  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11682  if test -n "$ac_ct_RANLIB"; then
11683 -  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11684 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
11685 +  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11686 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11687  else
11688 -  echo "$as_me:$LINENO: result: no" >&5
11689 -echo "${ECHO_T}no" >&6
11690 +  { echo "$as_me:$LINENO: result: no" >&5
11691 +echo "${ECHO_T}no" >&6; }
11692  fi
11693  
11694 -  RANLIB=$ac_ct_RANLIB
11695 +  if test "x$ac_ct_RANLIB" = x; then
11696 +    RANLIB=":"
11697 +  else
11698 +    case $cross_compiling:$ac_tool_warned in
11699 +yes:)
11700 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11701 +whose name does not start with the host triplet.  If you think this
11702 +configuration is useful to you, please write to autoconf@gnu.org." >&5
11703 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11704 +whose name does not start with the host triplet.  If you think this
11705 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11706 +ac_tool_warned=yes ;;
11707 +esac
11708 +    RANLIB=$ac_ct_RANLIB
11709 +  fi
11710  else
11711    RANLIB="$ac_cv_prog_RANLIB"
11712  fi
11713 @@ -6092,8 +7113,8 @@
11714  if test -n "$ac_tool_prefix"; then
11715    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11716  set dummy ${ac_tool_prefix}strip; ac_word=$2
11717 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11718 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11719 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11721  if test "${ac_cv_prog_STRIP+set}" = set; then
11722    echo $ECHO_N "(cached) $ECHO_C" >&6
11723  else
11724 @@ -6106,32 +7127,34 @@
11725    IFS=$as_save_IFS
11726    test -z "$as_dir" && as_dir=.
11727    for ac_exec_ext in '' $ac_executable_extensions; do
11728 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11729 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11730      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11731      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11732      break 2
11733    fi
11734  done
11735  done
11736 +IFS=$as_save_IFS
11737  
11738  fi
11739  fi
11740  STRIP=$ac_cv_prog_STRIP
11741  if test -n "$STRIP"; then
11742 -  echo "$as_me:$LINENO: result: $STRIP" >&5
11743 -echo "${ECHO_T}$STRIP" >&6
11744 +  { echo "$as_me:$LINENO: result: $STRIP" >&5
11745 +echo "${ECHO_T}$STRIP" >&6; }
11746  else
11747 -  echo "$as_me:$LINENO: result: no" >&5
11748 -echo "${ECHO_T}no" >&6
11749 +  { echo "$as_me:$LINENO: result: no" >&5
11750 +echo "${ECHO_T}no" >&6; }
11751  fi
11752  
11753 +
11754  fi
11755  if test -z "$ac_cv_prog_STRIP"; then
11756    ac_ct_STRIP=$STRIP
11757    # Extract the first word of "strip", so it can be a program name with args.
11758  set dummy strip; ac_word=$2
11759 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11760 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11761 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11762 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11763  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11764    echo $ECHO_N "(cached) $ECHO_C" >&6
11765  else
11766 @@ -6144,27 +7167,41 @@
11767    IFS=$as_save_IFS
11768    test -z "$as_dir" && as_dir=.
11769    for ac_exec_ext in '' $ac_executable_extensions; do
11770 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11772      ac_cv_prog_ac_ct_STRIP="strip"
11773      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774      break 2
11775    fi
11776  done
11777  done
11778 +IFS=$as_save_IFS
11779  
11780 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11781  fi
11782  fi
11783  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11784  if test -n "$ac_ct_STRIP"; then
11785 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11786 -echo "${ECHO_T}$ac_ct_STRIP" >&6
11787 +  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11788 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11789  else
11790 -  echo "$as_me:$LINENO: result: no" >&5
11791 -echo "${ECHO_T}no" >&6
11792 +  { echo "$as_me:$LINENO: result: no" >&5
11793 +echo "${ECHO_T}no" >&6; }
11794  fi
11795  
11796 -  STRIP=$ac_ct_STRIP
11797 +  if test "x$ac_ct_STRIP" = x; then
11798 +    STRIP=":"
11799 +  else
11800 +    case $cross_compiling:$ac_tool_warned in
11801 +yes:)
11802 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11803 +whose name does not start with the host triplet.  If you think this
11804 +configuration is useful to you, please write to autoconf@gnu.org." >&5
11805 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11806 +whose name does not start with the host triplet.  If you think this
11807 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11808 +ac_tool_warned=yes ;;
11809 +esac
11810 +    STRIP=$ac_ct_STRIP
11811 +  fi
11812  else
11813    STRIP="$ac_cv_prog_STRIP"
11814  fi
11815 @@ -6179,6 +7216,7 @@
11816  test -z "$AS" && AS=as
11817  test -z "$CC" && CC=cc
11818  test -z "$LTCC" && LTCC=$CC
11819 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11820  test -z "$DLLTOOL" && DLLTOOL=dlltool
11821  test -z "$LD" && LD=ld
11822  test -z "$LN_S" && LN_S="ln -s"
11823 @@ -6198,10 +7236,10 @@
11824  if test -n "$RANLIB"; then
11825    case $host_os in
11826    openbsd*)
11827 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11828 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11829      ;;
11830    *)
11831 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11832 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11833      ;;
11834    esac
11835    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11836 @@ -6222,8 +7260,8 @@
11837  case $deplibs_check_method in
11838  file_magic*)
11839    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11840 -    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11841 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11842 +    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11843 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
11844  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11845    echo $ECHO_N "(cached) $ECHO_C" >&6
11846  else
11847 @@ -6243,7 +7281,7 @@
11848        if test -n "$file_magic_test_file"; then
11849         case $deplibs_check_method in
11850         "file_magic "*)
11851 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11852 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11853           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11854           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11855             $EGREP "$file_magic_regex" > /dev/null; then
11856 @@ -6275,17 +7313,17 @@
11857  
11858  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11859  if test -n "$MAGIC_CMD"; then
11860 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11861 -echo "${ECHO_T}$MAGIC_CMD" >&6
11862 +  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11863 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
11864  else
11865 -  echo "$as_me:$LINENO: result: no" >&5
11866 -echo "${ECHO_T}no" >&6
11867 +  { echo "$as_me:$LINENO: result: no" >&5
11868 +echo "${ECHO_T}no" >&6; }
11869  fi
11870  
11871  if test -z "$lt_cv_path_MAGIC_CMD"; then
11872    if test -n "$ac_tool_prefix"; then
11873 -    echo "$as_me:$LINENO: checking for file" >&5
11874 -echo $ECHO_N "checking for file... $ECHO_C" >&6
11875 +    { echo "$as_me:$LINENO: checking for file" >&5
11876 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
11877  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11878    echo $ECHO_N "(cached) $ECHO_C" >&6
11879  else
11880 @@ -6305,7 +7343,7 @@
11881        if test -n "$file_magic_test_file"; then
11882         case $deplibs_check_method in
11883         "file_magic "*)
11884 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11885 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11886           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11887           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11888             $EGREP "$file_magic_regex" > /dev/null; then
11889 @@ -6337,11 +7375,11 @@
11890  
11891  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11892  if test -n "$MAGIC_CMD"; then
11893 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11894 -echo "${ECHO_T}$MAGIC_CMD" >&6
11895 +  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11896 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
11897  else
11898 -  echo "$as_me:$LINENO: result: no" >&5
11899 -echo "${ECHO_T}no" >&6
11900 +  { echo "$as_me:$LINENO: result: no" >&5
11901 +echo "${ECHO_T}no" >&6; }
11902  fi
11903  
11904    else
11905 @@ -6356,63 +7394,22 @@
11906  enable_dlopen=no
11907  enable_win32_dll=no
11908  
11909 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11910 +# Check whether --enable-libtool-lock was given.
11911  if test "${enable_libtool_lock+set}" = set; then
11912 -  enableval="$enable_libtool_lock"
11913 +  enableval=$enable_libtool_lock;
11914 +fi
11915  
11916 -fi;
11917  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11918  
11919  
11920 -# Check whether --with-pic or --without-pic was given.
11921 +# Check whether --with-pic was given.
11922  if test "${with_pic+set}" = set; then
11923 -  withval="$with_pic"
11924 -  pic_mode="$withval"
11925 +  withval=$with_pic; pic_mode="$withval"
11926  else
11927    pic_mode=default
11928 -fi;
11929 -test -z "$pic_mode" && pic_mode=default
11930 -
11931 -# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
11932 -#
11933 -# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
11934 -#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
11935 -#        calls AC_LIBTOOL_CONFIG and creates libtool.
11936 -#
11937 -echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
11938 -echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
11939 -if test -z "$ltmain"; then
11940 -  echo "$as_me:$LINENO: result: no" >&5
11941 -echo "${ECHO_T}no" >&6
11942 -  echo
11943 -  echo "*** Gentoo sanity check failed! ***"
11944 -  echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
11945 -  echo
11946 -  exit 1
11947 -fi
11948 -gentoo_lt_version="1.5.18"
11949 -gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
11950 -if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
11951 -  echo "$as_me:$LINENO: result: no" >&5
11952 -echo "${ECHO_T}no" >&6
11953 -  echo
11954 -  echo "*** Gentoo sanity check failed! ***"
11955 -  echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
11956 -  echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
11957 -  echo
11958 -  echo "Please run:"
11959 -  echo
11960 -  echo "  libtoolize --copy --force"
11961 -  echo
11962 -  echo "if appropriate, please contact the maintainer of this"
11963 -  echo "package (or your distribution) for help."
11964 -  echo
11965 -  exit 1
11966 -else
11967 -  echo "$as_me:$LINENO: result: yes" >&5
11968 -echo "${ECHO_T}yes" >&6
11969  fi
11970  
11971 +test -z "$pic_mode" && pic_mode=default
11972  
11973  # Use C for the default configuration in the libtool script
11974  tagname=
11975 @@ -6441,6 +7438,9 @@
11976  # If no C compiler was specified, use CC.
11977  LTCC=${LTCC-"$CC"}
11978  
11979 +# If no C compiler flags were specified, use CFLAGS.
11980 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11981 +
11982  # Allow CC to be a program name with arguments.
11983  compiler=$CC
11984  
11985 @@ -6448,82 +7448,17 @@
11986  # save warnings/boilerplate of simple test code
11987  ac_outfile=conftest.$ac_objext
11988  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11989 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11990 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11991  _lt_compiler_boilerplate=`cat conftest.err`
11992  $rm conftest*
11993  
11994  ac_outfile=conftest.$ac_objext
11995  printf "$lt_simple_link_test_code" >conftest.$ac_ext
11996 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11997 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11998  _lt_linker_boilerplate=`cat conftest.err`
11999  $rm conftest*
12000  
12001  
12002 -#
12003 -# Check for any special shared library compilation flags.
12004 -#
12005 -lt_prog_cc_shlib=
12006 -if test "$GCC" = no; then
12007 -  case $host_os in
12008 -  sco3.2v5*)
12009 -    lt_prog_cc_shlib='-belf'
12010 -    ;;
12011 -  esac
12012 -fi
12013 -if test -n "$lt_prog_cc_shlib"; then
12014 -  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12015 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12016 -  if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12017 -  else
12018 -    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12019 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12020 -    lt_cv_prog_cc_can_build_shared=no
12021 -  fi
12022 -fi
12023 -
12024 -
12025 -#
12026 -# Check to make sure the static flag actually works.
12027 -#
12028 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12029 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12030 -if test "${lt_prog_compiler_static_works+set}" = set; then
12031 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12032 -else
12033 -  lt_prog_compiler_static_works=no
12034 -   save_LDFLAGS="$LDFLAGS"
12035 -   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12036 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12037 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12038 -     # The compiler can only warn and ignore the option if not recognized
12039 -     # So say no if there are warnings
12040 -     if test -s conftest.err; then
12041 -       # Append any errors to the config.log.
12042 -       cat conftest.err 1>&5
12043 -       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
12044 -       $SED '/^$/d' conftest.err >conftest.er2
12045 -       if diff conftest.exp conftest.er2 >/dev/null; then
12046 -         lt_prog_compiler_static_works=yes
12047 -       fi
12048 -     else
12049 -       lt_prog_compiler_static_works=yes
12050 -     fi
12051 -   fi
12052 -   $rm conftest*
12053 -   LDFLAGS="$save_LDFLAGS"
12054 -
12055 -fi
12056 -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12057 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12058 -
12059 -if test x"$lt_prog_compiler_static_works" = xyes; then
12060 -    :
12061 -else
12062 -    lt_prog_compiler_static=
12063 -fi
12064 -
12065 -
12066 -
12067  
12068  lt_prog_compiler_no_builtin_flag=
12069  
12070 @@ -6531,8 +7466,8 @@
12071    lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12072  
12073  
12074 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12075 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12076 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12077 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
12078  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12079    echo $ECHO_N "(cached) $ECHO_C" >&6
12080  else
12081 @@ -6546,28 +7481,28 @@
12082     # with a dollar sign (not a hyphen), so the echo should work correctly.
12083     # The option is referenced via a variable to avoid confusing sed.
12084     lt_compile=`echo "$ac_compile" | $SED \
12085 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12086 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12087     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12088     -e 's:$: $lt_compiler_flag:'`
12089 -   (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
12090 +   (eval echo "\"\$as_me:7487: $lt_compile\"" >&5)
12091     (eval "$lt_compile" 2>conftest.err)
12092     ac_status=$?
12093     cat conftest.err >&5
12094 -   echo "$as_me:6556: \$? = $ac_status" >&5
12095 +   echo "$as_me:7491: \$? = $ac_status" >&5
12096     if (exit $ac_status) && test -s "$ac_outfile"; then
12097       # The compiler can only warn and ignore the option if not recognized
12098       # So say no if there are warnings other than the usual output.
12099 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12100 -     $SED '/^$/d' conftest.err >conftest.er2
12101 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12102 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12103 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12104 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12105         lt_cv_prog_compiler_rtti_exceptions=yes
12106       fi
12107     fi
12108     $rm conftest*
12109  
12110  fi
12111 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12112 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12113 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12114 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12115  
12116  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12117      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12118 @@ -6581,8 +7516,8 @@
12119  lt_prog_compiler_pic=
12120  lt_prog_compiler_static=
12121  
12122 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12123 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12124 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12125 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12126  
12127    if test "$GCC" = yes; then
12128      lt_prog_compiler_wl='-Wl,'
12129 @@ -6620,6 +7555,11 @@
12130        lt_prog_compiler_pic='-fno-common'
12131        ;;
12132  
12133 +    interix3*)
12134 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12135 +      # Instead, we relocate shared libraries at runtime.
12136 +      ;;
12137 +
12138      msdosdjgpp*)
12139        # Just because we use GCC doesn't mean we suddenly get shared libraries
12140        # on systems that don't support them.
12141 @@ -6636,7 +7576,7 @@
12142      hpux*)
12143        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12144        # not for PA HP-UX.
12145 -      case "$host_cpu" in
12146 +      case $host_cpu in
12147        hppa*64*|ia64*)
12148         # +Z the default
12149         ;;
12150 @@ -6683,7 +7623,7 @@
12151        lt_prog_compiler_wl='-Wl,'
12152        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12153        # not for PA HP-UX.
12154 -      case "$host_cpu" in
12155 +      case $host_cpu in
12156        hppa*64*|ia64*)
12157         # +Z the default
12158         ;;
12159 @@ -6706,19 +7646,19 @@
12160        lt_prog_compiler_static='-Bstatic'
12161        ;;
12162  
12163 -    linux*)
12164 +    linux* | k*bsd*-gnu)
12165        case $cc_basename in
12166        icc* | ecc*)
12167         lt_prog_compiler_wl='-Wl,'
12168         lt_prog_compiler_pic='-KPIC'
12169         lt_prog_compiler_static='-static'
12170          ;;
12171 -      pgcc* | pgf77* | pgf90*)
12172 +      pgcc* | pgf77* | pgf90* | pgf95*)
12173          # Portland Group compilers (*not* the Pentium gcc compiler,
12174         # which looks to be a dead project)
12175         lt_prog_compiler_wl='-Wl,'
12176         lt_prog_compiler_pic='-fpic'
12177 -       lt_prog_compiler_static='-static'
12178 +       lt_prog_compiler_static='-Bstatic'
12179          ;;
12180        ccc*)
12181          lt_prog_compiler_wl='-Wl,'
12182 @@ -6734,11 +7674,6 @@
12183        lt_prog_compiler_static='-non_shared'
12184        ;;
12185  
12186 -    sco3.2v5*)
12187 -      lt_prog_compiler_pic='-Kpic'
12188 -      lt_prog_compiler_static='-dn'
12189 -      ;;
12190 -
12191      solaris*)
12192        lt_prog_compiler_pic='-KPIC'
12193        lt_prog_compiler_static='-Bstatic'
12194 @@ -6756,7 +7691,7 @@
12195        lt_prog_compiler_static='-Bstatic'
12196        ;;
12197  
12198 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12199 +    sysv4 | sysv4.2uw2* | sysv4.3*)
12200        lt_prog_compiler_wl='-Wl,'
12201        lt_prog_compiler_pic='-KPIC'
12202        lt_prog_compiler_static='-Bstatic'
12203 @@ -6769,6 +7704,12 @@
12204        fi
12205        ;;
12206  
12207 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12208 +      lt_prog_compiler_wl='-Wl,'
12209 +      lt_prog_compiler_pic='-KPIC'
12210 +      lt_prog_compiler_static='-Bstatic'
12211 +      ;;
12212 +
12213      unicos*)
12214        lt_prog_compiler_wl='-Wl,'
12215        lt_prog_compiler_can_build_shared=no
12216 @@ -6785,16 +7726,16 @@
12217      esac
12218    fi
12219  
12220 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12221 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12222 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12223 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
12224  
12225  #
12226  # Check to make sure the PIC flag actually works.
12227  #
12228  if test -n "$lt_prog_compiler_pic"; then
12229  
12230 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12231 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12232 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12233 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
12234  if test "${lt_prog_compiler_pic_works+set}" = set; then
12235    echo $ECHO_N "(cached) $ECHO_C" >&6
12236  else
12237 @@ -6808,28 +7749,28 @@
12238     # with a dollar sign (not a hyphen), so the echo should work correctly.
12239     # The option is referenced via a variable to avoid confusing sed.
12240     lt_compile=`echo "$ac_compile" | $SED \
12241 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12242 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12243     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12244     -e 's:$: $lt_compiler_flag:'`
12245 -   (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
12246 +   (eval echo "\"\$as_me:7755: $lt_compile\"" >&5)
12247     (eval "$lt_compile" 2>conftest.err)
12248     ac_status=$?
12249     cat conftest.err >&5
12250 -   echo "$as_me:6818: \$? = $ac_status" >&5
12251 +   echo "$as_me:7759: \$? = $ac_status" >&5
12252     if (exit $ac_status) && test -s "$ac_outfile"; then
12253       # The compiler can only warn and ignore the option if not recognized
12254       # So say no if there are warnings other than the usual output.
12255 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12256 -     $SED '/^$/d' conftest.err >conftest.er2
12257 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12258 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12259 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12260 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12261         lt_prog_compiler_pic_works=yes
12262       fi
12263     fi
12264     $rm conftest*
12265  
12266  fi
12267 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12268 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12269 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12270 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
12271  
12272  if test x"$lt_prog_compiler_pic_works" = xyes; then
12273      case $lt_prog_compiler_pic in
12274 @@ -6842,7 +7783,7 @@
12275  fi
12276  
12277  fi
12278 -case "$host_os" in
12279 +case $host_os in
12280    # For platforms which do not support PIC, -DPIC is meaningless:
12281    *djgpp*)
12282      lt_prog_compiler_pic=
12283 @@ -6852,8 +7793,50 @@
12284      ;;
12285  esac
12286  
12287 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12288 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12289 +#
12290 +# Check to make sure the static flag actually works.
12291 +#
12292 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12293 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12294 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12295 +if test "${lt_prog_compiler_static_works+set}" = set; then
12296 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12297 +else
12298 +  lt_prog_compiler_static_works=no
12299 +   save_LDFLAGS="$LDFLAGS"
12300 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12301 +   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12302 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12303 +     # The linker can only warn and ignore the option if not recognized
12304 +     # So say no if there are warnings
12305 +     if test -s conftest.err; then
12306 +       # Append any errors to the config.log.
12307 +       cat conftest.err 1>&5
12308 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12309 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12310 +       if diff conftest.exp conftest.er2 >/dev/null; then
12311 +         lt_prog_compiler_static_works=yes
12312 +       fi
12313 +     else
12314 +       lt_prog_compiler_static_works=yes
12315 +     fi
12316 +   fi
12317 +   $rm conftest*
12318 +   LDFLAGS="$save_LDFLAGS"
12319 +
12320 +fi
12321 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12322 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
12323 +
12324 +if test x"$lt_prog_compiler_static_works" = xyes; then
12325 +    :
12326 +else
12327 +    lt_prog_compiler_static=
12328 +fi
12329 +
12330 +
12331 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12332 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12333  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12334    echo $ECHO_N "(cached) $ECHO_C" >&6
12335  else
12336 @@ -6870,25 +7853,25 @@
12337     # Note that $ac_compile itself does not contain backslashes and begins
12338     # with a dollar sign (not a hyphen), so the echo should work correctly.
12339     lt_compile=`echo "$ac_compile" | $SED \
12340 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12341 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12342     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12343     -e 's:$: $lt_compiler_flag:'`
12344 -   (eval echo "\"\$as_me:6876: $lt_compile\"" >&5)
12345 +   (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
12346     (eval "$lt_compile" 2>out/conftest.err)
12347     ac_status=$?
12348     cat out/conftest.err >&5
12349 -   echo "$as_me:6880: \$? = $ac_status" >&5
12350 +   echo "$as_me:7863: \$? = $ac_status" >&5
12351     if (exit $ac_status) && test -s out/conftest2.$ac_objext
12352     then
12353       # The compiler can only warn and ignore the option if not recognized
12354       # So say no if there are warnings
12355 -     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12356 -     $SED '/^$/d' out/conftest.err >out/conftest.er2
12357 -     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12358 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12359 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12360 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12361         lt_cv_prog_compiler_c_o=yes
12362       fi
12363     fi
12364 -   chmod u+w .
12365 +   chmod u+w . 2>&5
12366     $rm conftest*
12367     # SGI C++ compiler will create directory out/ii_files/ for
12368     # template instantiation
12369 @@ -6899,23 +7882,23 @@
12370     $rm conftest*
12371  
12372  fi
12373 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12374 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12375 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12376 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
12377  
12378  
12379  hard_links="nottested"
12380  if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12381    # do not overwrite the value of need_locks provided by the user
12382 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12383 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12384 +  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12385 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12386    hard_links=yes
12387    $rm conftest*
12388    ln conftest.a conftest.b 2>/dev/null && hard_links=no
12389    touch conftest.a
12390    ln conftest.a conftest.b 2>&5 || hard_links=no
12391    ln conftest.a conftest.b 2>/dev/null && hard_links=no
12392 -  echo "$as_me:$LINENO: result: $hard_links" >&5
12393 -echo "${ECHO_T}$hard_links" >&6
12394 +  { echo "$as_me:$LINENO: result: $hard_links" >&5
12395 +echo "${ECHO_T}$hard_links" >&6; }
12396    if test "$hard_links" = no; then
12397      { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12398  echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12399 @@ -6925,8 +7908,8 @@
12400    need_locks=no
12401  fi
12402  
12403 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12404 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12405 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12406 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12407  
12408    runpath_var=
12409    allow_undefined_flag=
12410 @@ -6984,6 +7967,10 @@
12411        with_gnu_ld=no
12412      fi
12413      ;;
12414 +  interix*)
12415 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
12416 +    with_gnu_ld=yes
12417 +    ;;
12418    openbsd*)
12419      with_gnu_ld=no
12420      ;;
12421 @@ -7068,7 +8055,7 @@
12422        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12423  
12424        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12425 -        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12426 +        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12427         # If the export-symbols file already is a .def file (1st line
12428         # is EXPORTS), use it as is; otherwise, prepend...
12429         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12430 @@ -7077,22 +8064,37 @@
12431           echo EXPORTS > $output_objdir/$soname.def;
12432           cat $export_symbols >> $output_objdir/$soname.def;
12433         fi~
12434 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12435 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12436        else
12437         ld_shlibs=no
12438        fi
12439        ;;
12440  
12441 -    linux*)
12442 +    interix3*)
12443 +      hardcode_direct=no
12444 +      hardcode_shlibpath_var=no
12445 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12446 +      export_dynamic_flag_spec='${wl}-E'
12447 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12448 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
12449 +      # default) and relocated if they conflict, which is a slow very memory
12450 +      # consuming and fragmenting process.  To avoid this, we pick a random,
12451 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12452 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12453 +      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12454 +      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12455 +      ;;
12456 +
12457 +    linux* | k*bsd*-gnu)
12458        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12459         tmp_addflag=
12460         case $cc_basename,$host_cpu in
12461         pgcc*)                          # Portland Group C compiler
12462 -         whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12463 +         whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12464           tmp_addflag=' $pic_flag'
12465           ;;
12466 -       pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
12467 -         whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12468 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12469 +         whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12470           tmp_addflag=' $pic_flag -Mnomain' ;;
12471         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
12472           tmp_addflag=' -i_dynamic' ;;
12473 @@ -7109,12 +8111,13 @@
12474    $echo "local: *; };" >> $output_objdir/$libname.ver~
12475           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12476         fi
12477 +       link_all_deplibs=no
12478        else
12479         ld_shlibs=no
12480        fi
12481        ;;
12482  
12483 -    netbsd*)
12484 +    netbsd* | netbsdelf*-gnu)
12485        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12486         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12487         wlarc=
12488 @@ -7124,7 +8127,7 @@
12489        fi
12490        ;;
12491  
12492 -    solaris* | sysv5*)
12493 +    solaris*)
12494        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12495         ld_shlibs=no
12496         cat <<EOF 1>&2
12497 @@ -7145,6 +8148,33 @@
12498        fi
12499        ;;
12500  
12501 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12502 +      case `$LD -v 2>&1` in
12503 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12504 +       ld_shlibs=no
12505 +       cat <<_LT_EOF 1>&2
12506 +
12507 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12508 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
12509 +*** is disabling shared libraries support.  We urge you to upgrade GNU
12510 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12511 +*** your PATH or compiler configuration so that the native linker is
12512 +*** used, and then restart.
12513 +
12514 +_LT_EOF
12515 +       ;;
12516 +       *)
12517 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12518 +           hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
12519 +           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
12520 +           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
12521 +         else
12522 +           ld_shlibs=no
12523 +         fi
12524 +       ;;
12525 +      esac
12526 +      ;;
12527 +
12528      sunos4*)
12529        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12530        wlarc=
12531 @@ -7178,7 +8208,7 @@
12532        # Note: this linker hardcodes the directories in LIBPATH if there
12533        # are no directories specified by -L.
12534        hardcode_minus_L=yes
12535 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
12536 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12537         # Neither direct hardcoding nor static linking is supported with a
12538         # broken collect2.
12539         hardcode_direct=unsupported
12540 @@ -7212,6 +8242,7 @@
12541             break
12542           fi
12543           done
12544 +         ;;
12545         esac
12546  
12547         exp_sym_flag='-bexport'
12548 @@ -7249,6 +8280,7 @@
12549           hardcode_libdir_flag_spec='-L$libdir'
12550           hardcode_libdir_separator=
12551           fi
12552 +         ;;
12553         esac
12554         shared_flag='-shared'
12555         if test "$aix_use_runtimelinking" = yes; then
12556 @@ -7261,11 +8293,11 @@
12557         # chokes on -Wl,-G. The following line is correct:
12558           shared_flag='-G'
12559         else
12560 -       if test "$aix_use_runtimelinking" = yes; then
12561 +         if test "$aix_use_runtimelinking" = yes; then
12562             shared_flag='${wl}-G'
12563           else
12564             shared_flag='${wl}-bM:SRE'
12565 -       fi
12566 +         fi
12567         fi
12568        fi
12569  
12570 @@ -7293,24 +8325,36 @@
12571  }
12572  _ACEOF
12573  rm -f conftest.$ac_objext conftest$ac_exeext
12574 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575 -  (eval $ac_link) 2>conftest.er1
12576 +if { (ac_try="$ac_link"
12577 +case "(($ac_try" in
12578 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 +  *) ac_try_echo=$ac_try;;
12580 +esac
12581 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 +  (eval "$ac_link") 2>conftest.er1
12583    ac_status=$?
12584    grep -v '^ *+' conftest.er1 >conftest.err
12585    rm -f conftest.er1
12586    cat conftest.err >&5
12587    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588    (exit $ac_status); } &&
12589 -        { ac_try='test -z "$ac_c_werror_flag"
12590 -                        || test ! -s conftest.err'
12591 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 -  (eval $ac_try) 2>&5
12593 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 +  { (case "(($ac_try" in
12595 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 +  *) ac_try_echo=$ac_try;;
12597 +esac
12598 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 +  (eval "$ac_try") 2>&5
12600    ac_status=$?
12601    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602    (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest$ac_exeext'
12604 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 -  (eval $ac_try) 2>&5
12606 +  { (case "(($ac_try" in
12607 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 +  *) ac_try_echo=$ac_try;;
12609 +esac
12610 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 +  (eval "$ac_try") 2>&5
12612    ac_status=$?
12613    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614    (exit $ac_status); }; }; then
12615 @@ -7324,18 +8368,20 @@
12616    echo "$as_me: failed program was:" >&5
12617  sed 's/^/| /' conftest.$ac_ext >&5
12618  
12619 +
12620  fi
12621 -rm -f conftest.err conftest.$ac_objext \
12622 +
12623 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12624        conftest$ac_exeext conftest.$ac_ext
12625  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12626  
12627         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12628 -       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12629 +       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12630         else
12631         if test "$host_cpu" = ia64; then
12632           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12633           allow_undefined_flag="-z nodefs"
12634 -         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12635 +         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12636         else
12637          # Determine the default libpath from the value encoded in an empty executable.
12638          cat >conftest.$ac_ext <<_ACEOF
12639 @@ -7354,24 +8400,36 @@
12640  }
12641  _ACEOF
12642  rm -f conftest.$ac_objext conftest$ac_exeext
12643 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644 -  (eval $ac_link) 2>conftest.er1
12645 +if { (ac_try="$ac_link"
12646 +case "(($ac_try" in
12647 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 +  *) ac_try_echo=$ac_try;;
12649 +esac
12650 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 +  (eval "$ac_link") 2>conftest.er1
12652    ac_status=$?
12653    grep -v '^ *+' conftest.er1 >conftest.err
12654    rm -f conftest.er1
12655    cat conftest.err >&5
12656    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657    (exit $ac_status); } &&
12658 -        { ac_try='test -z "$ac_c_werror_flag"
12659 -                        || test ! -s conftest.err'
12660 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 -  (eval $ac_try) 2>&5
12662 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12663 +  { (case "(($ac_try" in
12664 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 +  *) ac_try_echo=$ac_try;;
12666 +esac
12667 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 +  (eval "$ac_try") 2>&5
12669    ac_status=$?
12670    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671    (exit $ac_status); }; } &&
12672          { ac_try='test -s conftest$ac_exeext'
12673 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 -  (eval $ac_try) 2>&5
12675 +  { (case "(($ac_try" in
12676 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 +  *) ac_try_echo=$ac_try;;
12678 +esac
12679 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 +  (eval "$ac_try") 2>&5
12681    ac_status=$?
12682    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683    (exit $ac_status); }; }; then
12684 @@ -7385,8 +8443,10 @@
12685    echo "$as_me: failed program was:" >&5
12686  sed 's/^/| /' conftest.$ac_ext >&5
12687  
12688 +
12689  fi
12690 -rm -f conftest.err conftest.$ac_objext \
12691 +
12692 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12693        conftest$ac_exeext conftest.$ac_ext
12694  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12695  
12696 @@ -7395,13 +8455,11 @@
12697           # -berok will link without error, but may produce a broken library.
12698           no_undefined_flag=' ${wl}-bernotok'
12699           allow_undefined_flag=' ${wl}-berok'
12700 -         # -bexpall does not export symbols beginning with underscore (_)
12701 -         always_export_symbols=yes
12702           # Exported symbols can be pulled into shared objects from archives
12703 -         whole_archive_flag_spec=' '
12704 +         whole_archive_flag_spec='$convenience'
12705           archive_cmds_need_lc=yes
12706 -         # This is similar to how AIX traditionally builds it's shared libraries.
12707 -         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12708 +         # This is similar to how AIX traditionally builds its shared libraries.
12709 +         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12710         fi
12711        fi
12712        ;;
12713 @@ -7440,7 +8498,7 @@
12714        ;;
12715  
12716      darwin* | rhapsody*)
12717 -      case "$host_os" in
12718 +      case $host_os in
12719          rhapsody* | darwin1.[012])
12720           allow_undefined_flag='${wl}-undefined ${wl}suppress'
12721           ;;
12722 @@ -7469,7 +8527,7 @@
12723         output_verbose_link_cmd='echo'
12724          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12725        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12726 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12727 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12728        archive_expsym_cmds='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}'
12729        module_expsym_cmds='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}'
12730      else
12731 @@ -7478,7 +8536,7 @@
12732           output_verbose_link_cmd='echo'
12733           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12734           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12735 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12736 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12737           archive_expsym_cmds='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}'
12738            module_expsym_cmds='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}'
12739            ;;
12740 @@ -7519,7 +8577,7 @@
12741        ;;
12742  
12743      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12744 -    freebsd* | kfreebsd*-gnu | dragonfly*)
12745 +    freebsd* | dragonfly*)
12746        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12747        hardcode_libdir_flag_spec='-R$libdir'
12748        hardcode_direct=yes
12749 @@ -7542,47 +8600,62 @@
12750        export_dynamic_flag_spec='${wl}-E'
12751        ;;
12752  
12753 -    hpux10* | hpux11*)
12754 +    hpux10*)
12755        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12756 -       case "$host_cpu" in
12757 -       hppa*64*|ia64*)
12758 +       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12759 +      else
12760 +       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12761 +      fi
12762 +      if test "$with_gnu_ld" = no; then
12763 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12764 +       hardcode_libdir_separator=:
12765 +
12766 +       hardcode_direct=yes
12767 +       export_dynamic_flag_spec='${wl}-E'
12768 +
12769 +       # hardcode_minus_L: Not really in the search PATH,
12770 +       # but as the default location of the library.
12771 +       hardcode_minus_L=yes
12772 +      fi
12773 +      ;;
12774 +
12775 +    hpux11*)
12776 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12777 +       case $host_cpu in
12778 +       hppa*64*)
12779           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12780           ;;
12781 +       ia64*)
12782 +         archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12783 +         ;;
12784         *)
12785           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12786           ;;
12787         esac
12788        else
12789 -       case "$host_cpu" in
12790 -       hppa*64*|ia64*)
12791 -         archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12792 +       case $host_cpu in
12793 +       hppa*64*)
12794 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12795 +         ;;
12796 +       ia64*)
12797 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12798           ;;
12799         *)
12800 -         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12801 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12802           ;;
12803         esac
12804        fi
12805        if test "$with_gnu_ld" = no; then
12806 -       case "$host_cpu" in
12807 -       hppa*64*)
12808 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12809 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12810 +       hardcode_libdir_separator=:
12811 +
12812 +       case $host_cpu in
12813 +       hppa*64*|ia64*)
12814           hardcode_libdir_flag_spec_ld='+b $libdir'
12815 -         hardcode_libdir_separator=:
12816 -         hardcode_direct=no
12817 -         hardcode_shlibpath_var=no
12818 -         ;;
12819 -       ia64*)
12820 -         hardcode_libdir_flag_spec='-L$libdir'
12821           hardcode_direct=no
12822           hardcode_shlibpath_var=no
12823 -
12824 -         # hardcode_minus_L: Not really in the search PATH,
12825 -         # but as the default location of the library.
12826 -         hardcode_minus_L=yes
12827           ;;
12828         *)
12829 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12830 -         hardcode_libdir_separator=:
12831           hardcode_direct=yes
12832           export_dynamic_flag_spec='${wl}-E'
12833  
12834 @@ -7606,7 +8679,7 @@
12835        link_all_deplibs=yes
12836        ;;
12837  
12838 -    netbsd*)
12839 +    netbsd* | netbsdelf*-gnu)
12840        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12841         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12842        else
12843 @@ -7684,14 +8757,6 @@
12844        hardcode_libdir_separator=:
12845        ;;
12846  
12847 -    sco3.2v5*)
12848 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12849 -      hardcode_shlibpath_var=no
12850 -      export_dynamic_flag_spec='${wl}-Bexport'
12851 -      runpath_var=LD_RUN_PATH
12852 -      hardcode_runpath_var=yes
12853 -      ;;
12854 -
12855      solaris*)
12856        no_undefined_flag=' -z text'
12857        if test "$GCC" = yes; then
12858 @@ -7777,36 +8842,45 @@
12859        fi
12860        ;;
12861  
12862 -    sysv4.2uw2*)
12863 -      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12864 -      hardcode_direct=yes
12865 -      hardcode_minus_L=no
12866 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
12867 +      no_undefined_flag='${wl}-z,text'
12868 +      archive_cmds_need_lc=no
12869        hardcode_shlibpath_var=no
12870 -      hardcode_runpath_var=yes
12871 -      runpath_var=LD_RUN_PATH
12872 -      ;;
12873 +      runpath_var='LD_RUN_PATH'
12874  
12875 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12876 -      no_undefined_flag='${wl}-z ${wl}text'
12877        if test "$GCC" = yes; then
12878 -       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12879 +       archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881        else
12882 -       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 +       archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12885        fi
12886 -      runpath_var='LD_RUN_PATH'
12887 -      hardcode_shlibpath_var=no
12888        ;;
12889  
12890 -    sysv5*)
12891 -      no_undefined_flag=' -z text'
12892 -      # $CC -shared without GNU ld will not create a library from C++
12893 -      # object files and a static libstdc++, better avoid it by now
12894 -      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12895 -      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12896 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12897 -      hardcode_libdir_flag_spec=
12898 +    sysv5* | sco3.2v5* | sco5v6*)
12899 +      # Note: We can NOT use -z defs as we might desire, because we do not
12900 +      # link with -lc, and that would cause any symbols used from libc to
12901 +      # always be unresolved, which means just about no library would
12902 +      # ever link correctly.  If we're not using GNU ld we use -z text
12903 +      # though, which does catch some bad symbols but isn't as heavy-handed
12904 +      # as -z defs.
12905 +      no_undefined_flag='${wl}-z,text'
12906 +      allow_undefined_flag='${wl}-z,nodefs'
12907 +      archive_cmds_need_lc=no
12908        hardcode_shlibpath_var=no
12909 +      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12910 +      hardcode_libdir_separator=':'
12911 +      link_all_deplibs=yes
12912 +      export_dynamic_flag_spec='${wl}-Bexport'
12913        runpath_var='LD_RUN_PATH'
12914 +
12915 +      if test "$GCC" = yes; then
12916 +       archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12918 +      else
12919 +       archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12920 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12921 +      fi
12922        ;;
12923  
12924      uts4*)
12925 @@ -7821,15 +8895,10 @@
12926      esac
12927    fi
12928  
12929 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12930 -echo "${ECHO_T}$ld_shlibs" >&6
12931 +{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12932 +echo "${ECHO_T}$ld_shlibs" >&6; }
12933  test "$ld_shlibs" = no && can_build_shared=no
12934  
12935 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12936 -if test "$GCC" = yes; then
12937 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12938 -fi
12939 -
12940  #
12941  # Do we need to explicitly link libc?
12942  #
12943 @@ -7847,8 +8916,8 @@
12944        # Test whether the compiler implicitly links with -lc since on some
12945        # systems, -lgcc has to come before -lc. If gcc already passes -lc
12946        # to ld, don't add -lc before -lgcc.
12947 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12948 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12949 +      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12950 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12951        $rm conftest*
12952        printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12953  
12954 @@ -7862,6 +8931,7 @@
12955          libobjs=conftest.$ac_objext
12956          deplibs=
12957          wl=$lt_prog_compiler_wl
12958 +       pic_flag=$lt_prog_compiler_pic
12959          compiler_flags=-v
12960          linker_flags=-v
12961          verstring=
12962 @@ -7884,16 +8954,16 @@
12963          cat conftest.err 1>&5
12964        fi
12965        $rm conftest*
12966 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12967 -echo "${ECHO_T}$archive_cmds_need_lc" >&6
12968 +      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12969 +echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
12970        ;;
12971      esac
12972    fi
12973    ;;
12974  esac
12975  
12976 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12977 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12978 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12979 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12980  library_names_spec=
12981  libname_spec='lib$name'
12982  soname_spec=
12983 @@ -8022,7 +9092,8 @@
12984        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12985        dldir=$destdir/`dirname \$dlpath`~
12986        test -d \$dldir || mkdir -p \$dldir~
12987 -      $install_prog $dir/$dlname \$dldir/$dlname'
12988 +      $install_prog $dir/$dlname \$dldir/$dlname~
12989 +      chmod a+x \$dldir/$dlname'
12990      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12991        dlpath=$dir/\$dldll~
12992         $rm \$dlpath'
12993 @@ -8057,30 +9128,6 @@
12994      esac
12995      ;;
12996  
12997 -  linux*)
12998 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12999 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000 -      supports_anon_versioning=no
13001 -      case `$LD -v 2>/dev/null` in
13002 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13003 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13004 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13005 -        *\ 2.11.*) ;; # other 2.11 versions
13006 -        *) supports_anon_versioning=yes ;;
13007 -      esac
13008 -      if test $supports_anon_versioning = yes; then
13009 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13010 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13011 -$echo "local: *; };" >> $output_objdir/$libname.ver~
13012 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13013 -      else
13014 -        $archive_expsym_cmds="$archive_cmds"
13015 -      fi
13016 -    else
13017 -      ld_shlibs=no
13018 -    fi
13019 -    ;;
13020 -
13021    *)
13022      library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13023      ;;
13024 @@ -8099,7 +9146,7 @@
13025    soname_spec='${libname}${release}${major}$shared_ext'
13026    shlibpath_overrides_runpath=yes
13027    shlibpath_var=DYLD_LIBRARY_PATH
13028 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13029 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13030    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13031    if test "$GCC" = yes; then
13032      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"`
13033 @@ -8122,22 +9169,17 @@
13034    dynamic_linker=no
13035    ;;
13036  
13037 -kfreebsd*-gnu)
13038 -  version_type=linux
13039 -  need_lib_prefix=no
13040 -  need_version=no
13041 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13042 -  soname_spec='${libname}${release}${shared_ext}$major'
13043 -  shlibpath_var=LD_LIBRARY_PATH
13044 -  shlibpath_overrides_runpath=no
13045 -  hardcode_into_libs=yes
13046 -  dynamic_linker='GNU ld.so'
13047 -  ;;
13048 -
13049  freebsd* | dragonfly*)
13050    # DragonFly does not have aout.  When/if they implement a new
13051    # versioning mechanism, adjust this.
13052 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13053 +  if test -x /usr/bin/objformat; then
13054 +    objformat=`/usr/bin/objformat`
13055 +  else
13056 +    case $host_os in
13057 +    freebsd[123]*) objformat=aout ;;
13058 +    *) objformat=elf ;;
13059 +    esac
13060 +  fi
13061    version_type=freebsd-$objformat
13062    case $version_type in
13063      freebsd-elf*)
13064 @@ -8159,10 +9201,15 @@
13065      shlibpath_overrides_runpath=yes
13066      hardcode_into_libs=yes
13067      ;;
13068 -  *) # from 3.2 on
13069 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13070 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13071      shlibpath_overrides_runpath=no
13072      hardcode_into_libs=yes
13073      ;;
13074 +  freebsd*) # from 4.6 on
13075 +    shlibpath_overrides_runpath=yes
13076 +    hardcode_into_libs=yes
13077 +    ;;
13078    esac
13079    ;;
13080  
13081 @@ -8182,7 +9229,7 @@
13082    version_type=sunos
13083    need_lib_prefix=no
13084    need_version=no
13085 -  case "$host_cpu" in
13086 +  case $host_cpu in
13087    ia64*)
13088      shrext_cmds='.so'
13089      hardcode_into_libs=yes
13090 @@ -8222,6 +9269,18 @@
13091    postinstall_cmds='chmod 555 $lib'
13092    ;;
13093  
13094 +interix3*)
13095 +  version_type=linux
13096 +  need_lib_prefix=no
13097 +  need_version=no
13098 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13099 +  soname_spec='${libname}${release}${shared_ext}$major'
13100 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13101 +  shlibpath_var=LD_LIBRARY_PATH
13102 +  shlibpath_overrides_runpath=no
13103 +  hardcode_into_libs=yes
13104 +  ;;
13105 +
13106  irix5* | irix6* | nonstopux*)
13107    case $host_os in
13108      nonstopux*) version_type=nonstopux ;;
13109 @@ -8265,7 +9324,7 @@
13110    ;;
13111  
13112  # This must be Linux ELF.
13113 -linux*)
13114 +linux* | k*bsd*-gnu)
13115    version_type=linux
13116    need_lib_prefix=no
13117    need_version=no
13118 @@ -8285,13 +9344,6 @@
13119      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13120    fi
13121  
13122 -  case $host_cpu:$lt_cv_cc_64bit_output in
13123 -  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
13124 -    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
13125 -    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
13126 -    ;;
13127 -  esac
13128 -
13129    # We used to test for /lib/ld.so.1 and disable shared libraries on
13130    # powerpc, because MkLinux only supported shared libraries with the
13131    # GNU dynamic linker.  Since this was broken with cross compilers,
13132 @@ -8299,33 +9351,9 @@
13133    # people can always --disable-shared, the test was removed, and we
13134    # assume the GNU/Linux dynamic linker is in use.
13135    dynamic_linker='GNU/Linux ld.so'
13136 -
13137 -  # Find out which ABI we are using (multilib Linux x86_64 hack).
13138 -  libsuff=
13139 -  case "$host_cpu" in
13140 -  x86_64*)
13141 -    echo '#line 8307 "configure"' > conftest.$ac_ext
13142 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 -  (eval $ac_compile) 2>&5
13144 -  ac_status=$?
13145 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 -  (exit $ac_status); }; then
13147 -      case `/usr/bin/file conftest.$ac_objext` in
13148 -      *64-bit*)
13149 -        libsuff=64
13150 -        ;;
13151 -      esac
13152 -    fi
13153 -    rm -rf conftest*
13154 -    ;;
13155 -  *)
13156 -    ;;
13157 -  esac
13158 -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13159 -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13160    ;;
13161  
13162 -knetbsd*-gnu)
13163 +netbsdelf*-gnu)
13164    version_type=linux
13165    need_lib_prefix=no
13166    need_version=no
13167 @@ -8334,7 +9362,7 @@
13168    shlibpath_var=LD_LIBRARY_PATH
13169    shlibpath_overrides_runpath=no
13170    hardcode_into_libs=yes
13171 -  dynamic_linker='GNU ld.so'
13172 +  dynamic_linker='NetBSD ld.elf_so'
13173    ;;
13174  
13175  netbsd*)
13176 @@ -8374,6 +9402,7 @@
13177  
13178  openbsd*)
13179    version_type=sunos
13180 +  sys_lib_dlsearch_path_spec="/usr/lib"
13181    need_lib_prefix=no
13182    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13183    case $host_os in
13184 @@ -8417,13 +9446,6 @@
13185    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13186    ;;
13187  
13188 -sco3.2v5*)
13189 -  version_type=osf
13190 -  soname_spec='${libname}${release}${shared_ext}$major'
13191 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 -  shlibpath_var=LD_LIBRARY_PATH
13193 -  ;;
13194 -
13195  solaris*)
13196    version_type=linux
13197    need_lib_prefix=no
13198 @@ -8449,7 +9471,7 @@
13199    need_version=yes
13200    ;;
13201  
13202 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13203 +sysv4 | sysv4.3*)
13204    version_type=linux
13205    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206    soname_spec='${libname}${release}${shared_ext}$major'
13207 @@ -8482,6 +9504,29 @@
13208    fi
13209    ;;
13210  
13211 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13212 +  version_type=freebsd-elf
13213 +  need_lib_prefix=no
13214 +  need_version=no
13215 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13216 +  soname_spec='${libname}${release}${shared_ext}$major'
13217 +  shlibpath_var=LD_LIBRARY_PATH
13218 +  hardcode_into_libs=yes
13219 +  if test "$with_gnu_ld" = yes; then
13220 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13221 +    shlibpath_overrides_runpath=no
13222 +  else
13223 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13224 +    shlibpath_overrides_runpath=yes
13225 +    case $host_os in
13226 +      sco3.2v5*)
13227 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13228 +       ;;
13229 +    esac
13230 +  fi
13231 +  sys_lib_dlsearch_path_spec='/usr/lib'
13232 +  ;;
13233 +
13234  uts4*)
13235    version_type=linux
13236    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 @@ -8493,12 +9538,17 @@
13238    dynamic_linker=no
13239    ;;
13240  esac
13241 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13242 -echo "${ECHO_T}$dynamic_linker" >&6
13243 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13244 +echo "${ECHO_T}$dynamic_linker" >&6; }
13245  test "$dynamic_linker" = no && can_build_shared=no
13246  
13247 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13248 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13249 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13250 +if test "$GCC" = yes; then
13251 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13252 +fi
13253 +
13254 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13255 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13256  hardcode_action=
13257  if test -n "$hardcode_libdir_flag_spec" || \
13258     test -n "$runpath_var" || \
13259 @@ -8522,8 +9572,8 @@
13260    # directories.
13261    hardcode_action=unsupported
13262  fi
13263 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
13264 -echo "${ECHO_T}$hardcode_action" >&6
13265 +{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
13266 +echo "${ECHO_T}$hardcode_action" >&6; }
13267  
13268  if test "$hardcode_action" = relink; then
13269    # Fast installation is not supported
13270 @@ -8536,29 +9586,29 @@
13271  
13272  striplib=
13273  old_striplib=
13274 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13275 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13276 +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13277 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13278  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13279    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13280    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13281 -  echo "$as_me:$LINENO: result: yes" >&5
13282 -echo "${ECHO_T}yes" >&6
13283 +  { echo "$as_me:$LINENO: result: yes" >&5
13284 +echo "${ECHO_T}yes" >&6; }
13285  else
13286  # FIXME - insert some real tests, host_os isn't really good enough
13287    case $host_os in
13288     darwin*)
13289         if test -n "$STRIP" ; then
13290           striplib="$STRIP -x"
13291 -         echo "$as_me:$LINENO: result: yes" >&5
13292 -echo "${ECHO_T}yes" >&6
13293 +         { echo "$as_me:$LINENO: result: yes" >&5
13294 +echo "${ECHO_T}yes" >&6; }
13295         else
13296 -  echo "$as_me:$LINENO: result: no" >&5
13297 -echo "${ECHO_T}no" >&6
13298 +  { echo "$as_me:$LINENO: result: no" >&5
13299 +echo "${ECHO_T}no" >&6; }
13300  fi
13301         ;;
13302     *)
13303 -  echo "$as_me:$LINENO: result: no" >&5
13304 -echo "${ECHO_T}no" >&6
13305 +  { echo "$as_me:$LINENO: result: no" >&5
13306 +echo "${ECHO_T}no" >&6; }
13307      ;;
13308    esac
13309  fi
13310 @@ -8590,8 +9640,8 @@
13311  
13312    darwin*)
13313    # if libdl is installed we need to link against it
13314 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13315 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13316 +    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13317 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13318  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13319    echo $ECHO_N "(cached) $ECHO_C" >&6
13320  else
13321 @@ -8604,40 +9654,52 @@
13322  cat >>conftest.$ac_ext <<_ACEOF
13323  /* end confdefs.h.  */
13324  
13325 -/* Override any gcc2 internal prototype to avoid an error.  */
13326 +/* Override any GCC internal prototype to avoid an error.
13327 +   Use char because int might match the return type of a GCC
13328 +   builtin and then its argument prototype would still apply.  */
13329  #ifdef __cplusplus
13330  extern "C"
13331  #endif
13332 -/* We use char because int might match the return type of a gcc2
13333 -   builtin and then its argument prototype would still apply.  */
13334  char dlopen ();
13335  int
13336  main ()
13337  {
13338 -dlopen ();
13339 +return dlopen ();
13340    ;
13341    return 0;
13342  }
13343  _ACEOF
13344  rm -f conftest.$ac_objext conftest$ac_exeext
13345 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13346 -  (eval $ac_link) 2>conftest.er1
13347 +if { (ac_try="$ac_link"
13348 +case "(($ac_try" in
13349 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 +  *) ac_try_echo=$ac_try;;
13351 +esac
13352 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 +  (eval "$ac_link") 2>conftest.er1
13354    ac_status=$?
13355    grep -v '^ *+' conftest.er1 >conftest.err
13356    rm -f conftest.er1
13357    cat conftest.err >&5
13358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359    (exit $ac_status); } &&
13360 -        { ac_try='test -z "$ac_c_werror_flag"
13361 -                        || test ! -s conftest.err'
13362 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 -  (eval $ac_try) 2>&5
13364 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13365 +  { (case "(($ac_try" in
13366 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 +  *) ac_try_echo=$ac_try;;
13368 +esac
13369 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 +  (eval "$ac_try") 2>&5
13371    ac_status=$?
13372    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373    (exit $ac_status); }; } &&
13374          { ac_try='test -s conftest$ac_exeext'
13375 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 -  (eval $ac_try) 2>&5
13377 +  { (case "(($ac_try" in
13378 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 +  *) ac_try_echo=$ac_try;;
13380 +esac
13381 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 +  (eval "$ac_try") 2>&5
13383    ac_status=$?
13384    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385    (exit $ac_status); }; }; then
13386 @@ -8646,14 +9708,15 @@
13387    echo "$as_me: failed program was:" >&5
13388  sed 's/^/| /' conftest.$ac_ext >&5
13389  
13390 -ac_cv_lib_dl_dlopen=no
13391 +       ac_cv_lib_dl_dlopen=no
13392  fi
13393 -rm -f conftest.err conftest.$ac_objext \
13394 +
13395 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13396        conftest$ac_exeext conftest.$ac_ext
13397  LIBS=$ac_check_lib_save_LIBS
13398  fi
13399 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13400 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13401 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13402 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13403  if test $ac_cv_lib_dl_dlopen = yes; then
13404    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13405  else
13406 @@ -8667,8 +9730,8 @@
13407     ;;
13408  
13409    *)
13410 -    echo "$as_me:$LINENO: checking for shl_load" >&5
13411 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13412 +    { echo "$as_me:$LINENO: checking for shl_load" >&5
13413 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13414  if test "${ac_cv_func_shl_load+set}" = set; then
13415    echo $ECHO_N "(cached) $ECHO_C" >&6
13416  else
13417 @@ -8695,53 +9758,59 @@
13418  
13419  #undef shl_load
13420  
13421 -/* Override any gcc2 internal prototype to avoid an error.  */
13422 +/* Override any GCC internal prototype to avoid an error.
13423 +   Use char because int might match the return type of a GCC
13424 +   builtin and then its argument prototype would still apply.  */
13425  #ifdef __cplusplus
13426  extern "C"
13427 -{
13428  #endif
13429 -/* We use char because int might match the return type of a gcc2
13430 -   builtin and then its argument prototype would still apply.  */
13431  char shl_load ();
13432  /* The GNU C library defines this for functions which it implements
13433      to always fail with ENOSYS.  Some functions are actually named
13434      something starting with __ and the normal name is an alias.  */
13435 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
13436 +#if defined __stub_shl_load || defined __stub___shl_load
13437  choke me
13438 -#else
13439 -char (*f) () = shl_load;
13440 -#endif
13441 -#ifdef __cplusplus
13442 -}
13443  #endif
13444  
13445  int
13446  main ()
13447  {
13448 -return f != shl_load;
13449 +return shl_load ();
13450    ;
13451    return 0;
13452  }
13453  _ACEOF
13454  rm -f conftest.$ac_objext conftest$ac_exeext
13455 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 -  (eval $ac_link) 2>conftest.er1
13457 +if { (ac_try="$ac_link"
13458 +case "(($ac_try" in
13459 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 +  *) ac_try_echo=$ac_try;;
13461 +esac
13462 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 +  (eval "$ac_link") 2>conftest.er1
13464    ac_status=$?
13465    grep -v '^ *+' conftest.er1 >conftest.err
13466    rm -f conftest.er1
13467    cat conftest.err >&5
13468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469    (exit $ac_status); } &&
13470 -        { ac_try='test -z "$ac_c_werror_flag"
13471 -                        || test ! -s conftest.err'
13472 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 -  (eval $ac_try) 2>&5
13474 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475 +  { (case "(($ac_try" in
13476 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 +  *) ac_try_echo=$ac_try;;
13478 +esac
13479 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 +  (eval "$ac_try") 2>&5
13481    ac_status=$?
13482    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483    (exit $ac_status); }; } &&
13484          { ac_try='test -s conftest$ac_exeext'
13485 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 -  (eval $ac_try) 2>&5
13487 +  { (case "(($ac_try" in
13488 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 +  *) ac_try_echo=$ac_try;;
13490 +esac
13491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 +  (eval "$ac_try") 2>&5
13493    ac_status=$?
13494    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495    (exit $ac_status); }; }; then
13496 @@ -8750,18 +9819,19 @@
13497    echo "$as_me: failed program was:" >&5
13498  sed 's/^/| /' conftest.$ac_ext >&5
13499  
13500 -ac_cv_func_shl_load=no
13501 +       ac_cv_func_shl_load=no
13502  fi
13503 -rm -f conftest.err conftest.$ac_objext \
13504 +
13505 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13506        conftest$ac_exeext conftest.$ac_ext
13507  fi
13508 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13509 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13510 +{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13511 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13512  if test $ac_cv_func_shl_load = yes; then
13513    lt_cv_dlopen="shl_load"
13514  else
13515 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13516 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13517 +  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13518 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13519  if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13520    echo $ECHO_N "(cached) $ECHO_C" >&6
13521  else
13522 @@ -8774,40 +9844,52 @@
13523  cat >>conftest.$ac_ext <<_ACEOF
13524  /* end confdefs.h.  */
13525  
13526 -/* Override any gcc2 internal prototype to avoid an error.  */
13527 +/* Override any GCC internal prototype to avoid an error.
13528 +   Use char because int might match the return type of a GCC
13529 +   builtin and then its argument prototype would still apply.  */
13530  #ifdef __cplusplus
13531  extern "C"
13532  #endif
13533 -/* We use char because int might match the return type of a gcc2
13534 -   builtin and then its argument prototype would still apply.  */
13535  char shl_load ();
13536  int
13537  main ()
13538  {
13539 -shl_load ();
13540 +return shl_load ();
13541    ;
13542    return 0;
13543  }
13544  _ACEOF
13545  rm -f conftest.$ac_objext conftest$ac_exeext
13546 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13547 -  (eval $ac_link) 2>conftest.er1
13548 +if { (ac_try="$ac_link"
13549 +case "(($ac_try" in
13550 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 +  *) ac_try_echo=$ac_try;;
13552 +esac
13553 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 +  (eval "$ac_link") 2>conftest.er1
13555    ac_status=$?
13556    grep -v '^ *+' conftest.er1 >conftest.err
13557    rm -f conftest.er1
13558    cat conftest.err >&5
13559    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560    (exit $ac_status); } &&
13561 -        { ac_try='test -z "$ac_c_werror_flag"
13562 -                        || test ! -s conftest.err'
13563 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 -  (eval $ac_try) 2>&5
13565 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13566 +  { (case "(($ac_try" in
13567 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 +  *) ac_try_echo=$ac_try;;
13569 +esac
13570 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 +  (eval "$ac_try") 2>&5
13572    ac_status=$?
13573    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574    (exit $ac_status); }; } &&
13575          { ac_try='test -s conftest$ac_exeext'
13576 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 -  (eval $ac_try) 2>&5
13578 +  { (case "(($ac_try" in
13579 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 +  *) ac_try_echo=$ac_try;;
13581 +esac
13582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 +  (eval "$ac_try") 2>&5
13584    ac_status=$?
13585    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586    (exit $ac_status); }; }; then
13587 @@ -8816,19 +9898,20 @@
13588    echo "$as_me: failed program was:" >&5
13589  sed 's/^/| /' conftest.$ac_ext >&5
13590  
13591 -ac_cv_lib_dld_shl_load=no
13592 +       ac_cv_lib_dld_shl_load=no
13593  fi
13594 -rm -f conftest.err conftest.$ac_objext \
13595 +
13596 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13597        conftest$ac_exeext conftest.$ac_ext
13598  LIBS=$ac_check_lib_save_LIBS
13599  fi
13600 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13601 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13602 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13603 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13604  if test $ac_cv_lib_dld_shl_load = yes; then
13605    lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13606  else
13607 -  echo "$as_me:$LINENO: checking for dlopen" >&5
13608 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13609 +  { echo "$as_me:$LINENO: checking for dlopen" >&5
13610 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13611  if test "${ac_cv_func_dlopen+set}" = set; then
13612    echo $ECHO_N "(cached) $ECHO_C" >&6
13613  else
13614 @@ -8855,53 +9938,59 @@
13615  
13616  #undef dlopen
13617  
13618 -/* Override any gcc2 internal prototype to avoid an error.  */
13619 +/* Override any GCC internal prototype to avoid an error.
13620 +   Use char because int might match the return type of a GCC
13621 +   builtin and then its argument prototype would still apply.  */
13622  #ifdef __cplusplus
13623  extern "C"
13624 -{
13625  #endif
13626 -/* We use char because int might match the return type of a gcc2
13627 -   builtin and then its argument prototype would still apply.  */
13628  char dlopen ();
13629  /* The GNU C library defines this for functions which it implements
13630      to always fail with ENOSYS.  Some functions are actually named
13631      something starting with __ and the normal name is an alias.  */
13632 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
13633 +#if defined __stub_dlopen || defined __stub___dlopen
13634  choke me
13635 -#else
13636 -char (*f) () = dlopen;
13637 -#endif
13638 -#ifdef __cplusplus
13639 -}
13640  #endif
13641  
13642  int
13643  main ()
13644  {
13645 -return f != dlopen;
13646 +return dlopen ();
13647    ;
13648    return 0;
13649  }
13650  _ACEOF
13651  rm -f conftest.$ac_objext conftest$ac_exeext
13652 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 -  (eval $ac_link) 2>conftest.er1
13654 +if { (ac_try="$ac_link"
13655 +case "(($ac_try" in
13656 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 +  *) ac_try_echo=$ac_try;;
13658 +esac
13659 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 +  (eval "$ac_link") 2>conftest.er1
13661    ac_status=$?
13662    grep -v '^ *+' conftest.er1 >conftest.err
13663    rm -f conftest.er1
13664    cat conftest.err >&5
13665    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666    (exit $ac_status); } &&
13667 -        { ac_try='test -z "$ac_c_werror_flag"
13668 -                        || test ! -s conftest.err'
13669 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 -  (eval $ac_try) 2>&5
13671 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13672 +  { (case "(($ac_try" in
13673 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 +  *) ac_try_echo=$ac_try;;
13675 +esac
13676 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 +  (eval "$ac_try") 2>&5
13678    ac_status=$?
13679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680    (exit $ac_status); }; } &&
13681          { ac_try='test -s conftest$ac_exeext'
13682 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 -  (eval $ac_try) 2>&5
13684 +  { (case "(($ac_try" in
13685 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686 +  *) ac_try_echo=$ac_try;;
13687 +esac
13688 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689 +  (eval "$ac_try") 2>&5
13690    ac_status=$?
13691    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692    (exit $ac_status); }; }; then
13693 @@ -8910,18 +9999,19 @@
13694    echo "$as_me: failed program was:" >&5
13695  sed 's/^/| /' conftest.$ac_ext >&5
13696  
13697 -ac_cv_func_dlopen=no
13698 +       ac_cv_func_dlopen=no
13699  fi
13700 -rm -f conftest.err conftest.$ac_objext \
13701 +
13702 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13703        conftest$ac_exeext conftest.$ac_ext
13704  fi
13705 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13706 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13707 +{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13708 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13709  if test $ac_cv_func_dlopen = yes; then
13710    lt_cv_dlopen="dlopen"
13711  else
13712 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13713 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13714 +  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13715 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13716  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13717    echo $ECHO_N "(cached) $ECHO_C" >&6
13718  else
13719 @@ -8934,40 +10024,52 @@
13720  cat >>conftest.$ac_ext <<_ACEOF
13721  /* end confdefs.h.  */
13722  
13723 -/* Override any gcc2 internal prototype to avoid an error.  */
13724 +/* Override any GCC internal prototype to avoid an error.
13725 +   Use char because int might match the return type of a GCC
13726 +   builtin and then its argument prototype would still apply.  */
13727  #ifdef __cplusplus
13728  extern "C"
13729  #endif
13730 -/* We use char because int might match the return type of a gcc2
13731 -   builtin and then its argument prototype would still apply.  */
13732  char dlopen ();
13733  int
13734  main ()
13735  {
13736 -dlopen ();
13737 +return dlopen ();
13738    ;
13739    return 0;
13740  }
13741  _ACEOF
13742  rm -f conftest.$ac_objext conftest$ac_exeext
13743 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744 -  (eval $ac_link) 2>conftest.er1
13745 +if { (ac_try="$ac_link"
13746 +case "(($ac_try" in
13747 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 +  *) ac_try_echo=$ac_try;;
13749 +esac
13750 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 +  (eval "$ac_link") 2>conftest.er1
13752    ac_status=$?
13753    grep -v '^ *+' conftest.er1 >conftest.err
13754    rm -f conftest.er1
13755    cat conftest.err >&5
13756    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757    (exit $ac_status); } &&
13758 -        { ac_try='test -z "$ac_c_werror_flag"
13759 -                        || test ! -s conftest.err'
13760 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 -  (eval $ac_try) 2>&5
13762 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763 +  { (case "(($ac_try" in
13764 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 +  *) ac_try_echo=$ac_try;;
13766 +esac
13767 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 +  (eval "$ac_try") 2>&5
13769    ac_status=$?
13770    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771    (exit $ac_status); }; } &&
13772          { ac_try='test -s conftest$ac_exeext'
13773 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 -  (eval $ac_try) 2>&5
13775 +  { (case "(($ac_try" in
13776 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 +  *) ac_try_echo=$ac_try;;
13778 +esac
13779 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 +  (eval "$ac_try") 2>&5
13781    ac_status=$?
13782    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783    (exit $ac_status); }; }; then
13784 @@ -8976,19 +10078,20 @@
13785    echo "$as_me: failed program was:" >&5
13786  sed 's/^/| /' conftest.$ac_ext >&5
13787  
13788 -ac_cv_lib_dl_dlopen=no
13789 +       ac_cv_lib_dl_dlopen=no
13790  fi
13791 -rm -f conftest.err conftest.$ac_objext \
13792 +
13793 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13794        conftest$ac_exeext conftest.$ac_ext
13795  LIBS=$ac_check_lib_save_LIBS
13796  fi
13797 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13798 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13799 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13800 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13801  if test $ac_cv_lib_dl_dlopen = yes; then
13802    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13803  else
13804 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13805 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13806 +  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13807 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13808  if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13809    echo $ECHO_N "(cached) $ECHO_C" >&6
13810  else
13811 @@ -9001,40 +10104,52 @@
13812  cat >>conftest.$ac_ext <<_ACEOF
13813  /* end confdefs.h.  */
13814  
13815 -/* Override any gcc2 internal prototype to avoid an error.  */
13816 +/* Override any GCC internal prototype to avoid an error.
13817 +   Use char because int might match the return type of a GCC
13818 +   builtin and then its argument prototype would still apply.  */
13819  #ifdef __cplusplus
13820  extern "C"
13821  #endif
13822 -/* We use char because int might match the return type of a gcc2
13823 -   builtin and then its argument prototype would still apply.  */
13824  char dlopen ();
13825  int
13826  main ()
13827  {
13828 -dlopen ();
13829 +return dlopen ();
13830    ;
13831    return 0;
13832  }
13833  _ACEOF
13834  rm -f conftest.$ac_objext conftest$ac_exeext
13835 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 -  (eval $ac_link) 2>conftest.er1
13837 +if { (ac_try="$ac_link"
13838 +case "(($ac_try" in
13839 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 +  *) ac_try_echo=$ac_try;;
13841 +esac
13842 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 +  (eval "$ac_link") 2>conftest.er1
13844    ac_status=$?
13845    grep -v '^ *+' conftest.er1 >conftest.err
13846    rm -f conftest.er1
13847    cat conftest.err >&5
13848    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849    (exit $ac_status); } &&
13850 -        { ac_try='test -z "$ac_c_werror_flag"
13851 -                        || test ! -s conftest.err'
13852 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 -  (eval $ac_try) 2>&5
13854 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 +  { (case "(($ac_try" in
13856 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 +  *) ac_try_echo=$ac_try;;
13858 +esac
13859 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 +  (eval "$ac_try") 2>&5
13861    ac_status=$?
13862    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863    (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest$ac_exeext'
13865 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 -  (eval $ac_try) 2>&5
13867 +  { (case "(($ac_try" in
13868 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 +  *) ac_try_echo=$ac_try;;
13870 +esac
13871 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 +  (eval "$ac_try") 2>&5
13873    ac_status=$?
13874    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875    (exit $ac_status); }; }; then
13876 @@ -9043,19 +10158,20 @@
13877    echo "$as_me: failed program was:" >&5
13878  sed 's/^/| /' conftest.$ac_ext >&5
13879  
13880 -ac_cv_lib_svld_dlopen=no
13881 +       ac_cv_lib_svld_dlopen=no
13882  fi
13883 -rm -f conftest.err conftest.$ac_objext \
13884 +
13885 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886        conftest$ac_exeext conftest.$ac_ext
13887  LIBS=$ac_check_lib_save_LIBS
13888  fi
13889 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13890 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13891 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13892 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13893  if test $ac_cv_lib_svld_dlopen = yes; then
13894    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13895  else
13896 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13897 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13898 +  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13899 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13900  if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13901    echo $ECHO_N "(cached) $ECHO_C" >&6
13902  else
13903 @@ -9068,40 +10184,52 @@
13904  cat >>conftest.$ac_ext <<_ACEOF
13905  /* end confdefs.h.  */
13906  
13907 -/* Override any gcc2 internal prototype to avoid an error.  */
13908 +/* Override any GCC internal prototype to avoid an error.
13909 +   Use char because int might match the return type of a GCC
13910 +   builtin and then its argument prototype would still apply.  */
13911  #ifdef __cplusplus
13912  extern "C"
13913  #endif
13914 -/* We use char because int might match the return type of a gcc2
13915 -   builtin and then its argument prototype would still apply.  */
13916  char dld_link ();
13917  int
13918  main ()
13919  {
13920 -dld_link ();
13921 +return dld_link ();
13922    ;
13923    return 0;
13924  }
13925  _ACEOF
13926  rm -f conftest.$ac_objext conftest$ac_exeext
13927 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 -  (eval $ac_link) 2>conftest.er1
13929 +if { (ac_try="$ac_link"
13930 +case "(($ac_try" in
13931 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 +  *) ac_try_echo=$ac_try;;
13933 +esac
13934 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 +  (eval "$ac_link") 2>conftest.er1
13936    ac_status=$?
13937    grep -v '^ *+' conftest.er1 >conftest.err
13938    rm -f conftest.er1
13939    cat conftest.err >&5
13940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941    (exit $ac_status); } &&
13942 -        { ac_try='test -z "$ac_c_werror_flag"
13943 -                        || test ! -s conftest.err'
13944 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 -  (eval $ac_try) 2>&5
13946 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 +  { (case "(($ac_try" in
13948 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 +  *) ac_try_echo=$ac_try;;
13950 +esac
13951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 +  (eval "$ac_try") 2>&5
13953    ac_status=$?
13954    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955    (exit $ac_status); }; } &&
13956          { ac_try='test -s conftest$ac_exeext'
13957 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 -  (eval $ac_try) 2>&5
13959 +  { (case "(($ac_try" in
13960 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 +  *) ac_try_echo=$ac_try;;
13962 +esac
13963 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 +  (eval "$ac_try") 2>&5
13965    ac_status=$?
13966    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967    (exit $ac_status); }; }; then
13968 @@ -9110,14 +10238,15 @@
13969    echo "$as_me: failed program was:" >&5
13970  sed 's/^/| /' conftest.$ac_ext >&5
13971  
13972 -ac_cv_lib_dld_dld_link=no
13973 +       ac_cv_lib_dld_dld_link=no
13974  fi
13975 -rm -f conftest.err conftest.$ac_objext \
13976 +
13977 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13978        conftest$ac_exeext conftest.$ac_ext
13979  LIBS=$ac_check_lib_save_LIBS
13980  fi
13981 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13982 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13983 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13984 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13985  if test $ac_cv_lib_dld_dld_link = yes; then
13986    lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13987  fi
13988 @@ -9152,13 +10281,13 @@
13989      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13990  
13991      save_LDFLAGS="$LDFLAGS"
13992 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13993 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13994  
13995      save_LIBS="$LIBS"
13996      LIBS="$lt_cv_dlopen_libs $LIBS"
13997  
13998 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13999 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14000 +    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14001 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
14002  if test "${lt_cv_dlopen_self+set}" = set; then
14003    echo $ECHO_N "(cached) $ECHO_C" >&6
14004  else
14005 @@ -9168,7 +10297,7 @@
14006    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14007    lt_status=$lt_dlunknown
14008    cat > conftest.$ac_ext <<EOF
14009 -#line 9171 "configure"
14010 +#line 10300 "configure"
14011  #include "confdefs.h"
14012  
14013  #if HAVE_DLFCN_H
14014 @@ -9225,6 +10354,8 @@
14015        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14016        /* dlclose (self); */
14017      }
14018 +  else
14019 +    puts (dlerror ());
14020  
14021      exit (status);
14022  }
14023 @@ -9234,12 +10365,12 @@
14024    ac_status=$?
14025    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14027 -    (./conftest; exit; ) 2>/dev/null
14028 +    (./conftest; exit; ) >&5 2>/dev/null
14029      lt_status=$?
14030      case x$lt_status in
14031        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14032        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14033 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14034 +      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14035      esac
14036    else :
14037      # compilation failed
14038 @@ -9250,13 +10381,13 @@
14039  
14040  
14041  fi
14042 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14043 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14044 +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14045 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
14046  
14047      if test "x$lt_cv_dlopen_self" = xyes; then
14048 -      LDFLAGS="$LDFLAGS $link_static_flag"
14049 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14050 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14051 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14052 +      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14053 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
14054  if test "${lt_cv_dlopen_self_static+set}" = set; then
14055    echo $ECHO_N "(cached) $ECHO_C" >&6
14056  else
14057 @@ -9266,7 +10397,7 @@
14058    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14059    lt_status=$lt_dlunknown
14060    cat > conftest.$ac_ext <<EOF
14061 -#line 9269 "configure"
14062 +#line 10400 "configure"
14063  #include "confdefs.h"
14064  
14065  #if HAVE_DLFCN_H
14066 @@ -9323,6 +10454,8 @@
14067        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14068        /* dlclose (self); */
14069      }
14070 +  else
14071 +    puts (dlerror ());
14072  
14073      exit (status);
14074  }
14075 @@ -9332,12 +10465,12 @@
14076    ac_status=$?
14077    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14079 -    (./conftest; exit; ) 2>/dev/null
14080 +    (./conftest; exit; ) >&5 2>/dev/null
14081      lt_status=$?
14082      case x$lt_status in
14083        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14084        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14085 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14086 +      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14087      esac
14088    else :
14089      # compilation failed
14090 @@ -9348,8 +10481,8 @@
14091  
14092  
14093  fi
14094 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14095 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14096 +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14097 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14098      fi
14099  
14100      CPPFLAGS="$save_CPPFLAGS"
14101 @@ -9370,19 +10503,19 @@
14102  fi
14103  
14104  
14105 -# Report which librarie types wil actually be built
14106 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14107 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14108 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
14109 -echo "${ECHO_T}$can_build_shared" >&6
14110 +# Report which library types will actually be built
14111 +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14112 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14113 +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14114 +echo "${ECHO_T}$can_build_shared" >&6; }
14115  
14116 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14117 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14118 +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14119 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14120  test "$can_build_shared" = "no" && enable_shared=no
14121  
14122  # On AIX, shared libraries and static libraries use the same namespace, and
14123  # are all built from PIC.
14124 -case "$host_os" in
14125 +case $host_os in
14126  aix3*)
14127    test "$enable_shared" = yes && enable_static=no
14128    if test -n "$RANLIB"; then
14129 @@ -9397,15 +10530,15 @@
14130    fi
14131      ;;
14132  esac
14133 -echo "$as_me:$LINENO: result: $enable_shared" >&5
14134 -echo "${ECHO_T}$enable_shared" >&6
14135 +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14136 +echo "${ECHO_T}$enable_shared" >&6; }
14137  
14138 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14139 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14140 +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14141 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14142  # Make sure either enable_shared or enable_static is yes.
14143  test "$enable_shared" = yes || enable_static=yes
14144 -echo "$as_me:$LINENO: result: $enable_static" >&5
14145 -echo "${ECHO_T}$enable_static" >&6
14146 +{ echo "$as_me:$LINENO: result: $enable_static" >&5
14147 +echo "${ECHO_T}$enable_static" >&6; }
14148  
14149  # The else clause should only fire when bootstrapping the
14150  # libtool distribution, otherwise you forgot to ship ltmain.sh
14151 @@ -9420,7 +10553,7 @@
14152    # Now quote all the things that may contain metacharacters while being
14153    # careful not to overquote the AC_SUBSTed values.  We take copies of the
14154    # variables and quote the copies for generation of the libtool script.
14155 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14156 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14157      SED SHELL STRIP \
14158      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14159      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14160 @@ -9586,6 +10719,9 @@
14161  # A C compiler.
14162  LTCC=$lt_LTCC
14163  
14164 +# LTCC compiler flags.
14165 +LTCFLAGS=$lt_LTCFLAGS
14166 +
14167  # A language-specific compiler.
14168  CC=$lt_compiler
14169  
14170 @@ -9894,11 +11030,11 @@
14171  CC="$lt_save_CC"
14172  
14173  
14174 -# Check whether --with-tags or --without-tags was given.
14175 +# Check whether --with-tags was given.
14176  if test "${with_tags+set}" = set; then
14177 -  withval="$with_tags"
14178 -  tagnames="$withval"
14179 -fi;
14180 +  withval=$with_tags; tagnames="$withval"
14181 +fi
14182 +
14183  
14184  if test -f "$ltmain" && test -n "$tagnames"; then
14185    if test ! -f "${ofile}"; then
14186 @@ -9916,6 +11052,9 @@
14187  echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14188      fi
14189    fi
14190 +  if test -z "$LTCFLAGS"; then
14191 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
14192 +  fi
14193  
14194    # Extract list of available tagged configurations in $ofile.
14195    # Note that this assumes the entire list is on one line.
14196 @@ -9949,7 +11088,7 @@
14197         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14198             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14199             (test "X$CXX" != "Xg++"))) ; then
14200 -         ac_ext=cc
14201 +         ac_ext=cpp
14202  ac_cpp='$CXXCPP $CPPFLAGS'
14203  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205 @@ -9968,6 +11107,7 @@
14206  hardcode_libdir_flag_spec_ld_CXX=
14207  hardcode_libdir_separator_CXX=
14208  hardcode_minus_L_CXX=no
14209 +hardcode_shlibpath_var_CXX=unsupported
14210  hardcode_automatic_CXX=no
14211  module_cmds_CXX=
14212  module_expsym_cmds_CXX=
14213 @@ -9985,7 +11125,7 @@
14214  compiler_lib_search_path_CXX=
14215  
14216  # Source file extension for C++ test sources.
14217 -ac_ext=cc
14218 +ac_ext=cpp
14219  
14220  # Object file extension for compiled C++ test sources.
14221  objext=o
14222 @@ -9995,13 +11135,16 @@
14223  lt_simple_compile_test_code="int some_variable = 0;\n"
14224  
14225  # Code to be used in simple link tests
14226 -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14227 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
14228  
14229  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14230  
14231  # If no C compiler was specified, use CC.
14232  LTCC=${LTCC-"$CC"}
14233  
14234 +# If no C compiler flags were specified, use CFLAGS.
14235 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14236 +
14237  # Allow CC to be a program name with arguments.
14238  compiler=$CC
14239  
14240 @@ -10009,13 +11152,13 @@
14241  # save warnings/boilerplate of simple test code
14242  ac_outfile=conftest.$ac_objext
14243  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14244 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14245 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246  _lt_compiler_boilerplate=`cat conftest.err`
14247  $rm conftest*
14248  
14249  ac_outfile=conftest.$ac_objext
14250  printf "$lt_simple_link_test_code" >conftest.$ac_ext
14251 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14252 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14253  _lt_linker_boilerplate=`cat conftest.err`
14254  $rm conftest*
14255  
14256 @@ -10030,12 +11173,12 @@
14257  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14258    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14259  else
14260 -  unset lt_cv_prog_gnu_ld
14261 +  $as_unset lt_cv_prog_gnu_ld
14262  fi
14263  if test -n "${lt_cv_path_LDCXX+set}"; then
14264    lt_cv_path_LD=$lt_cv_path_LDCXX
14265  else
14266 -  unset lt_cv_path_LD
14267 +  $as_unset lt_cv_path_LD
14268  fi
14269  test -z "${LDCXX+set}" || LD=$LDCXX
14270  CC=${CXX-"c++"}
14271 @@ -10064,18 +11207,18 @@
14272    # Set up default GNU C++ configuration
14273  
14274  
14275 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
14276 +# Check whether --with-gnu-ld was given.
14277  if test "${with_gnu_ld+set}" = set; then
14278 -  withval="$with_gnu_ld"
14279 -  test "$withval" = no || with_gnu_ld=yes
14280 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14281  else
14282    with_gnu_ld=no
14283 -fi;
14284 +fi
14285 +
14286  ac_prog=ld
14287  if test "$GCC" = yes; then
14288    # Check if gcc -print-prog-name=ld gives a path.
14289 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14290 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14291 +  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14292 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14293    case $host in
14294    *-*-mingw*)
14295      # gcc leaves a trailing carriage return which upsets mingw
14296 @@ -10104,11 +11247,11 @@
14297      ;;
14298    esac
14299  elif test "$with_gnu_ld" = yes; then
14300 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
14301 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14302 +  { echo "$as_me:$LINENO: checking for GNU ld" >&5
14303 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14304  else
14305 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14306 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14307 +  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14308 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14309  fi
14310  if test "${lt_cv_path_LD+set}" = set; then
14311    echo $ECHO_N "(cached) $ECHO_C" >&6
14312 @@ -10121,7 +11264,7 @@
14313      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14314        lt_cv_path_LD="$ac_dir/$ac_prog"
14315        # Check to see if the program is GNU ld.  I'd rather use --version,
14316 -      # but apparently some GNU ld's only accept -v.
14317 +      # but apparently some variants of GNU ld only accept -v.
14318        # Break only if it was the GNU/non-GNU ld that we prefer.
14319        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14320        *GNU* | *'with BFD'*)
14321 @@ -10141,21 +11284,21 @@
14322  
14323  LD="$lt_cv_path_LD"
14324  if test -n "$LD"; then
14325 -  echo "$as_me:$LINENO: result: $LD" >&5
14326 -echo "${ECHO_T}$LD" >&6
14327 +  { echo "$as_me:$LINENO: result: $LD" >&5
14328 +echo "${ECHO_T}$LD" >&6; }
14329  else
14330 -  echo "$as_me:$LINENO: result: no" >&5
14331 -echo "${ECHO_T}no" >&6
14332 +  { echo "$as_me:$LINENO: result: no" >&5
14333 +echo "${ECHO_T}no" >&6; }
14334  fi
14335  test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14336  echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14337     { (exit 1); exit 1; }; }
14338 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14339 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14340 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14341 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14342  if test "${lt_cv_prog_gnu_ld+set}" = set; then
14343    echo $ECHO_N "(cached) $ECHO_C" >&6
14344  else
14345 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14346 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14347  case `$LD -v 2>&1 </dev/null` in
14348  *GNU* | *'with BFD'*)
14349    lt_cv_prog_gnu_ld=yes
14350 @@ -10165,8 +11308,8 @@
14351    ;;
14352  esac
14353  fi
14354 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14355 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14356 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14357 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14358  with_gnu_ld=$lt_cv_prog_gnu_ld
14359  
14360  
14361 @@ -10216,8 +11359,8 @@
14362  fi
14363  
14364  # PORTME: fill in a description of your system's C++ link characteristics
14365 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14366 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14367 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14368 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14369  ld_shlibs_CXX=yes
14370  case $host_os in
14371    aix3*)
14372 @@ -10246,6 +11389,7 @@
14373             ;;
14374           esac
14375         done
14376 +       ;;
14377        esac
14378  
14379        exp_sym_flag='-bexport'
14380 @@ -10283,6 +11427,7 @@
14381           hardcode_libdir_flag_spec_CXX='-L$libdir'
14382           hardcode_libdir_separator_CXX=
14383         fi
14384 +       ;;
14385        esac
14386        shared_flag='-shared'
14387        if test "$aix_use_runtimelinking" = yes; then
14388 @@ -10327,24 +11472,36 @@
14389  }
14390  _ACEOF
14391  rm -f conftest.$ac_objext conftest$ac_exeext
14392 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393 -  (eval $ac_link) 2>conftest.er1
14394 +if { (ac_try="$ac_link"
14395 +case "(($ac_try" in
14396 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 +  *) ac_try_echo=$ac_try;;
14398 +esac
14399 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 +  (eval "$ac_link") 2>conftest.er1
14401    ac_status=$?
14402    grep -v '^ *+' conftest.er1 >conftest.err
14403    rm -f conftest.er1
14404    cat conftest.err >&5
14405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406    (exit $ac_status); } &&
14407 -        { ac_try='test -z "$ac_cxx_werror_flag"
14408 -                        || test ! -s conftest.err'
14409 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 -  (eval $ac_try) 2>&5
14411 +        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14412 +  { (case "(($ac_try" in
14413 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 +  *) ac_try_echo=$ac_try;;
14415 +esac
14416 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 +  (eval "$ac_try") 2>&5
14418    ac_status=$?
14419    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420    (exit $ac_status); }; } &&
14421          { ac_try='test -s conftest$ac_exeext'
14422 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 -  (eval $ac_try) 2>&5
14424 +  { (case "(($ac_try" in
14425 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 +  *) ac_try_echo=$ac_try;;
14427 +esac
14428 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 +  (eval "$ac_try") 2>&5
14430    ac_status=$?
14431    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432    (exit $ac_status); }; }; then
14433 @@ -10358,19 +11515,21 @@
14434    echo "$as_me: failed program was:" >&5
14435  sed 's/^/| /' conftest.$ac_ext >&5
14436  
14437 +
14438  fi
14439 -rm -f conftest.err conftest.$ac_objext \
14440 +
14441 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14442        conftest$ac_exeext conftest.$ac_ext
14443  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14444  
14445        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14446  
14447 -      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14448 +      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14449       else
14450        if test "$host_cpu" = ia64; then
14451         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14452         allow_undefined_flag_CXX="-z nodefs"
14453 -       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14454 +       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14455        else
14456         # Determine the default libpath from the value encoded in an empty executable.
14457         cat >conftest.$ac_ext <<_ACEOF
14458 @@ -10389,24 +11548,36 @@
14459  }
14460  _ACEOF
14461  rm -f conftest.$ac_objext conftest$ac_exeext
14462 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 -  (eval $ac_link) 2>conftest.er1
14464 +if { (ac_try="$ac_link"
14465 +case "(($ac_try" in
14466 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 +  *) ac_try_echo=$ac_try;;
14468 +esac
14469 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 +  (eval "$ac_link") 2>conftest.er1
14471    ac_status=$?
14472    grep -v '^ *+' conftest.er1 >conftest.err
14473    rm -f conftest.er1
14474    cat conftest.err >&5
14475    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476    (exit $ac_status); } &&
14477 -        { ac_try='test -z "$ac_cxx_werror_flag"
14478 -                        || test ! -s conftest.err'
14479 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 -  (eval $ac_try) 2>&5
14481 +        { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14482 +  { (case "(($ac_try" in
14483 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 +  *) ac_try_echo=$ac_try;;
14485 +esac
14486 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 +  (eval "$ac_try") 2>&5
14488    ac_status=$?
14489    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490    (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest$ac_exeext'
14492 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 -  (eval $ac_try) 2>&5
14494 +  { (case "(($ac_try" in
14495 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 +  *) ac_try_echo=$ac_try;;
14497 +esac
14498 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 +  (eval "$ac_try") 2>&5
14500    ac_status=$?
14501    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502    (exit $ac_status); }; }; then
14503 @@ -10420,8 +11591,10 @@
14504    echo "$as_me: failed program was:" >&5
14505  sed 's/^/| /' conftest.$ac_ext >&5
14506  
14507 +
14508  fi
14509 -rm -f conftest.err conftest.$ac_objext \
14510 +
14511 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14512        conftest$ac_exeext conftest.$ac_ext
14513  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14514  
14515 @@ -10430,16 +11603,26 @@
14516         # -berok will link without error, but may produce a broken library.
14517         no_undefined_flag_CXX=' ${wl}-bernotok'
14518         allow_undefined_flag_CXX=' ${wl}-berok'
14519 -       # -bexpall does not export symbols beginning with underscore (_)
14520 -       always_export_symbols_CXX=yes
14521         # Exported symbols can be pulled into shared objects from archives
14522 -       whole_archive_flag_spec_CXX=' '
14523 +       whole_archive_flag_spec_CXX='$convenience'
14524         archive_cmds_need_lc_CXX=yes
14525 -       # This is similar to how AIX traditionally builds it's shared libraries.
14526 -       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14527 +       # This is similar to how AIX traditionally builds its shared libraries.
14528 +       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14529        fi
14530      fi
14531      ;;
14532 +
14533 +  beos*)
14534 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14535 +      allow_undefined_flag_CXX=unsupported
14536 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14537 +      # support --undefined.  This deserves some investigation.  FIXME
14538 +      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14539 +    else
14540 +      ld_shlibs_CXX=no
14541 +    fi
14542 +    ;;
14543 +
14544    chorus*)
14545      case $cc_basename in
14546        *)
14547 @@ -10449,7 +11632,6 @@
14548      esac
14549      ;;
14550  
14551 -
14552    cygwin* | mingw* | pw32*)
14553      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14554      # as there is no search path for DLLs.
14555 @@ -10459,7 +11641,7 @@
14556      enable_shared_with_static_runtimes_CXX=yes
14557  
14558      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14559 -      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14560 +      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14561        # If the export-symbols file already is a .def file (1st line
14562        # is EXPORTS), use it as is; otherwise, prepend...
14563        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14564 @@ -10468,13 +11650,13 @@
14565         echo EXPORTS > $output_objdir/$soname.def;
14566         cat $export_symbols >> $output_objdir/$soname.def;
14567        fi~
14568 -      $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'
14569 +      $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'
14570      else
14571        ld_shlibs_CXX=no
14572      fi
14573    ;;
14574        darwin* | rhapsody*)
14575 -        case "$host_os" in
14576 +        case $host_os in
14577          rhapsody* | darwin1.[012])
14578           allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14579           ;;
14580 @@ -10512,7 +11694,7 @@
14581            archive_cmds_CXX='$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'
14582          fi
14583          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14584 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14585 +        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14586            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14587              archive_expsym_cmds_CXX='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}'
14588            else
14589 @@ -10525,7 +11707,7 @@
14590           output_verbose_link_cmd='echo'
14591            archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14592            module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14593 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14594 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14595            archive_expsym_cmds_CXX='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}'
14596            module_expsym_cmds_CXX='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}'
14597            ;;
14598 @@ -10560,7 +11742,7 @@
14599    freebsd-elf*)
14600      archive_cmds_need_lc_CXX=no
14601      ;;
14602 -  freebsd* | kfreebsd*-gnu | dragonfly*)
14603 +  freebsd* | dragonfly*)
14604      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14605      # conventions
14606      ld_shlibs_CXX=yes
14607 @@ -10605,33 +11787,22 @@
14608      ;;
14609    hpux10*|hpux11*)
14610      if test $with_gnu_ld = no; then
14611 -      case "$host_cpu" in
14612 -      hppa*64*)
14613 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14614 +      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14615 +      hardcode_libdir_separator_CXX=:
14616 +
14617 +      case $host_cpu in
14618 +      hppa*64*|ia64*)
14619         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14620 -       hardcode_libdir_separator_CXX=:
14621 -        ;;
14622 -      ia64*)
14623 -       hardcode_libdir_flag_spec_CXX='-L$libdir'
14624          ;;
14625        *)
14626 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14627 -       hardcode_libdir_separator_CXX=:
14628         export_dynamic_flag_spec_CXX='${wl}-E'
14629          ;;
14630        esac
14631      fi
14632 -    case "$host_cpu" in
14633 -    hppa*64*)
14634 -      hardcode_direct_CXX=no
14635 -      hardcode_shlibpath_var_CXX=no
14636 -      ;;
14637 -    ia64*)
14638 +    case $host_cpu in
14639 +    hppa*64*|ia64*)
14640        hardcode_direct_CXX=no
14641        hardcode_shlibpath_var_CXX=no
14642 -      hardcode_minus_L_CXX=yes # Not in the search PATH,
14643 -                                             # but as the default
14644 -                                             # location of the library.
14645        ;;
14646      *)
14647        hardcode_direct_CXX=yes
14648 @@ -10647,9 +11818,12 @@
14649         ld_shlibs_CXX=no
14650         ;;
14651        aCC*)
14652 -       case "$host_cpu" in
14653 -       hppa*64*|ia64*)
14654 -         archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14655 +       case $host_cpu in
14656 +       hppa*64*)
14657 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14658 +         ;;
14659 +       ia64*)
14660 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14661           ;;
14662         *)
14663           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14664 @@ -10668,9 +11842,12 @@
14665        *)
14666         if test "$GXX" = yes; then
14667           if test $with_gnu_ld = no; then
14668 -           case "$host_cpu" in
14669 -           ia64*|hppa*64*)
14670 -             archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14671 +           case $host_cpu in
14672 +           hppa*64*)
14673 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14674 +             ;;
14675 +           ia64*)
14676 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14677               ;;
14678             *)
14679               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680 @@ -10684,6 +11861,20 @@
14681         ;;
14682      esac
14683      ;;
14684 +  interix3*)
14685 +    hardcode_direct_CXX=no
14686 +    hardcode_shlibpath_var_CXX=no
14687 +    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14688 +    export_dynamic_flag_spec_CXX='${wl}-E'
14689 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14690 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
14691 +    # default) and relocated if they conflict, which is a slow very memory
14692 +    # consuming and fragmenting process.  To avoid this, we pick a random,
14693 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14694 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14695 +    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14696 +    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14697 +    ;;
14698    irix5* | irix6*)
14699      case $cc_basename in
14700        CC*)
14701 @@ -10710,7 +11901,7 @@
14702      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14703      hardcode_libdir_separator_CXX=:
14704      ;;
14705 -  linux*)
14706 +  linux* | k*bsd*-gnu)
14707      case $cc_basename in
14708        KCC*)
14709         # Kuck and Associates, Inc. (KAI) C++ Compiler
14710 @@ -10769,7 +11960,7 @@
14711  
14712         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14713         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14714 -       whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14715 +       whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14716          ;;
14717        cxx*)
14718         # Compaq C++
14719 @@ -10812,7 +12003,7 @@
14720         ;;
14721      esac
14722      ;;
14723 -  netbsd*)
14724 +  netbsd* | netbsdelf*-gnu)
14725      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14726        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14727        wlarc=
14728 @@ -10966,10 +12157,15 @@
14729      # FIXME: insert proper C++ library support
14730      ld_shlibs_CXX=no
14731      ;;
14732 -  sco*)
14733 -    archive_cmds_need_lc_CXX=no
14734 +  sunos4*)
14735      case $cc_basename in
14736        CC*)
14737 +       # Sun C++ 4.x
14738 +       # FIXME: insert proper C++ library support
14739 +       ld_shlibs_CXX=no
14740 +       ;;
14741 +      lcc*)
14742 +       # Lucid
14743         # FIXME: insert proper C++ library support
14744         ld_shlibs_CXX=no
14745         ;;
14746 @@ -10979,32 +12175,15 @@
14747         ;;
14748      esac
14749      ;;
14750 -  sunos4*)
14751 -    case $cc_basename in
14752 -      CC*)
14753 -       # Sun C++ 4.x
14754 -       # FIXME: insert proper C++ library support
14755 -       ld_shlibs_CXX=no
14756 -       ;;
14757 -      lcc*)
14758 -       # Lucid
14759 -       # FIXME: insert proper C++ library support
14760 -       ld_shlibs_CXX=no
14761 -       ;;
14762 -      *)
14763 -       # FIXME: insert proper C++ library support
14764 -       ld_shlibs_CXX=no
14765 -       ;;
14766 -    esac
14767 -    ;;
14768 -  solaris*)
14769 +  solaris*)
14770      case $cc_basename in
14771        CC*)
14772         # Sun C++ 4.2, 5.x and Centerline C++
14773 +        archive_cmds_need_lc_CXX=yes
14774         no_undefined_flag_CXX=' -zdefs'
14775 -       archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14776 +       archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14778 -       $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'
14779 +       $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'
14780  
14781         hardcode_libdir_flag_spec_CXX='-R$libdir'
14782         hardcode_shlibpath_var_CXX=no
14783 @@ -11024,15 +12203,7 @@
14784         esac
14785         link_all_deplibs_CXX=yes
14786  
14787 -       # Commands to make compiler produce verbose output that lists
14788 -       # what "hidden" libraries, object files and flags are used when
14789 -       # linking a shared library.
14790 -       #
14791 -       # There doesn't appear to be a way to prevent this compiler from
14792 -       # explicitly linking system object files so we need to strip them
14793 -       # from the output so that they don't get included in the library
14794 -       # dependencies.
14795 -       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'
14796 +       output_verbose_link_cmd='echo'
14797  
14798         # Archives containing C++ object files must be created using
14799         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14800 @@ -11078,8 +12249,59 @@
14801         ;;
14802      esac
14803      ;;
14804 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14805 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14806 +    no_undefined_flag_CXX='${wl}-z,text'
14807 +    archive_cmds_need_lc_CXX=no
14808 +    hardcode_shlibpath_var_CXX=no
14809 +    runpath_var='LD_RUN_PATH'
14810 +
14811 +    case $cc_basename in
14812 +      CC*)
14813 +       archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14814 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14815 +       ;;
14816 +      *)
14817 +       archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 +       ;;
14820 +    esac
14821 +    ;;
14822 +  sysv5* | sco3.2v5* | sco5v6*)
14823 +    # Note: We can NOT use -z defs as we might desire, because we do not
14824 +    # link with -lc, and that would cause any symbols used from libc to
14825 +    # always be unresolved, which means just about no library would
14826 +    # ever link correctly.  If we're not using GNU ld we use -z text
14827 +    # though, which does catch some bad symbols but isn't as heavy-handed
14828 +    # as -z defs.
14829 +    # For security reasons, it is highly recommended that you always
14830 +    # use absolute paths for naming shared libraries, and exclude the
14831 +    # DT_RUNPATH tag from executables and libraries.  But doing so
14832 +    # requires that you compile everything twice, which is a pain.
14833 +    # So that behaviour is only enabled if SCOABSPATH is set to a
14834 +    # non-empty value in the environment.  Most likely only useful for
14835 +    # creating official distributions of packages.
14836 +    # This is a hack until libtool officially supports absolute path
14837 +    # names for shared libraries.
14838 +    no_undefined_flag_CXX='${wl}-z,text'
14839 +    allow_undefined_flag_CXX='${wl}-z,nodefs'
14840      archive_cmds_need_lc_CXX=no
14841 +    hardcode_shlibpath_var_CXX=no
14842 +    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14843 +    hardcode_libdir_separator_CXX=':'
14844 +    link_all_deplibs_CXX=yes
14845 +    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14846 +    runpath_var='LD_RUN_PATH'
14847 +
14848 +    case $cc_basename in
14849 +      CC*)
14850 +       archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 +       ;;
14853 +      *)
14854 +       archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14856 +       ;;
14857 +    esac
14858      ;;
14859    tandem*)
14860      case $cc_basename in
14861 @@ -11103,8 +12325,8 @@
14862      ld_shlibs_CXX=no
14863      ;;
14864  esac
14865 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14866 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
14867 +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14868 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14869  test "$ld_shlibs_CXX" = no && can_build_shared=no
14870  
14871  GCC_CXX="$GXX"
14872 @@ -11136,7 +12358,7 @@
14873    # The `*' in the case matches for architectures that use `case' in
14874    # $output_verbose_cmd can trigger glob expansion during the loop
14875    # eval without this substitution.
14876 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14877 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14878  
14879    for p in `eval $output_verbose_link_cmd`; do
14880      case $p in
14881 @@ -11212,6 +12434,29 @@
14882  
14883  $rm -f confest.$objext
14884  
14885 +# PORTME: override above test on systems where it is broken
14886 +case $host_os in
14887 +interix3*)
14888 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14889 +  # hack all around it, let's just trust "g++" to DTRT.
14890 +  predep_objects_CXX=
14891 +  postdep_objects_CXX=
14892 +  postdeps_CXX=
14893 +  ;;
14894 +
14895 +solaris*)
14896 +  case $cc_basename in
14897 +  CC*)
14898 +    # Adding this requires a known-good setup of shared libraries for
14899 +    # Sun compiler versions before 5.6, else PIC objects from an old
14900 +    # archive will be linked into the output, leading to subtle bugs.
14901 +    postdeps_CXX='-lCstd -lCrun'
14902 +    ;;
14903 +  esac
14904 +  ;;
14905 +esac
14906 +
14907 +
14908  case " $postdeps_CXX " in
14909  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14910  esac
14911 @@ -11220,8 +12465,8 @@
14912  lt_prog_compiler_pic_CXX=
14913  lt_prog_compiler_static_CXX=
14914  
14915 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14916 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14917 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14918 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14919  
14920    # C++ specific cases for pic, static, wl, etc.
14921    if test "$GXX" = yes; then
14922 @@ -11259,6 +12504,10 @@
14923        # DJGPP does not support shared libraries at all
14924        lt_prog_compiler_pic_CXX=
14925        ;;
14926 +    interix3*)
14927 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14928 +      # Instead, we relocate shared libraries at runtime.
14929 +      ;;
14930      sysv4*MP*)
14931        if test -d /usr/nec; then
14932         lt_prog_compiler_pic_CXX=-Kconform_pic
14933 @@ -11267,7 +12516,7 @@
14934      hpux*)
14935        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14936        # not for PA HP-UX.
14937 -      case "$host_cpu" in
14938 +      case $host_cpu in
14939        hppa*64*|ia64*)
14940         ;;
14941        *)
14942 @@ -11321,22 +12570,22 @@
14943             ;;
14944         esac
14945         ;;
14946 -      freebsd* | kfreebsd*-gnu | dragonfly*)
14947 +      freebsd* | dragonfly*)
14948         # FreeBSD uses GNU C++
14949         ;;
14950        hpux9* | hpux10* | hpux11*)
14951         case $cc_basename in
14952           CC*)
14953             lt_prog_compiler_wl_CXX='-Wl,'
14954 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14955 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14956             if test "$host_cpu" != ia64; then
14957               lt_prog_compiler_pic_CXX='+Z'
14958             fi
14959             ;;
14960           aCC*)
14961             lt_prog_compiler_wl_CXX='-Wl,'
14962 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14963 -           case "$host_cpu" in
14964 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14965 +           case $host_cpu in
14966             hppa*64*|ia64*)
14967               # +Z the default
14968               ;;
14969 @@ -11349,6 +12598,10 @@
14970             ;;
14971         esac
14972         ;;
14973 +      interix*)
14974 +       # This is c89, which is MS Visual C++ (no shared libs)
14975 +       # Anyone wants to do a port?
14976 +       ;;
14977        irix5* | irix6* | nonstopux*)
14978         case $cc_basename in
14979           CC*)
14980 @@ -11360,7 +12613,7 @@
14981             ;;
14982         esac
14983         ;;
14984 -      linux*)
14985 +      linux* | k*bsd*-gnu)
14986         case $cc_basename in
14987           KCC*)
14988             # KAI C++ Compiler
14989 @@ -11377,7 +12630,7 @@
14990             # Portland Group C++ compiler.
14991             lt_prog_compiler_wl_CXX='-Wl,'
14992             lt_prog_compiler_pic_CXX='-fpic'
14993 -           lt_prog_compiler_static_CXX='-static'
14994 +           lt_prog_compiler_static_CXX='-Bstatic'
14995             ;;
14996           cxx*)
14997             # Compaq C++
14998 @@ -11403,7 +12656,7 @@
14999             ;;
15000         esac
15001         ;;
15002 -      netbsd*)
15003 +      netbsd* | netbsdelf*-gnu)
15004         ;;
15005        osf3* | osf4* | osf5*)
15006         case $cc_basename in
15007 @@ -11428,15 +12681,6 @@
15008         ;;
15009        psos*)
15010         ;;
15011 -      sco*)
15012 -       case $cc_basename in
15013 -         CC*)
15014 -           lt_prog_compiler_pic_CXX='-fPIC'
15015 -           ;;
15016 -         *)
15017 -           ;;
15018 -       esac
15019 -       ;;
15020        solaris*)
15021         case $cc_basename in
15022           CC*)
15023 @@ -11478,7 +12722,14 @@
15024             ;;
15025         esac
15026         ;;
15027 -      unixware*)
15028 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15029 +       case $cc_basename in
15030 +         CC*)
15031 +           lt_prog_compiler_wl_CXX='-Wl,'
15032 +           lt_prog_compiler_pic_CXX='-KPIC'
15033 +           lt_prog_compiler_static_CXX='-Bstatic'
15034 +           ;;
15035 +       esac
15036         ;;
15037        vxworks*)
15038         ;;
15039 @@ -11488,16 +12739,16 @@
15040      esac
15041    fi
15042  
15043 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15044 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15045 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15046 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15047  
15048  #
15049  # Check to make sure the PIC flag actually works.
15050  #
15051  if test -n "$lt_prog_compiler_pic_CXX"; then
15052  
15053 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15054 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15055 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15056 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15057  if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15058    echo $ECHO_N "(cached) $ECHO_C" >&6
15059  else
15060 @@ -11511,28 +12762,28 @@
15061     # with a dollar sign (not a hyphen), so the echo should work correctly.
15062     # The option is referenced via a variable to avoid confusing sed.
15063     lt_compile=`echo "$ac_compile" | $SED \
15064 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15065 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15066     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15067     -e 's:$: $lt_compiler_flag:'`
15068 -   (eval echo "\"\$as_me:11517: $lt_compile\"" >&5)
15069 +   (eval echo "\"\$as_me:12768: $lt_compile\"" >&5)
15070     (eval "$lt_compile" 2>conftest.err)
15071     ac_status=$?
15072     cat conftest.err >&5
15073 -   echo "$as_me:11521: \$? = $ac_status" >&5
15074 +   echo "$as_me:12772: \$? = $ac_status" >&5
15075     if (exit $ac_status) && test -s "$ac_outfile"; then
15076       # The compiler can only warn and ignore the option if not recognized
15077       # So say no if there are warnings other than the usual output.
15078 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15079 -     $SED '/^$/d' conftest.err >conftest.er2
15080 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15081 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15082 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15083 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15084         lt_prog_compiler_pic_works_CXX=yes
15085       fi
15086     fi
15087     $rm conftest*
15088  
15089  fi
15090 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15091 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
15092 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15093 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
15094  
15095  if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15096      case $lt_prog_compiler_pic_CXX in
15097 @@ -11545,7 +12796,7 @@
15098  fi
15099  
15100  fi
15101 -case "$host_os" in
15102 +case $host_os in
15103    # For platforms which do not support PIC, -DPIC is meaningless:
15104    *djgpp*)
15105      lt_prog_compiler_pic_CXX=
15106 @@ -11555,8 +12806,50 @@
15107      ;;
15108  esac
15109  
15110 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15111 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15112 +#
15113 +# Check to make sure the static flag actually works.
15114 +#
15115 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15116 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15117 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15118 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15119 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15120 +else
15121 +  lt_prog_compiler_static_works_CXX=no
15122 +   save_LDFLAGS="$LDFLAGS"
15123 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15124 +   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15125 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15126 +     # The linker can only warn and ignore the option if not recognized
15127 +     # So say no if there are warnings
15128 +     if test -s conftest.err; then
15129 +       # Append any errors to the config.log.
15130 +       cat conftest.err 1>&5
15131 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15132 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15133 +       if diff conftest.exp conftest.er2 >/dev/null; then
15134 +         lt_prog_compiler_static_works_CXX=yes
15135 +       fi
15136 +     else
15137 +       lt_prog_compiler_static_works_CXX=yes
15138 +     fi
15139 +   fi
15140 +   $rm conftest*
15141 +   LDFLAGS="$save_LDFLAGS"
15142 +
15143 +fi
15144 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15145 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
15146 +
15147 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15148 +    :
15149 +else
15150 +    lt_prog_compiler_static_CXX=
15151 +fi
15152 +
15153 +
15154 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15155 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15156  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15157    echo $ECHO_N "(cached) $ECHO_C" >&6
15158  else
15159 @@ -11573,25 +12866,25 @@
15160     # Note that $ac_compile itself does not contain backslashes and begins
15161     # with a dollar sign (not a hyphen), so the echo should work correctly.
15162     lt_compile=`echo "$ac_compile" | $SED \
15163 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15164 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15165     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15166     -e 's:$: $lt_compiler_flag:'`
15167 -   (eval echo "\"\$as_me:11579: $lt_compile\"" >&5)
15168 +   (eval echo "\"\$as_me:12872: $lt_compile\"" >&5)
15169     (eval "$lt_compile" 2>out/conftest.err)
15170     ac_status=$?
15171     cat out/conftest.err >&5
15172 -   echo "$as_me:11583: \$? = $ac_status" >&5
15173 +   echo "$as_me:12876: \$? = $ac_status" >&5
15174     if (exit $ac_status) && test -s out/conftest2.$ac_objext
15175     then
15176       # The compiler can only warn and ignore the option if not recognized
15177       # So say no if there are warnings
15178 -     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15179 -     $SED '/^$/d' out/conftest.err >out/conftest.er2
15180 -     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15181 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15182 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15183 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15184         lt_cv_prog_compiler_c_o_CXX=yes
15185       fi
15186     fi
15187 -   chmod u+w .
15188 +   chmod u+w . 2>&5
15189     $rm conftest*
15190     # SGI C++ compiler will create directory out/ii_files/ for
15191     # template instantiation
15192 @@ -11602,23 +12895,23 @@
15193     $rm conftest*
15194  
15195  fi
15196 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15197 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15198 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15199 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15200  
15201  
15202  hard_links="nottested"
15203  if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15204    # do not overwrite the value of need_locks provided by the user
15205 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15206 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15207 +  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15208 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15209    hard_links=yes
15210    $rm conftest*
15211    ln conftest.a conftest.b 2>/dev/null && hard_links=no
15212    touch conftest.a
15213    ln conftest.a conftest.b 2>&5 || hard_links=no
15214    ln conftest.a conftest.b 2>/dev/null && hard_links=no
15215 -  echo "$as_me:$LINENO: result: $hard_links" >&5
15216 -echo "${ECHO_T}$hard_links" >&6
15217 +  { echo "$as_me:$LINENO: result: $hard_links" >&5
15218 +echo "${ECHO_T}$hard_links" >&6; }
15219    if test "$hard_links" = no; then
15220      { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15221  echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15222 @@ -11628,8 +12921,8 @@
15223    need_locks=no
15224  fi
15225  
15226 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15228 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15229 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15230  
15231    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15232    case $host_os in
15233 @@ -11648,20 +12941,18 @@
15234    cygwin* | mingw*)
15235      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15236    ;;
15237 +  linux* | k*bsd*-gnu)
15238 +    link_all_deplibs_CXX=no
15239 +  ;;
15240    *)
15241      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15242    ;;
15243    esac
15244  
15245 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15246 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
15247 +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15248 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15249  test "$ld_shlibs_CXX" = no && can_build_shared=no
15250  
15251 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15252 -if test "$GCC" = yes; then
15253 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15254 -fi
15255 -
15256  #
15257  # Do we need to explicitly link libc?
15258  #
15259 @@ -11679,8 +12970,8 @@
15260        # Test whether the compiler implicitly links with -lc since on some
15261        # systems, -lgcc has to come before -lc. If gcc already passes -lc
15262        # to ld, don't add -lc before -lgcc.
15263 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15264 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15265 +      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15266 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15267        $rm conftest*
15268        printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15269  
15270 @@ -11694,6 +12985,7 @@
15271          libobjs=conftest.$ac_objext
15272          deplibs=
15273          wl=$lt_prog_compiler_wl_CXX
15274 +       pic_flag=$lt_prog_compiler_pic_CXX
15275          compiler_flags=-v
15276          linker_flags=-v
15277          verstring=
15278 @@ -11716,16 +13008,16 @@
15279          cat conftest.err 1>&5
15280        fi
15281        $rm conftest*
15282 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15283 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15284 +      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15285 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15286        ;;
15287      esac
15288    fi
15289    ;;
15290  esac
15291  
15292 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15293 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15294 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15295 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15296  library_names_spec=
15297  libname_spec='lib$name'
15298  soname_spec=
15299 @@ -11854,7 +13146,8 @@
15300        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15301        dldir=$destdir/`dirname \$dlpath`~
15302        test -d \$dldir || mkdir -p \$dldir~
15303 -      $install_prog $dir/$dlname \$dldir/$dlname'
15304 +      $install_prog $dir/$dlname \$dldir/$dlname~
15305 +      chmod a+x \$dldir/$dlname'
15306      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15307        dlpath=$dir/\$dldll~
15308         $rm \$dlpath'
15309 @@ -11889,30 +13182,6 @@
15310      esac
15311      ;;
15312  
15313 -  linux*)
15314 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15315 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15316 -      supports_anon_versioning=no
15317 -      case `$LD -v 2>/dev/null` in
15318 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15319 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15320 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15321 -        *\ 2.11.*) ;; # other 2.11 versions
15322 -        *) supports_anon_versioning=yes ;;
15323 -      esac
15324 -      if test $supports_anon_versioning = yes; then
15325 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15326 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15327 -$echo "local: *; };" >> $output_objdir/$libname.ver~
15328 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15329 -      else
15330 -        $archive_expsym_cmds="$archive_cmds"
15331 -      fi
15332 -    else
15333 -      ld_shlibs=no
15334 -    fi
15335 -    ;;
15336 -
15337    *)
15338      library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15339      ;;
15340 @@ -11931,7 +13200,7 @@
15341    soname_spec='${libname}${release}${major}$shared_ext'
15342    shlibpath_overrides_runpath=yes
15343    shlibpath_var=DYLD_LIBRARY_PATH
15344 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15345 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15346    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15347    if test "$GCC" = yes; then
15348      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"`
15349 @@ -11954,22 +13223,17 @@
15350    dynamic_linker=no
15351    ;;
15352  
15353 -kfreebsd*-gnu)
15354 -  version_type=linux
15355 -  need_lib_prefix=no
15356 -  need_version=no
15357 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15358 -  soname_spec='${libname}${release}${shared_ext}$major'
15359 -  shlibpath_var=LD_LIBRARY_PATH
15360 -  shlibpath_overrides_runpath=no
15361 -  hardcode_into_libs=yes
15362 -  dynamic_linker='GNU ld.so'
15363 -  ;;
15364 -
15365  freebsd* | dragonfly*)
15366    # DragonFly does not have aout.  When/if they implement a new
15367    # versioning mechanism, adjust this.
15368 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15369 +  if test -x /usr/bin/objformat; then
15370 +    objformat=`/usr/bin/objformat`
15371 +  else
15372 +    case $host_os in
15373 +    freebsd[123]*) objformat=aout ;;
15374 +    *) objformat=elf ;;
15375 +    esac
15376 +  fi
15377    version_type=freebsd-$objformat
15378    case $version_type in
15379      freebsd-elf*)
15380 @@ -11991,10 +13255,15 @@
15381      shlibpath_overrides_runpath=yes
15382      hardcode_into_libs=yes
15383      ;;
15384 -  *) # from 3.2 on
15385 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15386 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15387      shlibpath_overrides_runpath=no
15388      hardcode_into_libs=yes
15389      ;;
15390 +  freebsd*) # from 4.6 on
15391 +    shlibpath_overrides_runpath=yes
15392 +    hardcode_into_libs=yes
15393 +    ;;
15394    esac
15395    ;;
15396  
15397 @@ -12014,7 +13283,7 @@
15398    version_type=sunos
15399    need_lib_prefix=no
15400    need_version=no
15401 -  case "$host_cpu" in
15402 +  case $host_cpu in
15403    ia64*)
15404      shrext_cmds='.so'
15405      hardcode_into_libs=yes
15406 @@ -12054,6 +13323,18 @@
15407    postinstall_cmds='chmod 555 $lib'
15408    ;;
15409  
15410 +interix3*)
15411 +  version_type=linux
15412 +  need_lib_prefix=no
15413 +  need_version=no
15414 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 +  soname_spec='${libname}${release}${shared_ext}$major'
15416 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417 +  shlibpath_var=LD_LIBRARY_PATH
15418 +  shlibpath_overrides_runpath=no
15419 +  hardcode_into_libs=yes
15420 +  ;;
15421 +
15422  irix5* | irix6* | nonstopux*)
15423    case $host_os in
15424      nonstopux*) version_type=nonstopux ;;
15425 @@ -12097,7 +13378,7 @@
15426    ;;
15427  
15428  # This must be Linux ELF.
15429 -linux*)
15430 +linux* | k*bsd*-gnu)
15431    version_type=linux
15432    need_lib_prefix=no
15433    need_version=no
15434 @@ -12117,13 +13398,6 @@
15435      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15436    fi
15437  
15438 -  case $host_cpu:$lt_cv_cc_64bit_output in
15439 -  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
15440 -    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
15441 -    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
15442 -    ;;
15443 -  esac
15444 -
15445    # We used to test for /lib/ld.so.1 and disable shared libraries on
15446    # powerpc, because MkLinux only supported shared libraries with the
15447    # GNU dynamic linker.  Since this was broken with cross compilers,
15448 @@ -12131,33 +13405,9 @@
15449    # people can always --disable-shared, the test was removed, and we
15450    # assume the GNU/Linux dynamic linker is in use.
15451    dynamic_linker='GNU/Linux ld.so'
15452 -
15453 -  # Find out which ABI we are using (multilib Linux x86_64 hack).
15454 -  libsuff=
15455 -  case "$host_cpu" in
15456 -  x86_64*)
15457 -    echo '#line 12139 "configure"' > conftest.$ac_ext
15458 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 -  (eval $ac_compile) 2>&5
15460 -  ac_status=$?
15461 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 -  (exit $ac_status); }; then
15463 -      case `/usr/bin/file conftest.$ac_objext` in
15464 -      *64-bit*)
15465 -        libsuff=64
15466 -        ;;
15467 -      esac
15468 -    fi
15469 -    rm -rf conftest*
15470 -    ;;
15471 -  *)
15472 -    ;;
15473 -  esac
15474 -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15475 -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15476    ;;
15477  
15478 -knetbsd*-gnu)
15479 +netbsdelf*-gnu)
15480    version_type=linux
15481    need_lib_prefix=no
15482    need_version=no
15483 @@ -12166,7 +13416,7 @@
15484    shlibpath_var=LD_LIBRARY_PATH
15485    shlibpath_overrides_runpath=no
15486    hardcode_into_libs=yes
15487 -  dynamic_linker='GNU ld.so'
15488 +  dynamic_linker='NetBSD ld.elf_so'
15489    ;;
15490  
15491  netbsd*)
15492 @@ -12206,6 +13456,7 @@
15493  
15494  openbsd*)
15495    version_type=sunos
15496 +  sys_lib_dlsearch_path_spec="/usr/lib"
15497    need_lib_prefix=no
15498    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15499    case $host_os in
15500 @@ -12249,13 +13500,6 @@
15501    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15502    ;;
15503  
15504 -sco3.2v5*)
15505 -  version_type=osf
15506 -  soname_spec='${libname}${release}${shared_ext}$major'
15507 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 -  shlibpath_var=LD_LIBRARY_PATH
15509 -  ;;
15510 -
15511  solaris*)
15512    version_type=linux
15513    need_lib_prefix=no
15514 @@ -12281,7 +13525,7 @@
15515    need_version=yes
15516    ;;
15517  
15518 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15519 +sysv4 | sysv4.3*)
15520    version_type=linux
15521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522    soname_spec='${libname}${release}${shared_ext}$major'
15523 @@ -12314,6 +13558,29 @@
15524    fi
15525    ;;
15526  
15527 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15528 +  version_type=freebsd-elf
15529 +  need_lib_prefix=no
15530 +  need_version=no
15531 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15532 +  soname_spec='${libname}${release}${shared_ext}$major'
15533 +  shlibpath_var=LD_LIBRARY_PATH
15534 +  hardcode_into_libs=yes
15535 +  if test "$with_gnu_ld" = yes; then
15536 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15537 +    shlibpath_overrides_runpath=no
15538 +  else
15539 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15540 +    shlibpath_overrides_runpath=yes
15541 +    case $host_os in
15542 +      sco3.2v5*)
15543 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15544 +       ;;
15545 +    esac
15546 +  fi
15547 +  sys_lib_dlsearch_path_spec='/usr/lib'
15548 +  ;;
15549 +
15550  uts4*)
15551    version_type=linux
15552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 @@ -12325,12 +13592,17 @@
15554    dynamic_linker=no
15555    ;;
15556  esac
15557 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15558 -echo "${ECHO_T}$dynamic_linker" >&6
15559 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15560 +echo "${ECHO_T}$dynamic_linker" >&6; }
15561  test "$dynamic_linker" = no && can_build_shared=no
15562  
15563 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15564 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15565 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15566 +if test "$GCC" = yes; then
15567 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15568 +fi
15569 +
15570 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15571 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15572  hardcode_action_CXX=
15573  if test -n "$hardcode_libdir_flag_spec_CXX" || \
15574     test -n "$runpath_var_CXX" || \
15575 @@ -12354,8 +13626,8 @@
15576    # directories.
15577    hardcode_action_CXX=unsupported
15578  fi
15579 -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15580 -echo "${ECHO_T}$hardcode_action_CXX" >&6
15581 +{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15582 +echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15583  
15584  if test "$hardcode_action_CXX" = relink; then
15585    # Fast installation is not supported
15586 @@ -12366,1263 +13638,431 @@
15587    enable_fast_install=needless
15588  fi
15589  
15590 -striplib=
15591 -old_striplib=
15592 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15593 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15594 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15595 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15596 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15597 -  echo "$as_me:$LINENO: result: yes" >&5
15598 -echo "${ECHO_T}yes" >&6
15599 -else
15600 -# FIXME - insert some real tests, host_os isn't really good enough
15601 -  case $host_os in
15602 -   darwin*)
15603 -       if test -n "$STRIP" ; then
15604 -         striplib="$STRIP -x"
15605 -         echo "$as_me:$LINENO: result: yes" >&5
15606 -echo "${ECHO_T}yes" >&6
15607 -       else
15608 -  echo "$as_me:$LINENO: result: no" >&5
15609 -echo "${ECHO_T}no" >&6
15610 -fi
15611 -       ;;
15612 -   *)
15613 -  echo "$as_me:$LINENO: result: no" >&5
15614 -echo "${ECHO_T}no" >&6
15615 -    ;;
15616 -  esac
15617 -fi
15618 -
15619 -if test "x$enable_dlopen" != xyes; then
15620 -  enable_dlopen=unknown
15621 -  enable_dlopen_self=unknown
15622 -  enable_dlopen_self_static=unknown
15623 -else
15624 -  lt_cv_dlopen=no
15625 -  lt_cv_dlopen_libs=
15626 -
15627 -  case $host_os in
15628 -  beos*)
15629 -    lt_cv_dlopen="load_add_on"
15630 -    lt_cv_dlopen_libs=
15631 -    lt_cv_dlopen_self=yes
15632 -    ;;
15633 -
15634 -  mingw* | pw32*)
15635 -    lt_cv_dlopen="LoadLibrary"
15636 -    lt_cv_dlopen_libs=
15637 -   ;;
15638 -
15639 -  cygwin*)
15640 -    lt_cv_dlopen="dlopen"
15641 -    lt_cv_dlopen_libs=
15642 -   ;;
15643 -
15644 -  darwin*)
15645 -  # if libdl is installed we need to link against it
15646 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15647 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15648 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15649 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15650 -else
15651 -  ac_check_lib_save_LIBS=$LIBS
15652 -LIBS="-ldl  $LIBS"
15653 -cat >conftest.$ac_ext <<_ACEOF
15654 -/* confdefs.h.  */
15655 -_ACEOF
15656 -cat confdefs.h >>conftest.$ac_ext
15657 -cat >>conftest.$ac_ext <<_ACEOF
15658 -/* end confdefs.h.  */
15659  
15660 -/* Override any gcc2 internal prototype to avoid an error.  */
15661 -#ifdef __cplusplus
15662 -extern "C"
15663 -#endif
15664 -/* We use char because int might match the return type of a gcc2
15665 -   builtin and then its argument prototype would still apply.  */
15666 -char dlopen ();
15667 -int
15668 -main ()
15669 -{
15670 -dlopen ();
15671 -  ;
15672 -  return 0;
15673 -}
15674 -_ACEOF
15675 -rm -f conftest.$ac_objext conftest$ac_exeext
15676 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 -  (eval $ac_link) 2>conftest.er1
15678 -  ac_status=$?
15679 -  grep -v '^ *+' conftest.er1 >conftest.err
15680 -  rm -f conftest.er1
15681 -  cat conftest.err >&5
15682 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 -  (exit $ac_status); } &&
15684 -        { ac_try='test -z "$ac_cxx_werror_flag"
15685 -                        || test ! -s conftest.err'
15686 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 -  (eval $ac_try) 2>&5
15688 -  ac_status=$?
15689 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 -  (exit $ac_status); }; } &&
15691 -        { ac_try='test -s conftest$ac_exeext'
15692 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 -  (eval $ac_try) 2>&5
15694 -  ac_status=$?
15695 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 -  (exit $ac_status); }; }; then
15697 -  ac_cv_lib_dl_dlopen=yes
15698 -else
15699 -  echo "$as_me: failed program was:" >&5
15700 -sed 's/^/| /' conftest.$ac_ext >&5
15701 +# The else clause should only fire when bootstrapping the
15702 +# libtool distribution, otherwise you forgot to ship ltmain.sh
15703 +# with your package, and you will get complaints that there are
15704 +# no rules to generate ltmain.sh.
15705 +if test -f "$ltmain"; then
15706 +  # See if we are running on zsh, and set the options which allow our commands through
15707 +  # without removal of \ escapes.
15708 +  if test -n "${ZSH_VERSION+set}" ; then
15709 +    setopt NO_GLOB_SUBST
15710 +  fi
15711 +  # Now quote all the things that may contain metacharacters while being
15712 +  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15713 +  # variables and quote the copies for generation of the libtool script.
15714 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15715 +    SED SHELL STRIP \
15716 +    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15717 +    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15718 +    deplibs_check_method reload_flag reload_cmds need_locks \
15719 +    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15720 +    lt_cv_sys_global_symbol_to_c_name_address \
15721 +    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15722 +    old_postinstall_cmds old_postuninstall_cmds \
15723 +    compiler_CXX \
15724 +    CC_CXX \
15725 +    LD_CXX \
15726 +    lt_prog_compiler_wl_CXX \
15727 +    lt_prog_compiler_pic_CXX \
15728 +    lt_prog_compiler_static_CXX \
15729 +    lt_prog_compiler_no_builtin_flag_CXX \
15730 +    export_dynamic_flag_spec_CXX \
15731 +    thread_safe_flag_spec_CXX \
15732 +    whole_archive_flag_spec_CXX \
15733 +    enable_shared_with_static_runtimes_CXX \
15734 +    old_archive_cmds_CXX \
15735 +    old_archive_from_new_cmds_CXX \
15736 +    predep_objects_CXX \
15737 +    postdep_objects_CXX \
15738 +    predeps_CXX \
15739 +    postdeps_CXX \
15740 +    compiler_lib_search_path_CXX \
15741 +    archive_cmds_CXX \
15742 +    archive_expsym_cmds_CXX \
15743 +    postinstall_cmds_CXX \
15744 +    postuninstall_cmds_CXX \
15745 +    old_archive_from_expsyms_cmds_CXX \
15746 +    allow_undefined_flag_CXX \
15747 +    no_undefined_flag_CXX \
15748 +    export_symbols_cmds_CXX \
15749 +    hardcode_libdir_flag_spec_CXX \
15750 +    hardcode_libdir_flag_spec_ld_CXX \
15751 +    hardcode_libdir_separator_CXX \
15752 +    hardcode_automatic_CXX \
15753 +    module_cmds_CXX \
15754 +    module_expsym_cmds_CXX \
15755 +    lt_cv_prog_compiler_c_o_CXX \
15756 +    exclude_expsyms_CXX \
15757 +    include_expsyms_CXX; do
15758  
15759 -ac_cv_lib_dl_dlopen=no
15760 -fi
15761 -rm -f conftest.err conftest.$ac_objext \
15762 -      conftest$ac_exeext conftest.$ac_ext
15763 -LIBS=$ac_check_lib_save_LIBS
15764 -fi
15765 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15766 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15767 -if test $ac_cv_lib_dl_dlopen = yes; then
15768 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15769 -else
15770 +    case $var in
15771 +    old_archive_cmds_CXX | \
15772 +    old_archive_from_new_cmds_CXX | \
15773 +    archive_cmds_CXX | \
15774 +    archive_expsym_cmds_CXX | \
15775 +    module_cmds_CXX | \
15776 +    module_expsym_cmds_CXX | \
15777 +    old_archive_from_expsyms_cmds_CXX | \
15778 +    export_symbols_cmds_CXX | \
15779 +    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15780 +    postinstall_cmds | postuninstall_cmds | \
15781 +    old_postinstall_cmds | old_postuninstall_cmds | \
15782 +    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15783 +      # Double-quote double-evaled strings.
15784 +      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15785 +      ;;
15786 +    *)
15787 +      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15788 +      ;;
15789 +    esac
15790 +  done
15791  
15792 -    lt_cv_dlopen="dyld"
15793 -    lt_cv_dlopen_libs=
15794 -    lt_cv_dlopen_self=yes
15795 +  case $lt_echo in
15796 +  *'\$0 --fallback-echo"')
15797 +    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15798 +    ;;
15799 +  esac
15800  
15801 -fi
15802 +cfgfile="$ofile"
15803  
15804 -   ;;
15805 +  cat <<__EOF__ >> "$cfgfile"
15806 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15807  
15808 -  *)
15809 -    echo "$as_me:$LINENO: checking for shl_load" >&5
15810 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15811 -if test "${ac_cv_func_shl_load+set}" = set; then
15812 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15813 -else
15814 -  cat >conftest.$ac_ext <<_ACEOF
15815 -/* confdefs.h.  */
15816 -_ACEOF
15817 -cat confdefs.h >>conftest.$ac_ext
15818 -cat >>conftest.$ac_ext <<_ACEOF
15819 -/* end confdefs.h.  */
15820 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15821 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15822 -#define shl_load innocuous_shl_load
15823 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15824  
15825 -/* System header to define __stub macros and hopefully few prototypes,
15826 -    which can conflict with char shl_load (); below.
15827 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15828 -    <limits.h> exists even on freestanding compilers.  */
15829 +# Shell to use when invoking shell scripts.
15830 +SHELL=$lt_SHELL
15831  
15832 -#ifdef __STDC__
15833 -# include <limits.h>
15834 -#else
15835 -# include <assert.h>
15836 -#endif
15837 +# Whether or not to build shared libraries.
15838 +build_libtool_libs=$enable_shared
15839  
15840 -#undef shl_load
15841 +# Whether or not to build static libraries.
15842 +build_old_libs=$enable_static
15843  
15844 -/* Override any gcc2 internal prototype to avoid an error.  */
15845 -#ifdef __cplusplus
15846 -extern "C"
15847 -{
15848 -#endif
15849 -/* We use char because int might match the return type of a gcc2
15850 -   builtin and then its argument prototype would still apply.  */
15851 -char shl_load ();
15852 -/* The GNU C library defines this for functions which it implements
15853 -    to always fail with ENOSYS.  Some functions are actually named
15854 -    something starting with __ and the normal name is an alias.  */
15855 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
15856 -choke me
15857 -#else
15858 -char (*f) () = shl_load;
15859 -#endif
15860 -#ifdef __cplusplus
15861 -}
15862 -#endif
15863 +# Whether or not to add -lc for building shared libraries.
15864 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
15865  
15866 -int
15867 -main ()
15868 -{
15869 -return f != shl_load;
15870 -  ;
15871 -  return 0;
15872 -}
15873 -_ACEOF
15874 -rm -f conftest.$ac_objext conftest$ac_exeext
15875 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876 -  (eval $ac_link) 2>conftest.er1
15877 -  ac_status=$?
15878 -  grep -v '^ *+' conftest.er1 >conftest.err
15879 -  rm -f conftest.er1
15880 -  cat conftest.err >&5
15881 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 -  (exit $ac_status); } &&
15883 -        { ac_try='test -z "$ac_cxx_werror_flag"
15884 -                        || test ! -s conftest.err'
15885 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 -  (eval $ac_try) 2>&5
15887 -  ac_status=$?
15888 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 -  (exit $ac_status); }; } &&
15890 -        { ac_try='test -s conftest$ac_exeext'
15891 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 -  (eval $ac_try) 2>&5
15893 -  ac_status=$?
15894 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 -  (exit $ac_status); }; }; then
15896 -  ac_cv_func_shl_load=yes
15897 -else
15898 -  echo "$as_me: failed program was:" >&5
15899 -sed 's/^/| /' conftest.$ac_ext >&5
15900 +# Whether or not to disallow shared libs when runtime libs are static
15901 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15902  
15903 -ac_cv_func_shl_load=no
15904 -fi
15905 -rm -f conftest.err conftest.$ac_objext \
15906 -      conftest$ac_exeext conftest.$ac_ext
15907 -fi
15908 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15909 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15910 -if test $ac_cv_func_shl_load = yes; then
15911 -  lt_cv_dlopen="shl_load"
15912 -else
15913 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15914 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15915 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15916 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15917 -else
15918 -  ac_check_lib_save_LIBS=$LIBS
15919 -LIBS="-ldld  $LIBS"
15920 -cat >conftest.$ac_ext <<_ACEOF
15921 -/* confdefs.h.  */
15922 -_ACEOF
15923 -cat confdefs.h >>conftest.$ac_ext
15924 -cat >>conftest.$ac_ext <<_ACEOF
15925 -/* end confdefs.h.  */
15926 +# Whether or not to optimize for fast installation.
15927 +fast_install=$enable_fast_install
15928  
15929 -/* Override any gcc2 internal prototype to avoid an error.  */
15930 -#ifdef __cplusplus
15931 -extern "C"
15932 -#endif
15933 -/* We use char because int might match the return type of a gcc2
15934 -   builtin and then its argument prototype would still apply.  */
15935 -char shl_load ();
15936 -int
15937 -main ()
15938 -{
15939 -shl_load ();
15940 -  ;
15941 -  return 0;
15942 -}
15943 -_ACEOF
15944 -rm -f conftest.$ac_objext conftest$ac_exeext
15945 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946 -  (eval $ac_link) 2>conftest.er1
15947 -  ac_status=$?
15948 -  grep -v '^ *+' conftest.er1 >conftest.err
15949 -  rm -f conftest.er1
15950 -  cat conftest.err >&5
15951 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 -  (exit $ac_status); } &&
15953 -        { ac_try='test -z "$ac_cxx_werror_flag"
15954 -                        || test ! -s conftest.err'
15955 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 -  (eval $ac_try) 2>&5
15957 -  ac_status=$?
15958 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 -  (exit $ac_status); }; } &&
15960 -        { ac_try='test -s conftest$ac_exeext'
15961 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 -  (eval $ac_try) 2>&5
15963 -  ac_status=$?
15964 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 -  (exit $ac_status); }; }; then
15966 -  ac_cv_lib_dld_shl_load=yes
15967 -else
15968 -  echo "$as_me: failed program was:" >&5
15969 -sed 's/^/| /' conftest.$ac_ext >&5
15970 +# The host system.
15971 +host_alias=$host_alias
15972 +host=$host
15973 +host_os=$host_os
15974  
15975 -ac_cv_lib_dld_shl_load=no
15976 -fi
15977 -rm -f conftest.err conftest.$ac_objext \
15978 -      conftest$ac_exeext conftest.$ac_ext
15979 -LIBS=$ac_check_lib_save_LIBS
15980 -fi
15981 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15982 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15983 -if test $ac_cv_lib_dld_shl_load = yes; then
15984 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15985 -else
15986 -  echo "$as_me:$LINENO: checking for dlopen" >&5
15987 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15988 -if test "${ac_cv_func_dlopen+set}" = set; then
15989 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15990 -else
15991 -  cat >conftest.$ac_ext <<_ACEOF
15992 -/* confdefs.h.  */
15993 -_ACEOF
15994 -cat confdefs.h >>conftest.$ac_ext
15995 -cat >>conftest.$ac_ext <<_ACEOF
15996 -/* end confdefs.h.  */
15997 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15998 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15999 -#define dlopen innocuous_dlopen
16000 -
16001 -/* System header to define __stub macros and hopefully few prototypes,
16002 -    which can conflict with char dlopen (); below.
16003 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16004 -    <limits.h> exists even on freestanding compilers.  */
16005 +# The build system.
16006 +build_alias=$build_alias
16007 +build=$build
16008 +build_os=$build_os
16009  
16010 -#ifdef __STDC__
16011 -# include <limits.h>
16012 -#else
16013 -# include <assert.h>
16014 -#endif
16015 +# An echo program that does not interpret backslashes.
16016 +echo=$lt_echo
16017  
16018 -#undef dlopen
16019 +# The archiver.
16020 +AR=$lt_AR
16021 +AR_FLAGS=$lt_AR_FLAGS
16022  
16023 -/* Override any gcc2 internal prototype to avoid an error.  */
16024 -#ifdef __cplusplus
16025 -extern "C"
16026 -{
16027 -#endif
16028 -/* We use char because int might match the return type of a gcc2
16029 -   builtin and then its argument prototype would still apply.  */
16030 -char dlopen ();
16031 -/* The GNU C library defines this for functions which it implements
16032 -    to always fail with ENOSYS.  Some functions are actually named
16033 -    something starting with __ and the normal name is an alias.  */
16034 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
16035 -choke me
16036 -#else
16037 -char (*f) () = dlopen;
16038 -#endif
16039 -#ifdef __cplusplus
16040 -}
16041 -#endif
16042 +# A C compiler.
16043 +LTCC=$lt_LTCC
16044  
16045 -int
16046 -main ()
16047 -{
16048 -return f != dlopen;
16049 -  ;
16050 -  return 0;
16051 -}
16052 -_ACEOF
16053 -rm -f conftest.$ac_objext conftest$ac_exeext
16054 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 -  (eval $ac_link) 2>conftest.er1
16056 -  ac_status=$?
16057 -  grep -v '^ *+' conftest.er1 >conftest.err
16058 -  rm -f conftest.er1
16059 -  cat conftest.err >&5
16060 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 -  (exit $ac_status); } &&
16062 -        { ac_try='test -z "$ac_cxx_werror_flag"
16063 -                        || test ! -s conftest.err'
16064 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 -  (eval $ac_try) 2>&5
16066 -  ac_status=$?
16067 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 -  (exit $ac_status); }; } &&
16069 -        { ac_try='test -s conftest$ac_exeext'
16070 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 -  (eval $ac_try) 2>&5
16072 -  ac_status=$?
16073 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 -  (exit $ac_status); }; }; then
16075 -  ac_cv_func_dlopen=yes
16076 -else
16077 -  echo "$as_me: failed program was:" >&5
16078 -sed 's/^/| /' conftest.$ac_ext >&5
16079 +# LTCC compiler flags.
16080 +LTCFLAGS=$lt_LTCFLAGS
16081  
16082 -ac_cv_func_dlopen=no
16083 -fi
16084 -rm -f conftest.err conftest.$ac_objext \
16085 -      conftest$ac_exeext conftest.$ac_ext
16086 -fi
16087 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16088 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16089 -if test $ac_cv_func_dlopen = yes; then
16090 -  lt_cv_dlopen="dlopen"
16091 -else
16092 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16093 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16094 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16095 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16096 -else
16097 -  ac_check_lib_save_LIBS=$LIBS
16098 -LIBS="-ldl  $LIBS"
16099 -cat >conftest.$ac_ext <<_ACEOF
16100 -/* confdefs.h.  */
16101 -_ACEOF
16102 -cat confdefs.h >>conftest.$ac_ext
16103 -cat >>conftest.$ac_ext <<_ACEOF
16104 -/* end confdefs.h.  */
16105 +# A language-specific compiler.
16106 +CC=$lt_compiler_CXX
16107  
16108 -/* Override any gcc2 internal prototype to avoid an error.  */
16109 -#ifdef __cplusplus
16110 -extern "C"
16111 -#endif
16112 -/* We use char because int might match the return type of a gcc2
16113 -   builtin and then its argument prototype would still apply.  */
16114 -char dlopen ();
16115 -int
16116 -main ()
16117 -{
16118 -dlopen ();
16119 -  ;
16120 -  return 0;
16121 -}
16122 -_ACEOF
16123 -rm -f conftest.$ac_objext conftest$ac_exeext
16124 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125 -  (eval $ac_link) 2>conftest.er1
16126 -  ac_status=$?
16127 -  grep -v '^ *+' conftest.er1 >conftest.err
16128 -  rm -f conftest.er1
16129 -  cat conftest.err >&5
16130 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 -  (exit $ac_status); } &&
16132 -        { ac_try='test -z "$ac_cxx_werror_flag"
16133 -                        || test ! -s conftest.err'
16134 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 -  (eval $ac_try) 2>&5
16136 -  ac_status=$?
16137 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 -  (exit $ac_status); }; } &&
16139 -        { ac_try='test -s conftest$ac_exeext'
16140 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 -  (eval $ac_try) 2>&5
16142 -  ac_status=$?
16143 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 -  (exit $ac_status); }; }; then
16145 -  ac_cv_lib_dl_dlopen=yes
16146 -else
16147 -  echo "$as_me: failed program was:" >&5
16148 -sed 's/^/| /' conftest.$ac_ext >&5
16149 +# Is the compiler the GNU C compiler?
16150 +with_gcc=$GCC_CXX
16151  
16152 -ac_cv_lib_dl_dlopen=no
16153 -fi
16154 -rm -f conftest.err conftest.$ac_objext \
16155 -      conftest$ac_exeext conftest.$ac_ext
16156 -LIBS=$ac_check_lib_save_LIBS
16157 -fi
16158 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16159 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16160 -if test $ac_cv_lib_dl_dlopen = yes; then
16161 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16162 -else
16163 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16164 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16165 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16166 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16167 -else
16168 -  ac_check_lib_save_LIBS=$LIBS
16169 -LIBS="-lsvld  $LIBS"
16170 -cat >conftest.$ac_ext <<_ACEOF
16171 -/* confdefs.h.  */
16172 -_ACEOF
16173 -cat confdefs.h >>conftest.$ac_ext
16174 -cat >>conftest.$ac_ext <<_ACEOF
16175 -/* end confdefs.h.  */
16176 +# An ERE matcher.
16177 +EGREP=$lt_EGREP
16178  
16179 -/* Override any gcc2 internal prototype to avoid an error.  */
16180 -#ifdef __cplusplus
16181 -extern "C"
16182 -#endif
16183 -/* We use char because int might match the return type of a gcc2
16184 -   builtin and then its argument prototype would still apply.  */
16185 -char dlopen ();
16186 -int
16187 -main ()
16188 -{
16189 -dlopen ();
16190 -  ;
16191 -  return 0;
16192 -}
16193 -_ACEOF
16194 -rm -f conftest.$ac_objext conftest$ac_exeext
16195 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16196 -  (eval $ac_link) 2>conftest.er1
16197 -  ac_status=$?
16198 -  grep -v '^ *+' conftest.er1 >conftest.err
16199 -  rm -f conftest.er1
16200 -  cat conftest.err >&5
16201 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 -  (exit $ac_status); } &&
16203 -        { ac_try='test -z "$ac_cxx_werror_flag"
16204 -                        || test ! -s conftest.err'
16205 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 -  (eval $ac_try) 2>&5
16207 -  ac_status=$?
16208 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 -  (exit $ac_status); }; } &&
16210 -        { ac_try='test -s conftest$ac_exeext'
16211 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 -  (eval $ac_try) 2>&5
16213 -  ac_status=$?
16214 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 -  (exit $ac_status); }; }; then
16216 -  ac_cv_lib_svld_dlopen=yes
16217 -else
16218 -  echo "$as_me: failed program was:" >&5
16219 -sed 's/^/| /' conftest.$ac_ext >&5
16220 +# The linker used to build libraries.
16221 +LD=$lt_LD_CXX
16222  
16223 -ac_cv_lib_svld_dlopen=no
16224 -fi
16225 -rm -f conftest.err conftest.$ac_objext \
16226 -      conftest$ac_exeext conftest.$ac_ext
16227 -LIBS=$ac_check_lib_save_LIBS
16228 -fi
16229 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16230 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16231 -if test $ac_cv_lib_svld_dlopen = yes; then
16232 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16233 -else
16234 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16235 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16236 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16237 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16238 -else
16239 -  ac_check_lib_save_LIBS=$LIBS
16240 -LIBS="-ldld  $LIBS"
16241 -cat >conftest.$ac_ext <<_ACEOF
16242 -/* confdefs.h.  */
16243 -_ACEOF
16244 -cat confdefs.h >>conftest.$ac_ext
16245 -cat >>conftest.$ac_ext <<_ACEOF
16246 -/* end confdefs.h.  */
16247 +# Whether we need hard or soft links.
16248 +LN_S=$lt_LN_S
16249  
16250 -/* Override any gcc2 internal prototype to avoid an error.  */
16251 -#ifdef __cplusplus
16252 -extern "C"
16253 -#endif
16254 -/* We use char because int might match the return type of a gcc2
16255 -   builtin and then its argument prototype would still apply.  */
16256 -char dld_link ();
16257 -int
16258 -main ()
16259 -{
16260 -dld_link ();
16261 -  ;
16262 -  return 0;
16263 -}
16264 -_ACEOF
16265 -rm -f conftest.$ac_objext conftest$ac_exeext
16266 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 -  (eval $ac_link) 2>conftest.er1
16268 -  ac_status=$?
16269 -  grep -v '^ *+' conftest.er1 >conftest.err
16270 -  rm -f conftest.er1
16271 -  cat conftest.err >&5
16272 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 -  (exit $ac_status); } &&
16274 -        { ac_try='test -z "$ac_cxx_werror_flag"
16275 -                        || test ! -s conftest.err'
16276 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 -  (eval $ac_try) 2>&5
16278 -  ac_status=$?
16279 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 -  (exit $ac_status); }; } &&
16281 -        { ac_try='test -s conftest$ac_exeext'
16282 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 -  (eval $ac_try) 2>&5
16284 -  ac_status=$?
16285 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 -  (exit $ac_status); }; }; then
16287 -  ac_cv_lib_dld_dld_link=yes
16288 -else
16289 -  echo "$as_me: failed program was:" >&5
16290 -sed 's/^/| /' conftest.$ac_ext >&5
16291 +# A BSD-compatible nm program.
16292 +NM=$lt_NM
16293  
16294 -ac_cv_lib_dld_dld_link=no
16295 -fi
16296 -rm -f conftest.err conftest.$ac_objext \
16297 -      conftest$ac_exeext conftest.$ac_ext
16298 -LIBS=$ac_check_lib_save_LIBS
16299 -fi
16300 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16301 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16302 -if test $ac_cv_lib_dld_dld_link = yes; then
16303 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16304 -fi
16305 +# A symbol stripping program
16306 +STRIP=$lt_STRIP
16307  
16308 +# Used to examine libraries when file_magic_cmd begins "file"
16309 +MAGIC_CMD=$MAGIC_CMD
16310  
16311 -fi
16312 +# Used on cygwin: DLL creation program.
16313 +DLLTOOL="$DLLTOOL"
16314  
16315 +# Used on cygwin: object dumper.
16316 +OBJDUMP="$OBJDUMP"
16317  
16318 -fi
16319 +# Used on cygwin: assembler.
16320 +AS="$AS"
16321  
16322 +# The name of the directory that contains temporary libtool files.
16323 +objdir=$objdir
16324  
16325 -fi
16326 +# How to create reloadable object files.
16327 +reload_flag=$lt_reload_flag
16328 +reload_cmds=$lt_reload_cmds
16329  
16330 +# How to pass a linker flag through the compiler.
16331 +wl=$lt_lt_prog_compiler_wl_CXX
16332  
16333 -fi
16334 +# Object file suffix (normally "o").
16335 +objext="$ac_objext"
16336  
16337 +# Old archive suffix (normally "a").
16338 +libext="$libext"
16339  
16340 -fi
16341 +# Shared library suffix (normally ".so").
16342 +shrext_cmds='$shrext_cmds'
16343  
16344 -    ;;
16345 -  esac
16346 +# Executable file suffix (normally "").
16347 +exeext="$exeext"
16348  
16349 -  if test "x$lt_cv_dlopen" != xno; then
16350 -    enable_dlopen=yes
16351 -  else
16352 -    enable_dlopen=no
16353 -  fi
16354 +# Additional compiler flags for building library objects.
16355 +pic_flag=$lt_lt_prog_compiler_pic_CXX
16356 +pic_mode=$pic_mode
16357  
16358 -  case $lt_cv_dlopen in
16359 -  dlopen)
16360 -    save_CPPFLAGS="$CPPFLAGS"
16361 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16362 +# What is the maximum length of a command?
16363 +max_cmd_len=$lt_cv_sys_max_cmd_len
16364  
16365 -    save_LDFLAGS="$LDFLAGS"
16366 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16367 +# Does compiler simultaneously support -c and -o options?
16368 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16369  
16370 -    save_LIBS="$LIBS"
16371 -    LIBS="$lt_cv_dlopen_libs $LIBS"
16372 +# Must we lock files when doing compilation?
16373 +need_locks=$lt_need_locks
16374  
16375 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16376 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16377 -if test "${lt_cv_dlopen_self+set}" = set; then
16378 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16379 -else
16380 -         if test "$cross_compiling" = yes; then :
16381 -  lt_cv_dlopen_self=cross
16382 -else
16383 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16384 -  lt_status=$lt_dlunknown
16385 -  cat > conftest.$ac_ext <<EOF
16386 -#line 13003 "configure"
16387 -#include "confdefs.h"
16388 +# Do we need the lib prefix for modules?
16389 +need_lib_prefix=$need_lib_prefix
16390  
16391 -#if HAVE_DLFCN_H
16392 -#include <dlfcn.h>
16393 -#endif
16394 +# Do we need a version for libraries?
16395 +need_version=$need_version
16396  
16397 -#include <stdio.h>
16398 +# Whether dlopen is supported.
16399 +dlopen_support=$enable_dlopen
16400  
16401 -#ifdef RTLD_GLOBAL
16402 -#  define LT_DLGLOBAL          RTLD_GLOBAL
16403 -#else
16404 -#  ifdef DL_GLOBAL
16405 -#    define LT_DLGLOBAL                DL_GLOBAL
16406 -#  else
16407 -#    define LT_DLGLOBAL                0
16408 -#  endif
16409 -#endif
16410 +# Whether dlopen of programs is supported.
16411 +dlopen_self=$enable_dlopen_self
16412  
16413 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16414 -   find out it does not work in some platform. */
16415 -#ifndef LT_DLLAZY_OR_NOW
16416 -#  ifdef RTLD_LAZY
16417 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
16418 -#  else
16419 -#    ifdef DL_LAZY
16420 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
16421 -#    else
16422 -#      ifdef RTLD_NOW
16423 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
16424 -#      else
16425 -#        ifdef DL_NOW
16426 -#          define LT_DLLAZY_OR_NOW     DL_NOW
16427 -#        else
16428 -#          define LT_DLLAZY_OR_NOW     0
16429 -#        endif
16430 -#      endif
16431 -#    endif
16432 -#  endif
16433 -#endif
16434 +# Whether dlopen of statically linked programs is supported.
16435 +dlopen_self_static=$enable_dlopen_self_static
16436  
16437 -#ifdef __cplusplus
16438 -extern "C" void exit (int);
16439 -#endif
16440 +# Compiler flag to prevent dynamic linking.
16441 +link_static_flag=$lt_lt_prog_compiler_static_CXX
16442  
16443 -void fnord() { int i=42;}
16444 -int main ()
16445 -{
16446 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16447 -  int status = $lt_dlunknown;
16448 +# Compiler flag to turn off builtin functions.
16449 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16450  
16451 -  if (self)
16452 -    {
16453 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16454 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16455 -      /* dlclose (self); */
16456 -    }
16457 +# Compiler flag to allow reflexive dlopens.
16458 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16459  
16460 -    exit (status);
16461 -}
16462 -EOF
16463 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464 -  (eval $ac_link) 2>&5
16465 -  ac_status=$?
16466 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16468 -    (./conftest; exit; ) 2>/dev/null
16469 -    lt_status=$?
16470 -    case x$lt_status in
16471 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16472 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16473 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16474 -    esac
16475 -  else :
16476 -    # compilation failed
16477 -    lt_cv_dlopen_self=no
16478 -  fi
16479 -fi
16480 -rm -fr conftest*
16481 +# Compiler flag to generate shared objects directly from archives.
16482 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16483  
16484 +# Compiler flag to generate thread-safe objects.
16485 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16486  
16487 -fi
16488 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16489 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16490 +# Library versioning type.
16491 +version_type=$version_type
16492  
16493 -    if test "x$lt_cv_dlopen_self" = xyes; then
16494 -      LDFLAGS="$LDFLAGS $link_static_flag"
16495 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16496 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16497 -if test "${lt_cv_dlopen_self_static+set}" = set; then
16498 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16499 -else
16500 -         if test "$cross_compiling" = yes; then :
16501 -  lt_cv_dlopen_self_static=cross
16502 -else
16503 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16504 -  lt_status=$lt_dlunknown
16505 -  cat > conftest.$ac_ext <<EOF
16506 -#line 13101 "configure"
16507 -#include "confdefs.h"
16508 +# Format of library name prefix.
16509 +libname_spec=$lt_libname_spec
16510  
16511 -#if HAVE_DLFCN_H
16512 -#include <dlfcn.h>
16513 -#endif
16514 +# List of archive names.  First name is the real one, the rest are links.
16515 +# The last name is the one that the linker finds with -lNAME.
16516 +library_names_spec=$lt_library_names_spec
16517  
16518 -#include <stdio.h>
16519 +# The coded name of the library, if different from the real name.
16520 +soname_spec=$lt_soname_spec
16521  
16522 -#ifdef RTLD_GLOBAL
16523 -#  define LT_DLGLOBAL          RTLD_GLOBAL
16524 -#else
16525 -#  ifdef DL_GLOBAL
16526 -#    define LT_DLGLOBAL                DL_GLOBAL
16527 -#  else
16528 -#    define LT_DLGLOBAL                0
16529 -#  endif
16530 -#endif
16531 +# Commands used to build and install an old-style archive.
16532 +RANLIB=$lt_RANLIB
16533 +old_archive_cmds=$lt_old_archive_cmds_CXX
16534 +old_postinstall_cmds=$lt_old_postinstall_cmds
16535 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
16536  
16537 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16538 -   find out it does not work in some platform. */
16539 -#ifndef LT_DLLAZY_OR_NOW
16540 -#  ifdef RTLD_LAZY
16541 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
16542 -#  else
16543 -#    ifdef DL_LAZY
16544 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
16545 -#    else
16546 -#      ifdef RTLD_NOW
16547 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
16548 -#      else
16549 -#        ifdef DL_NOW
16550 -#          define LT_DLLAZY_OR_NOW     DL_NOW
16551 -#        else
16552 -#          define LT_DLLAZY_OR_NOW     0
16553 -#        endif
16554 -#      endif
16555 -#    endif
16556 -#  endif
16557 -#endif
16558 +# Create an old-style archive from a shared archive.
16559 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16560  
16561 -#ifdef __cplusplus
16562 -extern "C" void exit (int);
16563 -#endif
16564 +# Create a temporary old-style archive to link instead of a shared archive.
16565 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16566  
16567 -void fnord() { int i=42;}
16568 -int main ()
16569 -{
16570 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16571 -  int status = $lt_dlunknown;
16572 +# Commands used to build and install a shared archive.
16573 +archive_cmds=$lt_archive_cmds_CXX
16574 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16575 +postinstall_cmds=$lt_postinstall_cmds
16576 +postuninstall_cmds=$lt_postuninstall_cmds
16577  
16578 -  if (self)
16579 -    {
16580 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16581 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16582 -      /* dlclose (self); */
16583 -    }
16584 +# Commands used to build a loadable module (assumed same as above if empty)
16585 +module_cmds=$lt_module_cmds_CXX
16586 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
16587  
16588 -    exit (status);
16589 -}
16590 -EOF
16591 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592 -  (eval $ac_link) 2>&5
16593 -  ac_status=$?
16594 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16596 -    (./conftest; exit; ) 2>/dev/null
16597 -    lt_status=$?
16598 -    case x$lt_status in
16599 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16600 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16601 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16602 -    esac
16603 -  else :
16604 -    # compilation failed
16605 -    lt_cv_dlopen_self_static=no
16606 -  fi
16607 -fi
16608 -rm -fr conftest*
16609 +# Commands to strip libraries.
16610 +old_striplib=$lt_old_striplib
16611 +striplib=$lt_striplib
16612  
16613 +# Dependencies to place before the objects being linked to create a
16614 +# shared library.
16615 +predep_objects=$lt_predep_objects_CXX
16616  
16617 -fi
16618 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16619 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16620 -    fi
16621 +# Dependencies to place after the objects being linked to create a
16622 +# shared library.
16623 +postdep_objects=$lt_postdep_objects_CXX
16624  
16625 -    CPPFLAGS="$save_CPPFLAGS"
16626 -    LDFLAGS="$save_LDFLAGS"
16627 -    LIBS="$save_LIBS"
16628 -    ;;
16629 -  esac
16630 +# Dependencies to place before the objects being linked to create a
16631 +# shared library.
16632 +predeps=$lt_predeps_CXX
16633  
16634 -  case $lt_cv_dlopen_self in
16635 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16636 -  *) enable_dlopen_self=unknown ;;
16637 -  esac
16638 +# Dependencies to place after the objects being linked to create a
16639 +# shared library.
16640 +postdeps=$lt_postdeps_CXX
16641  
16642 -  case $lt_cv_dlopen_self_static in
16643 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16644 -  *) enable_dlopen_self_static=unknown ;;
16645 -  esac
16646 -fi
16647 +# The library search path used internally by the compiler when linking
16648 +# a shared library.
16649 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16650  
16651 +# Method to check whether dependent libraries are shared objects.
16652 +deplibs_check_method=$lt_deplibs_check_method
16653  
16654 -# The else clause should only fire when bootstrapping the
16655 -# libtool distribution, otherwise you forgot to ship ltmain.sh
16656 -# with your package, and you will get complaints that there are
16657 -# no rules to generate ltmain.sh.
16658 -if test -f "$ltmain"; then
16659 -  # See if we are running on zsh, and set the options which allow our commands through
16660 -  # without removal of \ escapes.
16661 -  if test -n "${ZSH_VERSION+set}" ; then
16662 -    setopt NO_GLOB_SUBST
16663 -  fi
16664 -  # Now quote all the things that may contain metacharacters while being
16665 -  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16666 -  # variables and quote the copies for generation of the libtool script.
16667 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16668 -    SED SHELL STRIP \
16669 -    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16670 -    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16671 -    deplibs_check_method reload_flag reload_cmds need_locks \
16672 -    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16673 -    lt_cv_sys_global_symbol_to_c_name_address \
16674 -    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16675 -    old_postinstall_cmds old_postuninstall_cmds \
16676 -    compiler_CXX \
16677 -    CC_CXX \
16678 -    LD_CXX \
16679 -    lt_prog_compiler_wl_CXX \
16680 -    lt_prog_compiler_pic_CXX \
16681 -    lt_prog_compiler_static_CXX \
16682 -    lt_prog_compiler_no_builtin_flag_CXX \
16683 -    export_dynamic_flag_spec_CXX \
16684 -    thread_safe_flag_spec_CXX \
16685 -    whole_archive_flag_spec_CXX \
16686 -    enable_shared_with_static_runtimes_CXX \
16687 -    old_archive_cmds_CXX \
16688 -    old_archive_from_new_cmds_CXX \
16689 -    predep_objects_CXX \
16690 -    postdep_objects_CXX \
16691 -    predeps_CXX \
16692 -    postdeps_CXX \
16693 -    compiler_lib_search_path_CXX \
16694 -    archive_cmds_CXX \
16695 -    archive_expsym_cmds_CXX \
16696 -    postinstall_cmds_CXX \
16697 -    postuninstall_cmds_CXX \
16698 -    old_archive_from_expsyms_cmds_CXX \
16699 -    allow_undefined_flag_CXX \
16700 -    no_undefined_flag_CXX \
16701 -    export_symbols_cmds_CXX \
16702 -    hardcode_libdir_flag_spec_CXX \
16703 -    hardcode_libdir_flag_spec_ld_CXX \
16704 -    hardcode_libdir_separator_CXX \
16705 -    hardcode_automatic_CXX \
16706 -    module_cmds_CXX \
16707 -    module_expsym_cmds_CXX \
16708 -    lt_cv_prog_compiler_c_o_CXX \
16709 -    exclude_expsyms_CXX \
16710 -    include_expsyms_CXX; do
16711 +# Command to use when deplibs_check_method == file_magic.
16712 +file_magic_cmd=$lt_file_magic_cmd
16713  
16714 -    case $var in
16715 -    old_archive_cmds_CXX | \
16716 -    old_archive_from_new_cmds_CXX | \
16717 -    archive_cmds_CXX | \
16718 -    archive_expsym_cmds_CXX | \
16719 -    module_cmds_CXX | \
16720 -    module_expsym_cmds_CXX | \
16721 -    old_archive_from_expsyms_cmds_CXX | \
16722 -    export_symbols_cmds_CXX | \
16723 -    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16724 -    postinstall_cmds | postuninstall_cmds | \
16725 -    old_postinstall_cmds | old_postuninstall_cmds | \
16726 -    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16727 -      # Double-quote double-evaled strings.
16728 -      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16729 -      ;;
16730 -    *)
16731 -      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16732 -      ;;
16733 -    esac
16734 -  done
16735 +# Flag that allows shared libraries with undefined symbols to be built.
16736 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
16737  
16738 -  case $lt_echo in
16739 -  *'\$0 --fallback-echo"')
16740 -    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16741 -    ;;
16742 -  esac
16743 +# Flag that forces no undefined symbols.
16744 +no_undefined_flag=$lt_no_undefined_flag_CXX
16745  
16746 -cfgfile="$ofile"
16747 +# Commands used to finish a libtool library installation in a directory.
16748 +finish_cmds=$lt_finish_cmds
16749  
16750 -  cat <<__EOF__ >> "$cfgfile"
16751 -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16752 +# Same as above, but a single script fragment to be evaled but not shown.
16753 +finish_eval=$lt_finish_eval
16754  
16755 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16756 +# Take the output of nm and produce a listing of raw symbols and C names.
16757 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16758  
16759 -# Shell to use when invoking shell scripts.
16760 -SHELL=$lt_SHELL
16761 +# Transform the output of nm in a proper C declaration
16762 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16763  
16764 -# Whether or not to build shared libraries.
16765 -build_libtool_libs=$enable_shared
16766 +# Transform the output of nm in a C name address pair
16767 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16768  
16769 -# Whether or not to build static libraries.
16770 -build_old_libs=$enable_static
16771 +# This is the shared library runtime path variable.
16772 +runpath_var=$runpath_var
16773  
16774 -# Whether or not to add -lc for building shared libraries.
16775 -build_libtool_need_lc=$archive_cmds_need_lc_CXX
16776 +# This is the shared library path variable.
16777 +shlibpath_var=$shlibpath_var
16778  
16779 -# Whether or not to disallow shared libs when runtime libs are static
16780 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16781 +# Is shlibpath searched before the hard-coded library search path?
16782 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16783  
16784 -# Whether or not to optimize for fast installation.
16785 -fast_install=$enable_fast_install
16786 +# How to hardcode a shared library path into an executable.
16787 +hardcode_action=$hardcode_action_CXX
16788  
16789 -# The host system.
16790 -host_alias=$host_alias
16791 -host=$host
16792 -host_os=$host_os
16793 +# Whether we should hardcode library paths into libraries.
16794 +hardcode_into_libs=$hardcode_into_libs
16795  
16796 -# The build system.
16797 -build_alias=$build_alias
16798 -build=$build
16799 -build_os=$build_os
16800 +# Flag to hardcode \$libdir into a binary during linking.
16801 +# This must work even if \$libdir does not exist.
16802 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16803  
16804 -# An echo program that does not interpret backslashes.
16805 -echo=$lt_echo
16806 +# If ld is used when linking, flag to hardcode \$libdir into
16807 +# a binary during linking. This must work even if \$libdir does
16808 +# not exist.
16809 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16810  
16811 -# The archiver.
16812 -AR=$lt_AR
16813 -AR_FLAGS=$lt_AR_FLAGS
16814 +# Whether we need a single -rpath flag with a separated argument.
16815 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16816  
16817 -# A C compiler.
16818 -LTCC=$lt_LTCC
16819 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16820 +# resulting binary.
16821 +hardcode_direct=$hardcode_direct_CXX
16822  
16823 -# A language-specific compiler.
16824 -CC=$lt_compiler_CXX
16825 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16826 +# resulting binary.
16827 +hardcode_minus_L=$hardcode_minus_L_CXX
16828  
16829 -# Is the compiler the GNU C compiler?
16830 -with_gcc=$GCC_CXX
16831 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16832 +# the resulting binary.
16833 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16834  
16835 -# An ERE matcher.
16836 -EGREP=$lt_EGREP
16837 +# Set to yes if building a shared library automatically hardcodes DIR into the library
16838 +# and all subsequent libraries and executables linked against it.
16839 +hardcode_automatic=$hardcode_automatic_CXX
16840  
16841 -# The linker used to build libraries.
16842 -LD=$lt_LD_CXX
16843 +# Variables whose values should be saved in libtool wrapper scripts and
16844 +# restored at relink time.
16845 +variables_saved_for_relink="$variables_saved_for_relink"
16846  
16847 -# Whether we need hard or soft links.
16848 -LN_S=$lt_LN_S
16849 +# Whether libtool must link a program against all its dependency libraries.
16850 +link_all_deplibs=$link_all_deplibs_CXX
16851  
16852 -# A BSD-compatible nm program.
16853 -NM=$lt_NM
16854 +# Compile-time system search path for libraries
16855 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16856  
16857 -# A symbol stripping program
16858 -STRIP=$lt_STRIP
16859 +# Run-time system search path for libraries
16860 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16861  
16862 -# Used to examine libraries when file_magic_cmd begins "file"
16863 -MAGIC_CMD=$MAGIC_CMD
16864 +# Fix the shell variable \$srcfile for the compiler.
16865 +fix_srcfile_path="$fix_srcfile_path_CXX"
16866  
16867 -# Used on cygwin: DLL creation program.
16868 -DLLTOOL="$DLLTOOL"
16869 +# Set to yes if exported symbols are required.
16870 +always_export_symbols=$always_export_symbols_CXX
16871  
16872 -# Used on cygwin: object dumper.
16873 -OBJDUMP="$OBJDUMP"
16874 +# The commands to list exported symbols.
16875 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
16876  
16877 -# Used on cygwin: assembler.
16878 -AS="$AS"
16879 +# The commands to extract the exported symbol list from a shared archive.
16880 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
16881  
16882 -# The name of the directory that contains temporary libtool files.
16883 -objdir=$objdir
16884 +# Symbols that should not be listed in the preloaded symbols.
16885 +exclude_expsyms=$lt_exclude_expsyms_CXX
16886  
16887 -# How to create reloadable object files.
16888 -reload_flag=$lt_reload_flag
16889 -reload_cmds=$lt_reload_cmds
16890 +# Symbols that must always be exported.
16891 +include_expsyms=$lt_include_expsyms_CXX
16892  
16893 -# How to pass a linker flag through the compiler.
16894 -wl=$lt_lt_prog_compiler_wl_CXX
16895 +# ### END LIBTOOL TAG CONFIG: $tagname
16896  
16897 -# Object file suffix (normally "o").
16898 -objext="$ac_objext"
16899 +__EOF__
16900  
16901 -# Old archive suffix (normally "a").
16902 -libext="$libext"
16903  
16904 -# Shared library suffix (normally ".so").
16905 -shrext_cmds='$shrext_cmds'
16906 +else
16907 +  # If there is no Makefile yet, we rely on a make rule to execute
16908 +  # `config.status --recheck' to rerun these tests and create the
16909 +  # libtool script then.
16910 +  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16911 +  if test -f "$ltmain_in"; then
16912 +    test -f Makefile && make "$ltmain"
16913 +  fi
16914 +fi
16915  
16916 -# Executable file suffix (normally "").
16917 -exeext="$exeext"
16918  
16919 -# Additional compiler flags for building library objects.
16920 -pic_flag=$lt_lt_prog_compiler_pic_CXX
16921 -pic_mode=$pic_mode
16922 +ac_ext=c
16923 +ac_cpp='$CPP $CPPFLAGS'
16924 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16925 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16926 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16927  
16928 -# What is the maximum length of a command?
16929 -max_cmd_len=$lt_cv_sys_max_cmd_len
16930 -
16931 -# Does compiler simultaneously support -c and -o options?
16932 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16933 -
16934 -# Must we lock files when doing compilation?
16935 -need_locks=$lt_need_locks
16936 -
16937 -# Do we need the lib prefix for modules?
16938 -need_lib_prefix=$need_lib_prefix
16939 -
16940 -# Do we need a version for libraries?
16941 -need_version=$need_version
16942 -
16943 -# Whether dlopen is supported.
16944 -dlopen_support=$enable_dlopen
16945 -
16946 -# Whether dlopen of programs is supported.
16947 -dlopen_self=$enable_dlopen_self
16948 -
16949 -# Whether dlopen of statically linked programs is supported.
16950 -dlopen_self_static=$enable_dlopen_self_static
16951 -
16952 -# Compiler flag to prevent dynamic linking.
16953 -link_static_flag=$lt_lt_prog_compiler_static_CXX
16954 -
16955 -# Compiler flag to turn off builtin functions.
16956 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16957 -
16958 -# Compiler flag to allow reflexive dlopens.
16959 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16960 -
16961 -# Compiler flag to generate shared objects directly from archives.
16962 -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16963 -
16964 -# Compiler flag to generate thread-safe objects.
16965 -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16966 -
16967 -# Library versioning type.
16968 -version_type=$version_type
16969 -
16970 -# Format of library name prefix.
16971 -libname_spec=$lt_libname_spec
16972 -
16973 -# List of archive names.  First name is the real one, the rest are links.
16974 -# The last name is the one that the linker finds with -lNAME.
16975 -library_names_spec=$lt_library_names_spec
16976 -
16977 -# The coded name of the library, if different from the real name.
16978 -soname_spec=$lt_soname_spec
16979 -
16980 -# Commands used to build and install an old-style archive.
16981 -RANLIB=$lt_RANLIB
16982 -old_archive_cmds=$lt_old_archive_cmds_CXX
16983 -old_postinstall_cmds=$lt_old_postinstall_cmds
16984 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
16985 -
16986 -# Create an old-style archive from a shared archive.
16987 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16988 -
16989 -# Create a temporary old-style archive to link instead of a shared archive.
16990 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16991 -
16992 -# Commands used to build and install a shared archive.
16993 -archive_cmds=$lt_archive_cmds_CXX
16994 -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16995 -postinstall_cmds=$lt_postinstall_cmds
16996 -postuninstall_cmds=$lt_postuninstall_cmds
16997 -
16998 -# Commands used to build a loadable module (assumed same as above if empty)
16999 -module_cmds=$lt_module_cmds_CXX
17000 -module_expsym_cmds=$lt_module_expsym_cmds_CXX
17001 -
17002 -# Commands to strip libraries.
17003 -old_striplib=$lt_old_striplib
17004 -striplib=$lt_striplib
17005 -
17006 -# Dependencies to place before the objects being linked to create a
17007 -# shared library.
17008 -predep_objects=$lt_predep_objects_CXX
17009 -
17010 -# Dependencies to place after the objects being linked to create a
17011 -# shared library.
17012 -postdep_objects=$lt_postdep_objects_CXX
17013 -
17014 -# Dependencies to place before the objects being linked to create a
17015 -# shared library.
17016 -predeps=$lt_predeps_CXX
17017 -
17018 -# Dependencies to place after the objects being linked to create a
17019 -# shared library.
17020 -postdeps=$lt_postdeps_CXX
17021 -
17022 -# The library search path used internally by the compiler when linking
17023 -# a shared library.
17024 -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17025 -
17026 -# Method to check whether dependent libraries are shared objects.
17027 -deplibs_check_method=$lt_deplibs_check_method
17028 -
17029 -# Command to use when deplibs_check_method == file_magic.
17030 -file_magic_cmd=$lt_file_magic_cmd
17031 -
17032 -# Flag that allows shared libraries with undefined symbols to be built.
17033 -allow_undefined_flag=$lt_allow_undefined_flag_CXX
17034 -
17035 -# Flag that forces no undefined symbols.
17036 -no_undefined_flag=$lt_no_undefined_flag_CXX
17037 -
17038 -# Commands used to finish a libtool library installation in a directory.
17039 -finish_cmds=$lt_finish_cmds
17040 -
17041 -# Same as above, but a single script fragment to be evaled but not shown.
17042 -finish_eval=$lt_finish_eval
17043 -
17044 -# Take the output of nm and produce a listing of raw symbols and C names.
17045 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17046 -
17047 -# Transform the output of nm in a proper C declaration
17048 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17049 -
17050 -# Transform the output of nm in a C name address pair
17051 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17052 -
17053 -# This is the shared library runtime path variable.
17054 -runpath_var=$runpath_var
17055 -
17056 -# This is the shared library path variable.
17057 -shlibpath_var=$shlibpath_var
17058 -
17059 -# Is shlibpath searched before the hard-coded library search path?
17060 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17061 -
17062 -# How to hardcode a shared library path into an executable.
17063 -hardcode_action=$hardcode_action_CXX
17064 -
17065 -# Whether we should hardcode library paths into libraries.
17066 -hardcode_into_libs=$hardcode_into_libs
17067 -
17068 -# Flag to hardcode \$libdir into a binary during linking.
17069 -# This must work even if \$libdir does not exist.
17070 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17071 -
17072 -# If ld is used when linking, flag to hardcode \$libdir into
17073 -# a binary during linking. This must work even if \$libdir does
17074 -# not exist.
17075 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17076 -
17077 -# Whether we need a single -rpath flag with a separated argument.
17078 -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17079 -
17080 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17081 -# resulting binary.
17082 -hardcode_direct=$hardcode_direct_CXX
17083 -
17084 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17085 -# resulting binary.
17086 -hardcode_minus_L=$hardcode_minus_L_CXX
17087 -
17088 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17089 -# the resulting binary.
17090 -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17091 -
17092 -# Set to yes if building a shared library automatically hardcodes DIR into the library
17093 -# and all subsequent libraries and executables linked against it.
17094 -hardcode_automatic=$hardcode_automatic_CXX
17095 -
17096 -# Variables whose values should be saved in libtool wrapper scripts and
17097 -# restored at relink time.
17098 -variables_saved_for_relink="$variables_saved_for_relink"
17099 -
17100 -# Whether libtool must link a program against all its dependency libraries.
17101 -link_all_deplibs=$link_all_deplibs_CXX
17102 -
17103 -# Compile-time system search path for libraries
17104 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17105 -
17106 -# Run-time system search path for libraries
17107 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17108 -
17109 -# Fix the shell variable \$srcfile for the compiler.
17110 -fix_srcfile_path="$fix_srcfile_path_CXX"
17111 -
17112 -# Set to yes if exported symbols are required.
17113 -always_export_symbols=$always_export_symbols_CXX
17114 -
17115 -# The commands to list exported symbols.
17116 -export_symbols_cmds=$lt_export_symbols_cmds_CXX
17117 -
17118 -# The commands to extract the exported symbol list from a shared archive.
17119 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
17120 -
17121 -# Symbols that should not be listed in the preloaded symbols.
17122 -exclude_expsyms=$lt_exclude_expsyms_CXX
17123 -
17124 -# Symbols that must always be exported.
17125 -include_expsyms=$lt_include_expsyms_CXX
17126 -
17127 -# ### END LIBTOOL TAG CONFIG: $tagname
17128 -
17129 -__EOF__
17130 -
17131 -
17132 -else
17133 -  # If there is no Makefile yet, we rely on a make rule to execute
17134 -  # `config.status --recheck' to rerun these tests and create the
17135 -  # libtool script then.
17136 -  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17137 -  if test -f "$ltmain_in"; then
17138 -    test -f Makefile && make "$ltmain"
17139 -  fi
17140 -fi
17141 -
17142 -
17143 -ac_ext=c
17144 -ac_cpp='$CPP $CPPFLAGS'
17145 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17146 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17147 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
17148 -
17149 -CC=$lt_save_CC
17150 -LDCXX=$LD
17151 -LD=$lt_save_LD
17152 -GCC=$lt_save_GCC
17153 -with_gnu_ldcxx=$with_gnu_ld
17154 -with_gnu_ld=$lt_save_with_gnu_ld
17155 -lt_cv_path_LDCXX=$lt_cv_path_LD
17156 -lt_cv_path_LD=$lt_save_path_LD
17157 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17158 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17159 +CC=$lt_save_CC
17160 +LDCXX=$LD
17161 +LD=$lt_save_LD
17162 +GCC=$lt_save_GCC
17163 +with_gnu_ldcxx=$with_gnu_ld
17164 +with_gnu_ld=$lt_save_with_gnu_ld
17165 +lt_cv_path_LDCXX=$lt_cv_path_LD
17166 +lt_cv_path_LD=$lt_save_path_LD
17167 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17168 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17169  
17170         else
17171           tagname=""
17172 @@ -13675,6 +14115,9 @@
17173  # If no C compiler was specified, use CC.
17174  LTCC=${LTCC-"$CC"}
17175  
17176 +# If no C compiler flags were specified, use CFLAGS.
17177 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17178 +
17179  # Allow CC to be a program name with arguments.
17180  compiler=$CC
17181  
17182 @@ -13682,13 +14125,13 @@
17183  # save warnings/boilerplate of simple test code
17184  ac_outfile=conftest.$ac_objext
17185  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17186 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17187 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17188  _lt_compiler_boilerplate=`cat conftest.err`
17189  $rm conftest*
17190  
17191  ac_outfile=conftest.$ac_objext
17192  printf "$lt_simple_link_test_code" >conftest.$ac_ext
17193 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17194 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17195  _lt_linker_boilerplate=`cat conftest.err`
17196  $rm conftest*
17197  
17198 @@ -13709,18 +14152,18 @@
17199  cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17200  
17201  
17202 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17203 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17204 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
17205 -echo "${ECHO_T}$can_build_shared" >&6
17206 +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17207 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17208 +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17209 +echo "${ECHO_T}$can_build_shared" >&6; }
17210  
17211 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17212 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17213 +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17214 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17215  test "$can_build_shared" = "no" && enable_shared=no
17216  
17217  # On AIX, shared libraries and static libraries use the same namespace, and
17218  # are all built from PIC.
17219 -case "$host_os" in
17220 +case $host_os in
17221  aix3*)
17222    test "$enable_shared" = yes && enable_static=no
17223    if test -n "$RANLIB"; then
17224 @@ -13734,17 +14177,15 @@
17225    fi
17226    ;;
17227  esac
17228 -echo "$as_me:$LINENO: result: $enable_shared" >&5
17229 -echo "${ECHO_T}$enable_shared" >&6
17230 +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17231 +echo "${ECHO_T}$enable_shared" >&6; }
17232  
17233 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17234 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17235 +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17236 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17237  # Make sure either enable_shared or enable_static is yes.
17238  test "$enable_shared" = yes || enable_static=yes
17239 -echo "$as_me:$LINENO: result: $enable_static" >&5
17240 -echo "${ECHO_T}$enable_static" >&6
17241 -
17242 -test "$ld_shlibs_F77" = no && can_build_shared=no
17243 +{ echo "$as_me:$LINENO: result: $enable_static" >&5
17244 +echo "${ECHO_T}$enable_static" >&6; }
17245  
17246  GCC_F77="$G77"
17247  LD_F77="$LD"
17248 @@ -13753,8 +14194,8 @@
17249  lt_prog_compiler_pic_F77=
17250  lt_prog_compiler_static_F77=
17251  
17252 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17253 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17254 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17255 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17256  
17257    if test "$GCC" = yes; then
17258      lt_prog_compiler_wl_F77='-Wl,'
17259 @@ -13792,6 +14233,11 @@
17260        lt_prog_compiler_pic_F77='-fno-common'
17261        ;;
17262  
17263 +    interix3*)
17264 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17265 +      # Instead, we relocate shared libraries at runtime.
17266 +      ;;
17267 +
17268      msdosdjgpp*)
17269        # Just because we use GCC doesn't mean we suddenly get shared libraries
17270        # on systems that don't support them.
17271 @@ -13808,7 +14254,7 @@
17272      hpux*)
17273        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17274        # not for PA HP-UX.
17275 -      case "$host_cpu" in
17276 +      case $host_cpu in
17277        hppa*64*|ia64*)
17278         # +Z the default
17279         ;;
17280 @@ -13855,7 +14301,7 @@
17281        lt_prog_compiler_wl_F77='-Wl,'
17282        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17283        # not for PA HP-UX.
17284 -      case "$host_cpu" in
17285 +      case $host_cpu in
17286        hppa*64*|ia64*)
17287         # +Z the default
17288         ;;
17289 @@ -13878,19 +14324,19 @@
17290        lt_prog_compiler_static_F77='-Bstatic'
17291        ;;
17292  
17293 -    linux*)
17294 +    linux* | k*bsd*-gnu)
17295        case $cc_basename in
17296        icc* | ecc*)
17297         lt_prog_compiler_wl_F77='-Wl,'
17298         lt_prog_compiler_pic_F77='-KPIC'
17299         lt_prog_compiler_static_F77='-static'
17300          ;;
17301 -      pgcc* | pgf77* | pgf90*)
17302 +      pgcc* | pgf77* | pgf90* | pgf95*)
17303          # Portland Group compilers (*not* the Pentium gcc compiler,
17304         # which looks to be a dead project)
17305         lt_prog_compiler_wl_F77='-Wl,'
17306         lt_prog_compiler_pic_F77='-fpic'
17307 -       lt_prog_compiler_static_F77='-static'
17308 +       lt_prog_compiler_static_F77='-Bstatic'
17309          ;;
17310        ccc*)
17311          lt_prog_compiler_wl_F77='-Wl,'
17312 @@ -13906,11 +14352,6 @@
17313        lt_prog_compiler_static_F77='-non_shared'
17314        ;;
17315  
17316 -    sco3.2v5*)
17317 -      lt_prog_compiler_pic_F77='-Kpic'
17318 -      lt_prog_compiler_static_F77='-dn'
17319 -      ;;
17320 -
17321      solaris*)
17322        lt_prog_compiler_pic_F77='-KPIC'
17323        lt_prog_compiler_static_F77='-Bstatic'
17324 @@ -13928,7 +14369,7 @@
17325        lt_prog_compiler_static_F77='-Bstatic'
17326        ;;
17327  
17328 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17329 +    sysv4 | sysv4.2uw2* | sysv4.3*)
17330        lt_prog_compiler_wl_F77='-Wl,'
17331        lt_prog_compiler_pic_F77='-KPIC'
17332        lt_prog_compiler_static_F77='-Bstatic'
17333 @@ -13941,6 +14382,12 @@
17334        fi
17335        ;;
17336  
17337 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17338 +      lt_prog_compiler_wl_F77='-Wl,'
17339 +      lt_prog_compiler_pic_F77='-KPIC'
17340 +      lt_prog_compiler_static_F77='-Bstatic'
17341 +      ;;
17342 +
17343      unicos*)
17344        lt_prog_compiler_wl_F77='-Wl,'
17345        lt_prog_compiler_can_build_shared_F77=no
17346 @@ -13957,16 +14404,16 @@
17347      esac
17348    fi
17349  
17350 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17351 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
17352 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17353 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17354  
17355  #
17356  # Check to make sure the PIC flag actually works.
17357  #
17358  if test -n "$lt_prog_compiler_pic_F77"; then
17359  
17360 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17361 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
17362 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17363 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17364  if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17365    echo $ECHO_N "(cached) $ECHO_C" >&6
17366  else
17367 @@ -13980,28 +14427,28 @@
17368     # with a dollar sign (not a hyphen), so the echo should work correctly.
17369     # The option is referenced via a variable to avoid confusing sed.
17370     lt_compile=`echo "$ac_compile" | $SED \
17371 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17372 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17373     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17374     -e 's:$: $lt_compiler_flag:'`
17375 -   (eval echo "\"\$as_me:13986: $lt_compile\"" >&5)
17376 +   (eval echo "\"\$as_me:14433: $lt_compile\"" >&5)
17377     (eval "$lt_compile" 2>conftest.err)
17378     ac_status=$?
17379     cat conftest.err >&5
17380 -   echo "$as_me:13990: \$? = $ac_status" >&5
17381 +   echo "$as_me:14437: \$? = $ac_status" >&5
17382     if (exit $ac_status) && test -s "$ac_outfile"; then
17383       # The compiler can only warn and ignore the option if not recognized
17384       # So say no if there are warnings other than the usual output.
17385 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17386 -     $SED '/^$/d' conftest.err >conftest.er2
17387 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17388 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17389 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17390 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17391         lt_prog_compiler_pic_works_F77=yes
17392       fi
17393     fi
17394     $rm conftest*
17395  
17396  fi
17397 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17398 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
17399 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17400 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
17401  
17402  if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17403      case $lt_prog_compiler_pic_F77 in
17404 @@ -14014,7 +14461,7 @@
17405  fi
17406  
17407  fi
17408 -case "$host_os" in
17409 +case $host_os in
17410    # For platforms which do not support PIC, -DPIC is meaningless:
17411    *djgpp*)
17412      lt_prog_compiler_pic_F77=
17413 @@ -14024,43 +14471,85 @@
17414      ;;
17415  esac
17416  
17417 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17418 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17419 -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17420 +#
17421 +# Check to make sure the static flag actually works.
17422 +#
17423 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17424 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17425 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17426 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
17427    echo $ECHO_N "(cached) $ECHO_C" >&6
17428  else
17429 -  lt_cv_prog_compiler_c_o_F77=no
17430 -   $rm -r conftest 2>/dev/null
17431 -   mkdir conftest
17432 -   cd conftest
17433 -   mkdir out
17434 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17435 -
17436 +  lt_prog_compiler_static_works_F77=no
17437 +   save_LDFLAGS="$LDFLAGS"
17438 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17439 +   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17440 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17441 +     # The linker can only warn and ignore the option if not recognized
17442 +     # So say no if there are warnings
17443 +     if test -s conftest.err; then
17444 +       # Append any errors to the config.log.
17445 +       cat conftest.err 1>&5
17446 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17447 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17448 +       if diff conftest.exp conftest.er2 >/dev/null; then
17449 +         lt_prog_compiler_static_works_F77=yes
17450 +       fi
17451 +     else
17452 +       lt_prog_compiler_static_works_F77=yes
17453 +     fi
17454 +   fi
17455 +   $rm conftest*
17456 +   LDFLAGS="$save_LDFLAGS"
17457 +
17458 +fi
17459 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
17460 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
17461 +
17462 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
17463 +    :
17464 +else
17465 +    lt_prog_compiler_static_F77=
17466 +fi
17467 +
17468 +
17469 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17470 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17471 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17472 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17473 +else
17474 +  lt_cv_prog_compiler_c_o_F77=no
17475 +   $rm -r conftest 2>/dev/null
17476 +   mkdir conftest
17477 +   cd conftest
17478 +   mkdir out
17479 +   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17480 +
17481     lt_compiler_flag="-o out/conftest2.$ac_objext"
17482     # Insert the option either (1) after the last *FLAGS variable, or
17483     # (2) before a word containing "conftest.", or (3) at the end.
17484     # Note that $ac_compile itself does not contain backslashes and begins
17485     # with a dollar sign (not a hyphen), so the echo should work correctly.
17486     lt_compile=`echo "$ac_compile" | $SED \
17487 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17488 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17489     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17490     -e 's:$: $lt_compiler_flag:'`
17491 -   (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
17492 +   (eval echo "\"\$as_me:14537: $lt_compile\"" >&5)
17493     (eval "$lt_compile" 2>out/conftest.err)
17494     ac_status=$?
17495     cat out/conftest.err >&5
17496 -   echo "$as_me:14052: \$? = $ac_status" >&5
17497 +   echo "$as_me:14541: \$? = $ac_status" >&5
17498     if (exit $ac_status) && test -s out/conftest2.$ac_objext
17499     then
17500       # The compiler can only warn and ignore the option if not recognized
17501       # So say no if there are warnings
17502 -     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17503 -     $SED '/^$/d' out/conftest.err >out/conftest.er2
17504 -     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17505 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17506 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17507 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17508         lt_cv_prog_compiler_c_o_F77=yes
17509       fi
17510     fi
17511 -   chmod u+w .
17512 +   chmod u+w . 2>&5
17513     $rm conftest*
17514     # SGI C++ compiler will create directory out/ii_files/ for
17515     # template instantiation
17516 @@ -14071,23 +14560,23 @@
17517     $rm conftest*
17518  
17519  fi
17520 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17521 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
17522 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17523 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17524  
17525  
17526  hard_links="nottested"
17527  if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17528    # do not overwrite the value of need_locks provided by the user
17529 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17530 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17531 +  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17532 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17533    hard_links=yes
17534    $rm conftest*
17535    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17536    touch conftest.a
17537    ln conftest.a conftest.b 2>&5 || hard_links=no
17538    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17539 -  echo "$as_me:$LINENO: result: $hard_links" >&5
17540 -echo "${ECHO_T}$hard_links" >&6
17541 +  { echo "$as_me:$LINENO: result: $hard_links" >&5
17542 +echo "${ECHO_T}$hard_links" >&6; }
17543    if test "$hard_links" = no; then
17544      { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17545  echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17546 @@ -14097,8 +14586,8 @@
17547    need_locks=no
17548  fi
17549  
17550 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17551 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17552 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17553 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17554  
17555    runpath_var=
17556    allow_undefined_flag_F77=
17557 @@ -14156,6 +14645,10 @@
17558        with_gnu_ld=no
17559      fi
17560      ;;
17561 +  interix*)
17562 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
17563 +    with_gnu_ld=yes
17564 +    ;;
17565    openbsd*)
17566      with_gnu_ld=no
17567      ;;
17568 @@ -14240,7 +14733,7 @@
17569        export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17570  
17571        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17572 -        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17573 +        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17574         # If the export-symbols file already is a .def file (1st line
17575         # is EXPORTS), use it as is; otherwise, prepend...
17576         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17577 @@ -14249,22 +14742,37 @@
17578           echo EXPORTS > $output_objdir/$soname.def;
17579           cat $export_symbols >> $output_objdir/$soname.def;
17580         fi~
17581 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17582 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17583        else
17584         ld_shlibs_F77=no
17585        fi
17586        ;;
17587  
17588 -    linux*)
17589 +    interix3*)
17590 +      hardcode_direct_F77=no
17591 +      hardcode_shlibpath_var_F77=no
17592 +      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17593 +      export_dynamic_flag_spec_F77='${wl}-E'
17594 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17595 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
17596 +      # default) and relocated if they conflict, which is a slow very memory
17597 +      # consuming and fragmenting process.  To avoid this, we pick a random,
17598 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17599 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17600 +      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17601 +      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17602 +      ;;
17603 +
17604 +    linux* | k*bsd*-gnu)
17605        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17606         tmp_addflag=
17607         case $cc_basename,$host_cpu in
17608         pgcc*)                          # Portland Group C compiler
17609 -         whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17610 +         whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17611           tmp_addflag=' $pic_flag'
17612           ;;
17613 -       pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
17614 -         whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17615 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17616 +         whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17617           tmp_addflag=' $pic_flag -Mnomain' ;;
17618         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17619           tmp_addflag=' -i_dynamic' ;;
17620 @@ -14281,12 +14789,13 @@
17621    $echo "local: *; };" >> $output_objdir/$libname.ver~
17622           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17623         fi
17624 +       link_all_deplibs_F77=no
17625        else
17626         ld_shlibs_F77=no
17627        fi
17628        ;;
17629  
17630 -    netbsd*)
17631 +    netbsd* | netbsdelf*-gnu)
17632        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17633         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17634         wlarc=
17635 @@ -14296,7 +14805,7 @@
17636        fi
17637        ;;
17638  
17639 -    solaris* | sysv5*)
17640 +    solaris*)
17641        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17642         ld_shlibs_F77=no
17643         cat <<EOF 1>&2
17644 @@ -14317,6 +14826,33 @@
17645        fi
17646        ;;
17647  
17648 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17649 +      case `$LD -v 2>&1` in
17650 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17651 +       ld_shlibs_F77=no
17652 +       cat <<_LT_EOF 1>&2
17653 +
17654 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17655 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
17656 +*** is disabling shared libraries support.  We urge you to upgrade GNU
17657 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17658 +*** your PATH or compiler configuration so that the native linker is
17659 +*** used, and then restart.
17660 +
17661 +_LT_EOF
17662 +       ;;
17663 +       *)
17664 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17665 +           hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17666 +           archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17667 +           archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17668 +         else
17669 +           ld_shlibs_F77=no
17670 +         fi
17671 +       ;;
17672 +      esac
17673 +      ;;
17674 +
17675      sunos4*)
17676        archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17677        wlarc=
17678 @@ -14350,7 +14886,7 @@
17679        # Note: this linker hardcodes the directories in LIBPATH if there
17680        # are no directories specified by -L.
17681        hardcode_minus_L_F77=yes
17682 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
17683 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17684         # Neither direct hardcoding nor static linking is supported with a
17685         # broken collect2.
17686         hardcode_direct_F77=unsupported
17687 @@ -14384,6 +14920,7 @@
17688             break
17689           fi
17690           done
17691 +         ;;
17692         esac
17693  
17694         exp_sym_flag='-bexport'
17695 @@ -14421,6 +14958,7 @@
17696           hardcode_libdir_flag_spec_F77='-L$libdir'
17697           hardcode_libdir_separator_F77=
17698           fi
17699 +         ;;
17700         esac
17701         shared_flag='-shared'
17702         if test "$aix_use_runtimelinking" = yes; then
17703 @@ -14433,11 +14971,11 @@
17704         # chokes on -Wl,-G. The following line is correct:
17705           shared_flag='-G'
17706         else
17707 -       if test "$aix_use_runtimelinking" = yes; then
17708 +         if test "$aix_use_runtimelinking" = yes; then
17709             shared_flag='${wl}-G'
17710           else
17711             shared_flag='${wl}-bM:SRE'
17712 -       fi
17713 +         fi
17714         fi
17715        fi
17716  
17717 @@ -14455,24 +14993,36 @@
17718        end
17719  _ACEOF
17720  rm -f conftest.$ac_objext conftest$ac_exeext
17721 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17722 -  (eval $ac_link) 2>conftest.er1
17723 +if { (ac_try="$ac_link"
17724 +case "(($ac_try" in
17725 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 +  *) ac_try_echo=$ac_try;;
17727 +esac
17728 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 +  (eval "$ac_link") 2>conftest.er1
17730    ac_status=$?
17731    grep -v '^ *+' conftest.er1 >conftest.err
17732    rm -f conftest.er1
17733    cat conftest.err >&5
17734    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735    (exit $ac_status); } &&
17736 -        { ac_try='test -z "$ac_f77_werror_flag"
17737 -                        || test ! -s conftest.err'
17738 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 -  (eval $ac_try) 2>&5
17740 +        { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
17741 +  { (case "(($ac_try" in
17742 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 +  *) ac_try_echo=$ac_try;;
17744 +esac
17745 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 +  (eval "$ac_try") 2>&5
17747    ac_status=$?
17748    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749    (exit $ac_status); }; } &&
17750          { ac_try='test -s conftest$ac_exeext'
17751 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 -  (eval $ac_try) 2>&5
17753 +  { (case "(($ac_try" in
17754 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 +  *) ac_try_echo=$ac_try;;
17756 +esac
17757 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 +  (eval "$ac_try") 2>&5
17759    ac_status=$?
17760    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761    (exit $ac_status); }; }; then
17762 @@ -14486,18 +15036,20 @@
17763    echo "$as_me: failed program was:" >&5
17764  sed 's/^/| /' conftest.$ac_ext >&5
17765  
17766 +
17767  fi
17768 -rm -f conftest.err conftest.$ac_objext \
17769 +
17770 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771        conftest$ac_exeext conftest.$ac_ext
17772  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17773  
17774         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17775 -       archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17776 +       archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17777         else
17778         if test "$host_cpu" = ia64; then
17779           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17780           allow_undefined_flag_F77="-z nodefs"
17781 -         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17782 +         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17783         else
17784          # Determine the default libpath from the value encoded in an empty executable.
17785          cat >conftest.$ac_ext <<_ACEOF
17786 @@ -14506,24 +15058,36 @@
17787        end
17788  _ACEOF
17789  rm -f conftest.$ac_objext conftest$ac_exeext
17790 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791 -  (eval $ac_link) 2>conftest.er1
17792 +if { (ac_try="$ac_link"
17793 +case "(($ac_try" in
17794 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 +  *) ac_try_echo=$ac_try;;
17796 +esac
17797 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 +  (eval "$ac_link") 2>conftest.er1
17799    ac_status=$?
17800    grep -v '^ *+' conftest.er1 >conftest.err
17801    rm -f conftest.er1
17802    cat conftest.err >&5
17803    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804    (exit $ac_status); } &&
17805 -        { ac_try='test -z "$ac_f77_werror_flag"
17806 -                        || test ! -s conftest.err'
17807 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 -  (eval $ac_try) 2>&5
17809 +        { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
17810 +  { (case "(($ac_try" in
17811 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 +  *) ac_try_echo=$ac_try;;
17813 +esac
17814 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 +  (eval "$ac_try") 2>&5
17816    ac_status=$?
17817    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818    (exit $ac_status); }; } &&
17819          { ac_try='test -s conftest$ac_exeext'
17820 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 -  (eval $ac_try) 2>&5
17822 +  { (case "(($ac_try" in
17823 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 +  *) ac_try_echo=$ac_try;;
17825 +esac
17826 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 +  (eval "$ac_try") 2>&5
17828    ac_status=$?
17829    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830    (exit $ac_status); }; }; then
17831 @@ -14537,8 +15101,10 @@
17832    echo "$as_me: failed program was:" >&5
17833  sed 's/^/| /' conftest.$ac_ext >&5
17834  
17835 +
17836  fi
17837 -rm -f conftest.err conftest.$ac_objext \
17838 +
17839 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17840        conftest$ac_exeext conftest.$ac_ext
17841  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17842  
17843 @@ -14547,13 +15113,11 @@
17844           # -berok will link without error, but may produce a broken library.
17845           no_undefined_flag_F77=' ${wl}-bernotok'
17846           allow_undefined_flag_F77=' ${wl}-berok'
17847 -         # -bexpall does not export symbols beginning with underscore (_)
17848 -         always_export_symbols_F77=yes
17849           # Exported symbols can be pulled into shared objects from archives
17850 -         whole_archive_flag_spec_F77=' '
17851 +         whole_archive_flag_spec_F77='$convenience'
17852           archive_cmds_need_lc_F77=yes
17853 -         # This is similar to how AIX traditionally builds it's shared libraries.
17854 -         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17855 +         # This is similar to how AIX traditionally builds its shared libraries.
17856 +         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17857         fi
17858        fi
17859        ;;
17860 @@ -14592,7 +15156,7 @@
17861        ;;
17862  
17863      darwin* | rhapsody*)
17864 -      case "$host_os" in
17865 +      case $host_os in
17866          rhapsody* | darwin1.[012])
17867           allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17868           ;;
17869 @@ -14621,7 +15185,7 @@
17870         output_verbose_link_cmd='echo'
17871          archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17872        module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17873 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17874 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17875        archive_expsym_cmds_F77='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}'
17876        module_expsym_cmds_F77='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}'
17877      else
17878 @@ -14630,7 +15194,7 @@
17879           output_verbose_link_cmd='echo'
17880           archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17881           module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17882 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17883 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17884           archive_expsym_cmds_F77='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}'
17885            module_expsym_cmds_F77='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}'
17886            ;;
17887 @@ -14671,7 +15235,7 @@
17888        ;;
17889  
17890      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17891 -    freebsd* | kfreebsd*-gnu | dragonfly*)
17892 +    freebsd* | dragonfly*)
17893        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17894        hardcode_libdir_flag_spec_F77='-R$libdir'
17895        hardcode_direct_F77=yes
17896 @@ -14694,47 +15258,62 @@
17897        export_dynamic_flag_spec_F77='${wl}-E'
17898        ;;
17899  
17900 -    hpux10* | hpux11*)
17901 +    hpux10*)
17902        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17903 -       case "$host_cpu" in
17904 -       hppa*64*|ia64*)
17905 +       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17906 +      else
17907 +       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17908 +      fi
17909 +      if test "$with_gnu_ld" = no; then
17910 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17911 +       hardcode_libdir_separator_F77=:
17912 +
17913 +       hardcode_direct_F77=yes
17914 +       export_dynamic_flag_spec_F77='${wl}-E'
17915 +
17916 +       # hardcode_minus_L: Not really in the search PATH,
17917 +       # but as the default location of the library.
17918 +       hardcode_minus_L_F77=yes
17919 +      fi
17920 +      ;;
17921 +
17922 +    hpux11*)
17923 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17924 +       case $host_cpu in
17925 +       hppa*64*)
17926           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17927           ;;
17928 +       ia64*)
17929 +         archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17930 +         ;;
17931         *)
17932           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17933           ;;
17934         esac
17935        else
17936 -       case "$host_cpu" in
17937 -       hppa*64*|ia64*)
17938 -         archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17939 +       case $host_cpu in
17940 +       hppa*64*)
17941 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17942 +         ;;
17943 +       ia64*)
17944 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17945           ;;
17946         *)
17947 -         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17948 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17949           ;;
17950         esac
17951        fi
17952        if test "$with_gnu_ld" = no; then
17953 -       case "$host_cpu" in
17954 -       hppa*64*)
17955 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17956 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17957 +       hardcode_libdir_separator_F77=:
17958 +
17959 +       case $host_cpu in
17960 +       hppa*64*|ia64*)
17961           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17962 -         hardcode_libdir_separator_F77=:
17963           hardcode_direct_F77=no
17964           hardcode_shlibpath_var_F77=no
17965           ;;
17966 -       ia64*)
17967 -         hardcode_libdir_flag_spec_F77='-L$libdir'
17968 -         hardcode_direct_F77=no
17969 -         hardcode_shlibpath_var_F77=no
17970 -
17971 -         # hardcode_minus_L: Not really in the search PATH,
17972 -         # but as the default location of the library.
17973 -         hardcode_minus_L_F77=yes
17974 -         ;;
17975         *)
17976 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17977 -         hardcode_libdir_separator_F77=:
17978           hardcode_direct_F77=yes
17979           export_dynamic_flag_spec_F77='${wl}-E'
17980  
17981 @@ -14758,7 +15337,7 @@
17982        link_all_deplibs_F77=yes
17983        ;;
17984  
17985 -    netbsd*)
17986 +    netbsd* | netbsdelf*-gnu)
17987        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17988         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17989        else
17990 @@ -14836,14 +15415,6 @@
17991        hardcode_libdir_separator_F77=:
17992        ;;
17993  
17994 -    sco3.2v5*)
17995 -      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17996 -      hardcode_shlibpath_var_F77=no
17997 -      export_dynamic_flag_spec_F77='${wl}-Bexport'
17998 -      runpath_var=LD_RUN_PATH
17999 -      hardcode_runpath_var=yes
18000 -      ;;
18001 -
18002      solaris*)
18003        no_undefined_flag_F77=' -z text'
18004        if test "$GCC" = yes; then
18005 @@ -14929,36 +15500,45 @@
18006        fi
18007        ;;
18008  
18009 -    sysv4.2uw2*)
18010 -      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18011 -      hardcode_direct_F77=yes
18012 -      hardcode_minus_L_F77=no
18013 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18014 +      no_undefined_flag_F77='${wl}-z,text'
18015 +      archive_cmds_need_lc_F77=no
18016        hardcode_shlibpath_var_F77=no
18017 -      hardcode_runpath_var=yes
18018 -      runpath_var=LD_RUN_PATH
18019 -      ;;
18020 +      runpath_var='LD_RUN_PATH'
18021  
18022 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18023 -      no_undefined_flag_F77='${wl}-z ${wl}text'
18024        if test "$GCC" = yes; then
18025 -       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 +       archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18027 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18028        else
18029 -       archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18030 +       archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18031 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18032        fi
18033 -      runpath_var='LD_RUN_PATH'
18034 -      hardcode_shlibpath_var_F77=no
18035        ;;
18036  
18037 -    sysv5*)
18038 -      no_undefined_flag_F77=' -z text'
18039 -      # $CC -shared without GNU ld will not create a library from C++
18040 -      # object files and a static libstdc++, better avoid it by now
18041 -      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18042 -      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18043 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18044 -      hardcode_libdir_flag_spec_F77=
18045 +    sysv5* | sco3.2v5* | sco5v6*)
18046 +      # Note: We can NOT use -z defs as we might desire, because we do not
18047 +      # link with -lc, and that would cause any symbols used from libc to
18048 +      # always be unresolved, which means just about no library would
18049 +      # ever link correctly.  If we're not using GNU ld we use -z text
18050 +      # though, which does catch some bad symbols but isn't as heavy-handed
18051 +      # as -z defs.
18052 +      no_undefined_flag_F77='${wl}-z,text'
18053 +      allow_undefined_flag_F77='${wl}-z,nodefs'
18054 +      archive_cmds_need_lc_F77=no
18055        hardcode_shlibpath_var_F77=no
18056 +      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18057 +      hardcode_libdir_separator_F77=':'
18058 +      link_all_deplibs_F77=yes
18059 +      export_dynamic_flag_spec_F77='${wl}-Bexport'
18060        runpath_var='LD_RUN_PATH'
18061 +
18062 +      if test "$GCC" = yes; then
18063 +       archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18064 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18065 +      else
18066 +       archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18068 +      fi
18069        ;;
18070  
18071      uts4*)
18072 @@ -14973,15 +15553,10 @@
18073      esac
18074    fi
18075  
18076 -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18077 -echo "${ECHO_T}$ld_shlibs_F77" >&6
18078 +{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18079 +echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18080  test "$ld_shlibs_F77" = no && can_build_shared=no
18081  
18082 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18083 -if test "$GCC" = yes; then
18084 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18085 -fi
18086 -
18087  #
18088  # Do we need to explicitly link libc?
18089  #
18090 @@ -14999,8 +15574,8 @@
18091        # Test whether the compiler implicitly links with -lc since on some
18092        # systems, -lgcc has to come before -lc. If gcc already passes -lc
18093        # to ld, don't add -lc before -lgcc.
18094 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18095 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18096 +      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18097 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18098        $rm conftest*
18099        printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18100  
18101 @@ -15014,6 +15589,7 @@
18102          libobjs=conftest.$ac_objext
18103          deplibs=
18104          wl=$lt_prog_compiler_wl_F77
18105 +       pic_flag=$lt_prog_compiler_pic_F77
18106          compiler_flags=-v
18107          linker_flags=-v
18108          verstring=
18109 @@ -15036,16 +15612,16 @@
18110          cat conftest.err 1>&5
18111        fi
18112        $rm conftest*
18113 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18114 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
18115 +      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18116 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18117        ;;
18118      esac
18119    fi
18120    ;;
18121  esac
18122  
18123 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18124 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18125 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18126 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18127  library_names_spec=
18128  libname_spec='lib$name'
18129  soname_spec=
18130 @@ -15174,7 +15750,8 @@
18131        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18132        dldir=$destdir/`dirname \$dlpath`~
18133        test -d \$dldir || mkdir -p \$dldir~
18134 -      $install_prog $dir/$dlname \$dldir/$dlname'
18135 +      $install_prog $dir/$dlname \$dldir/$dlname~
18136 +      chmod a+x \$dldir/$dlname'
18137      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18138        dlpath=$dir/\$dldll~
18139         $rm \$dlpath'
18140 @@ -15209,30 +15786,6 @@
18141      esac
18142      ;;
18143  
18144 -  linux*)
18145 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18146 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18147 -      supports_anon_versioning=no
18148 -      case `$LD -v 2>/dev/null` in
18149 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18150 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18151 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18152 -        *\ 2.11.*) ;; # other 2.11 versions
18153 -        *) supports_anon_versioning=yes ;;
18154 -      esac
18155 -      if test $supports_anon_versioning = yes; then
18156 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18157 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18158 -$echo "local: *; };" >> $output_objdir/$libname.ver~
18159 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18160 -      else
18161 -        $archive_expsym_cmds="$archive_cmds"
18162 -      fi
18163 -    else
18164 -      ld_shlibs=no
18165 -    fi
18166 -    ;;
18167 -
18168    *)
18169      library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18170      ;;
18171 @@ -15251,7 +15804,7 @@
18172    soname_spec='${libname}${release}${major}$shared_ext'
18173    shlibpath_overrides_runpath=yes
18174    shlibpath_var=DYLD_LIBRARY_PATH
18175 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18176 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18177    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18178    if test "$GCC" = yes; then
18179      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"`
18180 @@ -15274,22 +15827,17 @@
18181    dynamic_linker=no
18182    ;;
18183  
18184 -kfreebsd*-gnu)
18185 -  version_type=linux
18186 -  need_lib_prefix=no
18187 -  need_version=no
18188 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18189 -  soname_spec='${libname}${release}${shared_ext}$major'
18190 -  shlibpath_var=LD_LIBRARY_PATH
18191 -  shlibpath_overrides_runpath=no
18192 -  hardcode_into_libs=yes
18193 -  dynamic_linker='GNU ld.so'
18194 -  ;;
18195 -
18196  freebsd* | dragonfly*)
18197    # DragonFly does not have aout.  When/if they implement a new
18198    # versioning mechanism, adjust this.
18199 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18200 +  if test -x /usr/bin/objformat; then
18201 +    objformat=`/usr/bin/objformat`
18202 +  else
18203 +    case $host_os in
18204 +    freebsd[123]*) objformat=aout ;;
18205 +    *) objformat=elf ;;
18206 +    esac
18207 +  fi
18208    version_type=freebsd-$objformat
18209    case $version_type in
18210      freebsd-elf*)
18211 @@ -15311,10 +15859,15 @@
18212      shlibpath_overrides_runpath=yes
18213      hardcode_into_libs=yes
18214      ;;
18215 -  *) # from 3.2 on
18216 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18217 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18218      shlibpath_overrides_runpath=no
18219      hardcode_into_libs=yes
18220      ;;
18221 +  freebsd*) # from 4.6 on
18222 +    shlibpath_overrides_runpath=yes
18223 +    hardcode_into_libs=yes
18224 +    ;;
18225    esac
18226    ;;
18227  
18228 @@ -15334,7 +15887,7 @@
18229    version_type=sunos
18230    need_lib_prefix=no
18231    need_version=no
18232 -  case "$host_cpu" in
18233 +  case $host_cpu in
18234    ia64*)
18235      shrext_cmds='.so'
18236      hardcode_into_libs=yes
18237 @@ -15374,6 +15927,18 @@
18238    postinstall_cmds='chmod 555 $lib'
18239    ;;
18240  
18241 +interix3*)
18242 +  version_type=linux
18243 +  need_lib_prefix=no
18244 +  need_version=no
18245 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18246 +  soname_spec='${libname}${release}${shared_ext}$major'
18247 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18248 +  shlibpath_var=LD_LIBRARY_PATH
18249 +  shlibpath_overrides_runpath=no
18250 +  hardcode_into_libs=yes
18251 +  ;;
18252 +
18253  irix5* | irix6* | nonstopux*)
18254    case $host_os in
18255      nonstopux*) version_type=nonstopux ;;
18256 @@ -15417,7 +15982,7 @@
18257    ;;
18258  
18259  # This must be Linux ELF.
18260 -linux*)
18261 +linux* | k*bsd*-gnu)
18262    version_type=linux
18263    need_lib_prefix=no
18264    need_version=no
18265 @@ -15437,13 +16002,6 @@
18266      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18267    fi
18268  
18269 -  case $host_cpu:$lt_cv_cc_64bit_output in
18270 -  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
18271 -    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
18272 -    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
18273 -    ;;
18274 -  esac
18275 -
18276    # We used to test for /lib/ld.so.1 and disable shared libraries on
18277    # powerpc, because MkLinux only supported shared libraries with the
18278    # GNU dynamic linker.  Since this was broken with cross compilers,
18279 @@ -15451,33 +16009,9 @@
18280    # people can always --disable-shared, the test was removed, and we
18281    # assume the GNU/Linux dynamic linker is in use.
18282    dynamic_linker='GNU/Linux ld.so'
18283 -
18284 -  # Find out which ABI we are using (multilib Linux x86_64 hack).
18285 -  libsuff=
18286 -  case "$host_cpu" in
18287 -  x86_64*)
18288 -    echo '#line 15459 "configure"' > conftest.$ac_ext
18289 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 -  (eval $ac_compile) 2>&5
18291 -  ac_status=$?
18292 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 -  (exit $ac_status); }; then
18294 -      case `/usr/bin/file conftest.$ac_objext` in
18295 -      *64-bit*)
18296 -        libsuff=64
18297 -        ;;
18298 -      esac
18299 -    fi
18300 -    rm -rf conftest*
18301 -    ;;
18302 -  *)
18303 -    ;;
18304 -  esac
18305 -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18306 -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18307    ;;
18308  
18309 -knetbsd*-gnu)
18310 +netbsdelf*-gnu)
18311    version_type=linux
18312    need_lib_prefix=no
18313    need_version=no
18314 @@ -15486,7 +16020,7 @@
18315    shlibpath_var=LD_LIBRARY_PATH
18316    shlibpath_overrides_runpath=no
18317    hardcode_into_libs=yes
18318 -  dynamic_linker='GNU ld.so'
18319 +  dynamic_linker='NetBSD ld.elf_so'
18320    ;;
18321  
18322  netbsd*)
18323 @@ -15526,6 +16060,7 @@
18324  
18325  openbsd*)
18326    version_type=sunos
18327 +  sys_lib_dlsearch_path_spec="/usr/lib"
18328    need_lib_prefix=no
18329    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18330    case $host_os in
18331 @@ -15569,13 +16104,6 @@
18332    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18333    ;;
18334  
18335 -sco3.2v5*)
18336 -  version_type=osf
18337 -  soname_spec='${libname}${release}${shared_ext}$major'
18338 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18339 -  shlibpath_var=LD_LIBRARY_PATH
18340 -  ;;
18341 -
18342  solaris*)
18343    version_type=linux
18344    need_lib_prefix=no
18345 @@ -15601,7 +16129,7 @@
18346    need_version=yes
18347    ;;
18348  
18349 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18350 +sysv4 | sysv4.3*)
18351    version_type=linux
18352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353    soname_spec='${libname}${release}${shared_ext}$major'
18354 @@ -15634,6 +16162,29 @@
18355    fi
18356    ;;
18357  
18358 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18359 +  version_type=freebsd-elf
18360 +  need_lib_prefix=no
18361 +  need_version=no
18362 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18363 +  soname_spec='${libname}${release}${shared_ext}$major'
18364 +  shlibpath_var=LD_LIBRARY_PATH
18365 +  hardcode_into_libs=yes
18366 +  if test "$with_gnu_ld" = yes; then
18367 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18368 +    shlibpath_overrides_runpath=no
18369 +  else
18370 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18371 +    shlibpath_overrides_runpath=yes
18372 +    case $host_os in
18373 +      sco3.2v5*)
18374 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18375 +       ;;
18376 +    esac
18377 +  fi
18378 +  sys_lib_dlsearch_path_spec='/usr/lib'
18379 +  ;;
18380 +
18381  uts4*)
18382    version_type=linux
18383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18384 @@ -15645,12 +16196,17 @@
18385    dynamic_linker=no
18386    ;;
18387  esac
18388 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18389 -echo "${ECHO_T}$dynamic_linker" >&6
18390 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18391 +echo "${ECHO_T}$dynamic_linker" >&6; }
18392  test "$dynamic_linker" = no && can_build_shared=no
18393  
18394 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18395 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18396 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18397 +if test "$GCC" = yes; then
18398 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18399 +fi
18400 +
18401 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18402 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18403  hardcode_action_F77=
18404  if test -n "$hardcode_libdir_flag_spec_F77" || \
18405     test -n "$runpath_var_F77" || \
18406 @@ -15674,8 +16230,8 @@
18407    # directories.
18408    hardcode_action_F77=unsupported
18409  fi
18410 -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18411 -echo "${ECHO_T}$hardcode_action_F77" >&6
18412 +{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18413 +echo "${ECHO_T}$hardcode_action_F77" >&6; }
18414  
18415  if test "$hardcode_action_F77" = relink; then
18416    # Fast installation is not supported
18417 @@ -15686,36 +16242,6 @@
18418    enable_fast_install=needless
18419  fi
18420  
18421 -striplib=
18422 -old_striplib=
18423 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18424 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18425 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18426 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18427 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18428 -  echo "$as_me:$LINENO: result: yes" >&5
18429 -echo "${ECHO_T}yes" >&6
18430 -else
18431 -# FIXME - insert some real tests, host_os isn't really good enough
18432 -  case $host_os in
18433 -   darwin*)
18434 -       if test -n "$STRIP" ; then
18435 -         striplib="$STRIP -x"
18436 -         echo "$as_me:$LINENO: result: yes" >&5
18437 -echo "${ECHO_T}yes" >&6
18438 -       else
18439 -  echo "$as_me:$LINENO: result: no" >&5
18440 -echo "${ECHO_T}no" >&6
18441 -fi
18442 -       ;;
18443 -   *)
18444 -  echo "$as_me:$LINENO: result: no" >&5
18445 -echo "${ECHO_T}no" >&6
18446 -    ;;
18447 -  esac
18448 -fi
18449 -
18450 -
18451  
18452  # The else clause should only fire when bootstrapping the
18453  # libtool distribution, otherwise you forgot to ship ltmain.sh
18454 @@ -15730,7 +16256,7 @@
18455    # Now quote all the things that may contain metacharacters while being
18456    # careful not to overquote the AC_SUBSTed values.  We take copies of the
18457    # variables and quote the copies for generation of the libtool script.
18458 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18459 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18460      SED SHELL STRIP \
18461      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18462      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18463 @@ -15848,6 +16374,9 @@
18464  # A C compiler.
18465  LTCC=$lt_LTCC
18466  
18467 +# LTCC compiler flags.
18468 +LTCFLAGS=$lt_LTCFLAGS
18469 +
18470  # A language-specific compiler.
18471  CC=$lt_compiler_F77
18472  
18473 @@ -16139,7 +16668,6 @@
18474         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18475  
18476  
18477 -
18478  # Source file extension for Java test sources.
18479  ac_ext=java
18480  
18481 @@ -16158,6 +16686,9 @@
18482  # If no C compiler was specified, use CC.
18483  LTCC=${LTCC-"$CC"}
18484  
18485 +# If no C compiler flags were specified, use CFLAGS.
18486 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18487 +
18488  # Allow CC to be a program name with arguments.
18489  compiler=$CC
18490  
18491 @@ -16165,13 +16696,13 @@
18492  # save warnings/boilerplate of simple test code
18493  ac_outfile=conftest.$ac_objext
18494  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18495 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18496 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18497  _lt_compiler_boilerplate=`cat conftest.err`
18498  $rm conftest*
18499  
18500  ac_outfile=conftest.$ac_objext
18501  printf "$lt_simple_link_test_code" >conftest.$ac_ext
18502 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18503 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18504  _lt_linker_boilerplate=`cat conftest.err`
18505  $rm conftest*
18506  
18507 @@ -16204,8 +16735,8 @@
18508    lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18509  
18510  
18511 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18512 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18513 +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18514 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18515  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18516    echo $ECHO_N "(cached) $ECHO_C" >&6
18517  else
18518 @@ -16219,28 +16750,28 @@
18519     # with a dollar sign (not a hyphen), so the echo should work correctly.
18520     # The option is referenced via a variable to avoid confusing sed.
18521     lt_compile=`echo "$ac_compile" | $SED \
18522 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18523 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18524     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18525     -e 's:$: $lt_compiler_flag:'`
18526 -   (eval echo "\"\$as_me:16225: $lt_compile\"" >&5)
18527 +   (eval echo "\"\$as_me:16756: $lt_compile\"" >&5)
18528     (eval "$lt_compile" 2>conftest.err)
18529     ac_status=$?
18530     cat conftest.err >&5
18531 -   echo "$as_me:16229: \$? = $ac_status" >&5
18532 +   echo "$as_me:16760: \$? = $ac_status" >&5
18533     if (exit $ac_status) && test -s "$ac_outfile"; then
18534       # The compiler can only warn and ignore the option if not recognized
18535       # So say no if there are warnings other than the usual output.
18536 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18537 -     $SED '/^$/d' conftest.err >conftest.er2
18538 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18539 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18540 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18541 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18542         lt_cv_prog_compiler_rtti_exceptions=yes
18543       fi
18544     fi
18545     $rm conftest*
18546  
18547  fi
18548 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18549 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18550 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18551 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18552  
18553  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18554      lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18555 @@ -16254,8 +16785,8 @@
18556  lt_prog_compiler_pic_GCJ=
18557  lt_prog_compiler_static_GCJ=
18558  
18559 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18560 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18561 +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18562 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18563  
18564    if test "$GCC" = yes; then
18565      lt_prog_compiler_wl_GCJ='-Wl,'
18566 @@ -16293,6 +16824,11 @@
18567        lt_prog_compiler_pic_GCJ='-fno-common'
18568        ;;
18569  
18570 +    interix3*)
18571 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18572 +      # Instead, we relocate shared libraries at runtime.
18573 +      ;;
18574 +
18575      msdosdjgpp*)
18576        # Just because we use GCC doesn't mean we suddenly get shared libraries
18577        # on systems that don't support them.
18578 @@ -16309,7 +16845,7 @@
18579      hpux*)
18580        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18581        # not for PA HP-UX.
18582 -      case "$host_cpu" in
18583 +      case $host_cpu in
18584        hppa*64*|ia64*)
18585         # +Z the default
18586         ;;
18587 @@ -16356,7 +16892,7 @@
18588        lt_prog_compiler_wl_GCJ='-Wl,'
18589        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18590        # not for PA HP-UX.
18591 -      case "$host_cpu" in
18592 +      case $host_cpu in
18593        hppa*64*|ia64*)
18594         # +Z the default
18595         ;;
18596 @@ -16379,19 +16915,19 @@
18597        lt_prog_compiler_static_GCJ='-Bstatic'
18598        ;;
18599  
18600 -    linux*)
18601 +    linux* | k*bsd*-gnu)
18602        case $cc_basename in
18603        icc* | ecc*)
18604         lt_prog_compiler_wl_GCJ='-Wl,'
18605         lt_prog_compiler_pic_GCJ='-KPIC'
18606         lt_prog_compiler_static_GCJ='-static'
18607          ;;
18608 -      pgcc* | pgf77* | pgf90*)
18609 +      pgcc* | pgf77* | pgf90* | pgf95*)
18610          # Portland Group compilers (*not* the Pentium gcc compiler,
18611         # which looks to be a dead project)
18612         lt_prog_compiler_wl_GCJ='-Wl,'
18613         lt_prog_compiler_pic_GCJ='-fpic'
18614 -       lt_prog_compiler_static_GCJ='-static'
18615 +       lt_prog_compiler_static_GCJ='-Bstatic'
18616          ;;
18617        ccc*)
18618          lt_prog_compiler_wl_GCJ='-Wl,'
18619 @@ -16407,11 +16943,6 @@
18620        lt_prog_compiler_static_GCJ='-non_shared'
18621        ;;
18622  
18623 -    sco3.2v5*)
18624 -      lt_prog_compiler_pic_GCJ='-Kpic'
18625 -      lt_prog_compiler_static_GCJ='-dn'
18626 -      ;;
18627 -
18628      solaris*)
18629        lt_prog_compiler_pic_GCJ='-KPIC'
18630        lt_prog_compiler_static_GCJ='-Bstatic'
18631 @@ -16429,7 +16960,7 @@
18632        lt_prog_compiler_static_GCJ='-Bstatic'
18633        ;;
18634  
18635 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18636 +    sysv4 | sysv4.2uw2* | sysv4.3*)
18637        lt_prog_compiler_wl_GCJ='-Wl,'
18638        lt_prog_compiler_pic_GCJ='-KPIC'
18639        lt_prog_compiler_static_GCJ='-Bstatic'
18640 @@ -16442,6 +16973,12 @@
18641        fi
18642        ;;
18643  
18644 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18645 +      lt_prog_compiler_wl_GCJ='-Wl,'
18646 +      lt_prog_compiler_pic_GCJ='-KPIC'
18647 +      lt_prog_compiler_static_GCJ='-Bstatic'
18648 +      ;;
18649 +
18650      unicos*)
18651        lt_prog_compiler_wl_GCJ='-Wl,'
18652        lt_prog_compiler_can_build_shared_GCJ=no
18653 @@ -16458,16 +16995,16 @@
18654      esac
18655    fi
18656  
18657 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18658 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18659 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18660 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18661  
18662  #
18663  # Check to make sure the PIC flag actually works.
18664  #
18665  if test -n "$lt_prog_compiler_pic_GCJ"; then
18666  
18667 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18668 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18669 +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18670 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18671  if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18672    echo $ECHO_N "(cached) $ECHO_C" >&6
18673  else
18674 @@ -16481,28 +17018,28 @@
18675     # with a dollar sign (not a hyphen), so the echo should work correctly.
18676     # The option is referenced via a variable to avoid confusing sed.
18677     lt_compile=`echo "$ac_compile" | $SED \
18678 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18679 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18680     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18681     -e 's:$: $lt_compiler_flag:'`
18682 -   (eval echo "\"\$as_me:16487: $lt_compile\"" >&5)
18683 +   (eval echo "\"\$as_me:17024: $lt_compile\"" >&5)
18684     (eval "$lt_compile" 2>conftest.err)
18685     ac_status=$?
18686     cat conftest.err >&5
18687 -   echo "$as_me:16491: \$? = $ac_status" >&5
18688 +   echo "$as_me:17028: \$? = $ac_status" >&5
18689     if (exit $ac_status) && test -s "$ac_outfile"; then
18690       # The compiler can only warn and ignore the option if not recognized
18691       # So say no if there are warnings other than the usual output.
18692 -     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18693 -     $SED '/^$/d' conftest.err >conftest.er2
18694 -     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18695 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18696 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18697 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18698         lt_prog_compiler_pic_works_GCJ=yes
18699       fi
18700     fi
18701     $rm conftest*
18702  
18703  fi
18704 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18705 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18706 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18707 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18708  
18709  if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18710      case $lt_prog_compiler_pic_GCJ in
18711 @@ -16515,7 +17052,7 @@
18712  fi
18713  
18714  fi
18715 -case "$host_os" in
18716 +case $host_os in
18717    # For platforms which do not support PIC, -DPIC is meaningless:
18718    *djgpp*)
18719      lt_prog_compiler_pic_GCJ=
18720 @@ -16525,43 +17062,85 @@
18721      ;;
18722  esac
18723  
18724 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18725 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18726 -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18727 +#
18728 +# Check to make sure the static flag actually works.
18729 +#
18730 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18731 +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18732 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18733 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18734    echo $ECHO_N "(cached) $ECHO_C" >&6
18735  else
18736 -  lt_cv_prog_compiler_c_o_GCJ=no
18737 -   $rm -r conftest 2>/dev/null
18738 -   mkdir conftest
18739 -   cd conftest
18740 -   mkdir out
18741 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18742 -
18743 -   lt_compiler_flag="-o out/conftest2.$ac_objext"
18744 -   # Insert the option either (1) after the last *FLAGS variable, or
18745 -   # (2) before a word containing "conftest.", or (3) at the end.
18746 -   # Note that $ac_compile itself does not contain backslashes and begins
18747 -   # with a dollar sign (not a hyphen), so the echo should work correctly.
18748 -   lt_compile=`echo "$ac_compile" | $SED \
18749 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18750 -   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18751 -   -e 's:$: $lt_compiler_flag:'`
18752 -   (eval echo "\"\$as_me:16549: $lt_compile\"" >&5)
18753 +  lt_prog_compiler_static_works_GCJ=no
18754 +   save_LDFLAGS="$LDFLAGS"
18755 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18756 +   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18757 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18758 +     # The linker can only warn and ignore the option if not recognized
18759 +     # So say no if there are warnings
18760 +     if test -s conftest.err; then
18761 +       # Append any errors to the config.log.
18762 +       cat conftest.err 1>&5
18763 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18764 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18765 +       if diff conftest.exp conftest.er2 >/dev/null; then
18766 +         lt_prog_compiler_static_works_GCJ=yes
18767 +       fi
18768 +     else
18769 +       lt_prog_compiler_static_works_GCJ=yes
18770 +     fi
18771 +   fi
18772 +   $rm conftest*
18773 +   LDFLAGS="$save_LDFLAGS"
18774 +
18775 +fi
18776 +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18777 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18778 +
18779 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18780 +    :
18781 +else
18782 +    lt_prog_compiler_static_GCJ=
18783 +fi
18784 +
18785 +
18786 +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18787 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18788 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18789 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18790 +else
18791 +  lt_cv_prog_compiler_c_o_GCJ=no
18792 +   $rm -r conftest 2>/dev/null
18793 +   mkdir conftest
18794 +   cd conftest
18795 +   mkdir out
18796 +   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18797 +
18798 +   lt_compiler_flag="-o out/conftest2.$ac_objext"
18799 +   # Insert the option either (1) after the last *FLAGS variable, or
18800 +   # (2) before a word containing "conftest.", or (3) at the end.
18801 +   # Note that $ac_compile itself does not contain backslashes and begins
18802 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
18803 +   lt_compile=`echo "$ac_compile" | $SED \
18804 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18805 +   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18806 +   -e 's:$: $lt_compiler_flag:'`
18807 +   (eval echo "\"\$as_me:17128: $lt_compile\"" >&5)
18808     (eval "$lt_compile" 2>out/conftest.err)
18809     ac_status=$?
18810     cat out/conftest.err >&5
18811 -   echo "$as_me:16553: \$? = $ac_status" >&5
18812 +   echo "$as_me:17132: \$? = $ac_status" >&5
18813     if (exit $ac_status) && test -s out/conftest2.$ac_objext
18814     then
18815       # The compiler can only warn and ignore the option if not recognized
18816       # So say no if there are warnings
18817 -     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18818 -     $SED '/^$/d' out/conftest.err >out/conftest.er2
18819 -     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18820 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18821 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18822 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18823         lt_cv_prog_compiler_c_o_GCJ=yes
18824       fi
18825     fi
18826 -   chmod u+w .
18827 +   chmod u+w . 2>&5
18828     $rm conftest*
18829     # SGI C++ compiler will create directory out/ii_files/ for
18830     # template instantiation
18831 @@ -16572,23 +17151,23 @@
18832     $rm conftest*
18833  
18834  fi
18835 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18836 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18837 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18838 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18839  
18840  
18841  hard_links="nottested"
18842  if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18843    # do not overwrite the value of need_locks provided by the user
18844 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18845 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18846 +  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18847 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18848    hard_links=yes
18849    $rm conftest*
18850    ln conftest.a conftest.b 2>/dev/null && hard_links=no
18851    touch conftest.a
18852    ln conftest.a conftest.b 2>&5 || hard_links=no
18853    ln conftest.a conftest.b 2>/dev/null && hard_links=no
18854 -  echo "$as_me:$LINENO: result: $hard_links" >&5
18855 -echo "${ECHO_T}$hard_links" >&6
18856 +  { echo "$as_me:$LINENO: result: $hard_links" >&5
18857 +echo "${ECHO_T}$hard_links" >&6; }
18858    if test "$hard_links" = no; then
18859      { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18860  echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18861 @@ -16598,8 +17177,8 @@
18862    need_locks=no
18863  fi
18864  
18865 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18866 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18867 +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18868 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18869  
18870    runpath_var=
18871    allow_undefined_flag_GCJ=
18872 @@ -16657,6 +17236,10 @@
18873        with_gnu_ld=no
18874      fi
18875      ;;
18876 +  interix*)
18877 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
18878 +    with_gnu_ld=yes
18879 +    ;;
18880    openbsd*)
18881      with_gnu_ld=no
18882      ;;
18883 @@ -16741,7 +17324,7 @@
18884        export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18885  
18886        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18887 -        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18888 +        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18889         # If the export-symbols file already is a .def file (1st line
18890         # is EXPORTS), use it as is; otherwise, prepend...
18891         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18892 @@ -16750,22 +17333,37 @@
18893           echo EXPORTS > $output_objdir/$soname.def;
18894           cat $export_symbols >> $output_objdir/$soname.def;
18895         fi~
18896 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18897 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18898        else
18899         ld_shlibs_GCJ=no
18900        fi
18901        ;;
18902  
18903 -    linux*)
18904 +    interix3*)
18905 +      hardcode_direct_GCJ=no
18906 +      hardcode_shlibpath_var_GCJ=no
18907 +      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18908 +      export_dynamic_flag_spec_GCJ='${wl}-E'
18909 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18910 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
18911 +      # default) and relocated if they conflict, which is a slow very memory
18912 +      # consuming and fragmenting process.  To avoid this, we pick a random,
18913 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18914 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18915 +      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18916 +      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18917 +      ;;
18918 +
18919 +    linux* | k*bsd*-gnu)
18920        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18921         tmp_addflag=
18922         case $cc_basename,$host_cpu in
18923         pgcc*)                          # Portland Group C compiler
18924 -         whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18925 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18926           tmp_addflag=' $pic_flag'
18927           ;;
18928 -       pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18929 -         whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18930 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18931 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18932           tmp_addflag=' $pic_flag -Mnomain' ;;
18933         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18934           tmp_addflag=' -i_dynamic' ;;
18935 @@ -16782,12 +17380,13 @@
18936    $echo "local: *; };" >> $output_objdir/$libname.ver~
18937           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18938         fi
18939 +       link_all_deplibs_GCJ=no
18940        else
18941         ld_shlibs_GCJ=no
18942        fi
18943        ;;
18944  
18945 -    netbsd*)
18946 +    netbsd* | netbsdelf*-gnu)
18947        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18948         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18949         wlarc=
18950 @@ -16797,7 +17396,7 @@
18951        fi
18952        ;;
18953  
18954 -    solaris* | sysv5*)
18955 +    solaris*)
18956        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18957         ld_shlibs_GCJ=no
18958         cat <<EOF 1>&2
18959 @@ -16818,6 +17417,33 @@
18960        fi
18961        ;;
18962  
18963 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18964 +      case `$LD -v 2>&1` in
18965 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18966 +       ld_shlibs_GCJ=no
18967 +       cat <<_LT_EOF 1>&2
18968 +
18969 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18970 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
18971 +*** is disabling shared libraries support.  We urge you to upgrade GNU
18972 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18973 +*** your PATH or compiler configuration so that the native linker is
18974 +*** used, and then restart.
18975 +
18976 +_LT_EOF
18977 +       ;;
18978 +       *)
18979 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18980 +           hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18981 +           archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18982 +           archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18983 +         else
18984 +           ld_shlibs_GCJ=no
18985 +         fi
18986 +       ;;
18987 +      esac
18988 +      ;;
18989 +
18990      sunos4*)
18991        archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18992        wlarc=
18993 @@ -16851,7 +17477,7 @@
18994        # Note: this linker hardcodes the directories in LIBPATH if there
18995        # are no directories specified by -L.
18996        hardcode_minus_L_GCJ=yes
18997 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
18998 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18999         # Neither direct hardcoding nor static linking is supported with a
19000         # broken collect2.
19001         hardcode_direct_GCJ=unsupported
19002 @@ -16885,6 +17511,7 @@
19003             break
19004           fi
19005           done
19006 +         ;;
19007         esac
19008  
19009         exp_sym_flag='-bexport'
19010 @@ -16922,6 +17549,7 @@
19011           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19012           hardcode_libdir_separator_GCJ=
19013           fi
19014 +         ;;
19015         esac
19016         shared_flag='-shared'
19017         if test "$aix_use_runtimelinking" = yes; then
19018 @@ -16934,11 +17562,11 @@
19019         # chokes on -Wl,-G. The following line is correct:
19020           shared_flag='-G'
19021         else
19022 -       if test "$aix_use_runtimelinking" = yes; then
19023 +         if test "$aix_use_runtimelinking" = yes; then
19024             shared_flag='${wl}-G'
19025           else
19026             shared_flag='${wl}-bM:SRE'
19027 -       fi
19028 +         fi
19029         fi
19030        fi
19031  
19032 @@ -16966,24 +17594,36 @@
19033  }
19034  _ACEOF
19035  rm -f conftest.$ac_objext conftest$ac_exeext
19036 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 -  (eval $ac_link) 2>conftest.er1
19038 +if { (ac_try="$ac_link"
19039 +case "(($ac_try" in
19040 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 +  *) ac_try_echo=$ac_try;;
19042 +esac
19043 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 +  (eval "$ac_link") 2>conftest.er1
19045    ac_status=$?
19046    grep -v '^ *+' conftest.er1 >conftest.err
19047    rm -f conftest.er1
19048    cat conftest.err >&5
19049    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050    (exit $ac_status); } &&
19051 -        { ac_try='test -z "$ac_c_werror_flag"
19052 -                        || test ! -s conftest.err'
19053 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 -  (eval $ac_try) 2>&5
19055 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 +  { (case "(($ac_try" in
19057 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 +  *) ac_try_echo=$ac_try;;
19059 +esac
19060 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 +  (eval "$ac_try") 2>&5
19062    ac_status=$?
19063    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064    (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest$ac_exeext'
19066 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 -  (eval $ac_try) 2>&5
19068 +  { (case "(($ac_try" in
19069 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 +  *) ac_try_echo=$ac_try;;
19071 +esac
19072 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 +  (eval "$ac_try") 2>&5
19074    ac_status=$?
19075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076    (exit $ac_status); }; }; then
19077 @@ -16997,18 +17637,20 @@
19078    echo "$as_me: failed program was:" >&5
19079  sed 's/^/| /' conftest.$ac_ext >&5
19080  
19081 +
19082  fi
19083 -rm -f conftest.err conftest.$ac_objext \
19084 +
19085 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19086        conftest$ac_exeext conftest.$ac_ext
19087  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19088  
19089         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19090 -       archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19091 +       archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19092         else
19093         if test "$host_cpu" = ia64; then
19094           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19095           allow_undefined_flag_GCJ="-z nodefs"
19096 -         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19097 +         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19098         else
19099          # Determine the default libpath from the value encoded in an empty executable.
19100          cat >conftest.$ac_ext <<_ACEOF
19101 @@ -17027,24 +17669,36 @@
19102  }
19103  _ACEOF
19104  rm -f conftest.$ac_objext conftest$ac_exeext
19105 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19106 -  (eval $ac_link) 2>conftest.er1
19107 +if { (ac_try="$ac_link"
19108 +case "(($ac_try" in
19109 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 +  *) ac_try_echo=$ac_try;;
19111 +esac
19112 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 +  (eval "$ac_link") 2>conftest.er1
19114    ac_status=$?
19115    grep -v '^ *+' conftest.er1 >conftest.err
19116    rm -f conftest.er1
19117    cat conftest.err >&5
19118    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119    (exit $ac_status); } &&
19120 -        { ac_try='test -z "$ac_c_werror_flag"
19121 -                        || test ! -s conftest.err'
19122 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 -  (eval $ac_try) 2>&5
19124 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19125 +  { (case "(($ac_try" in
19126 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 +  *) ac_try_echo=$ac_try;;
19128 +esac
19129 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 +  (eval "$ac_try") 2>&5
19131    ac_status=$?
19132    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133    (exit $ac_status); }; } &&
19134          { ac_try='test -s conftest$ac_exeext'
19135 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 -  (eval $ac_try) 2>&5
19137 +  { (case "(($ac_try" in
19138 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 +  *) ac_try_echo=$ac_try;;
19140 +esac
19141 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 +  (eval "$ac_try") 2>&5
19143    ac_status=$?
19144    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145    (exit $ac_status); }; }; then
19146 @@ -17058,8 +17712,10 @@
19147    echo "$as_me: failed program was:" >&5
19148  sed 's/^/| /' conftest.$ac_ext >&5
19149  
19150 +
19151  fi
19152 -rm -f conftest.err conftest.$ac_objext \
19153 +
19154 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19155        conftest$ac_exeext conftest.$ac_ext
19156  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19157  
19158 @@ -17068,13 +17724,11 @@
19159           # -berok will link without error, but may produce a broken library.
19160           no_undefined_flag_GCJ=' ${wl}-bernotok'
19161           allow_undefined_flag_GCJ=' ${wl}-berok'
19162 -         # -bexpall does not export symbols beginning with underscore (_)
19163 -         always_export_symbols_GCJ=yes
19164           # Exported symbols can be pulled into shared objects from archives
19165 -         whole_archive_flag_spec_GCJ=' '
19166 +         whole_archive_flag_spec_GCJ='$convenience'
19167           archive_cmds_need_lc_GCJ=yes
19168 -         # This is similar to how AIX traditionally builds it's shared libraries.
19169 -         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19170 +         # This is similar to how AIX traditionally builds its shared libraries.
19171 +         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19172         fi
19173        fi
19174        ;;
19175 @@ -17113,7 +17767,7 @@
19176        ;;
19177  
19178      darwin* | rhapsody*)
19179 -      case "$host_os" in
19180 +      case $host_os in
19181          rhapsody* | darwin1.[012])
19182           allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19183           ;;
19184 @@ -17142,7 +17796,7 @@
19185         output_verbose_link_cmd='echo'
19186          archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19187        module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19188 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19189 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19190        archive_expsym_cmds_GCJ='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}'
19191        module_expsym_cmds_GCJ='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}'
19192      else
19193 @@ -17151,7 +17805,7 @@
19194           output_verbose_link_cmd='echo'
19195           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19196           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19197 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19198 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19199           archive_expsym_cmds_GCJ='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}'
19200            module_expsym_cmds_GCJ='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}'
19201            ;;
19202 @@ -17192,7 +17846,7 @@
19203        ;;
19204  
19205      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19206 -    freebsd* | kfreebsd*-gnu | dragonfly*)
19207 +    freebsd* | dragonfly*)
19208        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19209        hardcode_libdir_flag_spec_GCJ='-R$libdir'
19210        hardcode_direct_GCJ=yes
19211 @@ -17215,47 +17869,62 @@
19212        export_dynamic_flag_spec_GCJ='${wl}-E'
19213        ;;
19214  
19215 -    hpux10* | hpux11*)
19216 +    hpux10*)
19217        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19218 -       case "$host_cpu" in
19219 -       hppa*64*|ia64*)
19220 +       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19221 +      else
19222 +       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19223 +      fi
19224 +      if test "$with_gnu_ld" = no; then
19225 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19226 +       hardcode_libdir_separator_GCJ=:
19227 +
19228 +       hardcode_direct_GCJ=yes
19229 +       export_dynamic_flag_spec_GCJ='${wl}-E'
19230 +
19231 +       # hardcode_minus_L: Not really in the search PATH,
19232 +       # but as the default location of the library.
19233 +       hardcode_minus_L_GCJ=yes
19234 +      fi
19235 +      ;;
19236 +
19237 +    hpux11*)
19238 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19239 +       case $host_cpu in
19240 +       hppa*64*)
19241           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19242           ;;
19243 +       ia64*)
19244 +         archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19245 +         ;;
19246         *)
19247           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19248           ;;
19249         esac
19250        else
19251 -       case "$host_cpu" in
19252 -       hppa*64*|ia64*)
19253 -         archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19254 +       case $host_cpu in
19255 +       hppa*64*)
19256 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257 +         ;;
19258 +       ia64*)
19259 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19260           ;;
19261         *)
19262 -         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19263 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19264           ;;
19265         esac
19266        fi
19267        if test "$with_gnu_ld" = no; then
19268 -       case "$host_cpu" in
19269 -       hppa*64*)
19270 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19271 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19272 +       hardcode_libdir_separator_GCJ=:
19273 +
19274 +       case $host_cpu in
19275 +       hppa*64*|ia64*)
19276           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19277 -         hardcode_libdir_separator_GCJ=:
19278           hardcode_direct_GCJ=no
19279           hardcode_shlibpath_var_GCJ=no
19280           ;;
19281 -       ia64*)
19282 -         hardcode_libdir_flag_spec_GCJ='-L$libdir'
19283 -         hardcode_direct_GCJ=no
19284 -         hardcode_shlibpath_var_GCJ=no
19285 -
19286 -         # hardcode_minus_L: Not really in the search PATH,
19287 -         # but as the default location of the library.
19288 -         hardcode_minus_L_GCJ=yes
19289 -         ;;
19290         *)
19291 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19292 -         hardcode_libdir_separator_GCJ=:
19293           hardcode_direct_GCJ=yes
19294           export_dynamic_flag_spec_GCJ='${wl}-E'
19295  
19296 @@ -17279,7 +17948,7 @@
19297        link_all_deplibs_GCJ=yes
19298        ;;
19299  
19300 -    netbsd*)
19301 +    netbsd* | netbsdelf*-gnu)
19302        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19303         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19304        else
19305 @@ -17357,14 +18026,6 @@
19306        hardcode_libdir_separator_GCJ=:
19307        ;;
19308  
19309 -    sco3.2v5*)
19310 -      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19311 -      hardcode_shlibpath_var_GCJ=no
19312 -      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19313 -      runpath_var=LD_RUN_PATH
19314 -      hardcode_runpath_var=yes
19315 -      ;;
19316 -
19317      solaris*)
19318        no_undefined_flag_GCJ=' -z text'
19319        if test "$GCC" = yes; then
19320 @@ -17450,1596 +18111,746 @@
19321        fi
19322        ;;
19323  
19324 -    sysv4.2uw2*)
19325 -      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19326 -      hardcode_direct_GCJ=yes
19327 -      hardcode_minus_L_GCJ=no
19328 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19329 +      no_undefined_flag_GCJ='${wl}-z,text'
19330 +      archive_cmds_need_lc_GCJ=no
19331        hardcode_shlibpath_var_GCJ=no
19332 -      hardcode_runpath_var=yes
19333 -      runpath_var=LD_RUN_PATH
19334 -      ;;
19335 +      runpath_var='LD_RUN_PATH'
19336  
19337 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19338 -      no_undefined_flag_GCJ='${wl}-z ${wl}text'
19339        if test "$GCC" = yes; then
19340 -       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19341 +       archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19342 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19343        else
19344 -       archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19345 +       archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19346 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19347        fi
19348 -      runpath_var='LD_RUN_PATH'
19349 -      hardcode_shlibpath_var_GCJ=no
19350 -      ;;
19351 -
19352 -    sysv5*)
19353 -      no_undefined_flag_GCJ=' -z text'
19354 -      # $CC -shared without GNU ld will not create a library from C++
19355 -      # object files and a static libstdc++, better avoid it by now
19356 -      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357 -      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19358 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19359 -      hardcode_libdir_flag_spec_GCJ=
19360 -      hardcode_shlibpath_var_GCJ=no
19361 -      runpath_var='LD_RUN_PATH'
19362        ;;
19363  
19364 -    uts4*)
19365 -      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19366 -      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19367 +    sysv5* | sco3.2v5* | sco5v6*)
19368 +      # Note: We can NOT use -z defs as we might desire, because we do not
19369 +      # link with -lc, and that would cause any symbols used from libc to
19370 +      # always be unresolved, which means just about no library would
19371 +      # ever link correctly.  If we're not using GNU ld we use -z text
19372 +      # though, which does catch some bad symbols but isn't as heavy-handed
19373 +      # as -z defs.
19374 +      no_undefined_flag_GCJ='${wl}-z,text'
19375 +      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19376 +      archive_cmds_need_lc_GCJ=no
19377        hardcode_shlibpath_var_GCJ=no
19378 -      ;;
19379 -
19380 -    *)
19381 -      ld_shlibs_GCJ=no
19382 -      ;;
19383 -    esac
19384 -  fi
19385 -
19386 -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19387 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19388 -test "$ld_shlibs_GCJ" = no && can_build_shared=no
19389 -
19390 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19391 -if test "$GCC" = yes; then
19392 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19393 -fi
19394 -
19395 -#
19396 -# Do we need to explicitly link libc?
19397 -#
19398 -case "x$archive_cmds_need_lc_GCJ" in
19399 -x|xyes)
19400 -  # Assume -lc should be added
19401 -  archive_cmds_need_lc_GCJ=yes
19402 -
19403 -  if test "$enable_shared" = yes && test "$GCC" = yes; then
19404 -    case $archive_cmds_GCJ in
19405 -    *'~'*)
19406 -      # FIXME: we may have to deal with multi-command sequences.
19407 -      ;;
19408 -    '$CC '*)
19409 -      # Test whether the compiler implicitly links with -lc since on some
19410 -      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19411 -      # to ld, don't add -lc before -lgcc.
19412 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19413 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19414 -      $rm conftest*
19415 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19416 -
19417 -      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 -  (eval $ac_compile) 2>&5
19419 -  ac_status=$?
19420 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 -  (exit $ac_status); } 2>conftest.err; then
19422 -        soname=conftest
19423 -        lib=conftest
19424 -        libobjs=conftest.$ac_objext
19425 -        deplibs=
19426 -        wl=$lt_prog_compiler_wl_GCJ
19427 -        compiler_flags=-v
19428 -        linker_flags=-v
19429 -        verstring=
19430 -        output_objdir=.
19431 -        libname=conftest
19432 -        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19433 -        allow_undefined_flag_GCJ=
19434 -        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19435 -  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19436 -  ac_status=$?
19437 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 -  (exit $ac_status); }
19439 -        then
19440 -         archive_cmds_need_lc_GCJ=no
19441 -        else
19442 -         archive_cmds_need_lc_GCJ=yes
19443 -        fi
19444 -        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19445 -      else
19446 -        cat conftest.err 1>&5
19447 -      fi
19448 -      $rm conftest*
19449 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19450 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19451 -      ;;
19452 -    esac
19453 -  fi
19454 -  ;;
19455 -esac
19456 -
19457 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19458 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19459 -library_names_spec=
19460 -libname_spec='lib$name'
19461 -soname_spec=
19462 -shrext_cmds=".so"
19463 -postinstall_cmds=
19464 -postuninstall_cmds=
19465 -finish_cmds=
19466 -finish_eval=
19467 -shlibpath_var=
19468 -shlibpath_overrides_runpath=unknown
19469 -version_type=none
19470 -dynamic_linker="$host_os ld.so"
19471 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
19472 -if test "$GCC" = yes; then
19473 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19474 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19475 -    # if the path contains ";" then we assume it to be the separator
19476 -    # otherwise default to the standard path separator (i.e. ":") - it is
19477 -    # assumed that no part of a normal pathname contains ";" but that should
19478 -    # okay in the real world where ";" in dirpaths is itself problematic.
19479 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19480 -  else
19481 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19482 -  fi
19483 -else
19484 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19485 -fi
19486 -need_lib_prefix=unknown
19487 -hardcode_into_libs=no
19488 -
19489 -# when you set need_version to no, make sure it does not cause -set_version
19490 -# flags to be left without arguments
19491 -need_version=unknown
19492 -
19493 -case $host_os in
19494 -aix3*)
19495 -  version_type=linux
19496 -  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19497 -  shlibpath_var=LIBPATH
19498 -
19499 -  # AIX 3 has no versioning support, so we append a major version to the name.
19500 -  soname_spec='${libname}${release}${shared_ext}$major'
19501 -  ;;
19502 -
19503 -aix4* | aix5*)
19504 -  version_type=linux
19505 -  need_lib_prefix=no
19506 -  need_version=no
19507 -  hardcode_into_libs=yes
19508 -  if test "$host_cpu" = ia64; then
19509 -    # AIX 5 supports IA64
19510 -    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19511 -    shlibpath_var=LD_LIBRARY_PATH
19512 -  else
19513 -    # With GCC up to 2.95.x, collect2 would create an import file
19514 -    # for dependence libraries.  The import file would start with
19515 -    # the line `#! .'.  This would cause the generated library to
19516 -    # depend on `.', always an invalid library.  This was fixed in
19517 -    # development snapshots of GCC prior to 3.0.
19518 -    case $host_os in
19519 -      aix4 | aix4.[01] | aix4.[01].*)
19520 -      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19521 -          echo ' yes '
19522 -          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19523 -       :
19524 -      else
19525 -       can_build_shared=no
19526 -      fi
19527 -      ;;
19528 -    esac
19529 -    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19530 -    # soname into executable. Probably we can add versioning support to
19531 -    # collect2, so additional links can be useful in future.
19532 -    if test "$aix_use_runtimelinking" = yes; then
19533 -      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19534 -      # instead of lib<name>.a to let people know that these are not
19535 -      # typical AIX shared libraries.
19536 -      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19537 -    else
19538 -      # We preserve .a as extension for shared libraries through AIX4.2
19539 -      # and later when we are not doing run time linking.
19540 -      library_names_spec='${libname}${release}.a $libname.a'
19541 -      soname_spec='${libname}${release}${shared_ext}$major'
19542 -    fi
19543 -    shlibpath_var=LIBPATH
19544 -  fi
19545 -  ;;
19546 -
19547 -amigaos*)
19548 -  library_names_spec='$libname.ixlibrary $libname.a'
19549 -  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19550 -  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19551 -  ;;
19552 -
19553 -beos*)
19554 -  library_names_spec='${libname}${shared_ext}'
19555 -  dynamic_linker="$host_os ld.so"
19556 -  shlibpath_var=LIBRARY_PATH
19557 -  ;;
19558 -
19559 -bsdi[45]*)
19560 -  version_type=linux
19561 -  need_version=no
19562 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19563 -  soname_spec='${libname}${release}${shared_ext}$major'
19564 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19565 -  shlibpath_var=LD_LIBRARY_PATH
19566 -  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19567 -  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19568 -  # the default ld.so.conf also contains /usr/contrib/lib and
19569 -  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19570 -  # libtool to hard-code these into programs
19571 -  ;;
19572 -
19573 -cygwin* | mingw* | pw32*)
19574 -  version_type=windows
19575 -  shrext_cmds=".dll"
19576 -  need_version=no
19577 -  need_lib_prefix=no
19578 -
19579 -  case $GCC,$host_os in
19580 -  yes,cygwin* | yes,mingw* | yes,pw32*)
19581 -    library_names_spec='$libname.dll.a'
19582 -    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19583 -    postinstall_cmds='base_file=`basename \${file}`~
19584 -      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19585 -      dldir=$destdir/`dirname \$dlpath`~
19586 -      test -d \$dldir || mkdir -p \$dldir~
19587 -      $install_prog $dir/$dlname \$dldir/$dlname'
19588 -    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19589 -      dlpath=$dir/\$dldll~
19590 -       $rm \$dlpath'
19591 -    shlibpath_overrides_runpath=yes
19592 -
19593 -    case $host_os in
19594 -    cygwin*)
19595 -      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19596 -      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19597 -      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19598 -      ;;
19599 -    mingw*)
19600 -      # MinGW DLLs use traditional 'lib' prefix
19601 -      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19602 -      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19603 -      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19604 -        # It is most probably a Windows format PATH printed by
19605 -        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19606 -        # path with ; separators, and with drive letters. We can handle the
19607 -        # drive letters (cygwin fileutils understands them), so leave them,
19608 -        # especially as we might pass files found there to a mingw objdump,
19609 -        # which wouldn't understand a cygwinified path. Ahh.
19610 -        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19611 -      else
19612 -        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19613 -      fi
19614 -      ;;
19615 -    pw32*)
19616 -      # pw32 DLLs use 'pw' prefix rather than 'lib'
19617 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19618 -      ;;
19619 -    esac
19620 -    ;;
19621 -
19622 -  linux*)
19623 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
19624 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19625 -      supports_anon_versioning=no
19626 -      case `$LD -v 2>/dev/null` in
19627 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19628 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19629 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19630 -        *\ 2.11.*) ;; # other 2.11 versions
19631 -        *) supports_anon_versioning=yes ;;
19632 -      esac
19633 -      if test $supports_anon_versioning = yes; then
19634 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
19635 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19636 -$echo "local: *; };" >> $output_objdir/$libname.ver~
19637 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19638 -      else
19639 -        $archive_expsym_cmds="$archive_cmds"
19640 -      fi
19641 -    else
19642 -      ld_shlibs=no
19643 -    fi
19644 -    ;;
19645 -
19646 -  *)
19647 -    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19648 -    ;;
19649 -  esac
19650 -  dynamic_linker='Win32 ld.exe'
19651 -  # FIXME: first we should search . and the directory the executable is in
19652 -  shlibpath_var=PATH
19653 -  ;;
19654 -
19655 -darwin* | rhapsody*)
19656 -  dynamic_linker="$host_os dyld"
19657 -  version_type=darwin
19658 -  need_lib_prefix=no
19659 -  need_version=no
19660 -  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19661 -  soname_spec='${libname}${release}${major}$shared_ext'
19662 -  shlibpath_overrides_runpath=yes
19663 -  shlibpath_var=DYLD_LIBRARY_PATH
19664 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19665 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19666 -  if test "$GCC" = yes; then
19667 -    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"`
19668 -  else
19669 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19670 -  fi
19671 -  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19672 -  ;;
19673 -
19674 -dgux*)
19675 -  version_type=linux
19676 -  need_lib_prefix=no
19677 -  need_version=no
19678 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19679 -  soname_spec='${libname}${release}${shared_ext}$major'
19680 -  shlibpath_var=LD_LIBRARY_PATH
19681 -  ;;
19682 -
19683 -freebsd1*)
19684 -  dynamic_linker=no
19685 -  ;;
19686 -
19687 -kfreebsd*-gnu)
19688 -  version_type=linux
19689 -  need_lib_prefix=no
19690 -  need_version=no
19691 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19692 -  soname_spec='${libname}${release}${shared_ext}$major'
19693 -  shlibpath_var=LD_LIBRARY_PATH
19694 -  shlibpath_overrides_runpath=no
19695 -  hardcode_into_libs=yes
19696 -  dynamic_linker='GNU ld.so'
19697 -  ;;
19698 -
19699 -freebsd* | dragonfly*)
19700 -  # DragonFly does not have aout.  When/if they implement a new
19701 -  # versioning mechanism, adjust this.
19702 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19703 -  version_type=freebsd-$objformat
19704 -  case $version_type in
19705 -    freebsd-elf*)
19706 -      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19707 -      need_version=no
19708 -      need_lib_prefix=no
19709 -      ;;
19710 -    freebsd-*)
19711 -      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19712 -      need_version=yes
19713 -      ;;
19714 -  esac
19715 -  shlibpath_var=LD_LIBRARY_PATH
19716 -  case $host_os in
19717 -  freebsd2*)
19718 -    shlibpath_overrides_runpath=yes
19719 -    ;;
19720 -  freebsd3.[01]* | freebsdelf3.[01]*)
19721 -    shlibpath_overrides_runpath=yes
19722 -    hardcode_into_libs=yes
19723 -    ;;
19724 -  *) # from 3.2 on
19725 -    shlibpath_overrides_runpath=no
19726 -    hardcode_into_libs=yes
19727 -    ;;
19728 -  esac
19729 -  ;;
19730 -
19731 -gnu*)
19732 -  version_type=linux
19733 -  need_lib_prefix=no
19734 -  need_version=no
19735 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19736 -  soname_spec='${libname}${release}${shared_ext}$major'
19737 -  shlibpath_var=LD_LIBRARY_PATH
19738 -  hardcode_into_libs=yes
19739 -  ;;
19740 -
19741 -hpux9* | hpux10* | hpux11*)
19742 -  # Give a soname corresponding to the major version so that dld.sl refuses to
19743 -  # link against other versions.
19744 -  version_type=sunos
19745 -  need_lib_prefix=no
19746 -  need_version=no
19747 -  case "$host_cpu" in
19748 -  ia64*)
19749 -    shrext_cmds='.so'
19750 -    hardcode_into_libs=yes
19751 -    dynamic_linker="$host_os dld.so"
19752 -    shlibpath_var=LD_LIBRARY_PATH
19753 -    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19754 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19755 -    soname_spec='${libname}${release}${shared_ext}$major'
19756 -    if test "X$HPUX_IA64_MODE" = X32; then
19757 -      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19758 -    else
19759 -      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19760 -    fi
19761 -    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19762 -    ;;
19763 -   hppa*64*)
19764 -     shrext_cmds='.sl'
19765 -     hardcode_into_libs=yes
19766 -     dynamic_linker="$host_os dld.sl"
19767 -     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19768 -     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19769 -     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19770 -     soname_spec='${libname}${release}${shared_ext}$major'
19771 -     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19772 -     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19773 -     ;;
19774 -   *)
19775 -    shrext_cmds='.sl'
19776 -    dynamic_linker="$host_os dld.sl"
19777 -    shlibpath_var=SHLIB_PATH
19778 -    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19779 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19780 -    soname_spec='${libname}${release}${shared_ext}$major'
19781 -    ;;
19782 -  esac
19783 -  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19784 -  postinstall_cmds='chmod 555 $lib'
19785 -  ;;
19786 -
19787 -irix5* | irix6* | nonstopux*)
19788 -  case $host_os in
19789 -    nonstopux*) version_type=nonstopux ;;
19790 -    *)
19791 -       if test "$lt_cv_prog_gnu_ld" = yes; then
19792 -               version_type=linux
19793 -       else
19794 -               version_type=irix
19795 -       fi ;;
19796 -  esac
19797 -  need_lib_prefix=no
19798 -  need_version=no
19799 -  soname_spec='${libname}${release}${shared_ext}$major'
19800 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19801 -  case $host_os in
19802 -  irix5* | nonstopux*)
19803 -    libsuff= shlibsuff=
19804 -    ;;
19805 -  *)
19806 -    case $LD in # libtool.m4 will add one of these switches to LD
19807 -    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19808 -      libsuff= shlibsuff= libmagic=32-bit;;
19809 -    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19810 -      libsuff=32 shlibsuff=N32 libmagic=N32;;
19811 -    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19812 -      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19813 -    *) libsuff= shlibsuff= libmagic=never-match;;
19814 -    esac
19815 -    ;;
19816 -  esac
19817 -  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19818 -  shlibpath_overrides_runpath=no
19819 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19820 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19821 -  hardcode_into_libs=yes
19822 -  ;;
19823 -
19824 -# No shared lib support for Linux oldld, aout, or coff.
19825 -linux*oldld* | linux*aout* | linux*coff*)
19826 -  dynamic_linker=no
19827 -  ;;
19828 -
19829 -# This must be Linux ELF.
19830 -linux*)
19831 -  version_type=linux
19832 -  need_lib_prefix=no
19833 -  need_version=no
19834 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19835 -  soname_spec='${libname}${release}${shared_ext}$major'
19836 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19837 -  shlibpath_var=LD_LIBRARY_PATH
19838 -  shlibpath_overrides_runpath=no
19839 -  # This implies no fast_install, which is unacceptable.
19840 -  # Some rework will be needed to allow for fast_install
19841 -  # before this can be enabled.
19842 -  hardcode_into_libs=yes
19843 -
19844 -  # Append ld.so.conf contents to the search path
19845 -  if test -f /etc/ld.so.conf; then
19846 -    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' ' '`
19847 -    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19848 -  fi
19849 -
19850 -  case $host_cpu:$lt_cv_cc_64bit_output in
19851 -  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
19852 -    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
19853 -    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
19854 -    ;;
19855 -  esac
19856 -
19857 -  # We used to test for /lib/ld.so.1 and disable shared libraries on
19858 -  # powerpc, because MkLinux only supported shared libraries with the
19859 -  # GNU dynamic linker.  Since this was broken with cross compilers,
19860 -  # most powerpc-linux boxes support dynamic linking these days and
19861 -  # people can always --disable-shared, the test was removed, and we
19862 -  # assume the GNU/Linux dynamic linker is in use.
19863 -  dynamic_linker='GNU/Linux ld.so'
19864 -
19865 -  # Find out which ABI we are using (multilib Linux x86_64 hack).
19866 -  libsuff=
19867 -  case "$host_cpu" in
19868 -  x86_64*)
19869 -    echo '#line 17980 "configure"' > conftest.$ac_ext
19870 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871 -  (eval $ac_compile) 2>&5
19872 -  ac_status=$?
19873 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 -  (exit $ac_status); }; then
19875 -      case `/usr/bin/file conftest.$ac_objext` in
19876 -      *64-bit*)
19877 -        libsuff=64
19878 -        ;;
19879 -      esac
19880 -    fi
19881 -    rm -rf conftest*
19882 -    ;;
19883 -  *)
19884 -    ;;
19885 -  esac
19886 -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19887 -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19888 -  ;;
19889 -
19890 -knetbsd*-gnu)
19891 -  version_type=linux
19892 -  need_lib_prefix=no
19893 -  need_version=no
19894 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19895 -  soname_spec='${libname}${release}${shared_ext}$major'
19896 -  shlibpath_var=LD_LIBRARY_PATH
19897 -  shlibpath_overrides_runpath=no
19898 -  hardcode_into_libs=yes
19899 -  dynamic_linker='GNU ld.so'
19900 -  ;;
19901 -
19902 -netbsd*)
19903 -  version_type=sunos
19904 -  need_lib_prefix=no
19905 -  need_version=no
19906 -  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19907 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19908 -    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19909 -    dynamic_linker='NetBSD (a.out) ld.so'
19910 -  else
19911 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19912 -    soname_spec='${libname}${release}${shared_ext}$major'
19913 -    dynamic_linker='NetBSD ld.elf_so'
19914 -  fi
19915 -  shlibpath_var=LD_LIBRARY_PATH
19916 -  shlibpath_overrides_runpath=yes
19917 -  hardcode_into_libs=yes
19918 -  ;;
19919 -
19920 -newsos6)
19921 -  version_type=linux
19922 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19923 -  shlibpath_var=LD_LIBRARY_PATH
19924 -  shlibpath_overrides_runpath=yes
19925 -  ;;
19926 -
19927 -nto-qnx*)
19928 -  version_type=linux
19929 -  need_lib_prefix=no
19930 -  need_version=no
19931 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19932 -  soname_spec='${libname}${release}${shared_ext}$major'
19933 -  shlibpath_var=LD_LIBRARY_PATH
19934 -  shlibpath_overrides_runpath=yes
19935 -  ;;
19936 -
19937 -openbsd*)
19938 -  version_type=sunos
19939 -  need_lib_prefix=no
19940 -  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19941 -  case $host_os in
19942 -    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19943 -    *)                         need_version=no  ;;
19944 -  esac
19945 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19946 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19947 -  shlibpath_var=LD_LIBRARY_PATH
19948 -  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19949 -    case $host_os in
19950 -      openbsd2.[89] | openbsd2.[89].*)
19951 -       shlibpath_overrides_runpath=no
19952 -       ;;
19953 -      *)
19954 -       shlibpath_overrides_runpath=yes
19955 -       ;;
19956 -      esac
19957 -  else
19958 -    shlibpath_overrides_runpath=yes
19959 -  fi
19960 -  ;;
19961 -
19962 -os2*)
19963 -  libname_spec='$name'
19964 -  shrext_cmds=".dll"
19965 -  need_lib_prefix=no
19966 -  library_names_spec='$libname${shared_ext} $libname.a'
19967 -  dynamic_linker='OS/2 ld.exe'
19968 -  shlibpath_var=LIBPATH
19969 -  ;;
19970 -
19971 -osf3* | osf4* | osf5*)
19972 -  version_type=osf
19973 -  need_lib_prefix=no
19974 -  need_version=no
19975 -  soname_spec='${libname}${release}${shared_ext}$major'
19976 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977 -  shlibpath_var=LD_LIBRARY_PATH
19978 -  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19979 -  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19980 -  ;;
19981 -
19982 -sco3.2v5*)
19983 -  version_type=osf
19984 -  soname_spec='${libname}${release}${shared_ext}$major'
19985 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 -  shlibpath_var=LD_LIBRARY_PATH
19987 -  ;;
19988 -
19989 -solaris*)
19990 -  version_type=linux
19991 -  need_lib_prefix=no
19992 -  need_version=no
19993 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19994 -  soname_spec='${libname}${release}${shared_ext}$major'
19995 -  shlibpath_var=LD_LIBRARY_PATH
19996 -  shlibpath_overrides_runpath=yes
19997 -  hardcode_into_libs=yes
19998 -  # ldd complains unless libraries are executable
19999 -  postinstall_cmds='chmod +x $lib'
20000 -  ;;
20001 -
20002 -sunos4*)
20003 -  version_type=sunos
20004 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20005 -  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20006 -  shlibpath_var=LD_LIBRARY_PATH
20007 -  shlibpath_overrides_runpath=yes
20008 -  if test "$with_gnu_ld" = yes; then
20009 -    need_lib_prefix=no
20010 -  fi
20011 -  need_version=yes
20012 -  ;;
20013 -
20014 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20015 -  version_type=linux
20016 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20017 -  soname_spec='${libname}${release}${shared_ext}$major'
20018 -  shlibpath_var=LD_LIBRARY_PATH
20019 -  case $host_vendor in
20020 -    sni)
20021 -      shlibpath_overrides_runpath=no
20022 -      need_lib_prefix=no
20023 -      export_dynamic_flag_spec='${wl}-Blargedynsym'
20024 -      runpath_var=LD_RUN_PATH
20025 -      ;;
20026 -    siemens)
20027 -      need_lib_prefix=no
20028 -      ;;
20029 -    motorola)
20030 -      need_lib_prefix=no
20031 -      need_version=no
20032 -      shlibpath_overrides_runpath=no
20033 -      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20034 -      ;;
20035 -  esac
20036 -  ;;
20037 -
20038 -sysv4*MP*)
20039 -  if test -d /usr/nec ;then
20040 -    version_type=linux
20041 -    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20042 -    soname_spec='$libname${shared_ext}.$major'
20043 -    shlibpath_var=LD_LIBRARY_PATH
20044 -  fi
20045 -  ;;
20046 -
20047 -uts4*)
20048 -  version_type=linux
20049 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050 -  soname_spec='${libname}${release}${shared_ext}$major'
20051 -  shlibpath_var=LD_LIBRARY_PATH
20052 -  ;;
20053 -
20054 -*)
20055 -  dynamic_linker=no
20056 -  ;;
20057 -esac
20058 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20059 -echo "${ECHO_T}$dynamic_linker" >&6
20060 -test "$dynamic_linker" = no && can_build_shared=no
20061 -
20062 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20063 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20064 -hardcode_action_GCJ=
20065 -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20066 -   test -n "$runpath_var_GCJ" || \
20067 -   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20068 -
20069 -  # We can hardcode non-existant directories.
20070 -  if test "$hardcode_direct_GCJ" != no &&
20071 -     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20072 -     # have to relink, otherwise we might link with an installed library
20073 -     # when we should be linking with a yet-to-be-installed one
20074 -     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20075 -     test "$hardcode_minus_L_GCJ" != no; then
20076 -    # Linking always hardcodes the temporary library directory.
20077 -    hardcode_action_GCJ=relink
20078 -  else
20079 -    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20080 -    hardcode_action_GCJ=immediate
20081 -  fi
20082 -else
20083 -  # We cannot hardcode anything, or else we can only hardcode existing
20084 -  # directories.
20085 -  hardcode_action_GCJ=unsupported
20086 -fi
20087 -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20088 -echo "${ECHO_T}$hardcode_action_GCJ" >&6
20089 -
20090 -if test "$hardcode_action_GCJ" = relink; then
20091 -  # Fast installation is not supported
20092 -  enable_fast_install=no
20093 -elif test "$shlibpath_overrides_runpath" = yes ||
20094 -     test "$enable_shared" = no; then
20095 -  # Fast installation is not necessary
20096 -  enable_fast_install=needless
20097 -fi
20098 -
20099 -striplib=
20100 -old_striplib=
20101 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20102 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20103 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20104 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20105 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20106 -  echo "$as_me:$LINENO: result: yes" >&5
20107 -echo "${ECHO_T}yes" >&6
20108 -else
20109 -# FIXME - insert some real tests, host_os isn't really good enough
20110 -  case $host_os in
20111 -   darwin*)
20112 -       if test -n "$STRIP" ; then
20113 -         striplib="$STRIP -x"
20114 -         echo "$as_me:$LINENO: result: yes" >&5
20115 -echo "${ECHO_T}yes" >&6
20116 -       else
20117 -  echo "$as_me:$LINENO: result: no" >&5
20118 -echo "${ECHO_T}no" >&6
20119 -fi
20120 -       ;;
20121 -   *)
20122 -  echo "$as_me:$LINENO: result: no" >&5
20123 -echo "${ECHO_T}no" >&6
20124 -    ;;
20125 -  esac
20126 -fi
20127 -
20128 -if test "x$enable_dlopen" != xyes; then
20129 -  enable_dlopen=unknown
20130 -  enable_dlopen_self=unknown
20131 -  enable_dlopen_self_static=unknown
20132 -else
20133 -  lt_cv_dlopen=no
20134 -  lt_cv_dlopen_libs=
20135 -
20136 -  case $host_os in
20137 -  beos*)
20138 -    lt_cv_dlopen="load_add_on"
20139 -    lt_cv_dlopen_libs=
20140 -    lt_cv_dlopen_self=yes
20141 -    ;;
20142 -
20143 -  mingw* | pw32*)
20144 -    lt_cv_dlopen="LoadLibrary"
20145 -    lt_cv_dlopen_libs=
20146 -   ;;
20147 -
20148 -  cygwin*)
20149 -    lt_cv_dlopen="dlopen"
20150 -    lt_cv_dlopen_libs=
20151 -   ;;
20152 -
20153 -  darwin*)
20154 -  # if libdl is installed we need to link against it
20155 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20156 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20157 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20158 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20159 -else
20160 -  ac_check_lib_save_LIBS=$LIBS
20161 -LIBS="-ldl  $LIBS"
20162 -cat >conftest.$ac_ext <<_ACEOF
20163 -/* confdefs.h.  */
20164 -_ACEOF
20165 -cat confdefs.h >>conftest.$ac_ext
20166 -cat >>conftest.$ac_ext <<_ACEOF
20167 -/* end confdefs.h.  */
20168 -
20169 -/* Override any gcc2 internal prototype to avoid an error.  */
20170 -#ifdef __cplusplus
20171 -extern "C"
20172 -#endif
20173 -/* We use char because int might match the return type of a gcc2
20174 -   builtin and then its argument prototype would still apply.  */
20175 -char dlopen ();
20176 -int
20177 -main ()
20178 -{
20179 -dlopen ();
20180 -  ;
20181 -  return 0;
20182 -}
20183 -_ACEOF
20184 -rm -f conftest.$ac_objext conftest$ac_exeext
20185 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20186 -  (eval $ac_link) 2>conftest.er1
20187 -  ac_status=$?
20188 -  grep -v '^ *+' conftest.er1 >conftest.err
20189 -  rm -f conftest.er1
20190 -  cat conftest.err >&5
20191 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 -  (exit $ac_status); } &&
20193 -        { ac_try='test -z "$ac_c_werror_flag"
20194 -                        || test ! -s conftest.err'
20195 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 -  (eval $ac_try) 2>&5
20197 -  ac_status=$?
20198 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 -  (exit $ac_status); }; } &&
20200 -        { ac_try='test -s conftest$ac_exeext'
20201 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 -  (eval $ac_try) 2>&5
20203 -  ac_status=$?
20204 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 -  (exit $ac_status); }; }; then
20206 -  ac_cv_lib_dl_dlopen=yes
20207 -else
20208 -  echo "$as_me: failed program was:" >&5
20209 -sed 's/^/| /' conftest.$ac_ext >&5
20210 -
20211 -ac_cv_lib_dl_dlopen=no
20212 -fi
20213 -rm -f conftest.err conftest.$ac_objext \
20214 -      conftest$ac_exeext conftest.$ac_ext
20215 -LIBS=$ac_check_lib_save_LIBS
20216 -fi
20217 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20218 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20219 -if test $ac_cv_lib_dl_dlopen = yes; then
20220 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20221 -else
20222 -
20223 -    lt_cv_dlopen="dyld"
20224 -    lt_cv_dlopen_libs=
20225 -    lt_cv_dlopen_self=yes
20226 -
20227 -fi
20228 -
20229 -   ;;
20230 -
20231 -  *)
20232 -    echo "$as_me:$LINENO: checking for shl_load" >&5
20233 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20234 -if test "${ac_cv_func_shl_load+set}" = set; then
20235 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20236 -else
20237 -  cat >conftest.$ac_ext <<_ACEOF
20238 -/* confdefs.h.  */
20239 -_ACEOF
20240 -cat confdefs.h >>conftest.$ac_ext
20241 -cat >>conftest.$ac_ext <<_ACEOF
20242 -/* end confdefs.h.  */
20243 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20244 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20245 -#define shl_load innocuous_shl_load
20246 -
20247 -/* System header to define __stub macros and hopefully few prototypes,
20248 -    which can conflict with char shl_load (); below.
20249 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20250 -    <limits.h> exists even on freestanding compilers.  */
20251 -
20252 -#ifdef __STDC__
20253 -# include <limits.h>
20254 -#else
20255 -# include <assert.h>
20256 -#endif
20257 -
20258 -#undef shl_load
20259 -
20260 -/* Override any gcc2 internal prototype to avoid an error.  */
20261 -#ifdef __cplusplus
20262 -extern "C"
20263 -{
20264 -#endif
20265 -/* We use char because int might match the return type of a gcc2
20266 -   builtin and then its argument prototype would still apply.  */
20267 -char shl_load ();
20268 -/* The GNU C library defines this for functions which it implements
20269 -    to always fail with ENOSYS.  Some functions are actually named
20270 -    something starting with __ and the normal name is an alias.  */
20271 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
20272 -choke me
20273 -#else
20274 -char (*f) () = shl_load;
20275 -#endif
20276 -#ifdef __cplusplus
20277 -}
20278 -#endif
20279 -
20280 -int
20281 -main ()
20282 -{
20283 -return f != shl_load;
20284 -  ;
20285 -  return 0;
20286 -}
20287 -_ACEOF
20288 -rm -f conftest.$ac_objext conftest$ac_exeext
20289 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290 -  (eval $ac_link) 2>conftest.er1
20291 -  ac_status=$?
20292 -  grep -v '^ *+' conftest.er1 >conftest.err
20293 -  rm -f conftest.er1
20294 -  cat conftest.err >&5
20295 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 -  (exit $ac_status); } &&
20297 -        { ac_try='test -z "$ac_c_werror_flag"
20298 -                        || test ! -s conftest.err'
20299 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 -  (eval $ac_try) 2>&5
20301 -  ac_status=$?
20302 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 -  (exit $ac_status); }; } &&
20304 -        { ac_try='test -s conftest$ac_exeext'
20305 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 -  (eval $ac_try) 2>&5
20307 -  ac_status=$?
20308 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 -  (exit $ac_status); }; }; then
20310 -  ac_cv_func_shl_load=yes
20311 -else
20312 -  echo "$as_me: failed program was:" >&5
20313 -sed 's/^/| /' conftest.$ac_ext >&5
20314 -
20315 -ac_cv_func_shl_load=no
20316 -fi
20317 -rm -f conftest.err conftest.$ac_objext \
20318 -      conftest$ac_exeext conftest.$ac_ext
20319 -fi
20320 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20321 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20322 -if test $ac_cv_func_shl_load = yes; then
20323 -  lt_cv_dlopen="shl_load"
20324 -else
20325 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20326 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20327 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20328 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20329 -else
20330 -  ac_check_lib_save_LIBS=$LIBS
20331 -LIBS="-ldld  $LIBS"
20332 -cat >conftest.$ac_ext <<_ACEOF
20333 -/* confdefs.h.  */
20334 -_ACEOF
20335 -cat confdefs.h >>conftest.$ac_ext
20336 -cat >>conftest.$ac_ext <<_ACEOF
20337 -/* end confdefs.h.  */
20338 -
20339 -/* Override any gcc2 internal prototype to avoid an error.  */
20340 -#ifdef __cplusplus
20341 -extern "C"
20342 -#endif
20343 -/* We use char because int might match the return type of a gcc2
20344 -   builtin and then its argument prototype would still apply.  */
20345 -char shl_load ();
20346 -int
20347 -main ()
20348 -{
20349 -shl_load ();
20350 -  ;
20351 -  return 0;
20352 -}
20353 -_ACEOF
20354 -rm -f conftest.$ac_objext conftest$ac_exeext
20355 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20356 -  (eval $ac_link) 2>conftest.er1
20357 -  ac_status=$?
20358 -  grep -v '^ *+' conftest.er1 >conftest.err
20359 -  rm -f conftest.er1
20360 -  cat conftest.err >&5
20361 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 -  (exit $ac_status); } &&
20363 -        { ac_try='test -z "$ac_c_werror_flag"
20364 -                        || test ! -s conftest.err'
20365 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 -  (eval $ac_try) 2>&5
20367 -  ac_status=$?
20368 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 -  (exit $ac_status); }; } &&
20370 -        { ac_try='test -s conftest$ac_exeext'
20371 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 -  (eval $ac_try) 2>&5
20373 -  ac_status=$?
20374 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 -  (exit $ac_status); }; }; then
20376 -  ac_cv_lib_dld_shl_load=yes
20377 -else
20378 -  echo "$as_me: failed program was:" >&5
20379 -sed 's/^/| /' conftest.$ac_ext >&5
20380 -
20381 -ac_cv_lib_dld_shl_load=no
20382 -fi
20383 -rm -f conftest.err conftest.$ac_objext \
20384 -      conftest$ac_exeext conftest.$ac_ext
20385 -LIBS=$ac_check_lib_save_LIBS
20386 -fi
20387 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20388 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20389 -if test $ac_cv_lib_dld_shl_load = yes; then
20390 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20391 -else
20392 -  echo "$as_me:$LINENO: checking for dlopen" >&5
20393 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20394 -if test "${ac_cv_func_dlopen+set}" = set; then
20395 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20396 -else
20397 -  cat >conftest.$ac_ext <<_ACEOF
20398 -/* confdefs.h.  */
20399 -_ACEOF
20400 -cat confdefs.h >>conftest.$ac_ext
20401 -cat >>conftest.$ac_ext <<_ACEOF
20402 -/* end confdefs.h.  */
20403 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20404 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20405 -#define dlopen innocuous_dlopen
20406 -
20407 -/* System header to define __stub macros and hopefully few prototypes,
20408 -    which can conflict with char dlopen (); below.
20409 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20410 -    <limits.h> exists even on freestanding compilers.  */
20411 -
20412 -#ifdef __STDC__
20413 -# include <limits.h>
20414 -#else
20415 -# include <assert.h>
20416 -#endif
20417 -
20418 -#undef dlopen
20419 -
20420 -/* Override any gcc2 internal prototype to avoid an error.  */
20421 -#ifdef __cplusplus
20422 -extern "C"
20423 -{
20424 -#endif
20425 -/* We use char because int might match the return type of a gcc2
20426 -   builtin and then its argument prototype would still apply.  */
20427 -char dlopen ();
20428 -/* The GNU C library defines this for functions which it implements
20429 -    to always fail with ENOSYS.  Some functions are actually named
20430 -    something starting with __ and the normal name is an alias.  */
20431 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
20432 -choke me
20433 -#else
20434 -char (*f) () = dlopen;
20435 -#endif
20436 -#ifdef __cplusplus
20437 -}
20438 -#endif
20439 -
20440 -int
20441 -main ()
20442 -{
20443 -return f != dlopen;
20444 -  ;
20445 -  return 0;
20446 -}
20447 -_ACEOF
20448 -rm -f conftest.$ac_objext conftest$ac_exeext
20449 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450 -  (eval $ac_link) 2>conftest.er1
20451 -  ac_status=$?
20452 -  grep -v '^ *+' conftest.er1 >conftest.err
20453 -  rm -f conftest.er1
20454 -  cat conftest.err >&5
20455 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 -  (exit $ac_status); } &&
20457 -        { ac_try='test -z "$ac_c_werror_flag"
20458 -                        || test ! -s conftest.err'
20459 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 -  (eval $ac_try) 2>&5
20461 -  ac_status=$?
20462 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 -  (exit $ac_status); }; } &&
20464 -        { ac_try='test -s conftest$ac_exeext'
20465 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 -  (eval $ac_try) 2>&5
20467 -  ac_status=$?
20468 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 -  (exit $ac_status); }; }; then
20470 -  ac_cv_func_dlopen=yes
20471 -else
20472 -  echo "$as_me: failed program was:" >&5
20473 -sed 's/^/| /' conftest.$ac_ext >&5
20474 -
20475 -ac_cv_func_dlopen=no
20476 -fi
20477 -rm -f conftest.err conftest.$ac_objext \
20478 -      conftest$ac_exeext conftest.$ac_ext
20479 -fi
20480 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20481 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20482 -if test $ac_cv_func_dlopen = yes; then
20483 -  lt_cv_dlopen="dlopen"
20484 -else
20485 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20486 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20487 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20488 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20489 -else
20490 -  ac_check_lib_save_LIBS=$LIBS
20491 -LIBS="-ldl  $LIBS"
20492 -cat >conftest.$ac_ext <<_ACEOF
20493 -/* confdefs.h.  */
20494 -_ACEOF
20495 -cat confdefs.h >>conftest.$ac_ext
20496 -cat >>conftest.$ac_ext <<_ACEOF
20497 -/* end confdefs.h.  */
20498 -
20499 -/* Override any gcc2 internal prototype to avoid an error.  */
20500 -#ifdef __cplusplus
20501 -extern "C"
20502 -#endif
20503 -/* We use char because int might match the return type of a gcc2
20504 -   builtin and then its argument prototype would still apply.  */
20505 -char dlopen ();
20506 -int
20507 -main ()
20508 -{
20509 -dlopen ();
20510 -  ;
20511 -  return 0;
20512 -}
20513 -_ACEOF
20514 -rm -f conftest.$ac_objext conftest$ac_exeext
20515 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516 -  (eval $ac_link) 2>conftest.er1
20517 -  ac_status=$?
20518 -  grep -v '^ *+' conftest.er1 >conftest.err
20519 -  rm -f conftest.er1
20520 -  cat conftest.err >&5
20521 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 -  (exit $ac_status); } &&
20523 -        { ac_try='test -z "$ac_c_werror_flag"
20524 -                        || test ! -s conftest.err'
20525 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 -  (eval $ac_try) 2>&5
20527 -  ac_status=$?
20528 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 -  (exit $ac_status); }; } &&
20530 -        { ac_try='test -s conftest$ac_exeext'
20531 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 -  (eval $ac_try) 2>&5
20533 -  ac_status=$?
20534 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 -  (exit $ac_status); }; }; then
20536 -  ac_cv_lib_dl_dlopen=yes
20537 -else
20538 -  echo "$as_me: failed program was:" >&5
20539 -sed 's/^/| /' conftest.$ac_ext >&5
20540 -
20541 -ac_cv_lib_dl_dlopen=no
20542 -fi
20543 -rm -f conftest.err conftest.$ac_objext \
20544 -      conftest$ac_exeext conftest.$ac_ext
20545 -LIBS=$ac_check_lib_save_LIBS
20546 -fi
20547 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20548 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20549 -if test $ac_cv_lib_dl_dlopen = yes; then
20550 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20551 -else
20552 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20553 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20554 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20555 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20556 -else
20557 -  ac_check_lib_save_LIBS=$LIBS
20558 -LIBS="-lsvld  $LIBS"
20559 -cat >conftest.$ac_ext <<_ACEOF
20560 -/* confdefs.h.  */
20561 -_ACEOF
20562 -cat confdefs.h >>conftest.$ac_ext
20563 -cat >>conftest.$ac_ext <<_ACEOF
20564 -/* end confdefs.h.  */
20565 -
20566 -/* Override any gcc2 internal prototype to avoid an error.  */
20567 -#ifdef __cplusplus
20568 -extern "C"
20569 -#endif
20570 -/* We use char because int might match the return type of a gcc2
20571 -   builtin and then its argument prototype would still apply.  */
20572 -char dlopen ();
20573 -int
20574 -main ()
20575 -{
20576 -dlopen ();
20577 -  ;
20578 -  return 0;
20579 -}
20580 -_ACEOF
20581 -rm -f conftest.$ac_objext conftest$ac_exeext
20582 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583 -  (eval $ac_link) 2>conftest.er1
20584 -  ac_status=$?
20585 -  grep -v '^ *+' conftest.er1 >conftest.err
20586 -  rm -f conftest.er1
20587 -  cat conftest.err >&5
20588 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 -  (exit $ac_status); } &&
20590 -        { ac_try='test -z "$ac_c_werror_flag"
20591 -                        || test ! -s conftest.err'
20592 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 -  (eval $ac_try) 2>&5
20594 -  ac_status=$?
20595 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 -  (exit $ac_status); }; } &&
20597 -        { ac_try='test -s conftest$ac_exeext'
20598 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 -  (eval $ac_try) 2>&5
20600 -  ac_status=$?
20601 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 -  (exit $ac_status); }; }; then
20603 -  ac_cv_lib_svld_dlopen=yes
20604 -else
20605 -  echo "$as_me: failed program was:" >&5
20606 -sed 's/^/| /' conftest.$ac_ext >&5
20607 +      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20608 +      hardcode_libdir_separator_GCJ=':'
20609 +      link_all_deplibs_GCJ=yes
20610 +      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20611 +      runpath_var='LD_RUN_PATH'
20612  
20613 -ac_cv_lib_svld_dlopen=no
20614 -fi
20615 -rm -f conftest.err conftest.$ac_objext \
20616 -      conftest$ac_exeext conftest.$ac_ext
20617 -LIBS=$ac_check_lib_save_LIBS
20618 -fi
20619 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20620 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20621 -if test $ac_cv_lib_svld_dlopen = yes; then
20622 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20623 -else
20624 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20625 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20626 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20627 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20628 -else
20629 -  ac_check_lib_save_LIBS=$LIBS
20630 -LIBS="-ldld  $LIBS"
20631 -cat >conftest.$ac_ext <<_ACEOF
20632 -/* confdefs.h.  */
20633 -_ACEOF
20634 -cat confdefs.h >>conftest.$ac_ext
20635 -cat >>conftest.$ac_ext <<_ACEOF
20636 -/* end confdefs.h.  */
20637 +      if test "$GCC" = yes; then
20638 +       archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20639 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20640 +      else
20641 +       archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20642 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20643 +      fi
20644 +      ;;
20645  
20646 -/* Override any gcc2 internal prototype to avoid an error.  */
20647 -#ifdef __cplusplus
20648 -extern "C"
20649 -#endif
20650 -/* We use char because int might match the return type of a gcc2
20651 -   builtin and then its argument prototype would still apply.  */
20652 -char dld_link ();
20653 -int
20654 -main ()
20655 -{
20656 -dld_link ();
20657 -  ;
20658 -  return 0;
20659 -}
20660 -_ACEOF
20661 -rm -f conftest.$ac_objext conftest$ac_exeext
20662 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20663 -  (eval $ac_link) 2>conftest.er1
20664 -  ac_status=$?
20665 -  grep -v '^ *+' conftest.er1 >conftest.err
20666 -  rm -f conftest.er1
20667 -  cat conftest.err >&5
20668 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 -  (exit $ac_status); } &&
20670 -        { ac_try='test -z "$ac_c_werror_flag"
20671 -                        || test ! -s conftest.err'
20672 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 -  (eval $ac_try) 2>&5
20674 +    uts4*)
20675 +      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20676 +      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20677 +      hardcode_shlibpath_var_GCJ=no
20678 +      ;;
20679 +
20680 +    *)
20681 +      ld_shlibs_GCJ=no
20682 +      ;;
20683 +    esac
20684 +  fi
20685 +
20686 +{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20687 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20688 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
20689 +
20690 +#
20691 +# Do we need to explicitly link libc?
20692 +#
20693 +case "x$archive_cmds_need_lc_GCJ" in
20694 +x|xyes)
20695 +  # Assume -lc should be added
20696 +  archive_cmds_need_lc_GCJ=yes
20697 +
20698 +  if test "$enable_shared" = yes && test "$GCC" = yes; then
20699 +    case $archive_cmds_GCJ in
20700 +    *'~'*)
20701 +      # FIXME: we may have to deal with multi-command sequences.
20702 +      ;;
20703 +    '$CC '*)
20704 +      # Test whether the compiler implicitly links with -lc since on some
20705 +      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20706 +      # to ld, don't add -lc before -lgcc.
20707 +      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20708 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20709 +      $rm conftest*
20710 +      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20711 +
20712 +      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713 +  (eval $ac_compile) 2>&5
20714    ac_status=$?
20715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 -  (exit $ac_status); }; } &&
20717 -        { ac_try='test -s conftest$ac_exeext'
20718 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 -  (eval $ac_try) 2>&5
20720 +  (exit $ac_status); } 2>conftest.err; then
20721 +        soname=conftest
20722 +        lib=conftest
20723 +        libobjs=conftest.$ac_objext
20724 +        deplibs=
20725 +        wl=$lt_prog_compiler_wl_GCJ
20726 +       pic_flag=$lt_prog_compiler_pic_GCJ
20727 +        compiler_flags=-v
20728 +        linker_flags=-v
20729 +        verstring=
20730 +        output_objdir=.
20731 +        libname=conftest
20732 +        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20733 +        allow_undefined_flag_GCJ=
20734 +        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20735 +  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20736    ac_status=$?
20737    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 -  (exit $ac_status); }; }; then
20739 -  ac_cv_lib_dld_dld_link=yes
20740 -else
20741 -  echo "$as_me: failed program was:" >&5
20742 -sed 's/^/| /' conftest.$ac_ext >&5
20743 +  (exit $ac_status); }
20744 +        then
20745 +         archive_cmds_need_lc_GCJ=no
20746 +        else
20747 +         archive_cmds_need_lc_GCJ=yes
20748 +        fi
20749 +        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20750 +      else
20751 +        cat conftest.err 1>&5
20752 +      fi
20753 +      $rm conftest*
20754 +      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20755 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20756 +      ;;
20757 +    esac
20758 +  fi
20759 +  ;;
20760 +esac
20761  
20762 -ac_cv_lib_dld_dld_link=no
20763 -fi
20764 -rm -f conftest.err conftest.$ac_objext \
20765 -      conftest$ac_exeext conftest.$ac_ext
20766 -LIBS=$ac_check_lib_save_LIBS
20767 -fi
20768 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20769 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20770 -if test $ac_cv_lib_dld_dld_link = yes; then
20771 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20772 +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20773 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20774 +library_names_spec=
20775 +libname_spec='lib$name'
20776 +soname_spec=
20777 +shrext_cmds=".so"
20778 +postinstall_cmds=
20779 +postuninstall_cmds=
20780 +finish_cmds=
20781 +finish_eval=
20782 +shlibpath_var=
20783 +shlibpath_overrides_runpath=unknown
20784 +version_type=none
20785 +dynamic_linker="$host_os ld.so"
20786 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
20787 +if test "$GCC" = yes; then
20788 +  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20789 +  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20790 +    # if the path contains ";" then we assume it to be the separator
20791 +    # otherwise default to the standard path separator (i.e. ":") - it is
20792 +    # assumed that no part of a normal pathname contains ";" but that should
20793 +    # okay in the real world where ";" in dirpaths is itself problematic.
20794 +    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20795 +  else
20796 +    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20797 +  fi
20798 +else
20799 +  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20800  fi
20801 +need_lib_prefix=unknown
20802 +hardcode_into_libs=no
20803  
20804 +# when you set need_version to no, make sure it does not cause -set_version
20805 +# flags to be left without arguments
20806 +need_version=unknown
20807  
20808 -fi
20809 +case $host_os in
20810 +aix3*)
20811 +  version_type=linux
20812 +  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20813 +  shlibpath_var=LIBPATH
20814  
20815 +  # AIX 3 has no versioning support, so we append a major version to the name.
20816 +  soname_spec='${libname}${release}${shared_ext}$major'
20817 +  ;;
20818  
20819 -fi
20820 +aix4* | aix5*)
20821 +  version_type=linux
20822 +  need_lib_prefix=no
20823 +  need_version=no
20824 +  hardcode_into_libs=yes
20825 +  if test "$host_cpu" = ia64; then
20826 +    # AIX 5 supports IA64
20827 +    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20828 +    shlibpath_var=LD_LIBRARY_PATH
20829 +  else
20830 +    # With GCC up to 2.95.x, collect2 would create an import file
20831 +    # for dependence libraries.  The import file would start with
20832 +    # the line `#! .'.  This would cause the generated library to
20833 +    # depend on `.', always an invalid library.  This was fixed in
20834 +    # development snapshots of GCC prior to 3.0.
20835 +    case $host_os in
20836 +      aix4 | aix4.[01] | aix4.[01].*)
20837 +      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20838 +          echo ' yes '
20839 +          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20840 +       :
20841 +      else
20842 +       can_build_shared=no
20843 +      fi
20844 +      ;;
20845 +    esac
20846 +    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20847 +    # soname into executable. Probably we can add versioning support to
20848 +    # collect2, so additional links can be useful in future.
20849 +    if test "$aix_use_runtimelinking" = yes; then
20850 +      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20851 +      # instead of lib<name>.a to let people know that these are not
20852 +      # typical AIX shared libraries.
20853 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20854 +    else
20855 +      # We preserve .a as extension for shared libraries through AIX4.2
20856 +      # and later when we are not doing run time linking.
20857 +      library_names_spec='${libname}${release}.a $libname.a'
20858 +      soname_spec='${libname}${release}${shared_ext}$major'
20859 +    fi
20860 +    shlibpath_var=LIBPATH
20861 +  fi
20862 +  ;;
20863  
20864 +amigaos*)
20865 +  library_names_spec='$libname.ixlibrary $libname.a'
20866 +  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20867 +  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20868 +  ;;
20869  
20870 -fi
20871 +beos*)
20872 +  library_names_spec='${libname}${shared_ext}'
20873 +  dynamic_linker="$host_os ld.so"
20874 +  shlibpath_var=LIBRARY_PATH
20875 +  ;;
20876  
20877 +bsdi[45]*)
20878 +  version_type=linux
20879 +  need_version=no
20880 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 +  soname_spec='${libname}${release}${shared_ext}$major'
20882 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20883 +  shlibpath_var=LD_LIBRARY_PATH
20884 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20885 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20886 +  # the default ld.so.conf also contains /usr/contrib/lib and
20887 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20888 +  # libtool to hard-code these into programs
20889 +  ;;
20890  
20891 -fi
20892 +cygwin* | mingw* | pw32*)
20893 +  version_type=windows
20894 +  shrext_cmds=".dll"
20895 +  need_version=no
20896 +  need_lib_prefix=no
20897  
20898 +  case $GCC,$host_os in
20899 +  yes,cygwin* | yes,mingw* | yes,pw32*)
20900 +    library_names_spec='$libname.dll.a'
20901 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20902 +    postinstall_cmds='base_file=`basename \${file}`~
20903 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20904 +      dldir=$destdir/`dirname \$dlpath`~
20905 +      test -d \$dldir || mkdir -p \$dldir~
20906 +      $install_prog $dir/$dlname \$dldir/$dlname~
20907 +      chmod a+x \$dldir/$dlname'
20908 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20909 +      dlpath=$dir/\$dldll~
20910 +       $rm \$dlpath'
20911 +    shlibpath_overrides_runpath=yes
20912  
20913 -fi
20914 +    case $host_os in
20915 +    cygwin*)
20916 +      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20917 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20918 +      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20919 +      ;;
20920 +    mingw*)
20921 +      # MinGW DLLs use traditional 'lib' prefix
20922 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20923 +      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20924 +      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20925 +        # It is most probably a Windows format PATH printed by
20926 +        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20927 +        # path with ; separators, and with drive letters. We can handle the
20928 +        # drive letters (cygwin fileutils understands them), so leave them,
20929 +        # especially as we might pass files found there to a mingw objdump,
20930 +        # which wouldn't understand a cygwinified path. Ahh.
20931 +        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20932 +      else
20933 +        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20934 +      fi
20935 +      ;;
20936 +    pw32*)
20937 +      # pw32 DLLs use 'pw' prefix rather than 'lib'
20938 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20939 +      ;;
20940 +    esac
20941 +    ;;
20942  
20943 +  *)
20944 +    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20945      ;;
20946    esac
20947 +  dynamic_linker='Win32 ld.exe'
20948 +  # FIXME: first we should search . and the directory the executable is in
20949 +  shlibpath_var=PATH
20950 +  ;;
20951  
20952 -  if test "x$lt_cv_dlopen" != xno; then
20953 -    enable_dlopen=yes
20954 +darwin* | rhapsody*)
20955 +  dynamic_linker="$host_os dyld"
20956 +  version_type=darwin
20957 +  need_lib_prefix=no
20958 +  need_version=no
20959 +  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20960 +  soname_spec='${libname}${release}${major}$shared_ext'
20961 +  shlibpath_overrides_runpath=yes
20962 +  shlibpath_var=DYLD_LIBRARY_PATH
20963 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20964 +  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20965 +  if test "$GCC" = yes; then
20966 +    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"`
20967    else
20968 -    enable_dlopen=no
20969 +    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20970    fi
20971 +  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20972 +  ;;
20973  
20974 -  case $lt_cv_dlopen in
20975 -  dlopen)
20976 -    save_CPPFLAGS="$CPPFLAGS"
20977 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20978 +dgux*)
20979 +  version_type=linux
20980 +  need_lib_prefix=no
20981 +  need_version=no
20982 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20983 +  soname_spec='${libname}${release}${shared_ext}$major'
20984 +  shlibpath_var=LD_LIBRARY_PATH
20985 +  ;;
20986  
20987 -    save_LDFLAGS="$LDFLAGS"
20988 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20989 +freebsd1*)
20990 +  dynamic_linker=no
20991 +  ;;
20992  
20993 -    save_LIBS="$LIBS"
20994 -    LIBS="$lt_cv_dlopen_libs $LIBS"
20995 +freebsd* | dragonfly*)
20996 +  # DragonFly does not have aout.  When/if they implement a new
20997 +  # versioning mechanism, adjust this.
20998 +  if test -x /usr/bin/objformat; then
20999 +    objformat=`/usr/bin/objformat`
21000 +  else
21001 +    case $host_os in
21002 +    freebsd[123]*) objformat=aout ;;
21003 +    *) objformat=elf ;;
21004 +    esac
21005 +  fi
21006 +  version_type=freebsd-$objformat
21007 +  case $version_type in
21008 +    freebsd-elf*)
21009 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21010 +      need_version=no
21011 +      need_lib_prefix=no
21012 +      ;;
21013 +    freebsd-*)
21014 +      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21015 +      need_version=yes
21016 +      ;;
21017 +  esac
21018 +  shlibpath_var=LD_LIBRARY_PATH
21019 +  case $host_os in
21020 +  freebsd2*)
21021 +    shlibpath_overrides_runpath=yes
21022 +    ;;
21023 +  freebsd3.[01]* | freebsdelf3.[01]*)
21024 +    shlibpath_overrides_runpath=yes
21025 +    hardcode_into_libs=yes
21026 +    ;;
21027 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21028 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21029 +    shlibpath_overrides_runpath=no
21030 +    hardcode_into_libs=yes
21031 +    ;;
21032 +  freebsd*) # from 4.6 on
21033 +    shlibpath_overrides_runpath=yes
21034 +    hardcode_into_libs=yes
21035 +    ;;
21036 +  esac
21037 +  ;;
21038  
21039 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21040 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21041 -if test "${lt_cv_dlopen_self+set}" = set; then
21042 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21043 -else
21044 -         if test "$cross_compiling" = yes; then :
21045 -  lt_cv_dlopen_self=cross
21046 -else
21047 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21048 -  lt_status=$lt_dlunknown
21049 -  cat > conftest.$ac_ext <<EOF
21050 -#line 18844 "configure"
21051 -#include "confdefs.h"
21052 +gnu*)
21053 +  version_type=linux
21054 +  need_lib_prefix=no
21055 +  need_version=no
21056 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21057 +  soname_spec='${libname}${release}${shared_ext}$major'
21058 +  shlibpath_var=LD_LIBRARY_PATH
21059 +  hardcode_into_libs=yes
21060 +  ;;
21061  
21062 -#if HAVE_DLFCN_H
21063 -#include <dlfcn.h>
21064 -#endif
21065 +hpux9* | hpux10* | hpux11*)
21066 +  # Give a soname corresponding to the major version so that dld.sl refuses to
21067 +  # link against other versions.
21068 +  version_type=sunos
21069 +  need_lib_prefix=no
21070 +  need_version=no
21071 +  case $host_cpu in
21072 +  ia64*)
21073 +    shrext_cmds='.so'
21074 +    hardcode_into_libs=yes
21075 +    dynamic_linker="$host_os dld.so"
21076 +    shlibpath_var=LD_LIBRARY_PATH
21077 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21078 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079 +    soname_spec='${libname}${release}${shared_ext}$major'
21080 +    if test "X$HPUX_IA64_MODE" = X32; then
21081 +      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21082 +    else
21083 +      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21084 +    fi
21085 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21086 +    ;;
21087 +   hppa*64*)
21088 +     shrext_cmds='.sl'
21089 +     hardcode_into_libs=yes
21090 +     dynamic_linker="$host_os dld.sl"
21091 +     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21092 +     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21093 +     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094 +     soname_spec='${libname}${release}${shared_ext}$major'
21095 +     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21096 +     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21097 +     ;;
21098 +   *)
21099 +    shrext_cmds='.sl'
21100 +    dynamic_linker="$host_os dld.sl"
21101 +    shlibpath_var=SHLIB_PATH
21102 +    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21103 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104 +    soname_spec='${libname}${release}${shared_ext}$major'
21105 +    ;;
21106 +  esac
21107 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21108 +  postinstall_cmds='chmod 555 $lib'
21109 +  ;;
21110  
21111 -#include <stdio.h>
21112 +interix3*)
21113 +  version_type=linux
21114 +  need_lib_prefix=no
21115 +  need_version=no
21116 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21117 +  soname_spec='${libname}${release}${shared_ext}$major'
21118 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21119 +  shlibpath_var=LD_LIBRARY_PATH
21120 +  shlibpath_overrides_runpath=no
21121 +  hardcode_into_libs=yes
21122 +  ;;
21123  
21124 -#ifdef RTLD_GLOBAL
21125 -#  define LT_DLGLOBAL          RTLD_GLOBAL
21126 -#else
21127 -#  ifdef DL_GLOBAL
21128 -#    define LT_DLGLOBAL                DL_GLOBAL
21129 -#  else
21130 -#    define LT_DLGLOBAL                0
21131 -#  endif
21132 -#endif
21133 +irix5* | irix6* | nonstopux*)
21134 +  case $host_os in
21135 +    nonstopux*) version_type=nonstopux ;;
21136 +    *)
21137 +       if test "$lt_cv_prog_gnu_ld" = yes; then
21138 +               version_type=linux
21139 +       else
21140 +               version_type=irix
21141 +       fi ;;
21142 +  esac
21143 +  need_lib_prefix=no
21144 +  need_version=no
21145 +  soname_spec='${libname}${release}${shared_ext}$major'
21146 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21147 +  case $host_os in
21148 +  irix5* | nonstopux*)
21149 +    libsuff= shlibsuff=
21150 +    ;;
21151 +  *)
21152 +    case $LD in # libtool.m4 will add one of these switches to LD
21153 +    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21154 +      libsuff= shlibsuff= libmagic=32-bit;;
21155 +    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21156 +      libsuff=32 shlibsuff=N32 libmagic=N32;;
21157 +    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21158 +      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21159 +    *) libsuff= shlibsuff= libmagic=never-match;;
21160 +    esac
21161 +    ;;
21162 +  esac
21163 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21164 +  shlibpath_overrides_runpath=no
21165 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21166 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21167 +  hardcode_into_libs=yes
21168 +  ;;
21169  
21170 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21171 -   find out it does not work in some platform. */
21172 -#ifndef LT_DLLAZY_OR_NOW
21173 -#  ifdef RTLD_LAZY
21174 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
21175 -#  else
21176 -#    ifdef DL_LAZY
21177 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
21178 -#    else
21179 -#      ifdef RTLD_NOW
21180 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
21181 -#      else
21182 -#        ifdef DL_NOW
21183 -#          define LT_DLLAZY_OR_NOW     DL_NOW
21184 -#        else
21185 -#          define LT_DLLAZY_OR_NOW     0
21186 -#        endif
21187 -#      endif
21188 -#    endif
21189 -#  endif
21190 -#endif
21191 +# No shared lib support for Linux oldld, aout, or coff.
21192 +linux*oldld* | linux*aout* | linux*coff*)
21193 +  dynamic_linker=no
21194 +  ;;
21195 +
21196 +# This must be Linux ELF.
21197 +linux* | k*bsd*-gnu)
21198 +  version_type=linux
21199 +  need_lib_prefix=no
21200 +  need_version=no
21201 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21202 +  soname_spec='${libname}${release}${shared_ext}$major'
21203 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21204 +  shlibpath_var=LD_LIBRARY_PATH
21205 +  shlibpath_overrides_runpath=no
21206 +  # This implies no fast_install, which is unacceptable.
21207 +  # Some rework will be needed to allow for fast_install
21208 +  # before this can be enabled.
21209 +  hardcode_into_libs=yes
21210  
21211 -#ifdef __cplusplus
21212 -extern "C" void exit (int);
21213 -#endif
21214 +  # Append ld.so.conf contents to the search path
21215 +  if test -f /etc/ld.so.conf; then
21216 +    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' ' '`
21217 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21218 +  fi
21219  
21220 -void fnord() { int i=42;}
21221 -int main ()
21222 -{
21223 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21224 -  int status = $lt_dlunknown;
21225 +  # We used to test for /lib/ld.so.1 and disable shared libraries on
21226 +  # powerpc, because MkLinux only supported shared libraries with the
21227 +  # GNU dynamic linker.  Since this was broken with cross compilers,
21228 +  # most powerpc-linux boxes support dynamic linking these days and
21229 +  # people can always --disable-shared, the test was removed, and we
21230 +  # assume the GNU/Linux dynamic linker is in use.
21231 +  dynamic_linker='GNU/Linux ld.so'
21232 +  ;;
21233  
21234 -  if (self)
21235 -    {
21236 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21237 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21238 -      /* dlclose (self); */
21239 -    }
21240 +netbsdelf*-gnu)
21241 +  version_type=linux
21242 +  need_lib_prefix=no
21243 +  need_version=no
21244 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21245 +  soname_spec='${libname}${release}${shared_ext}$major'
21246 +  shlibpath_var=LD_LIBRARY_PATH
21247 +  shlibpath_overrides_runpath=no
21248 +  hardcode_into_libs=yes
21249 +  dynamic_linker='NetBSD ld.elf_so'
21250 +  ;;
21251  
21252 -    exit (status);
21253 -}
21254 -EOF
21255 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21256 -  (eval $ac_link) 2>&5
21257 -  ac_status=$?
21258 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21260 -    (./conftest; exit; ) 2>/dev/null
21261 -    lt_status=$?
21262 -    case x$lt_status in
21263 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21264 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21265 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21266 -    esac
21267 -  else :
21268 -    # compilation failed
21269 -    lt_cv_dlopen_self=no
21270 +netbsd*)
21271 +  version_type=sunos
21272 +  need_lib_prefix=no
21273 +  need_version=no
21274 +  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21275 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21276 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21277 +    dynamic_linker='NetBSD (a.out) ld.so'
21278 +  else
21279 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21280 +    soname_spec='${libname}${release}${shared_ext}$major'
21281 +    dynamic_linker='NetBSD ld.elf_so'
21282    fi
21283 -fi
21284 -rm -fr conftest*
21285 -
21286 +  shlibpath_var=LD_LIBRARY_PATH
21287 +  shlibpath_overrides_runpath=yes
21288 +  hardcode_into_libs=yes
21289 +  ;;
21290  
21291 -fi
21292 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21293 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21294 +newsos6)
21295 +  version_type=linux
21296 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21297 +  shlibpath_var=LD_LIBRARY_PATH
21298 +  shlibpath_overrides_runpath=yes
21299 +  ;;
21300  
21301 -    if test "x$lt_cv_dlopen_self" = xyes; then
21302 -      LDFLAGS="$LDFLAGS $link_static_flag"
21303 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21304 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21305 -if test "${lt_cv_dlopen_self_static+set}" = set; then
21306 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21307 -else
21308 -         if test "$cross_compiling" = yes; then :
21309 -  lt_cv_dlopen_self_static=cross
21310 -else
21311 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21312 -  lt_status=$lt_dlunknown
21313 -  cat > conftest.$ac_ext <<EOF
21314 -#line 18942 "configure"
21315 -#include "confdefs.h"
21316 +nto-qnx*)
21317 +  version_type=linux
21318 +  need_lib_prefix=no
21319 +  need_version=no
21320 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21321 +  soname_spec='${libname}${release}${shared_ext}$major'
21322 +  shlibpath_var=LD_LIBRARY_PATH
21323 +  shlibpath_overrides_runpath=yes
21324 +  ;;
21325  
21326 -#if HAVE_DLFCN_H
21327 -#include <dlfcn.h>
21328 -#endif
21329 +openbsd*)
21330 +  version_type=sunos
21331 +  sys_lib_dlsearch_path_spec="/usr/lib"
21332 +  need_lib_prefix=no
21333 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21334 +  case $host_os in
21335 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21336 +    *)                         need_version=no  ;;
21337 +  esac
21338 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21339 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21340 +  shlibpath_var=LD_LIBRARY_PATH
21341 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21342 +    case $host_os in
21343 +      openbsd2.[89] | openbsd2.[89].*)
21344 +       shlibpath_overrides_runpath=no
21345 +       ;;
21346 +      *)
21347 +       shlibpath_overrides_runpath=yes
21348 +       ;;
21349 +      esac
21350 +  else
21351 +    shlibpath_overrides_runpath=yes
21352 +  fi
21353 +  ;;
21354  
21355 -#include <stdio.h>
21356 +os2*)
21357 +  libname_spec='$name'
21358 +  shrext_cmds=".dll"
21359 +  need_lib_prefix=no
21360 +  library_names_spec='$libname${shared_ext} $libname.a'
21361 +  dynamic_linker='OS/2 ld.exe'
21362 +  shlibpath_var=LIBPATH
21363 +  ;;
21364  
21365 -#ifdef RTLD_GLOBAL
21366 -#  define LT_DLGLOBAL          RTLD_GLOBAL
21367 -#else
21368 -#  ifdef DL_GLOBAL
21369 -#    define LT_DLGLOBAL                DL_GLOBAL
21370 -#  else
21371 -#    define LT_DLGLOBAL                0
21372 -#  endif
21373 -#endif
21374 +osf3* | osf4* | osf5*)
21375 +  version_type=osf
21376 +  need_lib_prefix=no
21377 +  need_version=no
21378 +  soname_spec='${libname}${release}${shared_ext}$major'
21379 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21380 +  shlibpath_var=LD_LIBRARY_PATH
21381 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21382 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21383 +  ;;
21384  
21385 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21386 -   find out it does not work in some platform. */
21387 -#ifndef LT_DLLAZY_OR_NOW
21388 -#  ifdef RTLD_LAZY
21389 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
21390 -#  else
21391 -#    ifdef DL_LAZY
21392 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
21393 -#    else
21394 -#      ifdef RTLD_NOW
21395 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
21396 -#      else
21397 -#        ifdef DL_NOW
21398 -#          define LT_DLLAZY_OR_NOW     DL_NOW
21399 -#        else
21400 -#          define LT_DLLAZY_OR_NOW     0
21401 -#        endif
21402 -#      endif
21403 -#    endif
21404 -#  endif
21405 -#endif
21406 +solaris*)
21407 +  version_type=linux
21408 +  need_lib_prefix=no
21409 +  need_version=no
21410 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21411 +  soname_spec='${libname}${release}${shared_ext}$major'
21412 +  shlibpath_var=LD_LIBRARY_PATH
21413 +  shlibpath_overrides_runpath=yes
21414 +  hardcode_into_libs=yes
21415 +  # ldd complains unless libraries are executable
21416 +  postinstall_cmds='chmod +x $lib'
21417 +  ;;
21418  
21419 -#ifdef __cplusplus
21420 -extern "C" void exit (int);
21421 -#endif
21422 +sunos4*)
21423 +  version_type=sunos
21424 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21425 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21426 +  shlibpath_var=LD_LIBRARY_PATH
21427 +  shlibpath_overrides_runpath=yes
21428 +  if test "$with_gnu_ld" = yes; then
21429 +    need_lib_prefix=no
21430 +  fi
21431 +  need_version=yes
21432 +  ;;
21433  
21434 -void fnord() { int i=42;}
21435 -int main ()
21436 -{
21437 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21438 -  int status = $lt_dlunknown;
21439 +sysv4 | sysv4.3*)
21440 +  version_type=linux
21441 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21442 +  soname_spec='${libname}${release}${shared_ext}$major'
21443 +  shlibpath_var=LD_LIBRARY_PATH
21444 +  case $host_vendor in
21445 +    sni)
21446 +      shlibpath_overrides_runpath=no
21447 +      need_lib_prefix=no
21448 +      export_dynamic_flag_spec='${wl}-Blargedynsym'
21449 +      runpath_var=LD_RUN_PATH
21450 +      ;;
21451 +    siemens)
21452 +      need_lib_prefix=no
21453 +      ;;
21454 +    motorola)
21455 +      need_lib_prefix=no
21456 +      need_version=no
21457 +      shlibpath_overrides_runpath=no
21458 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21459 +      ;;
21460 +  esac
21461 +  ;;
21462  
21463 -  if (self)
21464 -    {
21465 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21466 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21467 -      /* dlclose (self); */
21468 -    }
21469 +sysv4*MP*)
21470 +  if test -d /usr/nec ;then
21471 +    version_type=linux
21472 +    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21473 +    soname_spec='$libname${shared_ext}.$major'
21474 +    shlibpath_var=LD_LIBRARY_PATH
21475 +  fi
21476 +  ;;
21477  
21478 -    exit (status);
21479 -}
21480 -EOF
21481 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482 -  (eval $ac_link) 2>&5
21483 -  ac_status=$?
21484 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21486 -    (./conftest; exit; ) 2>/dev/null
21487 -    lt_status=$?
21488 -    case x$lt_status in
21489 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21490 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21491 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21492 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21493 +  version_type=freebsd-elf
21494 +  need_lib_prefix=no
21495 +  need_version=no
21496 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21497 +  soname_spec='${libname}${release}${shared_ext}$major'
21498 +  shlibpath_var=LD_LIBRARY_PATH
21499 +  hardcode_into_libs=yes
21500 +  if test "$with_gnu_ld" = yes; then
21501 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21502 +    shlibpath_overrides_runpath=no
21503 +  else
21504 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21505 +    shlibpath_overrides_runpath=yes
21506 +    case $host_os in
21507 +      sco3.2v5*)
21508 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21509 +       ;;
21510      esac
21511 -  else :
21512 -    # compilation failed
21513 -    lt_cv_dlopen_self_static=no
21514    fi
21515 -fi
21516 -rm -fr conftest*
21517 +  sys_lib_dlsearch_path_spec='/usr/lib'
21518 +  ;;
21519 +
21520 +uts4*)
21521 +  version_type=linux
21522 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21523 +  soname_spec='${libname}${release}${shared_ext}$major'
21524 +  shlibpath_var=LD_LIBRARY_PATH
21525 +  ;;
21526  
21527 +*)
21528 +  dynamic_linker=no
21529 +  ;;
21530 +esac
21531 +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21532 +echo "${ECHO_T}$dynamic_linker" >&6; }
21533 +test "$dynamic_linker" = no && can_build_shared=no
21534  
21535 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21536 +if test "$GCC" = yes; then
21537 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21538  fi
21539 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21540 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21541 -    fi
21542  
21543 -    CPPFLAGS="$save_CPPFLAGS"
21544 -    LDFLAGS="$save_LDFLAGS"
21545 -    LIBS="$save_LIBS"
21546 -    ;;
21547 -  esac
21548 +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21549 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21550 +hardcode_action_GCJ=
21551 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21552 +   test -n "$runpath_var_GCJ" || \
21553 +   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21554  
21555 -  case $lt_cv_dlopen_self in
21556 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21557 -  *) enable_dlopen_self=unknown ;;
21558 -  esac
21559 +  # We can hardcode non-existant directories.
21560 +  if test "$hardcode_direct_GCJ" != no &&
21561 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21562 +     # have to relink, otherwise we might link with an installed library
21563 +     # when we should be linking with a yet-to-be-installed one
21564 +     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21565 +     test "$hardcode_minus_L_GCJ" != no; then
21566 +    # Linking always hardcodes the temporary library directory.
21567 +    hardcode_action_GCJ=relink
21568 +  else
21569 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21570 +    hardcode_action_GCJ=immediate
21571 +  fi
21572 +else
21573 +  # We cannot hardcode anything, or else we can only hardcode existing
21574 +  # directories.
21575 +  hardcode_action_GCJ=unsupported
21576 +fi
21577 +{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21578 +echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21579  
21580 -  case $lt_cv_dlopen_self_static in
21581 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21582 -  *) enable_dlopen_self_static=unknown ;;
21583 -  esac
21584 +if test "$hardcode_action_GCJ" = relink; then
21585 +  # Fast installation is not supported
21586 +  enable_fast_install=no
21587 +elif test "$shlibpath_overrides_runpath" = yes ||
21588 +     test "$enable_shared" = no; then
21589 +  # Fast installation is not necessary
21590 +  enable_fast_install=needless
21591  fi
21592  
21593  
21594 @@ -19056,7 +18867,7 @@
21595    # Now quote all the things that may contain metacharacters while being
21596    # careful not to overquote the AC_SUBSTed values.  We take copies of the
21597    # variables and quote the copies for generation of the libtool script.
21598 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21599 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21600      SED SHELL STRIP \
21601      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21602      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21603 @@ -19174,6 +18985,9 @@
21604  # A C compiler.
21605  LTCC=$lt_LTCC
21606  
21607 +# LTCC compiler flags.
21608 +LTCFLAGS=$lt_LTCFLAGS
21609 +
21610  # A language-specific compiler.
21611  CC=$lt_compiler_GCJ
21612  
21613 @@ -19464,7 +19278,6 @@
21614        RC)
21615  
21616  
21617 -
21618  # Source file extension for RC test sources.
21619  ac_ext=rc
21620  
21621 @@ -19483,6 +19296,9 @@
21622  # If no C compiler was specified, use CC.
21623  LTCC=${LTCC-"$CC"}
21624  
21625 +# If no C compiler flags were specified, use CFLAGS.
21626 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21627 +
21628  # Allow CC to be a program name with arguments.
21629  compiler=$CC
21630  
21631 @@ -19490,13 +19306,13 @@
21632  # save warnings/boilerplate of simple test code
21633  ac_outfile=conftest.$ac_objext
21634  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21635 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21636 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21637  _lt_compiler_boilerplate=`cat conftest.err`
21638  $rm conftest*
21639  
21640  ac_outfile=conftest.$ac_objext
21641  printf "$lt_simple_link_test_code" >conftest.$ac_ext
21642 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21643 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21644  _lt_linker_boilerplate=`cat conftest.err`
21645  $rm conftest*
21646  
21647 @@ -19531,7 +19347,7 @@
21648    # Now quote all the things that may contain metacharacters while being
21649    # careful not to overquote the AC_SUBSTed values.  We take copies of the
21650    # variables and quote the copies for generation of the libtool script.
21651 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21652 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21653      SED SHELL STRIP \
21654      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21655      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21656 @@ -19649,6 +19465,9 @@
21657  # A C compiler.
21658  LTCC=$lt_LTCC
21659  
21660 +# LTCC compiler flags.
21661 +LTCFLAGS=$lt_LTCFLAGS
21662 +
21663  # A language-specific compiler.
21664  CC=$lt_compiler_RC
21665  
21666 @@ -19991,8 +19810,8 @@
21667  
21668  
21669  # Checks for header files.
21670 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21671 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21672 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21673 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21674  if test "${ac_cv_header_stdc+set}" = set; then
21675    echo $ECHO_N "(cached) $ECHO_C" >&6
21676  else
21677 @@ -20016,24 +19835,36 @@
21678  }
21679  _ACEOF
21680  rm -f conftest.$ac_objext
21681 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682 -  (eval $ac_compile) 2>conftest.er1
21683 +if { (ac_try="$ac_compile"
21684 +case "(($ac_try" in
21685 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686 +  *) ac_try_echo=$ac_try;;
21687 +esac
21688 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689 +  (eval "$ac_compile") 2>conftest.er1
21690    ac_status=$?
21691    grep -v '^ *+' conftest.er1 >conftest.err
21692    rm -f conftest.er1
21693    cat conftest.err >&5
21694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695    (exit $ac_status); } &&
21696 -        { ac_try='test -z "$ac_c_werror_flag"
21697 -                        || test ! -s conftest.err'
21698 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 -  (eval $ac_try) 2>&5
21700 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21701 +  { (case "(($ac_try" in
21702 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 +  *) ac_try_echo=$ac_try;;
21704 +esac
21705 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 +  (eval "$ac_try") 2>&5
21707    ac_status=$?
21708    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709    (exit $ac_status); }; } &&
21710          { ac_try='test -s conftest.$ac_objext'
21711 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 -  (eval $ac_try) 2>&5
21713 +  { (case "(($ac_try" in
21714 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 +  *) ac_try_echo=$ac_try;;
21716 +esac
21717 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718 +  (eval "$ac_try") 2>&5
21719    ac_status=$?
21720    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721    (exit $ac_status); }; }; then
21722 @@ -20042,9 +19873,10 @@
21723    echo "$as_me: failed program was:" >&5
21724  sed 's/^/| /' conftest.$ac_ext >&5
21725  
21726 -ac_cv_header_stdc=no
21727 +       ac_cv_header_stdc=no
21728  fi
21729 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 +
21731 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732  
21733  if test $ac_cv_header_stdc = yes; then
21734    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21735 @@ -20100,6 +19932,7 @@
21736  cat >>conftest.$ac_ext <<_ACEOF
21737  /* end confdefs.h.  */
21738  #include <ctype.h>
21739 +#include <stdlib.h>
21740  #if ((' ' & 0x0FF) == 0x020)
21741  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21742  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21743 @@ -20119,18 +19952,27 @@
21744    for (i = 0; i < 256; i++)
21745      if (XOR (islower (i), ISLOWER (i))
21746         || toupper (i) != TOUPPER (i))
21747 -      exit(2);
21748 -  exit (0);
21749 +      return 2;
21750 +  return 0;
21751  }
21752  _ACEOF
21753  rm -f conftest$ac_exeext
21754 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21755 -  (eval $ac_link) 2>&5
21756 +if { (ac_try="$ac_link"
21757 +case "(($ac_try" in
21758 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 +  *) ac_try_echo=$ac_try;;
21760 +esac
21761 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 +  (eval "$ac_link") 2>&5
21763    ac_status=$?
21764    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21766 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 -  (eval $ac_try) 2>&5
21768 +  { (case "(($ac_try" in
21769 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 +  *) ac_try_echo=$ac_try;;
21771 +esac
21772 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 +  (eval "$ac_try") 2>&5
21774    ac_status=$?
21775    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776    (exit $ac_status); }; }; then
21777 @@ -20143,12 +19985,14 @@
21778  ( exit $ac_status )
21779  ac_cv_header_stdc=no
21780  fi
21781 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21782 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21783  fi
21784 +
21785 +
21786  fi
21787  fi
21788 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21789 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
21790 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21791 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21792  if test $ac_cv_header_stdc = yes; then
21793  
21794  cat >>confdefs.h <<\_ACEOF
21795 @@ -20164,18 +20008,19 @@
21796  for ac_header in fcntl.h stdlib.h string.h unistd.h
21797  do
21798  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21799 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
21800 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
21801 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21802 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
21803 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21804 +  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21806 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807    echo $ECHO_N "(cached) $ECHO_C" >&6
21808  fi
21809 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21810 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21811 +ac_res=`eval echo '${'$as_ac_Header'}'`
21812 +              { echo "$as_me:$LINENO: result: $ac_res" >&5
21813 +echo "${ECHO_T}$ac_res" >&6; }
21814  else
21815    # Is the header compilable?
21816 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
21817 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21818 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21819 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21820  cat >conftest.$ac_ext <<_ACEOF
21821  /* confdefs.h.  */
21822  _ACEOF
21823 @@ -20186,24 +20031,36 @@
21824  #include <$ac_header>
21825  _ACEOF
21826  rm -f conftest.$ac_objext
21827 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828 -  (eval $ac_compile) 2>conftest.er1
21829 +if { (ac_try="$ac_compile"
21830 +case "(($ac_try" in
21831 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 +  *) ac_try_echo=$ac_try;;
21833 +esac
21834 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 +  (eval "$ac_compile") 2>conftest.er1
21836    ac_status=$?
21837    grep -v '^ *+' conftest.er1 >conftest.err
21838    rm -f conftest.er1
21839    cat conftest.err >&5
21840    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841    (exit $ac_status); } &&
21842 -        { ac_try='test -z "$ac_c_werror_flag"
21843 -                        || test ! -s conftest.err'
21844 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 -  (eval $ac_try) 2>&5
21846 +        { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21847 +  { (case "(($ac_try" in
21848 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 +  *) ac_try_echo=$ac_try;;
21850 +esac
21851 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852 +  (eval "$ac_try") 2>&5
21853    ac_status=$?
21854    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855    (exit $ac_status); }; } &&
21856          { ac_try='test -s conftest.$ac_objext'
21857 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 -  (eval $ac_try) 2>&5
21859 +  { (case "(($ac_try" in
21860 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 +  *) ac_try_echo=$ac_try;;
21862 +esac
21863 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 +  (eval "$ac_try") 2>&5
21865    ac_status=$?
21866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867    (exit $ac_status); }; }; then
21868 @@ -20212,15 +20069,16 @@
21869    echo "$as_me: failed program was:" >&5
21870  sed 's/^/| /' conftest.$ac_ext >&5
21871  
21872 -ac_header_compiler=no
21873 +       ac_header_compiler=no
21874  fi
21875 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21876 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21877 -echo "${ECHO_T}$ac_header_compiler" >&6
21878 +
21879 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21881 +echo "${ECHO_T}$ac_header_compiler" >&6; }
21882  
21883  # Is the header present?
21884 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
21885 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21886 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888  cat >conftest.$ac_ext <<_ACEOF
21889  /* confdefs.h.  */
21890  _ACEOF
21891 @@ -20229,8 +20087,13 @@
21892  /* end confdefs.h.  */
21893  #include <$ac_header>
21894  _ACEOF
21895 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21896 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21897 +if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 +case "(($ac_try" in
21899 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 +  *) ac_try_echo=$ac_try;;
21901 +esac
21902 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904    ac_status=$?
21905    grep -v '^ *+' conftest.er1 >conftest.err
21906    rm -f conftest.er1
21907 @@ -20254,9 +20117,10 @@
21908  
21909    ac_header_preproc=no
21910  fi
21911 +
21912  rm -f conftest.err conftest.$ac_ext
21913 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21914 -echo "${ECHO_T}$ac_header_preproc" >&6
21915 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21916 +echo "${ECHO_T}$ac_header_preproc" >&6; }
21917  
21918  # So?  What about this header?
21919  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21920 @@ -20280,25 +20144,24 @@
21921  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21922      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21923  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21924 -    (
21925 -      cat <<\_ASBOX
21926 +    ( cat <<\_ASBOX
21927  ## -------------------------------------------- ##
21928  ## Report this to sebastian.marsching@suphp.org ##
21929  ## -------------------------------------------- ##
21930  _ASBOX
21931 -    ) |
21932 -      sed "s/^/$as_me: WARNING:     /" >&2
21933 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
21934      ;;
21935  esac
21936 -echo "$as_me:$LINENO: checking for $ac_header" >&5
21937 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21938 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
21939 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21940 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21941 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21942    echo $ECHO_N "(cached) $ECHO_C" >&6
21943  else
21944    eval "$as_ac_Header=\$ac_header_preproc"
21945  fi
21946 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21947 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21948 +ac_res=`eval echo '${'$as_ac_Header'}'`
21949 +              { echo "$as_me:$LINENO: result: $ac_res" >&5
21950 +echo "${ECHO_T}$ac_res" >&6; }
21951  
21952  fi
21953  if test `eval echo '${'$as_ac_Header'}'` = yes; then
21954 @@ -20323,13 +20186,12 @@
21955      TEST_X="test -x"
21956    fi
21957  
21958 -  echo "$as_me:$LINENO: checking for APR" >&5
21959 -echo $ECHO_N "checking for APR... $ECHO_C" >&6
21960 +  { echo "$as_me:$LINENO: checking for APR" >&5
21961 +echo $ECHO_N "checking for APR... $ECHO_C" >&6; }
21962  
21963 -# Check whether --with-apr or --without-apr was given.
21964 +# Check whether --with-apr was given.
21965  if test "${with_apr+set}" = set; then
21966 -  withval="$with_apr"
21967 -
21968 +  withval=$with_apr;
21969      if test "$withval" = "no" || test "$withval" = "yes"; then
21970        { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
21971  echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
21972 @@ -20381,28 +20243,29 @@
21973        fi
21974      fi
21975  
21976 -fi;
21977 +fi
21978 +
21979  
21980 -  echo "$as_me:$LINENO: result: $apr_found" >&5
21981 -echo "${ECHO_T}$apr_found" >&6
21982 +  { echo "$as_me:$LINENO: result: $apr_found" >&5
21983 +echo "${ECHO_T}$apr_found" >&6; }
21984  
21985  
21986  # Determine Apache version and find apxs
21987  
21988 -echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
21989 -echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
21990 +{ echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
21991 +echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6; }
21992  
21993 -# Check whether --with-apxs or --without-apxs was given.
21994 +# Check whether --with-apxs was given.
21995  if test "${with_apxs+set}" = set; then
21996 -  withval="$with_apxs"
21997 -
21998 +  withval=$with_apxs;
21999              if test "$withval" = "yes"; then
22000                APXS=apxs
22001              else
22002                APXS="$withval"
22003              fi
22004  
22005 -fi;
22006 +fi
22007 +
22008  
22009  if test -z "$APXS"; then
22010    APXS=`which apxs`
22011 @@ -20447,14 +20310,14 @@
22012  
22013  
22014  
22015 -    echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
22016 -echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
22017 +    { echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
22018 +echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6; }
22019  else
22020      APXS="/notfound/"
22021  
22022  
22023 -    echo "$as_me:$LINENO: result: no" >&5
22024 -echo "${ECHO_T}no" >&6
22025 +    { echo "$as_me:$LINENO: result: no" >&5
22026 +echo "${ECHO_T}no" >&6; }
22027  fi
22028  
22029  if test x"${APACHE_VERSION_2}" = xtrue ; then \
22030 @@ -20470,20 +20333,20 @@
22031  
22032  # Get uid/gid mode
22033  
22034 -echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
22035 -echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
22036 +{ echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
22037 +echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6; }
22038  
22039 -# Check whether --with-setid-mode or --without-setid-mode was given.
22040 +# Check whether --with-setid-mode was given.
22041  if test "${with_setid_mode+set}" = set; then
22042 -  withval="$with_setid_mode"
22043 -
22044 +  withval=$with_setid_mode;
22045              if test "$withval" = "yes"; then
22046                SETID_MODE="paranoid"
22047              else
22048                SETID_MODE="$withval"
22049              fi
22050  
22051 -fi;
22052 +fi
22053 +
22054  
22055  if test -z "$SETID_MODE" ; then
22056    SETID_MODE="paranoid"
22057 @@ -20524,18 +20387,17 @@
22058     { (exit 1); exit 1; }; }
22059          ;;
22060      esac
22061 -    echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
22062 -echo "${ECHO_T}ok - using $SETID_MODE" >&6
22063 +    { echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
22064 +echo "${ECHO_T}ok - using $SETID_MODE" >&6; }
22065  fi
22066  
22067  
22068  # Checkpath (docroot) option
22069  
22070  checkpath=yes
22071 -# Check whether --enable-checkpath or --disable-checkpath was given.
22072 +# Check whether --enable-checkpath was given.
22073  if test "${enable_checkpath+set}" = set; then
22074 -  enableval="$enable_checkpath"
22075 -
22076 +  enableval=$enable_checkpath;
22077                if test "$enableval" = "no"; then
22078                 checkpath=no
22079  
22080 @@ -20545,16 +20407,16 @@
22081  
22082               fi
22083  
22084 -fi;
22085 +fi
22086 +
22087  
22088  
22089  # Minimum UID
22090  
22091  
22092 -# Check whether --with-min-uid or --without-min-uid was given.
22093 +# Check whether --with-min-uid was given.
22094  if test "${with_min_uid+set}" = set; then
22095 -  withval="$with_min_uid"
22096 -
22097 +  withval=$with_min_uid;
22098               if test "$withval" -a ! "$withval" = "yes" ; then
22099  
22100  cat >>confdefs.h <<_ACEOF
22101 @@ -20571,15 +20433,15 @@
22102  _ACEOF
22103  
22104  
22105 -fi;
22106 +fi
22107 +
22108  
22109  # Minimum GID
22110  
22111  
22112 -# Check whether --with-min-gid or --without-min-gid was given.
22113 +# Check whether --with-min-gid was given.
22114  if test "${with_min_gid+set}" = set; then
22115 -  withval="$with_min_gid"
22116 -
22117 +  withval=$with_min_gid;
22118               if test "$withval" -a ! "$withval" = "yes" ; then
22119  
22120  cat >>confdefs.h <<_ACEOF
22121 @@ -20596,16 +20458,16 @@
22122  _ACEOF
22123  
22124  
22125 -fi;
22126 +fi
22127 +
22128  
22129  
22130  # Webserver user
22131  
22132  
22133 -# Check whether --with-apache-user or --without-apache-user was given.
22134 +# Check whether --with-apache-user was given.
22135  if test "${with_apache_user+set}" = set; then
22136 -  withval="$with_apache_user"
22137 -
22138 +  withval=$with_apache_user;
22139               if test "$withval" -a ! "$withval" = "yes" ; then
22140  
22141  cat >>confdefs.h <<_ACEOF
22142 @@ -20622,15 +20484,15 @@
22143  _ACEOF
22144  
22145  
22146 -fi;
22147 +fi
22148 +
22149  
22150  # Path to logfile
22151  
22152  
22153 -# Check whether --with-logfile or --without-logfile was given.
22154 +# Check whether --with-logfile was given.
22155  if test "${with_logfile+set}" = set; then
22156 -  withval="$with_logfile"
22157 -
22158 +  withval=$with_logfile;
22159               if test "$withval" -a ! "$withval" = "yes" ; then
22160  
22161  cat >>confdefs.h <<_ACEOF
22162 @@ -20647,7 +20509,8 @@
22163  _ACEOF
22164  
22165  
22166 -fi;
22167 +fi
22168 +
22169  
22170  
22171  # Conditional building of Apache module
22172 @@ -20684,7 +20547,7 @@
22173  fi
22174  
22175  
22176 -                                        ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
22177 +ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
22178  
22179  cat >confcache <<\_ACEOF
22180  # This file is a shell script that caches the results of configure
22181 @@ -20704,39 +20567,58 @@
22182  
22183  # The following way of writing the cache mishandles newlines in values,
22184  # but we know of no workaround that is simple, portable, and efficient.
22185 -# So, don't put newlines in cache variables' values.
22186 +# So, we kill variables containing newlines.
22187  # Ultrix sh set writes to stderr and can't be redirected directly,
22188  # and sets the high bit in the cache file unless we assign to the vars.
22189 -{
22190 +(
22191 +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22192 +    eval ac_val=\$$ac_var
22193 +    case $ac_val in #(
22194 +    *${as_nl}*)
22195 +      case $ac_var in #(
22196 +      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22197 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22198 +      esac
22199 +      case $ac_var in #(
22200 +      _ | IFS | as_nl) ;; #(
22201 +      *) $as_unset $ac_var ;;
22202 +      esac ;;
22203 +    esac
22204 +  done
22205 +
22206    (set) 2>&1 |
22207 -    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22208 -    *ac_space=\ *)
22209 +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22210 +    *${as_nl}ac_space=\ *)
22211        # `set' does not quote correctly, so add quotes (double-quote
22212        # substitution turns \\\\ into \\, and sed turns \\ into \).
22213        sed -n \
22214         "s/'/'\\\\''/g;
22215           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22216 -      ;;
22217 +      ;; #(
22218      *)
22219        # `set' quotes correctly as required by POSIX, so do not add quotes.
22220 -      sed -n \
22221 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22222 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22223        ;;
22224 -    esac;
22225 -} |
22226 +    esac |
22227 +    sort
22228 +) |
22229    sed '
22230 +     /^ac_cv_env_/b end
22231       t clear
22232 -     : clear
22233 +     :clear
22234       s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22235       t end
22236 -     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22237 -     : end' >>confcache
22238 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
22239 -  if test -w $cache_file; then
22240 -    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22241 +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22242 +     :end' >>confcache
22243 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22244 +  if test -w "$cache_file"; then
22245 +    test "x$cache_file" != "x/dev/null" &&
22246 +      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22247 +echo "$as_me: updating cache $cache_file" >&6;}
22248      cat confcache >$cache_file
22249    else
22250 -    echo "not updating unwritable cache $cache_file"
22251 +    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22252 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22253    fi
22254  fi
22255  rm -f confcache
22256 @@ -20745,32 +20627,18 @@
22257  # Let make expand exec_prefix.
22258  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22259  
22260 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
22261 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22262 -# trailing colons and then remove the whole line if VPATH becomes empty
22263 -# (actually we leave an empty line to preserve line numbers).
22264 -if test "x$srcdir" = x.; then
22265 -  ac_vpsub='/^[         ]*VPATH[        ]*=/{
22266 -s/:*\$(srcdir):*/:/;
22267 -s/:*\${srcdir}:*/:/;
22268 -s/:*@srcdir@:*/:/;
22269 -s/^\([^=]*=[    ]*\):*/\1/;
22270 -s/:*$//;
22271 -s/^[^=]*=[      ]*$//;
22272 -}'
22273 -fi
22274 -
22275  DEFS=-DHAVE_CONFIG_H
22276  
22277  ac_libobjs=
22278  ac_ltlibobjs=
22279  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22280    # 1. Remove the extension, and $U if already installed.
22281 -  ac_i=`echo "$ac_i" |
22282 -        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22283 -  # 2. Add them.
22284 -  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22285 -  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22286 +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22287 +  ac_i=`echo "$ac_i" | sed "$ac_script"`
22288 +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22289 +  #    will be set to the directory where LIBOBJS objects are built.
22290 +  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22291 +  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22292  done
22293  LIBOBJS=$ac_libobjs
22294  
22295 @@ -20850,11 +20718,35 @@
22296    # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22297    # is contrary to our usage.  Disable this feature.
22298    alias -g '${1+"$@"}'='"$@"'
22299 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22300 -  set -o posix
22301 +  setopt NO_GLOB_SUBST
22302 +else
22303 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22304  fi
22305 +BIN_SH=xpg4; export BIN_SH # for Tru64
22306  DUALCASE=1; export DUALCASE # for MKS sh
22307  
22308 +
22309 +# PATH needs CR
22310 +# Avoid depending upon Character Ranges.
22311 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22312 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22313 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22314 +as_cr_digits='0123456789'
22315 +as_cr_alnum=$as_cr_Letters$as_cr_digits
22316 +
22317 +# The user is always right.
22318 +if test "${PATH_SEPARATOR+set}" != set; then
22319 +  echo "#! /bin/sh" >conf$$.sh
22320 +  echo  "exit 0"   >>conf$$.sh
22321 +  chmod +x conf$$.sh
22322 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22323 +    PATH_SEPARATOR=';'
22324 +  else
22325 +    PATH_SEPARATOR=:
22326 +  fi
22327 +  rm -f conf$$.sh
22328 +fi
22329 +
22330  # Support unset when possible.
22331  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22332    as_unset=unset
22333 @@ -20863,8 +20755,43 @@
22334  fi
22335  
22336  
22337 +# IFS
22338 +# We need space, tab and new line, in precisely that order.  Quoting is
22339 +# there to prevent editors from complaining about space-tab.
22340 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22341 +# splitting by setting IFS to empty value.)
22342 +as_nl='
22343 +'
22344 +IFS=" ""       $as_nl"
22345 +
22346 +# Find who we are.  Look in the path if we contain no directory separator.
22347 +case $0 in
22348 +  *[\\/]* ) as_myself=$0 ;;
22349 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22350 +for as_dir in $PATH
22351 +do
22352 +  IFS=$as_save_IFS
22353 +  test -z "$as_dir" && as_dir=.
22354 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22355 +done
22356 +IFS=$as_save_IFS
22357 +
22358 +     ;;
22359 +esac
22360 +# We did not find ourselves, most probably we were run as `sh COMMAND'
22361 +# in which case we are not to be found in the path.
22362 +if test "x$as_myself" = x; then
22363 +  as_myself=$0
22364 +fi
22365 +if test ! -f "$as_myself"; then
22366 +  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22367 +  { (exit 1); exit 1; }
22368 +fi
22369 +
22370  # Work around bugs in pre-3.0 UWIN ksh.
22371 -$as_unset ENV MAIL MAILPATH
22372 +for as_var in ENV MAIL MAILPATH
22373 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22374 +done
22375  PS1='$ '
22376  PS2='> '
22377  PS4='+ '
22378 @@ -20878,18 +20805,19 @@
22379    if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22380      eval $as_var=C; export $as_var
22381    else
22382 -    $as_unset $as_var
22383 +    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22384    fi
22385  done
22386  
22387  # Required to use basename.
22388 -if expr a : '\(a\)' >/dev/null 2>&1; then
22389 +if expr a : '\(a\)' >/dev/null 2>&1 &&
22390 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22391    as_expr=expr
22392  else
22393    as_expr=false
22394  fi
22395  
22396 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22397 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22398    as_basename=basename
22399  else
22400    as_basename=false
22401 @@ -20897,159 +20825,120 @@
22402  
22403  
22404  # Name of the executable.
22405 -as_me=`$as_basename "$0" ||
22406 +as_me=`$as_basename -- "$0" ||
22407  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22408          X"$0" : 'X\(//\)$' \| \
22409 -        X"$0" : 'X\(/\)$' \| \
22410 -        .     : '\(.\)' 2>/dev/null ||
22411 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22412  echo X/"$0" |
22413 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22414 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
22415 -         /^X\/\(\/\).*/{ s//\1/; q; }
22416 -         s/.*/./; q'`
22417 -
22418 -
22419 -# PATH needs CR, and LINENO needs CR and PATH.
22420 -# Avoid depending upon Character Ranges.
22421 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22422 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22423 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22424 -as_cr_digits='0123456789'
22425 -as_cr_alnum=$as_cr_Letters$as_cr_digits
22426 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
22427 +           s//\1/
22428 +           q
22429 +         }
22430 +         /^X\/\(\/\/\)$/{
22431 +           s//\1/
22432 +           q
22433 +         }
22434 +         /^X\/\(\/\).*/{
22435 +           s//\1/
22436 +           q
22437 +         }
22438 +         s/.*/./; q'`
22439  
22440 -# The user is always right.
22441 -if test "${PATH_SEPARATOR+set}" != set; then
22442 -  echo "#! /bin/sh" >conf$$.sh
22443 -  echo  "exit 0"   >>conf$$.sh
22444 -  chmod +x conf$$.sh
22445 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22446 -    PATH_SEPARATOR=';'
22447 -  else
22448 -    PATH_SEPARATOR=:
22449 -  fi
22450 -  rm -f conf$$.sh
22451 -fi
22452 +# CDPATH.
22453 +$as_unset CDPATH
22454  
22455  
22456 -  as_lineno_1=$LINENO
22457 -  as_lineno_2=$LINENO
22458 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22459 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
22460 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22461 -  # Find who we are.  Look in the path if we contain no path at all
22462 -  # relative or not.
22463 -  case $0 in
22464 -    *[\\/]* ) as_myself=$0 ;;
22465 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22466 -for as_dir in $PATH
22467 -do
22468 -  IFS=$as_save_IFS
22469 -  test -z "$as_dir" && as_dir=.
22470 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22471 -done
22472  
22473 -       ;;
22474 -  esac
22475 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
22476 -  # in which case we are not to be found in the path.
22477 -  if test "x$as_myself" = x; then
22478 -    as_myself=$0
22479 -  fi
22480 -  if test ! -f "$as_myself"; then
22481 -    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22482 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22483 -   { (exit 1); exit 1; }; }
22484 -  fi
22485 -  case $CONFIG_SHELL in
22486 -  '')
22487 -    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22488 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22489 -do
22490 -  IFS=$as_save_IFS
22491 -  test -z "$as_dir" && as_dir=.
22492 -  for as_base in sh bash ksh sh5; do
22493 -        case $as_dir in
22494 -        /*)
22495 -          if ("$as_dir/$as_base" -c '
22496    as_lineno_1=$LINENO
22497    as_lineno_2=$LINENO
22498 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22499    test "x$as_lineno_1" != "x$as_lineno_2" &&
22500 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22501 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22502 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22503 -            CONFIG_SHELL=$as_dir/$as_base
22504 -            export CONFIG_SHELL
22505 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22506 -          fi;;
22507 -        esac
22508 -       done
22509 -done
22510 -;;
22511 -  esac
22512 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22513  
22514    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22515    # uniformly replaced by the line number.  The first 'sed' inserts a
22516 -  # line-number line before each line; the second 'sed' does the real
22517 -  # work.  The second script uses 'N' to pair each line-number line
22518 -  # with the numbered line, and appends trailing '-' during
22519 -  # substitution so that $LINENO is not a special case at line end.
22520 +  # line-number line after each line using $LINENO; the second 'sed'
22521 +  # does the real work.  The second script uses 'N' to pair each
22522 +  # line-number line with the line containing $LINENO, and appends
22523 +  # trailing '-' during substitution so that $LINENO is not a special
22524 +  # case at line end.
22525    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22526 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22527 -  sed '=' <$as_myself |
22528 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22529 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
22530 +  sed -n '
22531 +    p
22532 +    /[$]LINENO/=
22533 +  ' <$as_myself |
22534      sed '
22535 +      s/[$]LINENO.*/&-/
22536 +      t lineno
22537 +      b
22538 +      :lineno
22539        N
22540 -      s,$,-,
22541 -      : loop
22542 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22543 +      :loop
22544 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22545        t loop
22546 -      s,-$,,
22547 -      s,^['$as_cr_digits']*\n,,
22548 +      s/-\n.*//
22549      ' >$as_me.lineno &&
22550 -  chmod +x $as_me.lineno ||
22551 -    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22552 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22553 +  chmod +x "$as_me.lineno" ||
22554 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22555     { (exit 1); exit 1; }; }
22556  
22557    # Don't try to exec as it changes $[0], causing all sort of problems
22558    # (the dirname of $[0] is not the place where we might find the
22559 -  # original and so on.  Autoconf is especially sensible to this).
22560 -  . ./$as_me.lineno
22561 +  # original and so on.  Autoconf is especially sensitive to this).
22562 +  . "./$as_me.lineno"
22563    # Exit status is that of the last command.
22564    exit
22565  }
22566  
22567  
22568 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22569 -  *c*,-n*) ECHO_N= ECHO_C='
22570 -' ECHO_T='     ' ;;
22571 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22572 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22573 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22574 +  as_dirname=dirname
22575 +else
22576 +  as_dirname=false
22577 +fi
22578 +
22579 +ECHO_C= ECHO_N= ECHO_T=
22580 +case `echo -n x` in
22581 +-n*)
22582 +  case `echo 'x\c'` in
22583 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
22584 +  *)   ECHO_C='\c';;
22585 +  esac;;
22586 +*)
22587 +  ECHO_N='-n';;
22588  esac
22589  
22590 -if expr a : '\(a\)' >/dev/null 2>&1; then
22591 +if expr a : '\(a\)' >/dev/null 2>&1 &&
22592 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22593    as_expr=expr
22594  else
22595    as_expr=false
22596  fi
22597  
22598  rm -f conf$$ conf$$.exe conf$$.file
22599 +if test -d conf$$.dir; then
22600 +  rm -f conf$$.dir/conf$$.file
22601 +else
22602 +  rm -f conf$$.dir
22603 +  mkdir conf$$.dir
22604 +fi
22605  echo >conf$$.file
22606  if ln -s conf$$.file conf$$ 2>/dev/null; then
22607 -  # We could just check for DJGPP; but this test a) works b) is more generic
22608 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22609 -  if test -f conf$$.exe; then
22610 -    # Don't use ln at all; we don't have any links
22611 +  as_ln_s='ln -s'
22612 +  # ... but there are two gotchas:
22613 +  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22614 +  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22615 +  # In both cases, we have to default to `cp -p'.
22616 +  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22617      as_ln_s='cp -p'
22618 -  else
22619 -    as_ln_s='ln -s'
22620 -  fi
22621  elif ln conf$$.file conf$$ 2>/dev/null; then
22622    as_ln_s=ln
22623  else
22624    as_ln_s='cp -p'
22625  fi
22626 -rm -f conf$$ conf$$.exe conf$$.file
22627 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22628 +rmdir conf$$.dir 2>/dev/null
22629  
22630  if mkdir -p . 2>/dev/null; then
22631    as_mkdir_p=:
22632 @@ -21058,40 +20947,35 @@
22633    as_mkdir_p=false
22634  fi
22635  
22636 -as_executable_p="test -f"
22637 +# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22638 +# systems may use methods other than mode bits to determine executability.
22639 +cat >conf$$.file <<_ASEOF
22640 +#! /bin/sh
22641 +exit 0
22642 +_ASEOF
22643 +chmod +x conf$$.file
22644 +if test -x conf$$.file >/dev/null 2>&1; then
22645 +  as_executable_p="test -x"
22646 +else
22647 +  as_executable_p=:
22648 +fi
22649 +rm -f conf$$.file
22650  
22651  # Sed expression to map a string onto a valid CPP name.
22652  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22653  
22654 -# Sed expression to map a string onto a valid variable name.
22655 -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22656 -
22657 -
22658 -# IFS
22659 -# We need space, tab and new line, in precisely that order.
22660 -as_nl='
22661 -'
22662 -IFS="  $as_nl"
22663 -
22664 -# CDPATH.
22665 -$as_unset CDPATH
22666 -
22667 -exec 6>&1
22668 -
22669 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
22670 -# report actual input values of CONFIG_FILES etc. instead of their
22671 -# values after options handling.  Logging --version etc. is OK.
22672 -exec 5>>config.log
22673 -{
22674 -  echo
22675 -  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22676 -## Running $as_me. ##
22677 -_ASBOX
22678 -} >&5
22679 -cat >&5 <<_CSEOF
22680 +# Sed expression to map a string onto a valid variable name.
22681 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22682 +
22683 +
22684 +exec 6>&1
22685  
22686 +# Save the log message, to keep $[0] and so on meaningful, and to
22687 +# report actual input values of CONFIG_FILES etc. instead of their
22688 +# values after options handling.
22689 +ac_log="
22690  This file was extended by suPHP $as_me 0.6.1, which was
22691 -generated by GNU Autoconf 2.59.  Invocation command line was
22692 +generated by GNU Autoconf 2.60a.  Invocation command line was
22693  
22694    CONFIG_FILES    = $CONFIG_FILES
22695    CONFIG_HEADERS  = $CONFIG_HEADERS
22696 @@ -21099,30 +20983,20 @@
22697    CONFIG_COMMANDS = $CONFIG_COMMANDS
22698    $ $0 $@
22699  
22700 -_CSEOF
22701 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22702 -echo >&5
22703 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
22704 +"
22705 +
22706  _ACEOF
22707  
22708 +cat >>$CONFIG_STATUS <<_ACEOF
22709  # Files that config.status was made for.
22710 -if test -n "$ac_config_files"; then
22711 -  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22712 -fi
22713 -
22714 -if test -n "$ac_config_headers"; then
22715 -  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22716 -fi
22717 -
22718 -if test -n "$ac_config_links"; then
22719 -  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22720 -fi
22721 +config_files="$ac_config_files"
22722 +config_headers="$ac_config_headers"
22723 +config_commands="$ac_config_commands"
22724  
22725 -if test -n "$ac_config_commands"; then
22726 -  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22727 -fi
22728 +_ACEOF
22729  
22730  cat >>$CONFIG_STATUS <<\_ACEOF
22731 -
22732  ac_cs_usage="\
22733  \`$as_me' instantiates files from templates according to the
22734  current configuration.
22735 @@ -21130,7 +21004,7 @@
22736  Usage: $0 [OPTIONS] [FILE]...
22737  
22738    -h, --help       print this help, then exit
22739 -  -V, --version    print version number, then exit
22740 +  -V, --version    print version number and configuration settings, then exit
22741    -q, --quiet      do not print progress messages
22742    -d, --debug      don't remove temporary files
22743        --recheck    update $as_me by reconfiguring in the same conditions
22744 @@ -21149,19 +21023,21 @@
22745  $config_commands
22746  
22747  Report bugs to <bug-autoconf@gnu.org>."
22748 -_ACEOF
22749  
22750 +_ACEOF
22751  cat >>$CONFIG_STATUS <<_ACEOF
22752  ac_cs_version="\\
22753  suPHP config.status 0.6.1
22754 -configured by $0, generated by GNU Autoconf 2.59,
22755 -  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22756 +configured by $0, generated by GNU Autoconf 2.60a,
22757 +  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22758  
22759 -Copyright (C) 2003 Free Software Foundation, Inc.
22760 +Copyright (C) 2006 Free Software Foundation, Inc.
22761  This config.status script is free software; the Free Software Foundation
22762  gives unlimited permission to copy, distribute and modify it."
22763 -srcdir=$srcdir
22764 -INSTALL="$INSTALL"
22765 +
22766 +ac_pwd='$ac_pwd'
22767 +srcdir='$srcdir'
22768 +INSTALL='$INSTALL'
22769  _ACEOF
22770  
22771  cat >>$CONFIG_STATUS <<\_ACEOF
22772 @@ -21172,39 +21048,24 @@
22773  do
22774    case $1 in
22775    --*=*)
22776 -    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22777 -    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22778 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22779 +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22780      ac_shift=:
22781      ;;
22782 -  -*)
22783 +  *)
22784      ac_option=$1
22785      ac_optarg=$2
22786      ac_shift=shift
22787      ;;
22788 -  *) # This is not an option, so the user has probably given explicit
22789 -     # arguments.
22790 -     ac_option=$1
22791 -     ac_need_defaults=false;;
22792    esac
22793  
22794    case $ac_option in
22795    # Handling of the options.
22796 -_ACEOF
22797 -cat >>$CONFIG_STATUS <<\_ACEOF
22798    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22799      ac_cs_recheck=: ;;
22800 -  --version | --vers* | -V )
22801 -    echo "$ac_cs_version"; exit 0 ;;
22802 -  --he | --h)
22803 -    # Conflict between --help and --header
22804 -    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22805 -Try \`$0 --help' for more information." >&5
22806 -echo "$as_me: error: ambiguous option: $1
22807 -Try \`$0 --help' for more information." >&2;}
22808 -   { (exit 1); exit 1; }; };;
22809 -  --help | --hel | -h )
22810 -    echo "$ac_cs_usage"; exit 0 ;;
22811 -  --debug | --d* | -d )
22812 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22813 +    echo "$ac_cs_version"; exit ;;
22814 +  --debug | --debu | --deb | --de | --d | -d )
22815      debug=: ;;
22816    --file | --fil | --fi | --f )
22817      $ac_shift
22818 @@ -21214,18 +21075,24 @@
22819      $ac_shift
22820      CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22821      ac_need_defaults=false;;
22822 +  --he | --h)
22823 +    # Conflict between --help and --header
22824 +    { echo "$as_me: error: ambiguous option: $1
22825 +Try \`$0 --help' for more information." >&2
22826 +   { (exit 1); exit 1; }; };;
22827 +  --help | --hel | -h )
22828 +    echo "$ac_cs_usage"; exit ;;
22829    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22830    | -silent | --silent | --silen | --sile | --sil | --si | --s)
22831      ac_cs_silent=: ;;
22832  
22833    # This is an error.
22834 -  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22835 -Try \`$0 --help' for more information." >&5
22836 -echo "$as_me: error: unrecognized option: $1
22837 -Try \`$0 --help' for more information." >&2;}
22838 +  -*) { echo "$as_me: error: unrecognized option: $1
22839 +Try \`$0 --help' for more information." >&2
22840     { (exit 1); exit 1; }; } ;;
22841  
22842 -  *) ac_config_targets="$ac_config_targets $1" ;;
22843 +  *) ac_config_targets="$ac_config_targets $1"
22844 +     ac_need_defaults=false ;;
22845  
22846    esac
22847    shift
22848 @@ -21241,40 +21108,52 @@
22849  _ACEOF
22850  cat >>$CONFIG_STATUS <<_ACEOF
22851  if \$ac_cs_recheck; then
22852 -  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22853 -  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22854 +  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22855 +  CONFIG_SHELL=$SHELL
22856 +  export CONFIG_SHELL
22857 +  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22858  fi
22859  
22860  _ACEOF
22861 +cat >>$CONFIG_STATUS <<\_ACEOF
22862 +exec 5>>config.log
22863 +{
22864 +  echo
22865 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22866 +## Running $as_me. ##
22867 +_ASBOX
22868 +  echo "$ac_log"
22869 +} >&5
22870  
22871 +_ACEOF
22872  cat >>$CONFIG_STATUS <<_ACEOF
22873  #
22874 -# INIT-COMMANDS section.
22875 +# INIT-COMMANDS
22876  #
22877 -
22878  AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22879  
22880  _ACEOF
22881  
22882 -
22883 -
22884  cat >>$CONFIG_STATUS <<\_ACEOF
22885 +
22886 +# Handling of arguments.
22887  for ac_config_target in $ac_config_targets
22888  do
22889 -  case "$ac_config_target" in
22890 -  # Handling of arguments.
22891 -  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22892 -  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22893 -  "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
22894 -  "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
22895 -  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22896 -  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22897 +  case $ac_config_target in
22898 +    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22899 +    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22900 +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22901 +    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22902 +    "src/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
22903 +    "src/apache2/Makefile") CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
22904 +
22905    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22906  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22907     { (exit 1); exit 1; }; };;
22908    esac
22909  done
22910  
22911 +
22912  # If the user did not use the arguments to specify the items to instantiate,
22913  # then the envvar interface is used.  Set only those that are not.
22914  # We use the long form for the default assignment because of an extremely
22915 @@ -21286,614 +21165,602 @@
22916  fi
22917  
22918  # Have a temporary directory for convenience.  Make it in the build tree
22919 -# simply because there is no reason to put it here, and in addition,
22920 +# simply because there is no reason against having it here, and in addition,
22921  # creating and moving files from /tmp can sometimes cause problems.
22922 -# Create a temporary directory, and hook for its removal unless debugging.
22923 +# Hook for its removal unless debugging.
22924 +# Note that there is a small window in which the directory will not be cleaned:
22925 +# after its creation but before its name has been assigned to `$tmp'.
22926  $debug ||
22927  {
22928 -  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22929 +  tmp=
22930 +  trap 'exit_status=$?
22931 +  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22932 +' 0
22933    trap '{ (exit 1); exit 1; }' 1 2 13 15
22934  }
22935 -
22936  # Create a (secure) tmp directory for tmp files.
22937  
22938  {
22939 -  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22940 +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22941    test -n "$tmp" && test -d "$tmp"
22942  }  ||
22943  {
22944 -  tmp=./confstat$$-$RANDOM
22945 -  (umask 077 && mkdir $tmp)
22946 +  tmp=./conf$$-$RANDOM
22947 +  (umask 077 && mkdir "$tmp")
22948  } ||
22949  {
22950     echo "$me: cannot create a temporary directory in ." >&2
22951     { (exit 1); exit 1; }
22952  }
22953  
22954 -_ACEOF
22955 -
22956 -cat >>$CONFIG_STATUS <<_ACEOF
22957 -
22958  #
22959 -# CONFIG_FILES section.
22960 +# Set up the sed scripts for CONFIG_FILES section.
22961  #
22962  
22963  # No need to generate the scripts if there are no CONFIG_FILES.
22964  # This happens for instance when ./config.status config.h
22965 -if test -n "\$CONFIG_FILES"; then
22966 -  # Protect against being on the right side of a sed subst in config.status.
22967 -  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22968 -   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22969 -s,@SHELL@,$SHELL,;t t
22970 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22971 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22972 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22973 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22974 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22975 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22976 -s,@exec_prefix@,$exec_prefix,;t t
22977 -s,@prefix@,$prefix,;t t
22978 -s,@program_transform_name@,$program_transform_name,;t t
22979 -s,@bindir@,$bindir,;t t
22980 -s,@sbindir@,$sbindir,;t t
22981 -s,@libexecdir@,$libexecdir,;t t
22982 -s,@datadir@,$datadir,;t t
22983 -s,@sysconfdir@,$sysconfdir,;t t
22984 -s,@sharedstatedir@,$sharedstatedir,;t t
22985 -s,@localstatedir@,$localstatedir,;t t
22986 -s,@libdir@,$libdir,;t t
22987 -s,@includedir@,$includedir,;t t
22988 -s,@oldincludedir@,$oldincludedir,;t t
22989 -s,@infodir@,$infodir,;t t
22990 -s,@mandir@,$mandir,;t t
22991 -s,@build_alias@,$build_alias,;t t
22992 -s,@host_alias@,$host_alias,;t t
22993 -s,@target_alias@,$target_alias,;t t
22994 -s,@DEFS@,$DEFS,;t t
22995 -s,@ECHO_C@,$ECHO_C,;t t
22996 -s,@ECHO_N@,$ECHO_N,;t t
22997 -s,@ECHO_T@,$ECHO_T,;t t
22998 -s,@LIBS@,$LIBS,;t t
22999 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23000 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23001 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23002 -s,@CYGPATH_W@,$CYGPATH_W,;t t
23003 -s,@PACKAGE@,$PACKAGE,;t t
23004 -s,@VERSION@,$VERSION,;t t
23005 -s,@ACLOCAL@,$ACLOCAL,;t t
23006 -s,@AUTOCONF@,$AUTOCONF,;t t
23007 -s,@AUTOMAKE@,$AUTOMAKE,;t t
23008 -s,@AUTOHEADER@,$AUTOHEADER,;t t
23009 -s,@MAKEINFO@,$MAKEINFO,;t t
23010 -s,@install_sh@,$install_sh,;t t
23011 -s,@STRIP@,$STRIP,;t t
23012 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23013 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23014 -s,@mkdir_p@,$mkdir_p,;t t
23015 -s,@AWK@,$AWK,;t t
23016 -s,@SET_MAKE@,$SET_MAKE,;t t
23017 -s,@am__leading_dot@,$am__leading_dot,;t t
23018 -s,@AMTAR@,$AMTAR,;t t
23019 -s,@am__tar@,$am__tar,;t t
23020 -s,@am__untar@,$am__untar,;t t
23021 -s,@CC@,$CC,;t t
23022 -s,@CFLAGS@,$CFLAGS,;t t
23023 -s,@LDFLAGS@,$LDFLAGS,;t t
23024 -s,@CPPFLAGS@,$CPPFLAGS,;t t
23025 -s,@ac_ct_CC@,$ac_ct_CC,;t t
23026 -s,@EXEEXT@,$EXEEXT,;t t
23027 -s,@OBJEXT@,$OBJEXT,;t t
23028 -s,@DEPDIR@,$DEPDIR,;t t
23029 -s,@am__include@,$am__include,;t t
23030 -s,@am__quote@,$am__quote,;t t
23031 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23032 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23033 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23034 -s,@CCDEPMODE@,$CCDEPMODE,;t t
23035 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23036 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23037 -s,@CXX@,$CXX,;t t
23038 -s,@CXXFLAGS@,$CXXFLAGS,;t t
23039 -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23040 -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23041 -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23042 -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23043 -s,@build@,$build,;t t
23044 -s,@build_cpu@,$build_cpu,;t t
23045 -s,@build_vendor@,$build_vendor,;t t
23046 -s,@build_os@,$build_os,;t t
23047 -s,@host@,$host,;t t
23048 -s,@host_cpu@,$host_cpu,;t t
23049 -s,@host_vendor@,$host_vendor,;t t
23050 -s,@host_os@,$host_os,;t t
23051 -s,@EGREP@,$EGREP,;t t
23052 -s,@LN_S@,$LN_S,;t t
23053 -s,@ECHO@,$ECHO,;t t
23054 -s,@AR@,$AR,;t t
23055 -s,@ac_ct_AR@,$ac_ct_AR,;t t
23056 -s,@RANLIB@,$RANLIB,;t t
23057 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23058 -s,@CPP@,$CPP,;t t
23059 -s,@CXXCPP@,$CXXCPP,;t t
23060 -s,@F77@,$F77,;t t
23061 -s,@FFLAGS@,$FFLAGS,;t t
23062 -s,@ac_ct_F77@,$ac_ct_F77,;t t
23063 -s,@LIBTOOL@,$LIBTOOL,;t t
23064 -s,@APXS@,$APXS,;t t
23065 -s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
23066 -s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
23067 -s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
23068 -s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
23069 -s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
23070 -s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
23071 -s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
23072 -s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
23073 -s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
23074 -s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
23075 -s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
23076 -s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
23077 -s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
23078 -s,@LIBOBJS@,$LIBOBJS,;t t
23079 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23080 -CEOF
23081 -
23082 -_ACEOF
23083 -
23084 -  cat >>$CONFIG_STATUS <<\_ACEOF
23085 -  # Split the substitutions into bite-sized pieces for seds with
23086 -  # small command number limits, like on Digital OSF/1 and HP-UX.
23087 -  ac_max_sed_lines=48
23088 -  ac_sed_frag=1 # Number of current file.
23089 -  ac_beg=1 # First line for current file.
23090 -  ac_end=$ac_max_sed_lines # Line after last line for current file.
23091 -  ac_more_lines=:
23092 -  ac_sed_cmds=
23093 -  while $ac_more_lines; do
23094 -    if test $ac_beg -gt 1; then
23095 -      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23096 -    else
23097 -      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23098 -    fi
23099 -    if test ! -s $tmp/subs.frag; then
23100 -      ac_more_lines=false
23101 -    else
23102 -      # The purpose of the label and of the branching condition is to
23103 -      # speed up the sed processing (if there are no `@' at all, there
23104 -      # is no need to browse any of the substitutions).
23105 -      # These are the two extra sed commands mentioned above.
23106 -      (echo ':t
23107 -  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23108 -      if test -z "$ac_sed_cmds"; then
23109 -       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23110 -      else
23111 -       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23112 -      fi
23113 -      ac_sed_frag=`expr $ac_sed_frag + 1`
23114 -      ac_beg=$ac_end
23115 -      ac_end=`expr $ac_end + $ac_max_sed_lines`
23116 -    fi
23117 -  done
23118 -  if test -z "$ac_sed_cmds"; then
23119 -    ac_sed_cmds=cat
23120 +if test -n "$CONFIG_FILES"; then
23121 +
23122 +_ACEOF
23123 +
23124 +
23125 +
23126 +ac_delim='%!_!# '
23127 +for ac_last_try in false false false false false :; do
23128 +  cat >conf$$subs.sed <<_ACEOF
23129 +SHELL!$SHELL$ac_delim
23130 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23131 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23132 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23133 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23134 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23135 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23136 +exec_prefix!$exec_prefix$ac_delim
23137 +prefix!$prefix$ac_delim
23138 +program_transform_name!$program_transform_name$ac_delim
23139 +bindir!$bindir$ac_delim
23140 +sbindir!$sbindir$ac_delim
23141 +libexecdir!$libexecdir$ac_delim
23142 +datarootdir!$datarootdir$ac_delim
23143 +datadir!$datadir$ac_delim
23144 +sysconfdir!$sysconfdir$ac_delim
23145 +sharedstatedir!$sharedstatedir$ac_delim
23146 +localstatedir!$localstatedir$ac_delim
23147 +includedir!$includedir$ac_delim
23148 +oldincludedir!$oldincludedir$ac_delim
23149 +docdir!$docdir$ac_delim
23150 +infodir!$infodir$ac_delim
23151 +htmldir!$htmldir$ac_delim
23152 +dvidir!$dvidir$ac_delim
23153 +pdfdir!$pdfdir$ac_delim
23154 +psdir!$psdir$ac_delim
23155 +libdir!$libdir$ac_delim
23156 +localedir!$localedir$ac_delim
23157 +mandir!$mandir$ac_delim
23158 +DEFS!$DEFS$ac_delim
23159 +ECHO_C!$ECHO_C$ac_delim
23160 +ECHO_N!$ECHO_N$ac_delim
23161 +ECHO_T!$ECHO_T$ac_delim
23162 +LIBS!$LIBS$ac_delim
23163 +build_alias!$build_alias$ac_delim
23164 +host_alias!$host_alias$ac_delim
23165 +target_alias!$target_alias$ac_delim
23166 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23167 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23168 +INSTALL_DATA!$INSTALL_DATA$ac_delim
23169 +CYGPATH_W!$CYGPATH_W$ac_delim
23170 +PACKAGE!$PACKAGE$ac_delim
23171 +VERSION!$VERSION$ac_delim
23172 +ACLOCAL!$ACLOCAL$ac_delim
23173 +AUTOCONF!$AUTOCONF$ac_delim
23174 +AUTOMAKE!$AUTOMAKE$ac_delim
23175 +AUTOHEADER!$AUTOHEADER$ac_delim
23176 +MAKEINFO!$MAKEINFO$ac_delim
23177 +install_sh!$install_sh$ac_delim
23178 +STRIP!$STRIP$ac_delim
23179 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23180 +mkdir_p!$mkdir_p$ac_delim
23181 +AWK!$AWK$ac_delim
23182 +SET_MAKE!$SET_MAKE$ac_delim
23183 +am__leading_dot!$am__leading_dot$ac_delim
23184 +AMTAR!$AMTAR$ac_delim
23185 +am__tar!$am__tar$ac_delim
23186 +am__untar!$am__untar$ac_delim
23187 +CC!$CC$ac_delim
23188 +CFLAGS!$CFLAGS$ac_delim
23189 +LDFLAGS!$LDFLAGS$ac_delim
23190 +CPPFLAGS!$CPPFLAGS$ac_delim
23191 +ac_ct_CC!$ac_ct_CC$ac_delim
23192 +EXEEXT!$EXEEXT$ac_delim
23193 +OBJEXT!$OBJEXT$ac_delim
23194 +DEPDIR!$DEPDIR$ac_delim
23195 +am__include!$am__include$ac_delim
23196 +am__quote!$am__quote$ac_delim
23197 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23198 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23199 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23200 +CCDEPMODE!$CCDEPMODE$ac_delim
23201 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23202 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23203 +CXX!$CXX$ac_delim
23204 +CXXFLAGS!$CXXFLAGS$ac_delim
23205 +ac_ct_CXX!$ac_ct_CXX$ac_delim
23206 +CXXDEPMODE!$CXXDEPMODE$ac_delim
23207 +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23208 +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23209 +build!$build$ac_delim
23210 +build_cpu!$build_cpu$ac_delim
23211 +build_vendor!$build_vendor$ac_delim
23212 +build_os!$build_os$ac_delim
23213 +host!$host$ac_delim
23214 +host_cpu!$host_cpu$ac_delim
23215 +host_vendor!$host_vendor$ac_delim
23216 +host_os!$host_os$ac_delim
23217 +GREP!$GREP$ac_delim
23218 +EGREP!$EGREP$ac_delim
23219 +LN_S!$LN_S$ac_delim
23220 +ECHO!$ECHO$ac_delim
23221 +AR!$AR$ac_delim
23222 +RANLIB!$RANLIB$ac_delim
23223 +CPP!$CPP$ac_delim
23224 +CXXCPP!$CXXCPP$ac_delim
23225 +F77!$F77$ac_delim
23226 +_ACEOF
23227 +
23228 +  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23229 +    break
23230 +  elif $ac_last_try; then
23231 +    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23232 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23233 +   { (exit 1); exit 1; }; }
23234 +  else
23235 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23236    fi
23237 -fi # test -n "$CONFIG_FILES"
23238 +done
23239 +
23240 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23241 +if test -n "$ac_eof"; then
23242 +  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23243 +  ac_eof=`expr $ac_eof + 1`
23244 +fi
23245 +
23246 +cat >>$CONFIG_STATUS <<_ACEOF
23247 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23248 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23249 +_ACEOF
23250 +sed '
23251 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23252 +s/^/s,@/; s/!/@,|#_!!_#|/
23253 +:n
23254 +t n
23255 +s/'"$ac_delim"'$/,g/; t
23256 +s/$/\\/; p
23257 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23258 +' >>$CONFIG_STATUS <conf$$subs.sed
23259 +rm -f conf$$subs.sed
23260 +cat >>$CONFIG_STATUS <<_ACEOF
23261 +CEOF$ac_eof
23262 +_ACEOF
23263 +
23264 +
23265 +ac_delim='%!_!# '
23266 +for ac_last_try in false false false false false :; do
23267 +  cat >conf$$subs.sed <<_ACEOF
23268 +FFLAGS!$FFLAGS$ac_delim
23269 +ac_ct_F77!$ac_ct_F77$ac_delim
23270 +LIBTOOL!$LIBTOOL$ac_delim
23271 +APXS!$APXS$ac_delim
23272 +APACHE_VERSION_1_3!$APACHE_VERSION_1_3$ac_delim
23273 +APACHE_VERSION_2!$APACHE_VERSION_2$ac_delim
23274 +APXS_INCLUDEDIR!$APXS_INCLUDEDIR$ac_delim
23275 +APXS_LIBEXECDIR!$APXS_LIBEXECDIR$ac_delim
23276 +APXS_EXTRA_CFLAGS!$APXS_EXTRA_CFLAGS$ac_delim
23277 +APR_INCLUDEDIR!$APR_INCLUDEDIR$ac_delim
23278 +OPT_APACHEMOD_USERGROUP_DEF!$OPT_APACHEMOD_USERGROUP_DEF$ac_delim
23279 +COND_AP13_TRUE!$COND_AP13_TRUE$ac_delim
23280 +COND_AP13_FALSE!$COND_AP13_FALSE$ac_delim
23281 +COND_AP20_TRUE!$COND_AP20_TRUE$ac_delim
23282 +COND_AP20_FALSE!$COND_AP20_FALSE$ac_delim
23283 +COND_APUSERGROUP_TRUE!$COND_APUSERGROUP_TRUE$ac_delim
23284 +COND_APUSERGROUP_FALSE!$COND_APUSERGROUP_FALSE$ac_delim
23285 +LIBOBJS!$LIBOBJS$ac_delim
23286 +LTLIBOBJS!$LTLIBOBJS$ac_delim
23287 +_ACEOF
23288  
23289 +  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
23290 +    break
23291 +  elif $ac_last_try; then
23292 +    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23293 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23294 +   { (exit 1); exit 1; }; }
23295 +  else
23296 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23297 +  fi
23298 +done
23299 +
23300 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23301 +if test -n "$ac_eof"; then
23302 +  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23303 +  ac_eof=`expr $ac_eof + 1`
23304 +fi
23305 +
23306 +cat >>$CONFIG_STATUS <<_ACEOF
23307 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23308 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23309 +_ACEOF
23310 +sed '
23311 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23312 +s/^/s,@/; s/!/@,|#_!!_#|/
23313 +:n
23314 +t n
23315 +s/'"$ac_delim"'$/,g/; t
23316 +s/$/\\/; p
23317 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23318 +' >>$CONFIG_STATUS <conf$$subs.sed
23319 +rm -f conf$$subs.sed
23320 +cat >>$CONFIG_STATUS <<_ACEOF
23321 +:end
23322 +s/|#_!!_#|//g
23323 +CEOF$ac_eof
23324  _ACEOF
23325 +
23326 +
23327 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
23328 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23329 +# trailing colons and then remove the whole line if VPATH becomes empty
23330 +# (actually we leave an empty line to preserve line numbers).
23331 +if test "x$srcdir" = x.; then
23332 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
23333 +s/:*\$(srcdir):*/:/
23334 +s/:*\${srcdir}:*/:/
23335 +s/:*@srcdir@:*/:/
23336 +s/^\([^=]*=[    ]*\):*/\1/
23337 +s/:*$//
23338 +s/^[^=]*=[      ]*$//
23339 +}'
23340 +fi
23341 +
23342  cat >>$CONFIG_STATUS <<\_ACEOF
23343 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23344 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23345 -  case $ac_file in
23346 -  - | *:- | *:-:* ) # input from stdin
23347 -       cat >$tmp/stdin
23348 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23349 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23350 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23351 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23352 -  * )   ac_file_in=$ac_file.in ;;
23353 +fi # test -n "$CONFIG_FILES"
23354 +
23355 +
23356 +for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23357 +do
23358 +  case $ac_tag in
23359 +  :[FHLC]) ac_mode=$ac_tag; continue;;
23360 +  esac
23361 +  case $ac_mode$ac_tag in
23362 +  :[FHL]*:*);;
23363 +  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23364 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23365 +   { (exit 1); exit 1; }; };;
23366 +  :[FH]-) ac_tag=-:-;;
23367 +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23368 +  esac
23369 +  ac_save_IFS=$IFS
23370 +  IFS=:
23371 +  set x $ac_tag
23372 +  IFS=$ac_save_IFS
23373 +  shift
23374 +  ac_file=$1
23375 +  shift
23376 +
23377 +  case $ac_mode in
23378 +  :L) ac_source=$1;;
23379 +  :[FH])
23380 +    ac_file_inputs=
23381 +    for ac_f
23382 +    do
23383 +      case $ac_f in
23384 +      -) ac_f="$tmp/stdin";;
23385 +      *) # Look for the file first in the build tree, then in the source tree
23386 +        # (if the path is not absolute).  The absolute path cannot be DOS-style,
23387 +        # because $ac_f cannot contain `:'.
23388 +        test -f "$ac_f" ||
23389 +          case $ac_f in
23390 +          [\\/$]*) false;;
23391 +          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23392 +          esac ||
23393 +          { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23394 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23395 +   { (exit 1); exit 1; }; };;
23396 +      esac
23397 +      ac_file_inputs="$ac_file_inputs $ac_f"
23398 +    done
23399 +
23400 +    # Let's still pretend it is `configure' which instantiates (i.e., don't
23401 +    # use $as_me), people would be surprised to read:
23402 +    #    /* config.h.  Generated by config.status.  */
23403 +    configure_input="Generated from "`IFS=:
23404 +         echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23405 +    if test x"$ac_file" != x-; then
23406 +      configure_input="$ac_file.  $configure_input"
23407 +      { echo "$as_me:$LINENO: creating $ac_file" >&5
23408 +echo "$as_me: creating $ac_file" >&6;}
23409 +    fi
23410 +
23411 +    case $ac_tag in
23412 +    *:-:* | *:-) cat >"$tmp/stdin";;
23413 +    esac
23414 +    ;;
23415    esac
23416  
23417 -  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23418 -  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23419 +  ac_dir=`$as_dirname -- "$ac_file" ||
23420  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23421          X"$ac_file" : 'X\(//\)[^/]' \| \
23422          X"$ac_file" : 'X\(//\)$' \| \
23423 -        X"$ac_file" : 'X\(/\)' \| \
23424 -        .     : '\(.\)' 2>/dev/null ||
23425 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23426  echo X"$ac_file" |
23427 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23428 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23429 -         /^X\(\/\/\)$/{ s//\1/; q; }
23430 -         /^X\(\/\).*/{ s//\1/; q; }
23431 -         s/.*/./; q'`
23432 -  { if $as_mkdir_p; then
23433 -    mkdir -p "$ac_dir"
23434 -  else
23435 -    as_dir="$ac_dir"
23436 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23437 +           s//\1/
23438 +           q
23439 +         }
23440 +         /^X\(\/\/\)[^/].*/{
23441 +           s//\1/
23442 +           q
23443 +         }
23444 +         /^X\(\/\/\)$/{
23445 +           s//\1/
23446 +           q
23447 +         }
23448 +         /^X\(\/\).*/{
23449 +           s//\1/
23450 +           q
23451 +         }
23452 +         s/.*/./; q'`
23453 +  { as_dir="$ac_dir"
23454 +  case $as_dir in #(
23455 +  -*) as_dir=./$as_dir;;
23456 +  esac
23457 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23458      as_dirs=
23459 -    while test ! -d "$as_dir"; do
23460 -      as_dirs="$as_dir $as_dirs"
23461 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23462 +    while :; do
23463 +      case $as_dir in #(
23464 +      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23465 +      *) as_qdir=$as_dir;;
23466 +      esac
23467 +      as_dirs="'$as_qdir' $as_dirs"
23468 +      as_dir=`$as_dirname -- "$as_dir" ||
23469  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23470          X"$as_dir" : 'X\(//\)[^/]' \| \
23471          X"$as_dir" : 'X\(//\)$' \| \
23472 -        X"$as_dir" : 'X\(/\)' \| \
23473 -        .     : '\(.\)' 2>/dev/null ||
23474 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23475  echo X"$as_dir" |
23476 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23477 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23478 -         /^X\(\/\/\)$/{ s//\1/; q; }
23479 -         /^X\(\/\).*/{ s//\1/; q; }
23480 -         s/.*/./; q'`
23481 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23482 +           s//\1/
23483 +           q
23484 +         }
23485 +         /^X\(\/\/\)[^/].*/{
23486 +           s//\1/
23487 +           q
23488 +         }
23489 +         /^X\(\/\/\)$/{
23490 +           s//\1/
23491 +           q
23492 +         }
23493 +         /^X\(\/\).*/{
23494 +           s//\1/
23495 +           q
23496 +         }
23497 +         s/.*/./; q'`
23498 +      test -d "$as_dir" && break
23499      done
23500 -    test ! -n "$as_dirs" || mkdir $as_dirs
23501 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23502 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23503 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
23504 +  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23505 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
23506     { (exit 1); exit 1; }; }; }
23507 -
23508    ac_builddir=.
23509  
23510 -if test "$ac_dir" != .; then
23511 +case "$ac_dir" in
23512 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23513 +*)
23514    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23515 -  # A "../" for each directory in $ac_dir_suffix.
23516 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23517 -else
23518 -  ac_dir_suffix= ac_top_builddir=
23519 -fi
23520 +  # A ".." for each directory in $ac_dir_suffix.
23521 +  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23522 +  case $ac_top_builddir_sub in
23523 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23524 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23525 +  esac ;;
23526 +esac
23527 +ac_abs_top_builddir=$ac_pwd
23528 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
23529 +# for backward compatibility:
23530 +ac_top_builddir=$ac_top_build_prefix
23531  
23532  case $srcdir in
23533 -  .)  # No --srcdir option.  We are building in place.
23534 +  .)  # We are building in place.
23535      ac_srcdir=.
23536 -    if test -z "$ac_top_builddir"; then
23537 -       ac_top_srcdir=.
23538 -    else
23539 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23540 -    fi ;;
23541 -  [\\/]* | ?:[\\/]* )  # Absolute path.
23542 +    ac_top_srcdir=$ac_top_builddir_sub
23543 +    ac_abs_top_srcdir=$ac_pwd ;;
23544 +  [\\/]* | ?:[\\/]* )  # Absolute name.
23545      ac_srcdir=$srcdir$ac_dir_suffix;
23546 -    ac_top_srcdir=$srcdir ;;
23547 -  *) # Relative path.
23548 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23549 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23550 +    ac_top_srcdir=$srcdir
23551 +    ac_abs_top_srcdir=$srcdir ;;
23552 +  *) # Relative name.
23553 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23554 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
23555 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23556  esac
23557 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23558  
23559 -# Do not use `cd foo && pwd` to compute absolute paths, because
23560 -# the directories may not exist.
23561 -case `pwd` in
23562 -.) ac_abs_builddir="$ac_dir";;
23563 -*)
23564 -  case "$ac_dir" in
23565 -  .) ac_abs_builddir=`pwd`;;
23566 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23567 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23568 -  esac;;
23569 -esac
23570 -case $ac_abs_builddir in
23571 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
23572 -*)
23573 -  case ${ac_top_builddir}. in
23574 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
23575 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23576 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23577 -  esac;;
23578 -esac
23579 -case $ac_abs_builddir in
23580 -.) ac_abs_srcdir=$ac_srcdir;;
23581 -*)
23582 -  case $ac_srcdir in
23583 -  .) ac_abs_srcdir=$ac_abs_builddir;;
23584 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23585 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23586 -  esac;;
23587 -esac
23588 -case $ac_abs_builddir in
23589 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
23590 -*)
23591 -  case $ac_top_srcdir in
23592 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23593 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23594 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23595 -  esac;;
23596 -esac
23597  
23598 +  case $ac_mode in
23599 +  :F)
23600 +  #
23601 +  # CONFIG_FILE
23602 +  #
23603  
23604    case $INSTALL in
23605    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23606 -  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23607 +  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23608    esac
23609 +_ACEOF
23610  
23611 -  if test x"$ac_file" != x-; then
23612 -    { echo "$as_me:$LINENO: creating $ac_file" >&5
23613 -echo "$as_me: creating $ac_file" >&6;}
23614 -    rm -f "$ac_file"
23615 -  fi
23616 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
23617 -  # use $as_me), people would be surprised to read:
23618 -  #    /* config.h.  Generated by config.status.  */
23619 -  if test x"$ac_file" = x-; then
23620 -    configure_input=
23621 -  else
23622 -    configure_input="$ac_file.  "
23623 -  fi
23624 -  configure_input=$configure_input"Generated from `echo $ac_file_in |
23625 -                                    sed 's,.*/,,'` by configure."
23626 -
23627 -  # First look for the input files in the build tree, otherwise in the
23628 -  # src tree.
23629 -  ac_file_inputs=`IFS=:
23630 -    for f in $ac_file_in; do
23631 -      case $f in
23632 -      -) echo $tmp/stdin ;;
23633 -      [\\/$]*)
23634 -        # Absolute (can't be DOS-style, as IFS=:)
23635 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23636 -echo "$as_me: error: cannot find input file: $f" >&2;}
23637 -   { (exit 1); exit 1; }; }
23638 -        echo "$f";;
23639 -      *) # Relative
23640 -        if test -f "$f"; then
23641 -          # Build tree
23642 -          echo "$f"
23643 -        elif test -f "$srcdir/$f"; then
23644 -          # Source tree
23645 -          echo "$srcdir/$f"
23646 -        else
23647 -          # /dev/null tree
23648 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23649 -echo "$as_me: error: cannot find input file: $f" >&2;}
23650 -   { (exit 1); exit 1; }; }
23651 -        fi;;
23652 -      esac
23653 -    done` || { (exit 1); exit 1; }
23654 +cat >>$CONFIG_STATUS <<\_ACEOF
23655 +# If the template does not know about datarootdir, expand it.
23656 +# FIXME: This hack should be removed a few years after 2.60.
23657 +ac_datarootdir_hack=; ac_datarootdir_seen=
23658 +
23659 +case `sed -n '/datarootdir/ {
23660 +  p
23661 +  q
23662 +}
23663 +/@datadir@/p
23664 +/@docdir@/p
23665 +/@infodir@/p
23666 +/@localedir@/p
23667 +/@mandir@/p
23668 +' $ac_file_inputs` in
23669 +*datarootdir*) ac_datarootdir_seen=yes;;
23670 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23671 +  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23672 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23673  _ACEOF
23674  cat >>$CONFIG_STATUS <<_ACEOF
23675 +  ac_datarootdir_hack='
23676 +  s&@datadir@&$datadir&g
23677 +  s&@docdir@&$docdir&g
23678 +  s&@infodir@&$infodir&g
23679 +  s&@localedir@&$localedir&g
23680 +  s&@mandir@&$mandir&g
23681 +    s&\\\${datarootdir}&$datarootdir&g' ;;
23682 +esac
23683 +_ACEOF
23684 +
23685 +# Neutralize VPATH when `$srcdir' = `.'.
23686 +# Shell code in configure.ac might set extrasub.
23687 +# FIXME: do we really want to maintain this feature?
23688 +cat >>$CONFIG_STATUS <<_ACEOF
23689    sed "$ac_vpsub
23690  $extrasub
23691  _ACEOF
23692  cat >>$CONFIG_STATUS <<\_ACEOF
23693  :t
23694  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23695 -s,@configure_input@,$configure_input,;t t
23696 -s,@srcdir@,$ac_srcdir,;t t
23697 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
23698 -s,@top_srcdir@,$ac_top_srcdir,;t t
23699 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23700 -s,@builddir@,$ac_builddir,;t t
23701 -s,@abs_builddir@,$ac_abs_builddir,;t t
23702 -s,@top_builddir@,$ac_top_builddir,;t t
23703 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23704 -s,@INSTALL@,$ac_INSTALL,;t t
23705 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23706 -  rm -f $tmp/stdin
23707 -  if test x"$ac_file" != x-; then
23708 -    mv $tmp/out $ac_file
23709 -  else
23710 -    cat $tmp/out
23711 -    rm -f $tmp/out
23712 -  fi
23713 -
23714 -done
23715 -_ACEOF
23716 -cat >>$CONFIG_STATUS <<\_ACEOF
23717 -
23718 -#
23719 -# CONFIG_HEADER section.
23720 -#
23721 -
23722 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23723 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
23724 -#
23725 -# ac_d sets the value in "#define NAME VALUE" lines.
23726 -ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23727 -ac_dB='[        ].*$,\1#\2'
23728 -ac_dC=' '
23729 -ac_dD=',;t'
23730 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23731 -ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23732 -ac_uB='$,\1#\2define\3'
23733 -ac_uC=' '
23734 -ac_uD=',;t'
23735 +s&@configure_input@&$configure_input&;t t
23736 +s&@top_builddir@&$ac_top_builddir_sub&;t t
23737 +s&@srcdir@&$ac_srcdir&;t t
23738 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
23739 +s&@top_srcdir@&$ac_top_srcdir&;t t
23740 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23741 +s&@builddir@&$ac_builddir&;t t
23742 +s&@abs_builddir@&$ac_abs_builddir&;t t
23743 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23744 +s&@INSTALL@&$ac_INSTALL&;t t
23745 +$ac_datarootdir_hack
23746 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23747 +
23748 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23749 +  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23750 +  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23751 +  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23752 +which seems to be undefined.  Please make sure it is defined." >&5
23753 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23754 +which seems to be undefined.  Please make sure it is defined." >&2;}
23755  
23756 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23757 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23758 +  rm -f "$tmp/stdin"
23759    case $ac_file in
23760 -  - | *:- | *:-:* ) # input from stdin
23761 -       cat >$tmp/stdin
23762 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23763 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23764 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23765 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23766 -  * )   ac_file_in=$ac_file.in ;;
23767 +  -) cat "$tmp/out"; rm -f "$tmp/out";;
23768 +  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23769    esac
23770 -
23771 -  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23772 -echo "$as_me: creating $ac_file" >&6;}
23773 -
23774 -  # First look for the input files in the build tree, otherwise in the
23775 -  # src tree.
23776 -  ac_file_inputs=`IFS=:
23777 -    for f in $ac_file_in; do
23778 -      case $f in
23779 -      -) echo $tmp/stdin ;;
23780 -      [\\/$]*)
23781 -        # Absolute (can't be DOS-style, as IFS=:)
23782 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23783 -echo "$as_me: error: cannot find input file: $f" >&2;}
23784 -   { (exit 1); exit 1; }; }
23785 -        # Do quote $f, to prevent DOS paths from being IFS'd.
23786 -        echo "$f";;
23787 -      *) # Relative
23788 -        if test -f "$f"; then
23789 -          # Build tree
23790 -          echo "$f"
23791 -        elif test -f "$srcdir/$f"; then
23792 -          # Source tree
23793 -          echo "$srcdir/$f"
23794 -        else
23795 -          # /dev/null tree
23796 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23797 -echo "$as_me: error: cannot find input file: $f" >&2;}
23798 -   { (exit 1); exit 1; }; }
23799 -        fi;;
23800 -      esac
23801 -    done` || { (exit 1); exit 1; }
23802 -  # Remove the trailing spaces.
23803 -  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23804 -
23805 + ;;
23806 +  :H)
23807 +  #
23808 +  # CONFIG_HEADER
23809 +  #
23810  _ACEOF
23811  
23812 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
23813 -# `conftest.undefs', that substitutes the proper values into
23814 -# config.h.in to produce config.h.  The first handles `#define'
23815 -# templates, and the second `#undef' templates.
23816 -# And first: Protect against being on the right side of a sed subst in
23817 -# config.status.  Protect against being in an unquoted here document
23818 -# in config.status.
23819 -rm -f conftest.defines conftest.undefs
23820 -# Using a here document instead of a string reduces the quoting nightmare.
23821 -# Putting comments in sed scripts is not portable.
23822 -#
23823 -# `end' is used to avoid that the second main sed command (meant for
23824 -# 0-ary CPP macros) applies to n-ary macro definitions.
23825 -# See the Autoconf documentation for `clear'.
23826 -cat >confdef2sed.sed <<\_ACEOF
23827 -s/[\\&,]/\\&/g
23828 -s,[\\$`],\\&,g
23829 -t clear
23830 -: clear
23831 -s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23832 -t end
23833 -s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23834 -: end
23835 -_ACEOF
23836 -# If some macros were called several times there might be several times
23837 -# the same #defines, which is useless.  Nevertheless, we may not want to
23838 -# sort them, since we want the *last* AC-DEFINE to be honored.
23839 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23840 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23841 -rm -f confdef2sed.sed
23842 +# Transform confdefs.h into a sed script `conftest.defines', that
23843 +# substitutes the proper values into config.h.in to produce config.h.
23844 +rm -f conftest.defines conftest.tail
23845 +# First, append a space to every undef/define line, to ease matching.
23846 +echo 's/$/ /' >conftest.defines
23847 +# Then, protect against being on the right side of a sed subst, or in
23848 +# an unquoted here document, in config.status.  If some macros were
23849 +# called several times there might be several #defines for the same
23850 +# symbol, which is useless.  But do not sort them, since the last
23851 +# AC_DEFINE must be honored.
23852 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23853 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23854 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
23855 +# PARAMS is the parameter list in the macro definition--in most cases, it's
23856 +# just an empty string.
23857 +ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
23858 +ac_dB='\\)[     (].*,\\1define\\2'
23859 +ac_dC=' '
23860 +ac_dD=' ,'
23861  
23862 -# This sed command replaces #undef with comments.  This is necessary, for
23863 +uniq confdefs.h |
23864 +  sed -n '
23865 +       t rset
23866 +       :rset
23867 +       s/^[     ]*#[    ]*define[       ][      ]*//
23868 +       t ok
23869 +       d
23870 +       :ok
23871 +       s/[\\&,]/\\&/g
23872 +       s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23873 +       s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23874 +  ' >>conftest.defines
23875 +
23876 +# Remove the space that was appended to ease matching.
23877 +# Then replace #undef with comments.  This is necessary, for
23878  # example, in the case of _POSIX_SOURCE, which is predefined and required
23879  # on some systems where configure will not decide to define it.
23880 -cat >>conftest.undefs <<\_ACEOF
23881 -s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23882 -_ACEOF
23883 +# (The regexp can be short, since the line contains either #define or #undef.)
23884 +echo 's/ $//
23885 +s,^[    #]*u.*,/* & */,' >>conftest.defines
23886 +
23887 +# Break up conftest.defines:
23888 +ac_max_sed_lines=50
23889 +
23890 +# First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23891 +# Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23892 +# Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23893 +# et cetera.
23894 +ac_in='$ac_file_inputs'
23895 +ac_out='"$tmp/out1"'
23896 +ac_nxt='"$tmp/out2"'
23897  
23898 -# Break up conftest.defines because some shells have a limit on the size
23899 -# of here documents, and old seds have small limits too (100 cmds).
23900 -echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23901 -echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23902 -echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23903 -echo '  :' >>$CONFIG_STATUS
23904 -rm -f conftest.tail
23905 -while grep . conftest.defines >/dev/null
23906 +while :
23907  do
23908 -  # Write a limited-size here document to $tmp/defines.sed.
23909 -  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23910 -  # Speed up: don't consider the non `#define' lines.
23911 -  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23912 -  # Work around the forget-to-reset-the-flag bug.
23913 -  echo 't clr' >>$CONFIG_STATUS
23914 -  echo ': clr' >>$CONFIG_STATUS
23915 -  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23916 +  # Write a here document:
23917 +    cat >>$CONFIG_STATUS <<_ACEOF
23918 +    # First, check the format of the line:
23919 +    cat >"\$tmp/defines.sed" <<\\CEOF
23920 +/^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23921 +/^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23922 +b
23923 +:def
23924 +_ACEOF
23925 +  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23926    echo 'CEOF
23927 -  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23928 -  rm -f $tmp/in
23929 -  mv $tmp/out $tmp/in
23930 -' >>$CONFIG_STATUS
23931 -  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23932 +    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23933 +  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23934 +  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23935 +  grep . conftest.tail >/dev/null || break
23936    rm -f conftest.defines
23937    mv conftest.tail conftest.defines
23938  done
23939 -rm -f conftest.defines
23940 -echo '  fi # grep' >>$CONFIG_STATUS
23941 -echo >>$CONFIG_STATUS
23942 -
23943 -# Break up conftest.undefs because some shells have a limit on the size
23944 -# of here documents, and old seds have small limits too (100 cmds).
23945 -echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23946 -rm -f conftest.tail
23947 -while grep . conftest.undefs >/dev/null
23948 -do
23949 -  # Write a limited-size here document to $tmp/undefs.sed.
23950 -  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23951 -  # Speed up: don't consider the non `#undef'
23952 -  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23953 -  # Work around the forget-to-reset-the-flag bug.
23954 -  echo 't clr' >>$CONFIG_STATUS
23955 -  echo ': clr' >>$CONFIG_STATUS
23956 -  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23957 -  echo 'CEOF
23958 -  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23959 -  rm -f $tmp/in
23960 -  mv $tmp/out $tmp/in
23961 -' >>$CONFIG_STATUS
23962 -  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23963 -  rm -f conftest.undefs
23964 -  mv conftest.tail conftest.undefs
23965 -done
23966 -rm -f conftest.undefs
23967 +rm -f conftest.defines conftest.tail
23968  
23969 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
23970  cat >>$CONFIG_STATUS <<\_ACEOF
23971 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
23972 -  # use $as_me), people would be surprised to read:
23973 -  #    /* config.h.  Generated by config.status.  */
23974 -  if test x"$ac_file" = x-; then
23975 -    echo "/* Generated by configure.  */" >$tmp/config.h
23976 -  else
23977 -    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23978 -  fi
23979 -  cat $tmp/in >>$tmp/config.h
23980 -  rm -f $tmp/in
23981    if test x"$ac_file" != x-; then
23982 -    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23983 +    echo "/* $configure_input  */" >"$tmp/config.h"
23984 +    cat "$ac_result" >>"$tmp/config.h"
23985 +    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23986        { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23987  echo "$as_me: $ac_file is unchanged" >&6;}
23988      else
23989 -      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23990 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23991 -        X"$ac_file" : 'X\(//\)[^/]' \| \
23992 -        X"$ac_file" : 'X\(//\)$' \| \
23993 -        X"$ac_file" : 'X\(/\)' \| \
23994 -        .     : '\(.\)' 2>/dev/null ||
23995 -echo X"$ac_file" |
23996 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23997 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23998 -         /^X\(\/\/\)$/{ s//\1/; q; }
23999 -         /^X\(\/\).*/{ s//\1/; q; }
24000 -         s/.*/./; q'`
24001 -      { if $as_mkdir_p; then
24002 -    mkdir -p "$ac_dir"
24003 -  else
24004 -    as_dir="$ac_dir"
24005 -    as_dirs=
24006 -    while test ! -d "$as_dir"; do
24007 -      as_dirs="$as_dir $as_dirs"
24008 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24009 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24010 -        X"$as_dir" : 'X\(//\)[^/]' \| \
24011 -        X"$as_dir" : 'X\(//\)$' \| \
24012 -        X"$as_dir" : 'X\(/\)' \| \
24013 -        .     : '\(.\)' 2>/dev/null ||
24014 -echo X"$as_dir" |
24015 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24016 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24017 -         /^X\(\/\/\)$/{ s//\1/; q; }
24018 -         /^X\(\/\).*/{ s//\1/; q; }
24019 -         s/.*/./; q'`
24020 -    done
24021 -    test ! -n "$as_dirs" || mkdir $as_dirs
24022 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24023 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24024 -   { (exit 1); exit 1; }; }; }
24025 -
24026        rm -f $ac_file
24027 -      mv $tmp/config.h $ac_file
24028 +      mv "$tmp/config.h" $ac_file
24029      fi
24030    else
24031 -    cat $tmp/config.h
24032 -    rm -f $tmp/config.h
24033 +    echo "/* $configure_input  */"
24034 +    cat "$ac_result"
24035    fi
24036 +  rm -f "$tmp/out12"
24037  # Compute $ac_file's index in $config_headers.
24038  _am_stamp_count=1
24039  for _am_header in $config_headers :; do
24040 @@ -21904,135 +21771,39 @@
24041        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24042    esac
24043  done
24044 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24045 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24046  $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24047          X$ac_file : 'X\(//\)[^/]' \| \
24048          X$ac_file : 'X\(//\)$' \| \
24049 -        X$ac_file : 'X\(/\)' \| \
24050 -        .     : '\(.\)' 2>/dev/null ||
24051 +        X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24052  echo X$ac_file |
24053 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24054 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24055 -         /^X\(\/\/\)$/{ s//\1/; q; }
24056 -         /^X\(\/\).*/{ s//\1/; q; }
24057 -         s/.*/./; q'`/stamp-h$_am_stamp_count
24058 -done
24059 -_ACEOF
24060 -cat >>$CONFIG_STATUS <<\_ACEOF
24061 -
24062 -#
24063 -# CONFIG_COMMANDS section.
24064 -#
24065 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24066 -  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24067 -  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24068 -  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24069 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24070 -        X"$ac_dest" : 'X\(//\)[^/]' \| \
24071 -        X"$ac_dest" : 'X\(//\)$' \| \
24072 -        X"$ac_dest" : 'X\(/\)' \| \
24073 -        .     : '\(.\)' 2>/dev/null ||
24074 -echo X"$ac_dest" |
24075 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24076 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24077 -         /^X\(\/\/\)$/{ s//\1/; q; }
24078 -         /^X\(\/\).*/{ s//\1/; q; }
24079 -         s/.*/./; q'`
24080 -  { if $as_mkdir_p; then
24081 -    mkdir -p "$ac_dir"
24082 -  else
24083 -    as_dir="$ac_dir"
24084 -    as_dirs=
24085 -    while test ! -d "$as_dir"; do
24086 -      as_dirs="$as_dir $as_dirs"
24087 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24088 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24089 -        X"$as_dir" : 'X\(//\)[^/]' \| \
24090 -        X"$as_dir" : 'X\(//\)$' \| \
24091 -        X"$as_dir" : 'X\(/\)' \| \
24092 -        .     : '\(.\)' 2>/dev/null ||
24093 -echo X"$as_dir" |
24094 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24095 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24096 -         /^X\(\/\/\)$/{ s//\1/; q; }
24097 -         /^X\(\/\).*/{ s//\1/; q; }
24098 -         s/.*/./; q'`
24099 -    done
24100 -    test ! -n "$as_dirs" || mkdir $as_dirs
24101 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24102 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24103 -   { (exit 1); exit 1; }; }; }
24104 -
24105 -  ac_builddir=.
24106 -
24107 -if test "$ac_dir" != .; then
24108 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24109 -  # A "../" for each directory in $ac_dir_suffix.
24110 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24111 -else
24112 -  ac_dir_suffix= ac_top_builddir=
24113 -fi
24114 -
24115 -case $srcdir in
24116 -  .)  # No --srcdir option.  We are building in place.
24117 -    ac_srcdir=.
24118 -    if test -z "$ac_top_builddir"; then
24119 -       ac_top_srcdir=.
24120 -    else
24121 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24122 -    fi ;;
24123 -  [\\/]* | ?:[\\/]* )  # Absolute path.
24124 -    ac_srcdir=$srcdir$ac_dir_suffix;
24125 -    ac_top_srcdir=$srcdir ;;
24126 -  *) # Relative path.
24127 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24128 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24129 -esac
24130 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24131 +           s//\1/
24132 +           q
24133 +         }
24134 +         /^X\(\/\/\)[^/].*/{
24135 +           s//\1/
24136 +           q
24137 +         }
24138 +         /^X\(\/\/\)$/{
24139 +           s//\1/
24140 +           q
24141 +         }
24142 +         /^X\(\/\).*/{
24143 +           s//\1/
24144 +           q
24145 +         }
24146 +         s/.*/./; q'`/stamp-h$_am_stamp_count
24147 + ;;
24148  
24149 -# Do not use `cd foo && pwd` to compute absolute paths, because
24150 -# the directories may not exist.
24151 -case `pwd` in
24152 -.) ac_abs_builddir="$ac_dir";;
24153 -*)
24154 -  case "$ac_dir" in
24155 -  .) ac_abs_builddir=`pwd`;;
24156 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24157 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24158 -  esac;;
24159 -esac
24160 -case $ac_abs_builddir in
24161 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
24162 -*)
24163 -  case ${ac_top_builddir}. in
24164 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
24165 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24166 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24167 -  esac;;
24168 -esac
24169 -case $ac_abs_builddir in
24170 -.) ac_abs_srcdir=$ac_srcdir;;
24171 -*)
24172 -  case $ac_srcdir in
24173 -  .) ac_abs_srcdir=$ac_abs_builddir;;
24174 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24175 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24176 -  esac;;
24177 -esac
24178 -case $ac_abs_builddir in
24179 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
24180 -*)
24181 -  case $ac_top_srcdir in
24182 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24183 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24184 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24185 -  esac;;
24186 -esac
24187 +  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24188 +echo "$as_me: executing $ac_file commands" >&6;}
24189 + ;;
24190 +  esac
24191  
24192  
24193 -  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24194 -echo "$as_me: executing $ac_dest commands" >&6;}
24195 -  case $ac_dest in
24196 -    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24197 +  case $ac_file$ac_mode in
24198 +    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24199    # Strip MF so we end up with the name of the file.
24200    mf=`echo "$mf" | sed -e 's/:.*$//'`
24201    # Check whether this is an Automake generated Makefile or not.
24202 @@ -22042,18 +21813,29 @@
24203    # each Makefile.in and add a new line on top of each file to say so.
24204    # So let's grep whole file.
24205    if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24206 -    dirpart=`(dirname "$mf") 2>/dev/null ||
24207 +    dirpart=`$as_dirname -- "$mf" ||
24208  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24209          X"$mf" : 'X\(//\)[^/]' \| \
24210          X"$mf" : 'X\(//\)$' \| \
24211 -        X"$mf" : 'X\(/\)' \| \
24212 -        .     : '\(.\)' 2>/dev/null ||
24213 +        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24214  echo X"$mf" |
24215 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24216 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24217 -         /^X\(\/\/\)$/{ s//\1/; q; }
24218 -         /^X\(\/\).*/{ s//\1/; q; }
24219 -         s/.*/./; q'`
24220 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24221 +           s//\1/
24222 +           q
24223 +         }
24224 +         /^X\(\/\/\)[^/].*/{
24225 +           s//\1/
24226 +           q
24227 +         }
24228 +         /^X\(\/\/\)$/{
24229 +           s//\1/
24230 +           q
24231 +         }
24232 +         /^X\(\/\).*/{
24233 +           s//\1/
24234 +           q
24235 +         }
24236 +         s/.*/./; q'`
24237    else
24238      continue
24239    fi
24240 @@ -22075,53 +21857,79 @@
24241         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24242      # Make sure the directory exists.
24243      test -f "$dirpart/$file" && continue
24244 -    fdir=`(dirname "$file") 2>/dev/null ||
24245 +    fdir=`$as_dirname -- "$file" ||
24246  $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247          X"$file" : 'X\(//\)[^/]' \| \
24248          X"$file" : 'X\(//\)$' \| \
24249 -        X"$file" : 'X\(/\)' \| \
24250 -        .     : '\(.\)' 2>/dev/null ||
24251 +        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24252  echo X"$file" |
24253 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24254 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24255 -         /^X\(\/\/\)$/{ s//\1/; q; }
24256 -         /^X\(\/\).*/{ s//\1/; q; }
24257 -         s/.*/./; q'`
24258 -    { if $as_mkdir_p; then
24259 -    mkdir -p $dirpart/$fdir
24260 -  else
24261 -    as_dir=$dirpart/$fdir
24262 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24263 +           s//\1/
24264 +           q
24265 +         }
24266 +         /^X\(\/\/\)[^/].*/{
24267 +           s//\1/
24268 +           q
24269 +         }
24270 +         /^X\(\/\/\)$/{
24271 +           s//\1/
24272 +           q
24273 +         }
24274 +         /^X\(\/\).*/{
24275 +           s//\1/
24276 +           q
24277 +         }
24278 +         s/.*/./; q'`
24279 +    { as_dir=$dirpart/$fdir
24280 +  case $as_dir in #(
24281 +  -*) as_dir=./$as_dir;;
24282 +  esac
24283 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24284      as_dirs=
24285 -    while test ! -d "$as_dir"; do
24286 -      as_dirs="$as_dir $as_dirs"
24287 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24288 +    while :; do
24289 +      case $as_dir in #(
24290 +      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24291 +      *) as_qdir=$as_dir;;
24292 +      esac
24293 +      as_dirs="'$as_qdir' $as_dirs"
24294 +      as_dir=`$as_dirname -- "$as_dir" ||
24295  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24296          X"$as_dir" : 'X\(//\)[^/]' \| \
24297          X"$as_dir" : 'X\(//\)$' \| \
24298 -        X"$as_dir" : 'X\(/\)' \| \
24299 -        .     : '\(.\)' 2>/dev/null ||
24300 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24301  echo X"$as_dir" |
24302 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24303 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24304 -         /^X\(\/\/\)$/{ s//\1/; q; }
24305 -         /^X\(\/\).*/{ s//\1/; q; }
24306 -         s/.*/./; q'`
24307 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24308 +           s//\1/
24309 +           q
24310 +         }
24311 +         /^X\(\/\/\)[^/].*/{
24312 +           s//\1/
24313 +           q
24314 +         }
24315 +         /^X\(\/\/\)$/{
24316 +           s//\1/
24317 +           q
24318 +         }
24319 +         /^X\(\/\).*/{
24320 +           s//\1/
24321 +           q
24322 +         }
24323 +         s/.*/./; q'`
24324 +      test -d "$as_dir" && break
24325      done
24326 -    test ! -n "$as_dirs" || mkdir $as_dirs
24327 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24328 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24329 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
24330 +  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24331 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
24332     { (exit 1); exit 1; }; }; }
24333 -
24334      # echo "creating $dirpart/$file"
24335      echo '# dummy' > "$dirpart/$file"
24336    done
24337  done
24338   ;;
24339 +
24340    esac
24341 -done
24342 -_ACEOF
24343 +done # for ac_tag
24344  
24345 -cat >>$CONFIG_STATUS <<\_ACEOF
24346  
24347  { (exit 0); exit 0; }
24348  _ACEOF
24349 --- ./src/Makefile.in   2005-11-26 20:29:02.000000000 +0100
24350 +++ ./src/Makefile.in   2006-10-10 17:43:48.000000000 +0200
24351 @@ -45,7 +45,7 @@
24352         $(top_srcdir)/configure.ac
24353  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
24354         $(ACLOCAL_M4)
24355 -mkinstalldirs = $(install_sh) -d
24356 +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
24357  CONFIG_HEADER = config.h
24358  CONFIG_CLEAN_FILES =
24359  am__installdirs = "$(DESTDIR)$(sbindir)"
24360 @@ -136,6 +136,7 @@
24361  EXEEXT = @EXEEXT@
24362  F77 = @F77@
24363  FFLAGS = @FFLAGS@
24364 +GREP = @GREP@
24365  INSTALL_DATA = @INSTALL_DATA@
24366  INSTALL_PROGRAM = @INSTALL_PROGRAM@
24367  INSTALL_SCRIPT = @INSTALL_SCRIPT@
24368 @@ -161,12 +162,9 @@
24369  SHELL = @SHELL@
24370  STRIP = @STRIP@
24371  VERSION = @VERSION@
24372 -ac_ct_AR = @ac_ct_AR@
24373  ac_ct_CC = @ac_ct_CC@
24374  ac_ct_CXX = @ac_ct_CXX@
24375  ac_ct_F77 = @ac_ct_F77@
24376 -ac_ct_RANLIB = @ac_ct_RANLIB@
24377 -ac_ct_STRIP = @ac_ct_STRIP@
24378  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
24379  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
24380  am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
24381 @@ -183,23 +181,30 @@
24382  build_os = @build_os@
24383  build_vendor = @build_vendor@
24384  datadir = @datadir@
24385 +datarootdir = @datarootdir@
24386 +docdir = @docdir@
24387 +dvidir = @dvidir@
24388  exec_prefix = @exec_prefix@
24389  host = @host@
24390  host_alias = @host_alias@
24391  host_cpu = @host_cpu@
24392  host_os = @host_os@
24393  host_vendor = @host_vendor@
24394 +htmldir = @htmldir@
24395  includedir = @includedir@
24396  infodir = @infodir@
24397  install_sh = @install_sh@
24398  libdir = @libdir@
24399  libexecdir = @libexecdir@
24400 +localedir = @localedir@
24401  localstatedir = @localstatedir@
24402  mandir = @mandir@
24403  mkdir_p = @mkdir_p@
24404  oldincludedir = @oldincludedir@
24405 +pdfdir = @pdfdir@
24406  prefix = @prefix@
24407  program_transform_name = @program_transform_name@
24408 +psdir = @psdir@
24409  sbindir = @sbindir@
24410  sharedstatedir = @sharedstatedir@
24411  sysconfdir = @sysconfdir@
24412 --- ./src/apache/Makefile.in    2005-11-26 20:29:02.000000000 +0100
24413 +++ ./src/apache/Makefile.in    2006-10-10 17:43:48.000000000 +0200
24414 @@ -43,7 +43,7 @@
24415         $(top_srcdir)/configure.ac
24416  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
24417         $(ACLOCAL_M4)
24418 -mkinstalldirs = $(install_sh) -d
24419 +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
24420  CONFIG_HEADER = $(top_builddir)/src/config.h
24421  CONFIG_CLEAN_FILES =
24422  LTLIBRARIES = $(noinst_LTLIBRARIES)
24423 @@ -108,6 +108,7 @@
24424  EXEEXT = @EXEEXT@
24425  F77 = @F77@
24426  FFLAGS = @FFLAGS@
24427 +GREP = @GREP@
24428  INSTALL_DATA = @INSTALL_DATA@
24429  INSTALL_PROGRAM = @INSTALL_PROGRAM@
24430  INSTALL_SCRIPT = @INSTALL_SCRIPT@
24431 @@ -133,12 +134,9 @@
24432  SHELL = @SHELL@
24433  STRIP = @STRIP@
24434  VERSION = @VERSION@
24435 -ac_ct_AR = @ac_ct_AR@
24436  ac_ct_CC = @ac_ct_CC@
24437  ac_ct_CXX = @ac_ct_CXX@
24438  ac_ct_F77 = @ac_ct_F77@
24439 -ac_ct_RANLIB = @ac_ct_RANLIB@
24440 -ac_ct_STRIP = @ac_ct_STRIP@
24441  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
24442  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
24443  am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
24444 @@ -155,23 +153,30 @@
24445  build_os = @build_os@
24446  build_vendor = @build_vendor@
24447  datadir = @datadir@
24448 +datarootdir = @datarootdir@
24449 +docdir = @docdir@
24450 +dvidir = @dvidir@
24451  exec_prefix = @exec_prefix@
24452  host = @host@
24453  host_alias = @host_alias@
24454  host_cpu = @host_cpu@
24455  host_os = @host_os@
24456  host_vendor = @host_vendor@
24457 +htmldir = @htmldir@
24458  includedir = @includedir@
24459  infodir = @infodir@
24460  install_sh = @install_sh@
24461  libdir = @libdir@
24462  libexecdir = @libexecdir@
24463 +localedir = @localedir@
24464  localstatedir = @localstatedir@
24465  mandir = @mandir@
24466  mkdir_p = @mkdir_p@
24467  oldincludedir = @oldincludedir@
24468 +pdfdir = @pdfdir@
24469  prefix = @prefix@
24470  program_transform_name = @program_transform_name@
24471 +psdir = @psdir@
24472  sbindir = @sbindir@
24473  sharedstatedir = @sharedstatedir@
24474  sysconfdir = @sysconfdir@
24475 --- ./src/apache2/Makefile.in   2005-11-26 20:29:02.000000000 +0100
24476 +++ ./src/apache2/Makefile.in   2006-10-10 17:43:48.000000000 +0200
24477 @@ -43,7 +43,7 @@
24478         $(top_srcdir)/configure.ac
24479  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
24480         $(ACLOCAL_M4)
24481 -mkinstalldirs = $(install_sh) -d
24482 +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
24483  CONFIG_HEADER = $(top_builddir)/src/config.h
24484  CONFIG_CLEAN_FILES =
24485  LTLIBRARIES = $(noinst_LTLIBRARIES)
24486 @@ -108,6 +108,7 @@
24487  EXEEXT = @EXEEXT@
24488  F77 = @F77@
24489  FFLAGS = @FFLAGS@
24490 +GREP = @GREP@
24491  INSTALL_DATA = @INSTALL_DATA@
24492  INSTALL_PROGRAM = @INSTALL_PROGRAM@
24493  INSTALL_SCRIPT = @INSTALL_SCRIPT@
24494 @@ -133,12 +134,9 @@
24495  SHELL = @SHELL@
24496  STRIP = @STRIP@
24497  VERSION = @VERSION@
24498 -ac_ct_AR = @ac_ct_AR@
24499  ac_ct_CC = @ac_ct_CC@
24500  ac_ct_CXX = @ac_ct_CXX@
24501  ac_ct_F77 = @ac_ct_F77@
24502 -ac_ct_RANLIB = @ac_ct_RANLIB@
24503 -ac_ct_STRIP = @ac_ct_STRIP@
24504  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
24505  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
24506  am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
24507 @@ -155,23 +153,30 @@
24508  build_os = @build_os@
24509  build_vendor = @build_vendor@
24510  datadir = @datadir@
24511 +datarootdir = @datarootdir@
24512 +docdir = @docdir@
24513 +dvidir = @dvidir@
24514  exec_prefix = @exec_prefix@
24515  host = @host@
24516  host_alias = @host_alias@
24517  host_cpu = @host_cpu@
24518  host_os = @host_os@
24519  host_vendor = @host_vendor@
24520 +htmldir = @htmldir@
24521  includedir = @includedir@
24522  infodir = @infodir@
24523  install_sh = @install_sh@
24524  libdir = @libdir@
24525  libexecdir = @libexecdir@
24526 +localedir = @localedir@
24527  localstatedir = @localstatedir@
24528  mandir = @mandir@
24529  mkdir_p = @mkdir_p@
24530  oldincludedir = @oldincludedir@
24531 +pdfdir = @pdfdir@
24532  prefix = @prefix@
24533  program_transform_name = @program_transform_name@
24534 +psdir = @psdir@
24535  sbindir = @sbindir@
24536  sharedstatedir = @sharedstatedir@
24537  sysconfdir = @sysconfdir@