]> 4ch.mooo.com Git - 16.git/blob - 16/adplug/libbinio/configure
wwww~
[16.git] / 16 / adplug / libbinio / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for binio 1.4.
4 #
5 # Report bugs to <dn.tlp@gmx.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='binio'
425 PACKAGE_TARNAME='libbinio'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='binio 1.4'
428 PACKAGE_BUGREPORT='dn.tlp@gmx.net'
429
430 ac_unique_file="src/binio.cpp"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TYPE_INT TYPE_FLOAT ENABLE_IOSTREAM ENABLE_STRING ISO_STDLIB WITH_MATH LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures binio 1.4 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of binio 1.4:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-maintainer-mode  enable make rules and dependencies not useful
1031                           (and sometimes confusing) to the casual installer
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --disable-iostream      Do not build iostream wrapper streams
1042   --disable-string        Do not build std::string methods
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052   --with-iso              Force ISO C++ standard library compliance
1053   --without-math          Do not build routines depending on 'math.h'
1054
1055 Some influential environment variables:
1056   CC          C compiler command
1057   CFLAGS      C compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CPP         C preprocessor
1063   CXX         C++ compiler command
1064   CXXFLAGS    C++ compiler flags
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <dn.tlp@gmx.net>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd "$ac_popdir"
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 binio configure 1.4
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by binio $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519                                                   ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile src/binio.h libbinio.pc"
1520
1521 am__api_version="1.9"
1522 ac_aux_dir=
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524   if test -f $ac_dir/install-sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install-sh -c"
1527     break
1528   elif test -f $ac_dir/install.sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install.sh -c"
1531     break
1532   elif test -f $ac_dir/shtool; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/shtool install -c"
1535     break
1536   fi
1537 done
1538 if test -z "$ac_aux_dir"; then
1539   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541    { (exit 1); exit 1; }; }
1542 fi
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547 # Find a good install program.  We prefer a C program (faster),
1548 # so one script is as good as another.  But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1553 # AIX /bin/install
1554 # AmigaOS /C/install, which installs bootblocks on floppy discs
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # OS/2's system install, which has a completely different semantic
1559 # ./install, which can be erroneously created by make from ./install.sh.
1560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562 if test -z "$INSTALL"; then
1563 if test "${ac_cv_path_install+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   # Account for people who put trailing slashes in PATH elements.
1572 case $as_dir/ in
1573   ./ | .// | /cC/* | \
1574   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1576   /usr/ucb/* ) ;;
1577   *)
1578     # OSF1 and SCO ODT 3.0 have their own names for install.
1579     # Don't use installbsd from OSF since it installs stuff as root
1580     # by default.
1581     for ac_prog in ginstall scoinst install; do
1582       for ac_exec_ext in '' $ac_executable_extensions; do
1583         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584           if test $ac_prog = install &&
1585             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586             # AIX install.  It has an incompatible calling convention.
1587             :
1588           elif test $ac_prog = install &&
1589             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590             # program-specific install script used by HP pwplus--don't use.
1591             :
1592           else
1593             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594             break 3
1595           fi
1596         fi
1597       done
1598     done
1599     ;;
1600 esac
1601 done
1602
1603
1604 fi
1605   if test "${ac_cv_path_install+set}" = set; then
1606     INSTALL=$ac_cv_path_install
1607   else
1608     # As a last resort, use the slow shell script.  We don't cache a
1609     # path for INSTALL within a source directory, because that will
1610     # break other packages using the cache if that directory is
1611     # removed, or if the path is relative.
1612     INSTALL=$ac_install_sh
1613   fi
1614 fi
1615 echo "$as_me:$LINENO: result: $INSTALL" >&5
1616 echo "${ECHO_T}$INSTALL" >&6
1617
1618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619 # It thinks the first close brace ends the variable substitution.
1620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1621
1622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1623
1624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1625
1626 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1628 # Just in case
1629 sleep 1
1630 echo timestamp > conftest.file
1631 # Do `set' in a subshell so we don't clobber the current shell's
1632 # arguments.  Must try -L first in case configure is actually a
1633 # symlink; some systems play weird games with the mod time of symlinks
1634 # (eg FreeBSD returns the mod time of the symlink's containing
1635 # directory).
1636 if (
1637    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1638    if test "$*" = "X"; then
1639       # -L didn't work.
1640       set X `ls -t $srcdir/configure conftest.file`
1641    fi
1642    rm -f conftest.file
1643    if test "$*" != "X $srcdir/configure conftest.file" \
1644       && test "$*" != "X conftest.file $srcdir/configure"; then
1645
1646       # If neither matched, then we have a broken ls.  This can happen
1647       # if, for instance, CONFIG_SHELL is bash and it inherits a
1648       # broken ls alias from the environment.  This has actually
1649       # happened.  Such a system could not be considered "sane".
1650       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1651 alias in your environment" >&5
1652 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1653 alias in your environment" >&2;}
1654    { (exit 1); exit 1; }; }
1655    fi
1656
1657    test "$2" = conftest.file
1658    )
1659 then
1660    # Ok.
1661    :
1662 else
1663    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664 Check your system clock" >&5
1665 echo "$as_me: error: newly created file is older than distributed files!
1666 Check your system clock" >&2;}
1667    { (exit 1); exit 1; }; }
1668 fi
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
1671 test "$program_prefix" != NONE &&
1672   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673 # Use a double $ so make ignores it.
1674 test "$program_suffix" != NONE &&
1675   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676 # Double any \ or $.  echo might interpret backslashes.
1677 # By default was `s,x,x', remove it if useless.
1678 cat <<\_ACEOF >conftest.sed
1679 s/[\\$]/&&/g;s/;s,x,x,$//
1680 _ACEOF
1681 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1682 rm conftest.sed
1683
1684 # expand $ac_aux_dir to an absolute path
1685 am_aux_dir=`cd $ac_aux_dir && pwd`
1686
1687 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1688 # Use eval to expand $SHELL
1689 if eval "$MISSING --run true"; then
1690   am_missing_run="$MISSING --run "
1691 else
1692   am_missing_run=
1693   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1694 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1695 fi
1696
1697 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1698   # We used to keeping the `.' as first argument, in order to
1699   # allow $(mkdir_p) to be used without argument.  As in
1700   #   $(mkdir_p) $(somedir)
1701   # where $(somedir) is conditionally defined.  However this is wrong
1702   # for two reasons:
1703   #  1. if the package is installed by a user who cannot write `.'
1704   #     make install will fail,
1705   #  2. the above comment should most certainly read
1706   #     $(mkdir_p) $(DESTDIR)$(somedir)
1707   #     so it does not work when $(somedir) is undefined and
1708   #     $(DESTDIR) is not.
1709   #  To support the latter case, we have to write
1710   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1711   #  so the `.' trick is pointless.
1712   mkdir_p='mkdir -p --'
1713 else
1714   # On NextStep and OpenStep, the `mkdir' command does not
1715   # recognize any option.  It will interpret all options as
1716   # directories to create, and then abort because `.' already
1717   # exists.
1718   for d in ./-p ./--version;
1719   do
1720     test -d $d && rmdir $d
1721   done
1722   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1723   if test -f "$ac_aux_dir/mkinstalldirs"; then
1724     mkdir_p='$(mkinstalldirs)'
1725   else
1726     mkdir_p='$(install_sh) -d'
1727   fi
1728 fi
1729
1730 for ac_prog in gawk mawk nawk awk
1731 do
1732   # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_AWK+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$AWK"; then
1740   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_AWK="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 AWK=$ac_cv_prog_AWK
1759 if test -n "$AWK"; then
1760   echo "$as_me:$LINENO: result: $AWK" >&5
1761 echo "${ECHO_T}$AWK" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   test -n "$AWK" && break
1768 done
1769
1770 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1772 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1773 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   cat >conftest.make <<\_ACEOF
1777 all:
1778         @echo 'ac_maketemp="$(MAKE)"'
1779 _ACEOF
1780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1781 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1782 if test -n "$ac_maketemp"; then
1783   eval ac_cv_prog_make_${ac_make}_set=yes
1784 else
1785   eval ac_cv_prog_make_${ac_make}_set=no
1786 fi
1787 rm -f conftest.make
1788 fi
1789 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1790   echo "$as_me:$LINENO: result: yes" >&5
1791 echo "${ECHO_T}yes" >&6
1792   SET_MAKE=
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796   SET_MAKE="MAKE=${MAKE-make}"
1797 fi
1798
1799 rm -rf .tst 2>/dev/null
1800 mkdir .tst 2>/dev/null
1801 if test -d .tst; then
1802   am__leading_dot=.
1803 else
1804   am__leading_dot=_
1805 fi
1806 rmdir .tst 2>/dev/null
1807
1808 # test to see if srcdir already configured
1809 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1810    test -f $srcdir/config.status; then
1811   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1812 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815
1816 # test whether we have cygpath
1817 if test -z "$CYGPATH_W"; then
1818   if (cygpath --version) >/dev/null 2>/dev/null; then
1819     CYGPATH_W='cygpath -w'
1820   else
1821     CYGPATH_W=echo
1822   fi
1823 fi
1824
1825
1826 # Define the identity of the package.
1827  PACKAGE='libbinio'
1828  VERSION='1.4'
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE "$PACKAGE"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define VERSION "$VERSION"
1838 _ACEOF
1839
1840 # Some tools Automake needs.
1841
1842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1843
1844
1845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1846
1847
1848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1849
1850
1851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1852
1853
1854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1855
1856 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1857
1858 # Installed binaries are usually stripped using `strip' when the user
1859 # run `make install-strip'.  However `strip' might not be the right
1860 # tool to use in cross-compilation environments, therefore Automake
1861 # will honor the `STRIP' environment variable to overrule this program.
1862 if test "$cross_compiling" != no; then
1863   if test -n "$ac_tool_prefix"; then
1864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}strip; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_STRIP+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$STRIP"; then
1872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 STRIP=$ac_cv_prog_STRIP
1891 if test -n "$STRIP"; then
1892   echo "$as_me:$LINENO: result: $STRIP" >&5
1893 echo "${ECHO_T}$STRIP" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899 fi
1900 if test -z "$ac_cv_prog_STRIP"; then
1901   ac_ct_STRIP=$STRIP
1902   # Extract the first word of "strip", so it can be a program name with args.
1903 set dummy strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$ac_ct_STRIP"; then
1910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_ac_ct_STRIP="strip"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1927 fi
1928 fi
1929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1930 if test -n "$ac_ct_STRIP"; then
1931   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1932 echo "${ECHO_T}$ac_ct_STRIP" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938   STRIP=$ac_ct_STRIP
1939 else
1940   STRIP="$ac_cv_prog_STRIP"
1941 fi
1942
1943 fi
1944 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1945
1946 # We need awk for the "check" target.  The system "awk" is bad on
1947 # some platforms.
1948 # Always define AMTAR for backward compatibility.
1949
1950 AMTAR=${AMTAR-"${am_missing_run}tar"}
1951
1952 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1953
1954
1955
1956
1957
1958 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1959 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1960     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1961 if test "${enable_maintainer_mode+set}" = set; then
1962   enableval="$enable_maintainer_mode"
1963   USE_MAINTAINER_MODE=$enableval
1964 else
1965   USE_MAINTAINER_MODE=no
1966 fi;
1967   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1968 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1969
1970
1971 if test $USE_MAINTAINER_MODE = yes; then
1972   MAINTAINER_MODE_TRUE=
1973   MAINTAINER_MODE_FALSE='#'
1974 else
1975   MAINTAINER_MODE_TRUE='#'
1976   MAINTAINER_MODE_FALSE=
1977 fi
1978
1979   MAINT=$MAINTAINER_MODE_TRUE
1980
1981
1982 # Check whether --enable-shared or --disable-shared was given.
1983 if test "${enable_shared+set}" = set; then
1984   enableval="$enable_shared"
1985   p=${PACKAGE-default}
1986     case $enableval in
1987     yes) enable_shared=yes ;;
1988     no) enable_shared=no ;;
1989     *)
1990       enable_shared=no
1991       # Look at the argument we got.  We use all the common list separators.
1992       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1993       for pkg in $enableval; do
1994         IFS="$lt_save_ifs"
1995         if test "X$pkg" = "X$p"; then
1996           enable_shared=yes
1997         fi
1998       done
1999       IFS="$lt_save_ifs"
2000       ;;
2001     esac
2002 else
2003   enable_shared=yes
2004 fi;
2005
2006 # Check whether --enable-static or --disable-static was given.
2007 if test "${enable_static+set}" = set; then
2008   enableval="$enable_static"
2009   p=${PACKAGE-default}
2010     case $enableval in
2011     yes) enable_static=yes ;;
2012     no) enable_static=no ;;
2013     *)
2014      enable_static=no
2015       # Look at the argument we got.  We use all the common list separators.
2016       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2017       for pkg in $enableval; do
2018         IFS="$lt_save_ifs"
2019         if test "X$pkg" = "X$p"; then
2020           enable_static=yes
2021         fi
2022       done
2023       IFS="$lt_save_ifs"
2024       ;;
2025     esac
2026 else
2027   enable_static=yes
2028 fi;
2029
2030 # Check whether --enable-fast-install or --disable-fast-install was given.
2031 if test "${enable_fast_install+set}" = set; then
2032   enableval="$enable_fast_install"
2033   p=${PACKAGE-default}
2034     case $enableval in
2035     yes) enable_fast_install=yes ;;
2036     no) enable_fast_install=no ;;
2037     *)
2038       enable_fast_install=no
2039       # Look at the argument we got.  We use all the common list separators.
2040       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2041       for pkg in $enableval; do
2042         IFS="$lt_save_ifs"
2043         if test "X$pkg" = "X$p"; then
2044           enable_fast_install=yes
2045         fi
2046       done
2047       IFS="$lt_save_ifs"
2048       ;;
2049     esac
2050 else
2051   enable_fast_install=yes
2052 fi;
2053
2054 # Make sure we can run config.sub.
2055 $ac_config_sub sun4 >/dev/null 2>&1 ||
2056   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2057 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2058    { (exit 1); exit 1; }; }
2059
2060 echo "$as_me:$LINENO: checking build system type" >&5
2061 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2062 if test "${ac_cv_build+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   ac_cv_build_alias=$build_alias
2066 test -z "$ac_cv_build_alias" &&
2067   ac_cv_build_alias=`$ac_config_guess`
2068 test -z "$ac_cv_build_alias" &&
2069   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2070 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2071    { (exit 1); exit 1; }; }
2072 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2073   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2074 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 fi
2078 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2079 echo "${ECHO_T}$ac_cv_build" >&6
2080 build=$ac_cv_build
2081 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2082 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2083 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2084
2085
2086 echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2088 if test "${ac_cv_host+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   ac_cv_host_alias=$host_alias
2092 test -z "$ac_cv_host_alias" &&
2093   ac_cv_host_alias=$ac_cv_build_alias
2094 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2095   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2096 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2097    { (exit 1); exit 1; }; }
2098
2099 fi
2100 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2101 echo "${ECHO_T}$ac_cv_host" >&6
2102 host=$ac_cv_host
2103 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2104 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2105 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2106
2107
2108 DEPDIR="${am__leading_dot}deps"
2109
2110           ac_config_commands="$ac_config_commands depfiles"
2111
2112
2113 am_make=${MAKE-make}
2114 cat > confinc << 'END'
2115 am__doit:
2116         @echo done
2117 .PHONY: am__doit
2118 END
2119 # If we don't find an include directive, just comment out the code.
2120 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2121 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2122 am__include="#"
2123 am__quote=
2124 _am_result=none
2125 # First try GNU make style include.
2126 echo "include confinc" > confmf
2127 # We grep out `Entering directory' and `Leaving directory'
2128 # messages which can occur if `w' ends up in MAKEFLAGS.
2129 # In particular we don't look at `^make:' because GNU make might
2130 # be invoked under some other name (usually "gmake"), in which
2131 # case it prints its new name instead of `make'.
2132 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2133    am__include=include
2134    am__quote=
2135    _am_result=GNU
2136 fi
2137 # Now try BSD make style include.
2138 if test "$am__include" = "#"; then
2139    echo '.include "confinc"' > confmf
2140    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2141       am__include=.include
2142       am__quote="\""
2143       _am_result=BSD
2144    fi
2145 fi
2146
2147
2148 echo "$as_me:$LINENO: result: $_am_result" >&5
2149 echo "${ECHO_T}$_am_result" >&6
2150 rm -f confinc confmf
2151
2152 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2153 if test "${enable_dependency_tracking+set}" = set; then
2154   enableval="$enable_dependency_tracking"
2155
2156 fi;
2157 if test "x$enable_dependency_tracking" != xno; then
2158   am_depcomp="$ac_aux_dir/depcomp"
2159   AMDEPBACKSLASH='\'
2160 fi
2161
2162
2163 if test "x$enable_dependency_tracking" != xno; then
2164   AMDEP_TRUE=
2165   AMDEP_FALSE='#'
2166 else
2167   AMDEP_TRUE='#'
2168   AMDEP_FALSE=
2169 fi
2170
2171
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 if test -n "$ac_tool_prefix"; then
2179   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$CC"; then
2187   ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202
2203 fi
2204 fi
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207   echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214 fi
2215 if test -z "$ac_cv_prog_CC"; then
2216   ac_ct_CC=$CC
2217   # Extract the first word of "gcc", so it can be a program name with args.
2218 set dummy gcc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test -n "$ac_ct_CC"; then
2225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     ac_cv_prog_ac_ct_CC="gcc"
2235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252   CC=$ac_ct_CC
2253 else
2254   CC="$ac_cv_prog_CC"
2255 fi
2256
2257 if test -z "$CC"; then
2258   if test -n "$ac_tool_prefix"; then
2259   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$CC"; then
2267   ac_cv_prog_CC="$CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276     ac_cv_prog_CC="${ac_tool_prefix}cc"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 CC=$ac_cv_prog_CC
2286 if test -n "$CC"; then
2287   echo "$as_me:$LINENO: result: $CC" >&5
2288 echo "${ECHO_T}$CC" >&6
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294 fi
2295 if test -z "$ac_cv_prog_CC"; then
2296   ac_ct_CC=$CC
2297   # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$ac_ct_CC"; then
2305   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312   for ac_exec_ext in '' $ac_executable_extensions; do
2313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314     ac_cv_prog_ac_ct_CC="cc"
2315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316     break 2
2317   fi
2318 done
2319 done
2320
2321 fi
2322 fi
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326 echo "${ECHO_T}$ac_ct_CC" >&6
2327 else
2328   echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2330 fi
2331
2332   CC=$ac_ct_CC
2333 else
2334   CC="$ac_cv_prog_CC"
2335 fi
2336
2337 fi
2338 if test -z "$CC"; then
2339   # Extract the first word of "cc", so it can be a program name with args.
2340 set dummy cc; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$CC"; then
2347   ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349   ac_prog_rejected=no
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355   for ac_exec_ext in '' $ac_executable_extensions; do
2356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358        ac_prog_rejected=yes
2359        continue
2360      fi
2361     ac_cv_prog_CC="cc"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 if test $ac_prog_rejected = yes; then
2369   # We found a bogon in the path, so make sure we never use it.
2370   set dummy $ac_cv_prog_CC
2371   shift
2372   if test $# != 0; then
2373     # We chose a different compiler from the bogus one.
2374     # However, it has the same basename, so the bogon will be chosen
2375     # first if we set CC to just the basename; use the full file name.
2376     shift
2377     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2378   fi
2379 fi
2380 fi
2381 fi
2382 CC=$ac_cv_prog_CC
2383 if test -n "$CC"; then
2384   echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6
2386 else
2387   echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2389 fi
2390
2391 fi
2392 if test -z "$CC"; then
2393   if test -n "$ac_tool_prefix"; then
2394   for ac_prog in cl
2395   do
2396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$CC"; then
2404   ac_cv_prog_CC="$CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424   echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6
2426 else
2427   echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431     test -n "$CC" && break
2432   done
2433 fi
2434 if test -z "$CC"; then
2435   ac_ct_CC=$CC
2436   for ac_prog in cl
2437 do
2438   # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$ac_ct_CC"; then
2446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_ac_ct_CC="$ac_prog"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461
2462 fi
2463 fi
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6
2468 else
2469   echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473   test -n "$ac_ct_CC" && break
2474 done
2475
2476   CC=$ac_ct_CC
2477 fi
2478
2479 fi
2480
2481
2482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&2;}
2486    { (exit 1); exit 1; }; }
2487
2488 # Provide some information about the compiler.
2489 echo "$as_me:$LINENO:" \
2490      "checking for C compiler version" >&5
2491 ac_compiler=`set X $ac_compile; echo $2`
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493   (eval $ac_compiler --version </dev/null >&5) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498   (eval $ac_compiler -v </dev/null >&5) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503   (eval $ac_compiler -V </dev/null >&5) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }
2507
2508 cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 ac_clean_files_save=$ac_clean_files
2524 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2525 # Try to create an executable without -o first, disregard a.out.
2526 # It will help us diagnose broken compilers, and finding out an intuition
2527 # of exeext.
2528 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2529 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2530 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2531 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2532   (eval $ac_link_default) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; then
2536   # Find the output, starting from the most likely.  This scheme is
2537 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2538 # resort.
2539
2540 # Be careful to initialize this variable, since it used to be cached.
2541 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2542 ac_cv_exeext=
2543 # b.out is created by i960 compilers.
2544 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2545 do
2546   test -f "$ac_file" || continue
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2549         ;;
2550     conftest.$ac_ext )
2551         # This is the source file.
2552         ;;
2553     [ab].out )
2554         # We found the default executable, but exeext='' is most
2555         # certainly right.
2556         break;;
2557     *.* )
2558         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559         # FIXME: I believe we export ac_cv_exeext for Libtool,
2560         # but it would be cool to find out if it's true.  Does anybody
2561         # maintain Libtool? --akim.
2562         export ac_cv_exeext
2563         break;;
2564     * )
2565         break;;
2566   esac
2567 done
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&2;}
2576    { (exit 77); exit 77; }; }
2577 fi
2578
2579 ac_exeext=$ac_cv_exeext
2580 echo "$as_me:$LINENO: result: $ac_file" >&5
2581 echo "${ECHO_T}$ac_file" >&6
2582
2583 # Check the compiler produces executables we can run.  If not, either
2584 # the compiler is broken, or we cross compile.
2585 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590   if { ac_try='./$ac_file'
2591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592   (eval $ac_try) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; }; then
2596     cross_compiling=no
2597   else
2598     if test "$cross_compiling" = maybe; then
2599         cross_compiling=yes
2600     else
2601         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&2;}
2607    { (exit 1); exit 1; }; }
2608     fi
2609   fi
2610 fi
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613
2614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2615 ac_clean_files=$ac_clean_files_save
2616 # Check the compiler produces executables we can run.  If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2620 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621 echo "${ECHO_T}$cross_compiling" >&6
2622
2623 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626   (eval $ac_link) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; then
2630   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2632 # work properly (i.e., refer to `conftest.exe'), while it won't with
2633 # `rm'.
2634 for ac_file in conftest.exe conftest conftest.*; do
2635   test -f "$ac_file" || continue
2636   case $ac_file in
2637     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2638     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639           export ac_cv_exeext
2640           break;;
2641     * ) break;;
2642   esac
2643 done
2644 else
2645   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2648 See \`config.log' for more details." >&2;}
2649    { (exit 1); exit 1; }; }
2650 fi
2651
2652 rm -f conftest$ac_cv_exeext
2653 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2654 echo "${ECHO_T}$ac_cv_exeext" >&6
2655
2656 rm -f conftest.$ac_ext
2657 EXEEXT=$ac_cv_exeext
2658 ac_exeext=$EXEEXT
2659 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661 if test "${ac_cv_objext+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670
2671 int
2672 main ()
2673 {
2674
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 rm -f conftest.o conftest.obj
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681   (eval $ac_compile) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; then
2685   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686   case $ac_file in
2687     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689        break;;
2690   esac
2691 done
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&2;}
2700    { (exit 1); exit 1; }; }
2701 fi
2702
2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704 fi
2705 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 echo "${ECHO_T}$ac_cv_objext" >&6
2707 OBJEXT=$ac_cv_objext
2708 ac_objext=$OBJEXT
2709 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720
2721 int
2722 main ()
2723 {
2724 #ifndef __GNUC__
2725        choke me
2726 #endif
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734   (eval $ac_compile) 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   ac_compiler_gnu=yes
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 ac_compiler_gnu=no
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2762
2763 fi
2764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2766 GCC=`test $ac_compiler_gnu = yes && echo yes`
2767 ac_test_CFLAGS=${CFLAGS+set}
2768 ac_save_CFLAGS=$CFLAGS
2769 CFLAGS="-g"
2770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2772 if test "${ac_cv_prog_cc_g+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792   (eval $ac_compile) 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_prog_cc_g=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ac_cv_prog_cc_g=no
2817 fi
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2822 if test "$ac_test_CFLAGS" = set; then
2823   CFLAGS=$ac_save_CFLAGS
2824 elif test $ac_cv_prog_cc_g = yes; then
2825   if test "$GCC" = yes; then
2826     CFLAGS="-g -O2"
2827   else
2828     CFLAGS="-g"
2829   fi
2830 else
2831   if test "$GCC" = yes; then
2832     CFLAGS="-O2"
2833   else
2834     CFLAGS=
2835   fi
2836 fi
2837 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2838 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2839 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   ac_cv_prog_cc_stdc=no
2843 ac_save_CC=$CC
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 #include <stdarg.h>
2851 #include <stdio.h>
2852 #include <sys/types.h>
2853 #include <sys/stat.h>
2854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2855 struct buf { int x; };
2856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857 static char *e (p, i)
2858      char **p;
2859      int i;
2860 {
2861   return p[i];
2862 }
2863 static char *f (char * (*g) (char **, int), char **p, ...)
2864 {
2865   char *s;
2866   va_list v;
2867   va_start (v,p);
2868   s = g (p, va_arg (v,int));
2869   va_end (v);
2870   return s;
2871 }
2872
2873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2874    function prototypes and stuff, but not '\xHH' hex character constants.
2875    These don't provoke an error unfortunately, instead are silently treated
2876    as 'x'.  The following induces an error, until -std1 is added to get
2877    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2878    array size at least.  It's necessary to write '\x00'==0 to get something
2879    that's true only with -std1.  */
2880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 int argc;
2887 char **argv;
2888 int
2889 main ()
2890 {
2891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX                   -qlanglvl=ansi
2899 # Ultrix and OSF/1      -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2902 # SVR4                  -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904 do
2905   CC="$ac_save_CC $ac_arg"
2906   rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; } &&
2921          { ac_try='test -s conftest.$ac_objext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_prog_cc_stdc=$ac_arg
2928 break
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 fi
2934 rm -f conftest.err conftest.$ac_objext
2935 done
2936 rm -f conftest.$ac_ext conftest.$ac_objext
2937 CC=$ac_save_CC
2938
2939 fi
2940
2941 case "x$ac_cv_prog_cc_stdc" in
2942   x|xno)
2943     echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6 ;;
2945   *)
2946     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948     CC="$CC $ac_cv_prog_cc_stdc" ;;
2949 esac
2950
2951 # Some people use a C++ compiler to compile C.  Since we use `exit',
2952 # in C++ we need to declare it.  In case someone uses the same compiler
2953 # for both compiling C and C++ we need to have the C++ compiler decide
2954 # the declaration of exit, since it's the most demanding environment.
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #ifndef __cplusplus
2957   choke me
2958 #endif
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962   (eval $ac_compile) 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; } &&
2975          { ac_try='test -s conftest.$ac_objext'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   for ac_declaration in \
2982    '' \
2983    'extern "C" void std::exit (int) throw (); using std::exit;' \
2984    'extern "C" void std::exit (int); using std::exit;' \
2985    'extern "C" void exit (int) throw ();' \
2986    'extern "C" void exit (int);' \
2987    'void exit (int);'
2988 do
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 $ac_declaration
2996 #include <stdlib.h>
2997 int
2998 main ()
2999 {
3000 exit (42);
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007   (eval $ac_compile) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } &&
3014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016   (eval $ac_try) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; } &&
3020          { ac_try='test -s conftest.$ac_objext'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; }; then
3026   :
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 continue
3032 fi
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034   cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040 $ac_declaration
3041 int
3042 main ()
3043 {
3044 exit (42);
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051   (eval $ac_compile) 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; } &&
3064          { ac_try='test -s conftest.$ac_objext'
3065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066   (eval $ac_try) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; }; then
3070   break
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075 fi
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3077 done
3078 rm -f conftest*
3079 if test -n "$ac_declaration"; then
3080   echo '#ifdef __cplusplus' >>confdefs.h
3081   echo $ac_declaration      >>confdefs.h
3082   echo '#endif'             >>confdefs.h
3083 fi
3084
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 fi
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
3097 depcc="$CC"   am_compiler_list=
3098
3099 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3100 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3105   # We make a subdir and do the tests there.  Otherwise we can end up
3106   # making bogus files that we don't know about and never remove.  For
3107   # instance it was reported that on HP-UX the gcc test will end up
3108   # making a dummy file named `D' -- because `-MD' means `put the output
3109   # in D'.
3110   mkdir conftest.dir
3111   # Copy depcomp to subdir because otherwise we won't find it if we're
3112   # using a relative directory.
3113   cp "$am_depcomp" conftest.dir
3114   cd conftest.dir
3115   # We will build objects and dependencies in a subdirectory because
3116   # it helps to detect inapplicable dependency modes.  For instance
3117   # both Tru64's cc and ICC support -MD to output dependencies as a
3118   # side effect of compilation, but ICC will put the dependencies in
3119   # the current directory while Tru64 will put them in the object
3120   # directory.
3121   mkdir sub
3122
3123   am_cv_CC_dependencies_compiler_type=none
3124   if test "$am_compiler_list" = ""; then
3125      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3126   fi
3127   for depmode in $am_compiler_list; do
3128     # Setup a source with many dependencies, because some compilers
3129     # like to wrap large dependency lists on column 80 (with \), and
3130     # we should not choose a depcomp mode which is confused by this.
3131     #
3132     # We need to recreate these files for each test, as the compiler may
3133     # overwrite some of them when testing with obscure command lines.
3134     # This happens at least with the AIX C compiler.
3135     : > sub/conftest.c
3136     for i in 1 2 3 4 5 6; do
3137       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3138       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3139       # Solaris 8's {/usr,}/bin/sh.
3140       touch sub/conftst$i.h
3141     done
3142     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3143
3144     case $depmode in
3145     nosideeffect)
3146       # after this tag, mechanisms are not by side-effect, so they'll
3147       # only be used when explicitly requested
3148       if test "x$enable_dependency_tracking" = xyes; then
3149         continue
3150       else
3151         break
3152       fi
3153       ;;
3154     none) break ;;
3155     esac
3156     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3157     # mode.  It turns out that the SunPro C++ compiler does not properly
3158     # handle `-M -o', and we need to detect this.
3159     if depmode=$depmode \
3160        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3161        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3162        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3163          >/dev/null 2>conftest.err &&
3164        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3165        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3166        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3167       # icc doesn't choke on unknown options, it will just issue warnings
3168       # or remarks (even with -Werror).  So we grep stderr for any message
3169       # that says an option was ignored or not supported.
3170       # When given -MP, icc 7.0 and 7.1 complain thusly:
3171       #   icc: Command line warning: ignoring option '-M'; no argument required
3172       # The diagnosis changed in icc 8.0:
3173       #   icc: Command line remark: option '-MP' not supported
3174       if (grep 'ignoring option' conftest.err ||
3175           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3176         am_cv_CC_dependencies_compiler_type=$depmode
3177         break
3178       fi
3179     fi
3180   done
3181
3182   cd ..
3183   rm -rf conftest.dir
3184 else
3185   am_cv_CC_dependencies_compiler_type=none
3186 fi
3187
3188 fi
3189 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3190 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3192
3193
3194
3195 if
3196   test "x$enable_dependency_tracking" != xno \
3197   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3198   am__fastdepCC_TRUE=
3199   am__fastdepCC_FALSE='#'
3200 else
3201   am__fastdepCC_TRUE='#'
3202   am__fastdepCC_FALSE=
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3207 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3208 if test "${lt_cv_path_SED+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   # Loop through the user's path and test for sed and gsed.
3212 # Then use that list of sed's as ones to test for truncation.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for lt_ac_prog in sed gsed; do
3219     for ac_exec_ext in '' $ac_executable_extensions; do
3220       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3221         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3222       fi
3223     done
3224   done
3225 done
3226 lt_ac_max=0
3227 lt_ac_count=0
3228 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3229 # along with /bin/sed that truncates output.
3230 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3231   test ! -f $lt_ac_sed && break
3232   cat /dev/null > conftest.in
3233   lt_ac_count=0
3234   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3235   # Check for GNU sed and select it if it is found.
3236   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3237     lt_cv_path_SED=$lt_ac_sed
3238     break
3239   fi
3240   while true; do
3241     cat conftest.in conftest.in >conftest.tmp
3242     mv conftest.tmp conftest.in
3243     cp conftest.in conftest.nl
3244     echo >>conftest.nl
3245     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3246     cmp -s conftest.out conftest.nl || break
3247     # 10000 chars as input seems more than enough
3248     test $lt_ac_count -gt 10 && break
3249     lt_ac_count=`expr $lt_ac_count + 1`
3250     if test $lt_ac_count -gt $lt_ac_max; then
3251       lt_ac_max=$lt_ac_count
3252       lt_cv_path_SED=$lt_ac_sed
3253     fi
3254   done
3255 done
3256 SED=$lt_cv_path_SED
3257
3258 fi
3259
3260 echo "$as_me:$LINENO: result: $SED" >&5
3261 echo "${ECHO_T}$SED" >&6
3262
3263 echo "$as_me:$LINENO: checking for egrep" >&5
3264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3265 if test "${ac_cv_prog_egrep+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3269     then ac_cv_prog_egrep='grep -E'
3270     else ac_cv_prog_egrep='egrep'
3271     fi
3272 fi
3273 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3274 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3275  EGREP=$ac_cv_prog_egrep
3276
3277
3278
3279 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3280 if test "${with_gnu_ld+set}" = set; then
3281   withval="$with_gnu_ld"
3282   test "$withval" = no || with_gnu_ld=yes
3283 else
3284   with_gnu_ld=no
3285 fi;
3286 ac_prog=ld
3287 if test "$GCC" = yes; then
3288   # Check if gcc -print-prog-name=ld gives a path.
3289   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3290 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3291   case $host in
3292   *-*-mingw*)
3293     # gcc leaves a trailing carriage return which upsets mingw
3294     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3295   *)
3296     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3297   esac
3298   case $ac_prog in
3299     # Accept absolute paths.
3300     [\\/]* | ?:[\\/]*)
3301       re_direlt='/[^/][^/]*/\.\./'
3302       # Canonicalize the pathname of ld
3303       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3304       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3305         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3306       done
3307       test -z "$LD" && LD="$ac_prog"
3308       ;;
3309   "")
3310     # If it fails, then pretend we aren't using GCC.
3311     ac_prog=ld
3312     ;;
3313   *)
3314     # If it is relative, then search for the first ld in PATH.
3315     with_gnu_ld=unknown
3316     ;;
3317   esac
3318 elif test "$with_gnu_ld" = yes; then
3319   echo "$as_me:$LINENO: checking for GNU ld" >&5
3320 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3321 else
3322   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3323 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3324 fi
3325 if test "${lt_cv_path_LD+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   if test -z "$LD"; then
3329   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3330   for ac_dir in $PATH; do
3331     IFS="$lt_save_ifs"
3332     test -z "$ac_dir" && ac_dir=.
3333     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3334       lt_cv_path_LD="$ac_dir/$ac_prog"
3335       # Check to see if the program is GNU ld.  I'd rather use --version,
3336       # but apparently some GNU ld's only accept -v.
3337       # Break only if it was the GNU/non-GNU ld that we prefer.
3338       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3339       *GNU* | *'with BFD'*)
3340         test "$with_gnu_ld" != no && break
3341         ;;
3342       *)
3343         test "$with_gnu_ld" != yes && break
3344         ;;
3345       esac
3346     fi
3347   done
3348   IFS="$lt_save_ifs"
3349 else
3350   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3351 fi
3352 fi
3353
3354 LD="$lt_cv_path_LD"
3355 if test -n "$LD"; then
3356   echo "$as_me:$LINENO: result: $LD" >&5
3357 echo "${ECHO_T}$LD" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3363 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3364    { (exit 1); exit 1; }; }
3365 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3366 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3367 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3371 case `$LD -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373   lt_cv_prog_gnu_ld=yes
3374   ;;
3375 *)
3376   lt_cv_prog_gnu_ld=no
3377   ;;
3378 esac
3379 fi
3380 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3381 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3382 with_gnu_ld=$lt_cv_prog_gnu_ld
3383
3384
3385 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3386 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3387 if test "${lt_cv_ld_reload_flag+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   lt_cv_ld_reload_flag='-r'
3391 fi
3392 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3393 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3394 reload_flag=$lt_cv_ld_reload_flag
3395 case $reload_flag in
3396 "" | " "*) ;;
3397 *) reload_flag=" $reload_flag" ;;
3398 esac
3399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3400
3401 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3403 if test "${lt_cv_path_NM+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   if test -n "$NM"; then
3407   # Let the user override the test.
3408   lt_cv_path_NM="$NM"
3409 else
3410   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3412     IFS="$lt_save_ifs"
3413     test -z "$ac_dir" && ac_dir=.
3414     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3415     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3416       # Check to see if the nm accepts a BSD-compat flag.
3417       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3418       #   nm: unknown option "B" ignored
3419       # Tru64's nm complains that /dev/null is an invalid object file
3420       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3421       */dev/null* | *'Invalid file or object type'*)
3422         lt_cv_path_NM="$tmp_nm -B"
3423         break
3424         ;;
3425       *)
3426         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3427         */dev/null*)
3428           lt_cv_path_NM="$tmp_nm -p"
3429           break
3430           ;;
3431         *)
3432           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3433           continue # so that we can try to find one that supports BSD flags
3434           ;;
3435         esac
3436       esac
3437     fi
3438   done
3439   IFS="$lt_save_ifs"
3440   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3441 fi
3442 fi
3443 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3444 echo "${ECHO_T}$lt_cv_path_NM" >&6
3445 NM="$lt_cv_path_NM"
3446
3447 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3449 LN_S=$as_ln_s
3450 if test "$LN_S" = "ln -s"; then
3451   echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455 echo "${ECHO_T}no, using $LN_S" >&6
3456 fi
3457
3458 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3459 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3460 if test "${lt_cv_deplibs_check_method+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   lt_cv_file_magic_cmd='$MAGIC_CMD'
3464 lt_cv_file_magic_test_file=
3465 lt_cv_deplibs_check_method='unknown'
3466 # Need to set the preceding variable on all platforms that support
3467 # interlibrary dependencies.
3468 # 'none' -- dependencies not supported.
3469 # `unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [[regex]]' -- check by looking for files in library path
3473 # which responds to the $file_magic_cmd with a given extended regex.
3474 # If you have `file' or equivalent on your system and you're not sure
3475 # whether `pass_all' will *always* work, you probably want this one.
3476
3477 case $host_os in
3478 aix4* | aix5*)
3479   lt_cv_deplibs_check_method=pass_all
3480   ;;
3481
3482 beos*)
3483   lt_cv_deplibs_check_method=pass_all
3484   ;;
3485
3486 bsdi4*)
3487   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488   lt_cv_file_magic_cmd='/usr/bin/file -L'
3489   lt_cv_file_magic_test_file=/shlib/libc.so
3490   ;;
3491
3492 cygwin*)
3493   # func_win32_libid is a shell function defined in ltmain.sh
3494   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3495   lt_cv_file_magic_cmd='func_win32_libid'
3496   ;;
3497
3498 mingw* | pw32*)
3499   # Base MSYS/MinGW do not provide the 'file' command needed by
3500   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3501   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3502   lt_cv_file_magic_cmd='$OBJDUMP -f'
3503   ;;
3504
3505 darwin* | rhapsody*)
3506   lt_cv_deplibs_check_method=pass_all
3507   ;;
3508
3509 freebsd* | kfreebsd*-gnu)
3510   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3511     case $host_cpu in
3512     i*86 )
3513       # Not sure whether the presence of OpenBSD here was a mistake.
3514       # Let's accept both of them until this is cleared up.
3515       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3516       lt_cv_file_magic_cmd=/usr/bin/file
3517       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3518       ;;
3519     esac
3520   else
3521     lt_cv_deplibs_check_method=pass_all
3522   fi
3523   ;;
3524
3525 gnu*)
3526   lt_cv_deplibs_check_method=pass_all
3527   ;;
3528
3529 hpux10.20* | hpux11*)
3530   lt_cv_file_magic_cmd=/usr/bin/file
3531   case "$host_cpu" in
3532   ia64*)
3533     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3534     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3535     ;;
3536   hppa*64*)
3537     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3538     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3539     ;;
3540   *)
3541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3542     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3543     ;;
3544   esac
3545   ;;
3546
3547 irix5* | irix6* | nonstopux*)
3548   case $LD in
3549   *-32|*"-32 ") libmagic=32-bit;;
3550   *-n32|*"-n32 ") libmagic=N32;;
3551   *-64|*"-64 ") libmagic=64-bit;;
3552   *) libmagic=never-match;;
3553   esac
3554   lt_cv_deplibs_check_method=pass_all
3555   ;;
3556
3557 # This must be Linux ELF.
3558 linux*)
3559   lt_cv_deplibs_check_method=pass_all
3560   ;;
3561
3562 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3563   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3565   else
3566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3567   fi
3568   ;;
3569
3570 newos6*)
3571   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3572   lt_cv_file_magic_cmd=/usr/bin/file
3573   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3574   ;;
3575
3576 nto-qnx*)
3577   lt_cv_deplibs_check_method=unknown
3578   ;;
3579
3580 openbsd*)
3581   lt_cv_file_magic_cmd=/usr/bin/file
3582   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3583   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3584     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3585   else
3586     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3587   fi
3588   ;;
3589
3590 osf3* | osf4* | osf5*)
3591   lt_cv_deplibs_check_method=pass_all
3592   ;;
3593
3594 sco3.2v5*)
3595   lt_cv_deplibs_check_method=pass_all
3596   ;;
3597
3598 solaris*)
3599   lt_cv_deplibs_check_method=pass_all
3600   ;;
3601
3602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3603   case $host_vendor in
3604   motorola)
3605     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]'
3606     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3607     ;;
3608   ncr)
3609     lt_cv_deplibs_check_method=pass_all
3610     ;;
3611   sequent)
3612     lt_cv_file_magic_cmd='/bin/file'
3613     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3614     ;;
3615   sni)
3616     lt_cv_file_magic_cmd='/bin/file'
3617     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3618     lt_cv_file_magic_test_file=/lib/libc.so
3619     ;;
3620   siemens)
3621     lt_cv_deplibs_check_method=pass_all
3622     ;;
3623   esac
3624   ;;
3625
3626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3627   lt_cv_deplibs_check_method=pass_all
3628   ;;
3629 esac
3630
3631 fi
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3637
3638
3639
3640
3641 # If no C compiler was specified, use CC.
3642 LTCC=${LTCC-"$CC"}
3643
3644 # Allow CC to be a program name with arguments.
3645 compiler=$CC
3646
3647
3648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3649 if test "${enable_libtool_lock+set}" = set; then
3650   enableval="$enable_libtool_lock"
3651
3652 fi;
3653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3654
3655 # Some flags need to be propagated to the compiler or linker for good
3656 # libtool support.
3657 case $host in
3658 ia64-*-hpux*)
3659   # Find out which ABI we are using.
3660   echo 'int i;' > conftest.$ac_ext
3661   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; then
3666     case `/usr/bin/file conftest.$ac_objext` in
3667     *ELF-32*)
3668       HPUX_IA64_MODE="32"
3669       ;;
3670     *ELF-64*)
3671       HPUX_IA64_MODE="64"
3672       ;;
3673     esac
3674   fi
3675   rm -rf conftest*
3676   ;;
3677 *-*-irix6*)
3678   # Find out which ABI we are using.
3679   echo '#line 3679 "configure"' > conftest.$ac_ext
3680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681   (eval $ac_compile) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; then
3685    if test "$lt_cv_prog_gnu_ld" = yes; then
3686     case `/usr/bin/file conftest.$ac_objext` in
3687     *32-bit*)
3688       LD="${LD-ld} -melf32bsmip"
3689       ;;
3690     *N32*)
3691       LD="${LD-ld} -melf32bmipn32"
3692       ;;
3693     *64-bit*)
3694       LD="${LD-ld} -melf64bmip"
3695       ;;
3696     esac
3697    else
3698     case `/usr/bin/file conftest.$ac_objext` in
3699     *32-bit*)
3700       LD="${LD-ld} -32"
3701       ;;
3702     *N32*)
3703       LD="${LD-ld} -n32"
3704       ;;
3705     *64-bit*)
3706       LD="${LD-ld} -64"
3707       ;;
3708     esac
3709    fi
3710   fi
3711   rm -rf conftest*
3712   ;;
3713
3714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3715   # Find out which ABI we are using.
3716   echo 'int i;' > conftest.$ac_ext
3717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718   (eval $ac_compile) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; then
3722     case "`/usr/bin/file conftest.o`" in
3723     *32-bit*)
3724       case $host in
3725         x86_64-*linux*)
3726           LD="${LD-ld} -m elf_i386"
3727           ;;
3728         ppc64-*linux*|powerpc64-*linux*)
3729           LD="${LD-ld} -m elf32ppclinux"
3730           ;;
3731         s390x-*linux*)
3732           LD="${LD-ld} -m elf_s390"
3733           ;;
3734         sparc64-*linux*)
3735           LD="${LD-ld} -m elf32_sparc"
3736           ;;
3737       esac
3738       ;;
3739     *64-bit*)
3740       case $host in
3741         x86_64-*linux*)
3742           LD="${LD-ld} -m elf_x86_64"
3743           ;;
3744         ppc*-*linux*|powerpc*-*linux*)
3745           LD="${LD-ld} -m elf64ppc"
3746           ;;
3747         s390*-*linux*)
3748           LD="${LD-ld} -m elf64_s390"
3749           ;;
3750         sparc*-*linux*)
3751           LD="${LD-ld} -m elf64_sparc"
3752           ;;
3753       esac
3754       ;;
3755     esac
3756   fi
3757   rm -rf conftest*
3758   ;;
3759
3760 *-*-sco3.2v5*)
3761   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3762   SAVE_CFLAGS="$CFLAGS"
3763   CFLAGS="$CFLAGS -belf"
3764   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3766 if test "${lt_cv_cc_needs_belf+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775      cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792   (eval $ac_link) 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } &&
3799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801   (eval $ac_try) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }; } &&
3805          { ac_try='test -s conftest$ac_exeext'
3806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; }; then
3811   lt_cv_cc_needs_belf=yes
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 lt_cv_cc_needs_belf=no
3817 fi
3818 rm -f conftest.err conftest.$ac_objext \
3819       conftest$ac_exeext conftest.$ac_ext
3820      ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
3826 fi
3827 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3828 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3829   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3830     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3831     CFLAGS="$SAVE_CFLAGS"
3832   fi
3833   ;;
3834
3835 esac
3836
3837 need_locks="$enable_libtool_lock"
3838
3839
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3846 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3847 # On Suns, sometimes $CPP names a directory.
3848 if test -n "$CPP" && test -d "$CPP"; then
3849   CPP=
3850 fi
3851 if test -z "$CPP"; then
3852   if test "${ac_cv_prog_CPP+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855       # Double quotes because CPP needs to be expanded
3856     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3857     do
3858       ac_preproc_ok=false
3859 for ac_c_preproc_warn_flag in '' yes
3860 do
3861   # Use a header file that comes with gcc, so configuring glibc
3862   # with a fresh cross-compiler works.
3863   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864   # <limits.h> exists even on freestanding compilers.
3865   # On the NeXT, cc -E runs the code through the compiler's parser,
3866   # not just through cpp. "Syntax error" is here to catch this case.
3867   cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873 #ifdef __STDC__
3874 # include <limits.h>
3875 #else
3876 # include <assert.h>
3877 #endif
3878                      Syntax error
3879 _ACEOF
3880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } >/dev/null; then
3888   if test -s conftest.err; then
3889     ac_cpp_err=$ac_c_preproc_warn_flag
3890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3891   else
3892     ac_cpp_err=
3893   fi
3894 else
3895   ac_cpp_err=yes
3896 fi
3897 if test -z "$ac_cpp_err"; then
3898   :
3899 else
3900   echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3902
3903   # Broken: fails on valid input.
3904 continue
3905 fi
3906 rm -f conftest.err conftest.$ac_ext
3907
3908   # OK, works on sane cases.  Now check whether non-existent headers
3909   # can be detected and how.
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916 #include <ac_nonexistent.h>
3917 _ACEOF
3918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } >/dev/null; then
3926   if test -s conftest.err; then
3927     ac_cpp_err=$ac_c_preproc_warn_flag
3928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3929   else
3930     ac_cpp_err=
3931   fi
3932 else
3933   ac_cpp_err=yes
3934 fi
3935 if test -z "$ac_cpp_err"; then
3936   # Broken: success on invalid input.
3937 continue
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942   # Passes both tests.
3943 ac_preproc_ok=:
3944 break
3945 fi
3946 rm -f conftest.err conftest.$ac_ext
3947
3948 done
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.err conftest.$ac_ext
3951 if $ac_preproc_ok; then
3952   break
3953 fi
3954
3955     done
3956     ac_cv_prog_CPP=$CPP
3957
3958 fi
3959   CPP=$ac_cv_prog_CPP
3960 else
3961   ac_cv_prog_CPP=$CPP
3962 fi
3963 echo "$as_me:$LINENO: result: $CPP" >&5
3964 echo "${ECHO_T}$CPP" >&6
3965 ac_preproc_ok=false
3966 for ac_c_preproc_warn_flag in '' yes
3967 do
3968   # Use a header file that comes with gcc, so configuring glibc
3969   # with a fresh cross-compiler works.
3970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971   # <limits.h> exists even on freestanding compilers.
3972   # On the NeXT, cc -E runs the code through the compiler's parser,
3973   # not just through cpp. "Syntax error" is here to catch this case.
3974   cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980 #ifdef __STDC__
3981 # include <limits.h>
3982 #else
3983 # include <assert.h>
3984 #endif
3985                      Syntax error
3986 _ACEOF
3987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } >/dev/null; then
3995   if test -s conftest.err; then
3996     ac_cpp_err=$ac_c_preproc_warn_flag
3997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3998   else
3999     ac_cpp_err=
4000   fi
4001 else
4002   ac_cpp_err=yes
4003 fi
4004 if test -z "$ac_cpp_err"; then
4005   :
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010   # Broken: fails on valid input.
4011 continue
4012 fi
4013 rm -f conftest.err conftest.$ac_ext
4014
4015   # OK, works on sane cases.  Now check whether non-existent headers
4016   # can be detected and how.
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } >/dev/null; then
4033   if test -s conftest.err; then
4034     ac_cpp_err=$ac_c_preproc_warn_flag
4035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4036   else
4037     ac_cpp_err=
4038   fi
4039 else
4040   ac_cpp_err=yes
4041 fi
4042 if test -z "$ac_cpp_err"; then
4043   # Broken: success on invalid input.
4044 continue
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049   # Passes both tests.
4050 ac_preproc_ok=:
4051 break
4052 fi
4053 rm -f conftest.err conftest.$ac_ext
4054
4055 done
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then
4059   :
4060 else
4061   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details." >&5
4063 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&2;}
4065    { (exit 1); exit 1; }; }
4066 fi
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4076 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4077 if test "${ac_cv_header_stdc+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086 #include <stdlib.h>
4087 #include <stdarg.h>
4088 #include <string.h>
4089 #include <float.h>
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; } &&
4114          { ac_try='test -s conftest.$ac_objext'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; }; then
4120   ac_cv_header_stdc=yes
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 ac_cv_header_stdc=no
4126 fi
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128
4129 if test $ac_cv_header_stdc = yes; then
4130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <string.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141   $EGREP "memchr" >/dev/null 2>&1; then
4142   :
4143 else
4144   ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152   cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #include <stdlib.h>
4159
4160 _ACEOF
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162   $EGREP "free" >/dev/null 2>&1; then
4163   :
4164 else
4165   ac_cv_header_stdc=no
4166 fi
4167 rm -f conftest*
4168
4169 fi
4170
4171 if test $ac_cv_header_stdc = yes; then
4172   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173   if test "$cross_compiling" = yes; then
4174   :
4175 else
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 #include <ctype.h>
4183 #if ((' ' & 0x0FF) == 0x020)
4184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4186 #else
4187 # define ISLOWER(c) \
4188                    (('a' <= (c) && (c) <= 'i') \
4189                      || ('j' <= (c) && (c) <= 'r') \
4190                      || ('s' <= (c) && (c) <= 'z'))
4191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4192 #endif
4193
4194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4195 int
4196 main ()
4197 {
4198   int i;
4199   for (i = 0; i < 256; i++)
4200     if (XOR (islower (i), ISLOWER (i))
4201         || toupper (i) != TOUPPER (i))
4202       exit(2);
4203   exit (0);
4204 }
4205 _ACEOF
4206 rm -f conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208   (eval $ac_link) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   :
4218 else
4219   echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ( exit $ac_status )
4224 ac_cv_header_stdc=no
4225 fi
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4227 fi
4228 fi
4229 fi
4230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4232 if test $ac_cv_header_stdc = yes; then
4233
4234 cat >>confdefs.h <<\_ACEOF
4235 #define STDC_HEADERS 1
4236 _ACEOF
4237
4238 fi
4239
4240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4251                   inttypes.h stdint.h unistd.h
4252 do
4253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4254 echo "$as_me:$LINENO: checking for $ac_header" >&5
4255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265 $ac_includes_default
4266
4267 #include <$ac_header>
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>conftest.er1
4272   ac_status=$?
4273   grep -v '^ *+' conftest.er1 >conftest.err
4274   rm -f conftest.er1
4275   cat conftest.err >&5
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } &&
4278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; } &&
4284          { ac_try='test -s conftest.$ac_objext'
4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   eval "$as_ac_Header=yes"
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 eval "$as_ac_Header=no"
4296 fi
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302   cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310
4311
4312 for ac_header in dlfcn.h
4313 do
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316   echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 fi
4321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4323 else
4324   # Is the header compilable?
4325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 $ac_includes_default
4334 #include <$ac_header>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338   (eval $ac_compile) 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347   (eval $ac_try) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }; } &&
4351          { ac_try='test -s conftest.$ac_objext'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; }; then
4357   ac_header_compiler=yes
4358 else
4359   echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ac_header_compiler=no
4363 fi
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4366 echo "${ECHO_T}$ac_header_compiler" >&6
4367
4368 # Is the header present?
4369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <$ac_header>
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } >/dev/null; then
4387   if test -s conftest.err; then
4388     ac_cpp_err=$ac_c_preproc_warn_flag
4389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390   else
4391     ac_cpp_err=
4392   fi
4393 else
4394   ac_cpp_err=yes
4395 fi
4396 if test -z "$ac_cpp_err"; then
4397   ac_header_preproc=yes
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   ac_header_preproc=no
4403 fi
4404 rm -f conftest.err conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4407
4408 # So?  What about this header?
4409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4410   yes:no: )
4411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4415     ac_header_preproc=yes
4416     ;;
4417   no:yes:* )
4418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4430     (
4431       cat <<\_ASBOX
4432 ## ----------------------------- ##
4433 ## Report this to dn.tlp@gmx.net ##
4434 ## ----------------------------- ##
4435 _ASBOX
4436     ) |
4437       sed "s/^/$as_me: WARNING:     /" >&2
4438     ;;
4439 esac
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   eval "$as_ac_Header=\$ac_header_preproc"
4446 fi
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4449
4450 fi
4451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452   cat >>confdefs.h <<_ACEOF
4453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 _ACEOF
4455
4456 fi
4457
4458 done
4459
4460 ac_ext=cc
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465 if test -n "$ac_tool_prefix"; then
4466   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4467   do
4468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_CXX+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$CXX"; then
4476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492 fi
4493 fi
4494 CXX=$ac_cv_prog_CXX
4495 if test -n "$CXX"; then
4496   echo "$as_me:$LINENO: result: $CXX" >&5
4497 echo "${ECHO_T}$CXX" >&6
4498 else
4499   echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501 fi
4502
4503     test -n "$CXX" && break
4504   done
4505 fi
4506 if test -z "$CXX"; then
4507   ac_ct_CXX=$CXX
4508   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4509 do
4510   # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   if test -n "$ac_ct_CXX"; then
4518   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_prog_ac_ct_CXX="$ac_prog"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534 fi
4535 fi
4536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4537 if test -n "$ac_ct_CXX"; then
4538   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4539 echo "${ECHO_T}$ac_ct_CXX" >&6
4540 else
4541   echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4543 fi
4544
4545   test -n "$ac_ct_CXX" && break
4546 done
4547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4548
4549   CXX=$ac_ct_CXX
4550 fi
4551
4552
4553 # Provide some information about the compiler.
4554 echo "$as_me:$LINENO:" \
4555      "checking for C++ compiler version" >&5
4556 ac_compiler=`set X $ac_compile; echo $2`
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4558   (eval $ac_compiler --version </dev/null >&5) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }
4562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4563   (eval $ac_compiler -v </dev/null >&5) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }
4567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4568   (eval $ac_compiler -V </dev/null >&5) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }
4572
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588 #ifndef __GNUC__
4589        choke me
4590 #endif
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_compiler_gnu=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_compiler_gnu=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4626
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4630 GXX=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CXXFLAGS=${CXXFLAGS+set}
4632 ac_save_CXXFLAGS=$CXXFLAGS
4633 CXXFLAGS="-g"
4634 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4635 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cxx_g+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; } &&
4669          { ac_try='test -s conftest.$ac_objext'
4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671   (eval $ac_try) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   ac_cv_prog_cxx_g=yes
4676 else
4677   echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 ac_cv_prog_cxx_g=no
4681 fi
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4685 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4686 if test "$ac_test_CXXFLAGS" = set; then
4687   CXXFLAGS=$ac_save_CXXFLAGS
4688 elif test $ac_cv_prog_cxx_g = yes; then
4689   if test "$GXX" = yes; then
4690     CXXFLAGS="-g -O2"
4691   else
4692     CXXFLAGS="-g"
4693   fi
4694 else
4695   if test "$GXX" = yes; then
4696     CXXFLAGS="-O2"
4697   else
4698     CXXFLAGS=
4699   fi
4700 fi
4701 for ac_declaration in \
4702    '' \
4703    'extern "C" void std::exit (int) throw (); using std::exit;' \
4704    'extern "C" void std::exit (int); using std::exit;' \
4705    'extern "C" void exit (int) throw ();' \
4706    'extern "C" void exit (int);' \
4707    'void exit (int);'
4708 do
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 $ac_declaration
4716 #include <stdlib.h>
4717 int
4718 main ()
4719 {
4720 exit (42);
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727   (eval $ac_compile) 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } &&
4734          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest.$ac_objext'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   :
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 continue
4752 fi
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 $ac_declaration
4761 int
4762 main ()
4763 {
4764 exit (42);
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; } &&
4784          { ac_try='test -s conftest.$ac_objext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   break
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 fi
4796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797 done
4798 rm -f conftest*
4799 if test -n "$ac_declaration"; then
4800   echo '#ifdef __cplusplus' >>confdefs.h
4801   echo $ac_declaration      >>confdefs.h
4802   echo '#endif'             >>confdefs.h
4803 fi
4804
4805 ac_ext=cc
4806 ac_cpp='$CXXCPP $CPPFLAGS'
4807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4810
4811 depcc="$CXX"  am_compiler_list=
4812
4813 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4814 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4815 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819   # We make a subdir and do the tests there.  Otherwise we can end up
4820   # making bogus files that we don't know about and never remove.  For
4821   # instance it was reported that on HP-UX the gcc test will end up
4822   # making a dummy file named `D' -- because `-MD' means `put the output
4823   # in D'.
4824   mkdir conftest.dir
4825   # Copy depcomp to subdir because otherwise we won't find it if we're
4826   # using a relative directory.
4827   cp "$am_depcomp" conftest.dir
4828   cd conftest.dir
4829   # We will build objects and dependencies in a subdirectory because
4830   # it helps to detect inapplicable dependency modes.  For instance
4831   # both Tru64's cc and ICC support -MD to output dependencies as a
4832   # side effect of compilation, but ICC will put the dependencies in
4833   # the current directory while Tru64 will put them in the object
4834   # directory.
4835   mkdir sub
4836
4837   am_cv_CXX_dependencies_compiler_type=none
4838   if test "$am_compiler_list" = ""; then
4839      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4840   fi
4841   for depmode in $am_compiler_list; do
4842     # Setup a source with many dependencies, because some compilers
4843     # like to wrap large dependency lists on column 80 (with \), and
4844     # we should not choose a depcomp mode which is confused by this.
4845     #
4846     # We need to recreate these files for each test, as the compiler may
4847     # overwrite some of them when testing with obscure command lines.
4848     # This happens at least with the AIX C compiler.
4849     : > sub/conftest.c
4850     for i in 1 2 3 4 5 6; do
4851       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4853       # Solaris 8's {/usr,}/bin/sh.
4854       touch sub/conftst$i.h
4855     done
4856     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4857
4858     case $depmode in
4859     nosideeffect)
4860       # after this tag, mechanisms are not by side-effect, so they'll
4861       # only be used when explicitly requested
4862       if test "x$enable_dependency_tracking" = xyes; then
4863         continue
4864       else
4865         break
4866       fi
4867       ;;
4868     none) break ;;
4869     esac
4870     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4871     # mode.  It turns out that the SunPro C++ compiler does not properly
4872     # handle `-M -o', and we need to detect this.
4873     if depmode=$depmode \
4874        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4875        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4877          >/dev/null 2>conftest.err &&
4878        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4880        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881       # icc doesn't choke on unknown options, it will just issue warnings
4882       # or remarks (even with -Werror).  So we grep stderr for any message
4883       # that says an option was ignored or not supported.
4884       # When given -MP, icc 7.0 and 7.1 complain thusly:
4885       #   icc: Command line warning: ignoring option '-M'; no argument required
4886       # The diagnosis changed in icc 8.0:
4887       #   icc: Command line remark: option '-MP' not supported
4888       if (grep 'ignoring option' conftest.err ||
4889           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890         am_cv_CXX_dependencies_compiler_type=$depmode
4891         break
4892       fi
4893     fi
4894   done
4895
4896   cd ..
4897   rm -rf conftest.dir
4898 else
4899   am_cv_CXX_dependencies_compiler_type=none
4900 fi
4901
4902 fi
4903 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4904 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4905 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4906
4907
4908
4909 if
4910   test "x$enable_dependency_tracking" != xno \
4911   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4912   am__fastdepCXX_TRUE=
4913   am__fastdepCXX_FALSE='#'
4914 else
4915   am__fastdepCXX_TRUE='#'
4916   am__fastdepCXX_FALSE=
4917 fi
4918
4919
4920 ac_ext=cc
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927 if test -z "$CXXCPP"; then
4928   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931       # Double quotes because CXXCPP needs to be expanded
4932     for CXXCPP in "$CXX -E" "/lib/cpp"
4933     do
4934       ac_preproc_ok=false
4935 for ac_cxx_preproc_warn_flag in '' yes
4936 do
4937   # Use a header file that comes with gcc, so configuring glibc
4938   # with a fresh cross-compiler works.
4939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940   # <limits.h> exists even on freestanding compilers.
4941   # On the NeXT, cc -E runs the code through the compiler's parser,
4942   # not just through cpp. "Syntax error" is here to catch this case.
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #ifdef __STDC__
4950 # include <limits.h>
4951 #else
4952 # include <assert.h>
4953 #endif
4954                      Syntax error
4955 _ACEOF
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958   ac_status=$?
4959   grep -v '^ *+' conftest.er1 >conftest.err
4960   rm -f conftest.er1
4961   cat conftest.err >&5
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } >/dev/null; then
4964   if test -s conftest.err; then
4965     ac_cpp_err=$ac_cxx_preproc_warn_flag
4966     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4967   else
4968     ac_cpp_err=
4969   fi
4970 else
4971   ac_cpp_err=yes
4972 fi
4973 if test -z "$ac_cpp_err"; then
4974   :
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979   # Broken: fails on valid input.
4980 continue
4981 fi
4982 rm -f conftest.err conftest.$ac_ext
4983
4984   # OK, works on sane cases.  Now check whether non-existent headers
4985   # can be detected and how.
4986   cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <ac_nonexistent.h>
4993 _ACEOF
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } >/dev/null; then
5002   if test -s conftest.err; then
5003     ac_cpp_err=$ac_cxx_preproc_warn_flag
5004     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5005   else
5006     ac_cpp_err=
5007   fi
5008 else
5009   ac_cpp_err=yes
5010 fi
5011 if test -z "$ac_cpp_err"; then
5012   # Broken: success on invalid input.
5013 continue
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018   # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then
5028   break
5029 fi
5030
5031     done
5032     ac_cv_prog_CXXCPP=$CXXCPP
5033
5034 fi
5035   CXXCPP=$ac_cv_prog_CXXCPP
5036 else
5037   ac_cv_prog_CXXCPP=$CXXCPP
5038 fi
5039 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040 echo "${ECHO_T}$CXXCPP" >&6
5041 ac_preproc_ok=false
5042 for ac_cxx_preproc_warn_flag in '' yes
5043 do
5044   # Use a header file that comes with gcc, so configuring glibc
5045   # with a fresh cross-compiler works.
5046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047   # <limits.h> exists even on freestanding compilers.
5048   # On the NeXT, cc -E runs the code through the compiler's parser,
5049   # not just through cpp. "Syntax error" is here to catch this case.
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061                      Syntax error
5062 _ACEOF
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065   ac_status=$?
5066   grep -v '^ *+' conftest.er1 >conftest.err
5067   rm -f conftest.er1
5068   cat conftest.err >&5
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); } >/dev/null; then
5071   if test -s conftest.err; then
5072     ac_cpp_err=$ac_cxx_preproc_warn_flag
5073     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5074   else
5075     ac_cpp_err=
5076   fi
5077 else
5078   ac_cpp_err=yes
5079 fi
5080 if test -z "$ac_cpp_err"; then
5081   :
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086   # Broken: fails on valid input.
5087 continue
5088 fi
5089 rm -f conftest.err conftest.$ac_ext
5090
5091   # OK, works on sane cases.  Now check whether non-existent headers
5092   # can be detected and how.
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 #include <ac_nonexistent.h>
5100 _ACEOF
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null; then
5109   if test -s conftest.err; then
5110     ac_cpp_err=$ac_cxx_preproc_warn_flag
5111     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5112   else
5113     ac_cpp_err=
5114   fi
5115 else
5116   ac_cpp_err=yes
5117 fi
5118 if test -z "$ac_cpp_err"; then
5119   # Broken: success on invalid input.
5120 continue
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125   # Passes both tests.
5126 ac_preproc_ok=:
5127 break
5128 fi
5129 rm -f conftest.err conftest.$ac_ext
5130
5131 done
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then
5135   :
5136 else
5137   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140 See \`config.log' for more details." >&2;}
5141    { (exit 1); exit 1; }; }
5142 fi
5143
5144 ac_ext=cc
5145 ac_cpp='$CXXCPP $CPPFLAGS'
5146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150
5151 ac_ext=f
5152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5157   do
5158     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_F77+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -n "$F77"; then
5166   ac_cv_prog_F77="$F77" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181
5182 fi
5183 fi
5184 F77=$ac_cv_prog_F77
5185 if test -n "$F77"; then
5186   echo "$as_me:$LINENO: result: $F77" >&5
5187 echo "${ECHO_T}$F77" >&6
5188 else
5189   echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193     test -n "$F77" && break
5194   done
5195 fi
5196 if test -z "$F77"; then
5197   ac_ct_F77=$F77
5198   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5199 do
5200   # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$ac_ct_F77"; then
5208   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_ac_ct_F77="$ac_prog"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223
5224 fi
5225 fi
5226 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227 if test -n "$ac_ct_F77"; then
5228   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229 echo "${ECHO_T}$ac_ct_F77" >&6
5230 else
5231   echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5233 fi
5234
5235   test -n "$ac_ct_F77" && break
5236 done
5237
5238   F77=$ac_ct_F77
5239 fi
5240
5241
5242 # Provide some information about the compiler.
5243 echo "$as_me:5243:" \
5244      "checking for Fortran 77 compiler version" >&5
5245 ac_compiler=`set X $ac_compile; echo $2`
5246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247   (eval $ac_compiler --version </dev/null >&5) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }
5251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252   (eval $ac_compiler -v </dev/null >&5) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257   (eval $ac_compiler -V </dev/null >&5) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261 rm -f a.out
5262
5263 # If we don't use `.F' as extension, the preprocessor is not run on the
5264 # input file.  (Note that this only needs to work for GNU compilers.)
5265 ac_save_ext=$ac_ext
5266 ac_ext=F
5267 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5268 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5269 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   cat >conftest.$ac_ext <<_ACEOF
5273       program main
5274 #ifndef __GNUC__
5275        choke me
5276 #endif
5277
5278       end
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282   (eval $ac_compile) 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } &&
5289          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; } &&
5295          { ac_try='test -s conftest.$ac_objext'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   ac_compiler_gnu=yes
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ac_compiler_gnu=no
5307 fi
5308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5310
5311 fi
5312 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5313 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5314 ac_ext=$ac_save_ext
5315 ac_test_FFLAGS=${FFLAGS+set}
5316 ac_save_FFLAGS=$FFLAGS
5317 FFLAGS=
5318 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5319 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5320 if test "${ac_cv_prog_f77_g+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   FFLAGS=-g
5324 cat >conftest.$ac_ext <<_ACEOF
5325       program main
5326
5327       end
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_cv_prog_f77_g=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_cv_prog_f77_g=no
5356 fi
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5361 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5362 if test "$ac_test_FFLAGS" = set; then
5363   FFLAGS=$ac_save_FFLAGS
5364 elif test $ac_cv_prog_f77_g = yes; then
5365   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5366     FFLAGS="-g -O2"
5367   else
5368     FFLAGS="-g"
5369   fi
5370 else
5371   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5372     FFLAGS="-O2"
5373   else
5374     FFLAGS=
5375   fi
5376 fi
5377
5378 G77=`test $ac_compiler_gnu = yes && echo yes`
5379 ac_ext=c
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384
5385
5386
5387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5388
5389 # find the maximum length of command line arguments
5390 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395     i=0
5396   teststring="ABCD"
5397
5398   case $build_os in
5399   msdosdjgpp*)
5400     # On DJGPP, this test can blow up pretty badly due to problems in libc
5401     # (any single argument exceeding 2000 bytes causes a buffer overrun
5402     # during glob expansion).  Even if it were fixed, the result of this
5403     # check would be larger than it should be.
5404     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5405     ;;
5406
5407   gnu*)
5408     # Under GNU Hurd, this test is not required because there is
5409     # no limit to the length of command line arguments.
5410     # Libtool will interpret -1 as no limit whatsoever
5411     lt_cv_sys_max_cmd_len=-1;
5412     ;;
5413
5414   cygwin* | mingw*)
5415     # On Win9x/ME, this test blows up -- it succeeds, but takes
5416     # about 5 minutes as the teststring grows exponentially.
5417     # Worse, since 9x/ME are not pre-emptively multitasking,
5418     # you end up with a "frozen" computer, even though with patience
5419     # the test eventually succeeds (with a max line length of 256k).
5420     # Instead, let's just punt: use the minimum linelength reported by
5421     # all of the supported platforms: 8192 (on NT/2K/XP).
5422     lt_cv_sys_max_cmd_len=8192;
5423     ;;
5424
5425   amigaos*)
5426     # On AmigaOS with pdksh, this test takes hours, literally.
5427     # So we just punt and use a minimum line length of 8192.
5428     lt_cv_sys_max_cmd_len=8192;
5429     ;;
5430
5431  *)
5432     # If test is not a shell built-in, we'll probably end up computing a
5433     # maximum length that is only half of the actual maximum length, but
5434     # we can't tell.
5435     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5436                = "XX$teststring") >/dev/null 2>&1 &&
5437             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5438             lt_cv_sys_max_cmd_len=$new_result &&
5439             test $i != 17 # 1/2 MB should be enough
5440     do
5441       i=`expr $i + 1`
5442       teststring=$teststring$teststring
5443     done
5444     teststring=
5445     # Add a significant safety factor because C++ compilers can tack on massive
5446     # amounts of additional arguments before passing them to the linker.
5447     # It appears as though 1/2 is a usable value.
5448     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5449     ;;
5450   esac
5451
5452 fi
5453
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5456 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5457 else
5458   echo "$as_me:$LINENO: result: none" >&5
5459 echo "${ECHO_T}none" >&6
5460 fi
5461
5462
5463
5464
5465 # Check for command to grab the raw symbol name followed by C symbol from nm.
5466 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5467 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5468 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471
5472 # These are sane defaults that work on at least a few old systems.
5473 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5474
5475 # Character class describing NM global symbol codes.
5476 symcode='[BCDEGRST]'
5477
5478 # Regexp to match symbols that can be accessed directly from C.
5479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5480
5481 # Transform the above into a raw symbol and a C symbol.
5482 symxfrm='\1 \2\3 \3'
5483
5484 # Transform an extracted symbol line into a proper C declaration
5485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5486
5487 # Transform an extracted symbol line into symbol name and symbol address
5488 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'"
5489
5490 # Define system-specific variables.
5491 case $host_os in
5492 aix*)
5493   symcode='[BCDT]'
5494   ;;
5495 cygwin* | mingw* | pw32*)
5496   symcode='[ABCDGISTW]'
5497   ;;
5498 hpux*) # Its linker distinguishes data from code symbols
5499   if test "$host_cpu" = ia64; then
5500     symcode='[ABCDEGRST]'
5501   fi
5502   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5503   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'"
5504   ;;
5505 irix* | nonstopux*)
5506   symcode='[BCDEGRST]'
5507   ;;
5508 osf*)
5509   symcode='[BCDEGQRST]'
5510   ;;
5511 solaris* | sysv5*)
5512   symcode='[BDRT]'
5513   ;;
5514 sysv4)
5515   symcode='[DFNSTU]'
5516   ;;
5517 esac
5518
5519 # Handle CRLF in mingw tool chain
5520 opt_cr=
5521 case $build_os in
5522 mingw*)
5523   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5524   ;;
5525 esac
5526
5527 # If we're using GNU nm, then use its standard symbol codes.
5528 case `$NM -V 2>&1` in
5529 *GNU* | *'with BFD'*)
5530   symcode='[ABCDGIRSTW]' ;;
5531 esac
5532
5533 # Try without a prefix undercore, then with it.
5534 for ac_symprfx in "" "_"; do
5535
5536   # Write the raw and C identifiers.
5537   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5538
5539   # Check to see that the pipe works correctly.
5540   pipe_works=no
5541
5542   rm -f conftest*
5543   cat > conftest.$ac_ext <<EOF
5544 #ifdef __cplusplus
5545 extern "C" {
5546 #endif
5547 char nm_test_var;
5548 void nm_test_func(){}
5549 #ifdef __cplusplus
5550 }
5551 #endif
5552 int main(){nm_test_var='a';nm_test_func();return(0);}
5553 EOF
5554
5555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556   (eval $ac_compile) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; then
5560     # Now try to grab the symbols.
5561     nlist=conftest.nm
5562     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5563   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); } && test -s "$nlist"; then
5567       # Try sorting and uniquifying the output.
5568       if sort "$nlist" | uniq > "$nlist"T; then
5569         mv -f "$nlist"T "$nlist"
5570       else
5571         rm -f "$nlist"T
5572       fi
5573
5574       # Make sure that we snagged all the symbols we need.
5575       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5576         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5577           cat <<EOF > conftest.$ac_ext
5578 #ifdef __cplusplus
5579 extern "C" {
5580 #endif
5581
5582 EOF
5583           # Now generate the symbol file.
5584           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5585
5586           cat <<EOF >> conftest.$ac_ext
5587 #if defined (__STDC__) && __STDC__
5588 # define lt_ptr_t void *
5589 #else
5590 # define lt_ptr_t char *
5591 # define const
5592 #endif
5593
5594 /* The mapping between symbol names and symbols. */
5595 const struct {
5596   const char *name;
5597   lt_ptr_t address;
5598 }
5599 lt_preloaded_symbols[] =
5600 {
5601 EOF
5602           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5603           cat <<\EOF >> conftest.$ac_ext
5604   {0, (lt_ptr_t) 0}
5605 };
5606
5607 #ifdef __cplusplus
5608 }
5609 #endif
5610 EOF
5611           # Now try linking the two files.
5612           mv conftest.$ac_objext conftstm.$ac_objext
5613           lt_save_LIBS="$LIBS"
5614           lt_save_CFLAGS="$CFLAGS"
5615           LIBS="conftstm.$ac_objext"
5616           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5617           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618   (eval $ac_link) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5622             pipe_works=yes
5623           fi
5624           LIBS="$lt_save_LIBS"
5625           CFLAGS="$lt_save_CFLAGS"
5626         else
5627           echo "cannot find nm_test_func in $nlist" >&5
5628         fi
5629       else
5630         echo "cannot find nm_test_var in $nlist" >&5
5631       fi
5632     else
5633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5634     fi
5635   else
5636     echo "$progname: failed program was:" >&5
5637     cat conftest.$ac_ext >&5
5638   fi
5639   rm -f conftest* conftst*
5640
5641   # Do not use the global_symbol_pipe unless it works.
5642   if test "$pipe_works" = yes; then
5643     break
5644   else
5645     lt_cv_sys_global_symbol_pipe=
5646   fi
5647 done
5648
5649 fi
5650
5651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5652   lt_cv_sys_global_symbol_to_cdecl=
5653 fi
5654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5655   echo "$as_me:$LINENO: result: failed" >&5
5656 echo "${ECHO_T}failed" >&6
5657 else
5658   echo "$as_me:$LINENO: result: ok" >&5
5659 echo "${ECHO_T}ok" >&6
5660 fi
5661
5662 echo "$as_me:$LINENO: checking for objdir" >&5
5663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5664 if test "${lt_cv_objdir+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   rm -f .libs 2>/dev/null
5668 mkdir .libs 2>/dev/null
5669 if test -d .libs; then
5670   lt_cv_objdir=.libs
5671 else
5672   # MS-DOS does not allow filenames that begin with a dot.
5673   lt_cv_objdir=_libs
5674 fi
5675 rmdir .libs 2>/dev/null
5676 fi
5677 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5678 echo "${ECHO_T}$lt_cv_objdir" >&6
5679 objdir=$lt_cv_objdir
5680
5681
5682
5683
5684
5685 case $host_os in
5686 aix3*)
5687   # AIX sometimes has problems with the GCC collect2 program.  For some
5688   # reason, if we set the COLLECT_NAMES environment variable, the problems
5689   # vanish in a puff of smoke.
5690   if test "X${COLLECT_NAMES+set}" != Xset; then
5691     COLLECT_NAMES=
5692     export COLLECT_NAMES
5693   fi
5694   ;;
5695 esac
5696
5697 # Sed substitution that helps us do robust quoting.  It backslashifies
5698 # metacharacters that are still active within double-quoted strings.
5699 Xsed='sed -e s/^X//'
5700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5701
5702 # Same as above, but do not quote variable references.
5703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5704
5705 # Sed substitution to delay expansion of an escaped shell variable in a
5706 # double_quote_subst'ed string.
5707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5708
5709 # Sed substitution to avoid accidental globbing in evaled expressions
5710 no_glob_subst='s/\*/\\\*/g'
5711
5712 # Constants:
5713 rm="rm -f"
5714
5715 # Global variables:
5716 default_ofile=libtool
5717 can_build_shared=yes
5718
5719 # All known linkers require a `.a' archive for static linking (except M$VC,
5720 # which needs '.lib').
5721 libext=a
5722 ltmain="$ac_aux_dir/ltmain.sh"
5723 ofile="$default_ofile"
5724 with_gnu_ld="$lt_cv_prog_gnu_ld"
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ar; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_AR+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$AR"; then
5735   ac_cv_prog_AR="$AR" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_AR="${ac_tool_prefix}ar"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751 fi
5752 fi
5753 AR=$ac_cv_prog_AR
5754 if test -n "$AR"; then
5755   echo "$as_me:$LINENO: result: $AR" >&5
5756 echo "${ECHO_T}$AR" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762 fi
5763 if test -z "$ac_cv_prog_AR"; then
5764   ac_ct_AR=$AR
5765   # Extract the first word of "ar", so it can be a program name with args.
5766 set dummy ar; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$ac_ct_AR"; then
5773   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_ac_ct_AR="ar"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5790 fi
5791 fi
5792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5793 if test -n "$ac_ct_AR"; then
5794   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5795 echo "${ECHO_T}$ac_ct_AR" >&6
5796 else
5797   echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5799 fi
5800
5801   AR=$ac_ct_AR
5802 else
5803   AR="$ac_cv_prog_AR"
5804 fi
5805
5806 if test -n "$ac_tool_prefix"; then
5807   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   if test -n "$RANLIB"; then
5815   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   for ac_exec_ext in '' $ac_executable_extensions; do
5823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829 done
5830
5831 fi
5832 fi
5833 RANLIB=$ac_cv_prog_RANLIB
5834 if test -n "$RANLIB"; then
5835   echo "$as_me:$LINENO: result: $RANLIB" >&5
5836 echo "${ECHO_T}$RANLIB" >&6
5837 else
5838   echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5840 fi
5841
5842 fi
5843 if test -z "$ac_cv_prog_RANLIB"; then
5844   ac_ct_RANLIB=$RANLIB
5845   # Extract the first word of "ranlib", so it can be a program name with args.
5846 set dummy ranlib; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   if test -n "$ac_ct_RANLIB"; then
5853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860   for ac_exec_ext in '' $ac_executable_extensions; do
5861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862     ac_cv_prog_ac_ct_RANLIB="ranlib"
5863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867 done
5868
5869   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5870 fi
5871 fi
5872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5873 if test -n "$ac_ct_RANLIB"; then
5874   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5876 else
5877   echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5879 fi
5880
5881   RANLIB=$ac_ct_RANLIB
5882 else
5883   RANLIB="$ac_cv_prog_RANLIB"
5884 fi
5885
5886 if test -n "$ac_tool_prefix"; then
5887   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}strip; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_STRIP+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   if test -n "$STRIP"; then
5895   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910
5911 fi
5912 fi
5913 STRIP=$ac_cv_prog_STRIP
5914 if test -n "$STRIP"; then
5915   echo "$as_me:$LINENO: result: $STRIP" >&5
5916 echo "${ECHO_T}$STRIP" >&6
5917 else
5918   echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922 fi
5923 if test -z "$ac_cv_prog_STRIP"; then
5924   ac_ct_STRIP=$STRIP
5925   # Extract the first word of "strip", so it can be a program name with args.
5926 set dummy strip; ac_word=$2
5927 echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   if test -n "$ac_ct_STRIP"; then
5933   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942     ac_cv_prog_ac_ct_STRIP="strip"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948
5949   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5950 fi
5951 fi
5952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5953 if test -n "$ac_ct_STRIP"; then
5954   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5955 echo "${ECHO_T}$ac_ct_STRIP" >&6
5956 else
5957   echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5959 fi
5960
5961   STRIP=$ac_ct_STRIP
5962 else
5963   STRIP="$ac_cv_prog_STRIP"
5964 fi
5965
5966
5967 old_CC="$CC"
5968 old_CFLAGS="$CFLAGS"
5969
5970 # Set sane defaults for various variables
5971 test -z "$AR" && AR=ar
5972 test -z "$AR_FLAGS" && AR_FLAGS=cru
5973 test -z "$AS" && AS=as
5974 test -z "$CC" && CC=cc
5975 test -z "$LTCC" && LTCC=$CC
5976 test -z "$DLLTOOL" && DLLTOOL=dlltool
5977 test -z "$LD" && LD=ld
5978 test -z "$LN_S" && LN_S="ln -s"
5979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5980 test -z "$NM" && NM=nm
5981 test -z "$SED" && SED=sed
5982 test -z "$OBJDUMP" && OBJDUMP=objdump
5983 test -z "$RANLIB" && RANLIB=:
5984 test -z "$STRIP" && STRIP=:
5985 test -z "$ac_objext" && ac_objext=o
5986
5987 # Determine commands to create old-style static archives.
5988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5989 old_postinstall_cmds='chmod 644 $oldlib'
5990 old_postuninstall_cmds=
5991
5992 if test -n "$RANLIB"; then
5993   case $host_os in
5994   openbsd*)
5995     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5996     ;;
5997   *)
5998     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5999     ;;
6000   esac
6001   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6002 fi
6003
6004 # Only perform the check for file, if the check method requires it
6005 case $deplibs_check_method in
6006 file_magic*)
6007   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6008     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   case $MAGIC_CMD in
6014 [\\/*] |  ?:[\\/]*)
6015   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6016   ;;
6017 *)
6018   lt_save_MAGIC_CMD="$MAGIC_CMD"
6019   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6020   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6021   for ac_dir in $ac_dummy; do
6022     IFS="$lt_save_ifs"
6023     test -z "$ac_dir" && ac_dir=.
6024     if test -f $ac_dir/${ac_tool_prefix}file; then
6025       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6026       if test -n "$file_magic_test_file"; then
6027         case $deplibs_check_method in
6028         "file_magic "*)
6029           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6030           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6031           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6032             $EGREP "$file_magic_regex" > /dev/null; then
6033             :
6034           else
6035             cat <<EOF 1>&2
6036
6037 *** Warning: the command libtool uses to detect shared libraries,
6038 *** $file_magic_cmd, produces output that libtool cannot recognize.
6039 *** The result is that libtool may fail to recognize shared libraries
6040 *** as such.  This will affect the creation of libtool libraries that
6041 *** depend on shared libraries, but programs linked with such libtool
6042 *** libraries will work regardless of this problem.  Nevertheless, you
6043 *** may want to report the problem to your system manager and/or to
6044 *** bug-libtool@gnu.org
6045
6046 EOF
6047           fi ;;
6048         esac
6049       fi
6050       break
6051     fi
6052   done
6053   IFS="$lt_save_ifs"
6054   MAGIC_CMD="$lt_save_MAGIC_CMD"
6055   ;;
6056 esac
6057 fi
6058
6059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6060 if test -n "$MAGIC_CMD"; then
6061   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6062 echo "${ECHO_T}$MAGIC_CMD" >&6
6063 else
6064   echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066 fi
6067
6068 if test -z "$lt_cv_path_MAGIC_CMD"; then
6069   if test -n "$ac_tool_prefix"; then
6070     echo "$as_me:$LINENO: checking for file" >&5
6071 echo $ECHO_N "checking for file... $ECHO_C" >&6
6072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   case $MAGIC_CMD in
6076 [\\/*] |  ?:[\\/]*)
6077   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6078   ;;
6079 *)
6080   lt_save_MAGIC_CMD="$MAGIC_CMD"
6081   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6083   for ac_dir in $ac_dummy; do
6084     IFS="$lt_save_ifs"
6085     test -z "$ac_dir" && ac_dir=.
6086     if test -f $ac_dir/file; then
6087       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6088       if test -n "$file_magic_test_file"; then
6089         case $deplibs_check_method in
6090         "file_magic "*)
6091           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6092           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6094             $EGREP "$file_magic_regex" > /dev/null; then
6095             :
6096           else
6097             cat <<EOF 1>&2
6098
6099 *** Warning: the command libtool uses to detect shared libraries,
6100 *** $file_magic_cmd, produces output that libtool cannot recognize.
6101 *** The result is that libtool may fail to recognize shared libraries
6102 *** as such.  This will affect the creation of libtool libraries that
6103 *** depend on shared libraries, but programs linked with such libtool
6104 *** libraries will work regardless of this problem.  Nevertheless, you
6105 *** may want to report the problem to your system manager and/or to
6106 *** bug-libtool@gnu.org
6107
6108 EOF
6109           fi ;;
6110         esac
6111       fi
6112       break
6113     fi
6114   done
6115   IFS="$lt_save_ifs"
6116   MAGIC_CMD="$lt_save_MAGIC_CMD"
6117   ;;
6118 esac
6119 fi
6120
6121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122 if test -n "$MAGIC_CMD"; then
6123   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6124 echo "${ECHO_T}$MAGIC_CMD" >&6
6125 else
6126   echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6128 fi
6129
6130   else
6131     MAGIC_CMD=:
6132   fi
6133 fi
6134
6135   fi
6136   ;;
6137 esac
6138
6139 enable_dlopen=no
6140 enable_win32_dll=no
6141
6142 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6143 if test "${enable_libtool_lock+set}" = set; then
6144   enableval="$enable_libtool_lock"
6145
6146 fi;
6147 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6148
6149
6150 # Check whether --with-pic or --without-pic was given.
6151 if test "${with_pic+set}" = set; then
6152   withval="$with_pic"
6153   pic_mode="$withval"
6154 else
6155   pic_mode=default
6156 fi;
6157 test -z "$pic_mode" && pic_mode=default
6158
6159 # Use C for the default configuration in the libtool script
6160 tagname=
6161 lt_save_CC="$CC"
6162 ac_ext=c
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168
6169 # Source file extension for C test sources.
6170 ac_ext=c
6171
6172 # Object file extension for compiled C test sources.
6173 objext=o
6174 objext=$objext
6175
6176 # Code to be used in simple compile tests
6177 lt_simple_compile_test_code="int some_variable = 0;\n"
6178
6179 # Code to be used in simple link tests
6180 lt_simple_link_test_code='int main(){return(0);}\n'
6181
6182
6183 # If no C compiler was specified, use CC.
6184 LTCC=${LTCC-"$CC"}
6185
6186 # Allow CC to be a program name with arguments.
6187 compiler=$CC
6188
6189
6190 #
6191 # Check for any special shared library compilation flags.
6192 #
6193 lt_prog_cc_shlib=
6194 if test "$GCC" = no; then
6195   case $host_os in
6196   sco3.2v5*)
6197     lt_prog_cc_shlib='-belf'
6198     ;;
6199   esac
6200 fi
6201 if test -n "$lt_prog_cc_shlib"; then
6202   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6203 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6204   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6205   else
6206     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6207 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6208     lt_cv_prog_cc_can_build_shared=no
6209   fi
6210 fi
6211
6212
6213 #
6214 # Check to make sure the static flag actually works.
6215 #
6216 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6217 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6218 if test "${lt_prog_compiler_static_works+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   lt_prog_compiler_static_works=no
6222    save_LDFLAGS="$LDFLAGS"
6223    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6224    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6225    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6226      # The compiler can only warn and ignore the option if not recognized
6227      # So say no if there are warnings
6228      if test -s conftest.err; then
6229        # Append any errors to the config.log.
6230        cat conftest.err 1>&5
6231      else
6232        lt_prog_compiler_static_works=yes
6233      fi
6234    fi
6235    $rm conftest*
6236    LDFLAGS="$save_LDFLAGS"
6237
6238 fi
6239 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6240 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6241
6242 if test x"$lt_prog_compiler_static_works" = xyes; then
6243     :
6244 else
6245     lt_prog_compiler_static=
6246 fi
6247
6248
6249
6250
6251 lt_prog_compiler_no_builtin_flag=
6252
6253 if test "$GCC" = yes; then
6254   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6255
6256
6257 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   lt_cv_prog_compiler_rtti_exceptions=no
6263   ac_outfile=conftest.$ac_objext
6264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265    lt_compiler_flag="-fno-rtti -fno-exceptions"
6266    # Insert the option either (1) after the last *FLAGS variable, or
6267    # (2) before a word containing "conftest.", or (3) at the end.
6268    # Note that $ac_compile itself does not contain backslashes and begins
6269    # with a dollar sign (not a hyphen), so the echo should work correctly.
6270    # The option is referenced via a variable to avoid confusing sed.
6271    lt_compile=`echo "$ac_compile" | $SED \
6272    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274    -e 's:$: $lt_compiler_flag:'`
6275    (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276    (eval "$lt_compile" 2>conftest.err)
6277    ac_status=$?
6278    cat conftest.err >&5
6279    echo "$as_me:6279: \$? = $ac_status" >&5
6280    if (exit $ac_status) && test -s "$ac_outfile"; then
6281      # The compiler can only warn and ignore the option if not recognized
6282      # So say no if there are warnings
6283      if test ! -s conftest.err; then
6284        lt_cv_prog_compiler_rtti_exceptions=yes
6285      fi
6286    fi
6287    $rm conftest*
6288
6289 fi
6290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6292
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6295 else
6296     :
6297 fi
6298
6299 fi
6300
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6304
6305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6307
6308   if test "$GCC" = yes; then
6309     lt_prog_compiler_wl='-Wl,'
6310     lt_prog_compiler_static='-static'
6311
6312     case $host_os in
6313       aix*)
6314       # All AIX code is PIC.
6315       if test "$host_cpu" = ia64; then
6316         # AIX 5 now supports IA64 processor
6317         lt_prog_compiler_static='-Bstatic'
6318       fi
6319       ;;
6320
6321     amigaos*)
6322       # FIXME: we need at least 68020 code to build shared libraries, but
6323       # adding the `-m68020' flag to GCC prevents building anything better,
6324       # like `-m68040'.
6325       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6326       ;;
6327
6328     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329       # PIC is the default for these OSes.
6330       ;;
6331
6332     mingw* | pw32* | os2*)
6333       # This hack is so that the source file can tell whether it is being
6334       # built for inclusion in a dll (and should export symbols for example).
6335       lt_prog_compiler_pic='-DDLL_EXPORT'
6336       ;;
6337
6338     darwin* | rhapsody*)
6339       # PIC is the default on this platform
6340       # Common symbols not allowed in MH_DYLIB files
6341       lt_prog_compiler_pic='-fno-common'
6342       ;;
6343
6344     msdosdjgpp*)
6345       # Just because we use GCC doesn't mean we suddenly get shared libraries
6346       # on systems that don't support them.
6347       lt_prog_compiler_can_build_shared=no
6348       enable_shared=no
6349       ;;
6350
6351     sysv4*MP*)
6352       if test -d /usr/nec; then
6353         lt_prog_compiler_pic=-Kconform_pic
6354       fi
6355       ;;
6356
6357     hpux*)
6358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6359       # not for PA HP-UX.
6360       case "$host_cpu" in
6361       hppa*64*|ia64*)
6362         # +Z the default
6363         ;;
6364       *)
6365         lt_prog_compiler_pic='-fPIC'
6366         ;;
6367       esac
6368       ;;
6369
6370     *)
6371       lt_prog_compiler_pic='-fPIC'
6372       ;;
6373     esac
6374   else
6375     # PORTME Check for flag to pass linker flags through the system compiler.
6376     case $host_os in
6377     aix*)
6378       lt_prog_compiler_wl='-Wl,'
6379       if test "$host_cpu" = ia64; then
6380         # AIX 5 now supports IA64 processor
6381         lt_prog_compiler_static='-Bstatic'
6382       else
6383         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6384       fi
6385       ;;
6386
6387     mingw* | pw32* | os2*)
6388       # This hack is so that the source file can tell whether it is being
6389       # built for inclusion in a dll (and should export symbols for example).
6390       lt_prog_compiler_pic='-DDLL_EXPORT'
6391       ;;
6392
6393     hpux9* | hpux10* | hpux11*)
6394       lt_prog_compiler_wl='-Wl,'
6395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396       # not for PA HP-UX.
6397       case "$host_cpu" in
6398       hppa*64*|ia64*)
6399         # +Z the default
6400         ;;
6401       *)
6402         lt_prog_compiler_pic='+Z'
6403         ;;
6404       esac
6405       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406       lt_prog_compiler_static='${wl}-a ${wl}archive'
6407       ;;
6408
6409     irix5* | irix6* | nonstopux*)
6410       lt_prog_compiler_wl='-Wl,'
6411       # PIC (with -KPIC) is the default.
6412       lt_prog_compiler_static='-non_shared'
6413       ;;
6414
6415     newsos6)
6416       lt_prog_compiler_pic='-KPIC'
6417       lt_prog_compiler_static='-Bstatic'
6418       ;;
6419
6420     linux*)
6421       case $CC in
6422       icc* | ecc*)
6423         lt_prog_compiler_wl='-Wl,'
6424         lt_prog_compiler_pic='-KPIC'
6425         lt_prog_compiler_static='-static'
6426         ;;
6427       ccc*)
6428         lt_prog_compiler_wl='-Wl,'
6429         # All Alpha code is PIC.
6430         lt_prog_compiler_static='-non_shared'
6431         ;;
6432       esac
6433       ;;
6434
6435     osf3* | osf4* | osf5*)
6436       lt_prog_compiler_wl='-Wl,'
6437       # All OSF/1 code is PIC.
6438       lt_prog_compiler_static='-non_shared'
6439       ;;
6440
6441     sco3.2v5*)
6442       lt_prog_compiler_pic='-Kpic'
6443       lt_prog_compiler_static='-dn'
6444       ;;
6445
6446     solaris*)
6447       lt_prog_compiler_wl='-Wl,'
6448       lt_prog_compiler_pic='-KPIC'
6449       lt_prog_compiler_static='-Bstatic'
6450       ;;
6451
6452     sunos4*)
6453       lt_prog_compiler_wl='-Qoption ld '
6454       lt_prog_compiler_pic='-PIC'
6455       lt_prog_compiler_static='-Bstatic'
6456       ;;
6457
6458     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459       lt_prog_compiler_wl='-Wl,'
6460       lt_prog_compiler_pic='-KPIC'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     sysv4*MP*)
6465       if test -d /usr/nec ;then
6466         lt_prog_compiler_pic='-Kconform_pic'
6467         lt_prog_compiler_static='-Bstatic'
6468       fi
6469       ;;
6470
6471     uts4*)
6472       lt_prog_compiler_pic='-pic'
6473       lt_prog_compiler_static='-Bstatic'
6474       ;;
6475
6476     *)
6477       lt_prog_compiler_can_build_shared=no
6478       ;;
6479     esac
6480   fi
6481
6482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6484
6485 #
6486 # Check to make sure the PIC flag actually works.
6487 #
6488 if test -n "$lt_prog_compiler_pic"; then
6489
6490 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_prog_compiler_pic_works=no
6496   ac_outfile=conftest.$ac_objext
6497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499    # Insert the option either (1) after the last *FLAGS variable, or
6500    # (2) before a word containing "conftest.", or (3) at the end.
6501    # Note that $ac_compile itself does not contain backslashes and begins
6502    # with a dollar sign (not a hyphen), so the echo should work correctly.
6503    # The option is referenced via a variable to avoid confusing sed.
6504    lt_compile=`echo "$ac_compile" | $SED \
6505    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507    -e 's:$: $lt_compiler_flag:'`
6508    (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509    (eval "$lt_compile" 2>conftest.err)
6510    ac_status=$?
6511    cat conftest.err >&5
6512    echo "$as_me:6512: \$? = $ac_status" >&5
6513    if (exit $ac_status) && test -s "$ac_outfile"; then
6514      # The compiler can only warn and ignore the option if not recognized
6515      # So say no if there are warnings
6516      if test ! -s conftest.err; then
6517        lt_prog_compiler_pic_works=yes
6518      fi
6519    fi
6520    $rm conftest*
6521
6522 fi
6523 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6525
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527     case $lt_prog_compiler_pic in
6528      "" | " "*) ;;
6529      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6530      esac
6531 else
6532     lt_prog_compiler_pic=
6533      lt_prog_compiler_can_build_shared=no
6534 fi
6535
6536 fi
6537 case "$host_os" in
6538   # For platforms which do not support PIC, -DPIC is meaningless:
6539   *djgpp*)
6540     lt_prog_compiler_pic=
6541     ;;
6542   *)
6543     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6544     ;;
6545 esac
6546
6547 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   lt_cv_prog_compiler_c_o=no
6553    $rm -r conftest 2>/dev/null
6554    mkdir conftest
6555    cd conftest
6556    mkdir out
6557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6558
6559    lt_compiler_flag="-o out/conftest2.$ac_objext"
6560    # Insert the option either (1) after the last *FLAGS variable, or
6561    # (2) before a word containing "conftest.", or (3) at the end.
6562    # Note that $ac_compile itself does not contain backslashes and begins
6563    # with a dollar sign (not a hyphen), so the echo should work correctly.
6564    lt_compile=`echo "$ac_compile" | $SED \
6565    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6567    -e 's:$: $lt_compiler_flag:'`
6568    (eval echo "\"\$as_me:6568: $lt_compile\"" >&5)
6569    (eval "$lt_compile" 2>out/conftest.err)
6570    ac_status=$?
6571    cat out/conftest.err >&5
6572    echo "$as_me:6572: \$? = $ac_status" >&5
6573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6574    then
6575      # The compiler can only warn and ignore the option if not recognized
6576      # So say no if there are warnings
6577      if test ! -s out/conftest.err; then
6578        lt_cv_prog_compiler_c_o=yes
6579      fi
6580    fi
6581    chmod u+w .
6582    $rm conftest*
6583    # SGI C++ compiler will create directory out/ii_files/ for
6584    # template instantiation
6585    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6586    $rm out/* && rmdir out
6587    cd ..
6588    rmdir conftest
6589    $rm conftest*
6590
6591 fi
6592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6594
6595
6596 hard_links="nottested"
6597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6598   # do not overwrite the value of need_locks provided by the user
6599   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6601   hard_links=yes
6602   $rm conftest*
6603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6604   touch conftest.a
6605   ln conftest.a conftest.b 2>&5 || hard_links=no
6606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607   echo "$as_me:$LINENO: result: $hard_links" >&5
6608 echo "${ECHO_T}$hard_links" >&6
6609   if test "$hard_links" = no; then
6610     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6612     need_locks=warn
6613   fi
6614 else
6615   need_locks=no
6616 fi
6617
6618 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6620
6621   runpath_var=
6622   allow_undefined_flag=
6623   enable_shared_with_static_runtimes=no
6624   archive_cmds=
6625   archive_expsym_cmds=
6626   old_archive_From_new_cmds=
6627   old_archive_from_expsyms_cmds=
6628   export_dynamic_flag_spec=
6629   whole_archive_flag_spec=
6630   thread_safe_flag_spec=
6631   hardcode_libdir_flag_spec=
6632   hardcode_libdir_flag_spec_ld=
6633   hardcode_libdir_separator=
6634   hardcode_direct=no
6635   hardcode_minus_L=no
6636   hardcode_shlibpath_var=unsupported
6637   link_all_deplibs=unknown
6638   hardcode_automatic=no
6639   module_cmds=
6640   module_expsym_cmds=
6641   always_export_symbols=no
6642   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6643   # include_expsyms should be a list of space-separated symbols to be *always*
6644   # included in the symbol list
6645   include_expsyms=
6646   # exclude_expsyms can be an extended regexp of symbols to exclude
6647   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6648   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6649   # as well as any symbol that contains `d'.
6650   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6651   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6652   # platforms (ab)use it in PIC code, but their linkers get confused if
6653   # the symbol is explicitly referenced.  Since portable code cannot
6654   # rely on this symbol name, it's probably fine to never include it in
6655   # preloaded symbol tables.
6656   extract_expsyms_cmds=
6657
6658   case $host_os in
6659   cygwin* | mingw* | pw32*)
6660     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6661     # When not using gcc, we currently assume that we are using
6662     # Microsoft Visual C++.
6663     if test "$GCC" != yes; then
6664       with_gnu_ld=no
6665     fi
6666     ;;
6667   openbsd*)
6668     with_gnu_ld=no
6669     ;;
6670   esac
6671
6672   ld_shlibs=yes
6673   if test "$with_gnu_ld" = yes; then
6674     # If archive_cmds runs LD, not CC, wlarc should be empty
6675     wlarc='${wl}'
6676
6677     # See if GNU ld supports shared libraries.
6678     case $host_os in
6679     aix3* | aix4* | aix5*)
6680       # On AIX/PPC, the GNU linker is very broken
6681       if test "$host_cpu" != ia64; then
6682         ld_shlibs=no
6683         cat <<EOF 1>&2
6684
6685 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6686 *** to be unable to reliably create shared libraries on AIX.
6687 *** Therefore, libtool is disabling shared libraries support.  If you
6688 *** really care for shared libraries, you may want to modify your PATH
6689 *** so that a non-GNU linker is found, and then restart.
6690
6691 EOF
6692       fi
6693       ;;
6694
6695     amigaos*)
6696       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6697       hardcode_libdir_flag_spec='-L$libdir'
6698       hardcode_minus_L=yes
6699
6700       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6701       # that the semantics of dynamic libraries on AmigaOS, at least up
6702       # to version 4, is to share data among multiple programs linked
6703       # with the same dynamic library.  Since this doesn't match the
6704       # behavior of shared libraries on other platforms, we can't use
6705       # them.
6706       ld_shlibs=no
6707       ;;
6708
6709     beos*)
6710       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6711         allow_undefined_flag=unsupported
6712         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6713         # support --undefined.  This deserves some investigation.  FIXME
6714         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6715       else
6716         ld_shlibs=no
6717       fi
6718       ;;
6719
6720     cygwin* | mingw* | pw32*)
6721       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6722       # as there is no search path for DLLs.
6723       hardcode_libdir_flag_spec='-L$libdir'
6724       allow_undefined_flag=unsupported
6725       always_export_symbols=no
6726       enable_shared_with_static_runtimes=yes
6727       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6728
6729       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6730         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6731         # If the export-symbols file already is a .def file (1st line
6732         # is EXPORTS), use it as is; otherwise, prepend...
6733         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6734           cp $export_symbols $output_objdir/$soname.def;
6735         else
6736           echo EXPORTS > $output_objdir/$soname.def;
6737           cat $export_symbols >> $output_objdir/$soname.def;
6738         fi~
6739         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6740       else
6741         ld_shlibs=no
6742       fi
6743       ;;
6744
6745     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6746       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6747         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6748         wlarc=
6749       else
6750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752       fi
6753       ;;
6754
6755     solaris* | sysv5*)
6756       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6757         ld_shlibs=no
6758         cat <<EOF 1>&2
6759
6760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6761 *** create shared libraries on Solaris systems.  Therefore, libtool
6762 *** is disabling shared libraries support.  We urge you to upgrade GNU
6763 *** binutils to release 2.9.1 or newer.  Another option is to modify
6764 *** your PATH or compiler configuration so that the native linker is
6765 *** used, and then restart.
6766
6767 EOF
6768       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6771       else
6772         ld_shlibs=no
6773       fi
6774       ;;
6775
6776     sunos4*)
6777       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6778       wlarc=
6779       hardcode_direct=yes
6780       hardcode_shlibpath_var=no
6781       ;;
6782
6783   linux*)
6784     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6785         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786         archive_cmds="$tmp_archive_cmds"
6787       supports_anon_versioning=no
6788       case `$LD -v 2>/dev/null` in
6789         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6790         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6791         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6792         *\ 2.11.*) ;; # other 2.11 versions
6793         *) supports_anon_versioning=yes ;;
6794       esac
6795       if test $supports_anon_versioning = yes; then
6796         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6798 $echo "local: *; };" >> $output_objdir/$libname.ver~
6799         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6800       else
6801         archive_expsym_cmds="$tmp_archive_cmds"
6802       fi
6803       link_all_deplibs=no
6804     else
6805       ld_shlibs=no
6806     fi
6807     ;;
6808
6809     *)
6810       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6813       else
6814         ld_shlibs=no
6815       fi
6816       ;;
6817     esac
6818
6819     if test "$ld_shlibs" = yes; then
6820       runpath_var=LD_RUN_PATH
6821       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6822       export_dynamic_flag_spec='${wl}--export-dynamic'
6823       # ancient GNU ld didn't support --whole-archive et. al.
6824       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6825         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6826       else
6827         whole_archive_flag_spec=
6828       fi
6829     fi
6830   else
6831     # PORTME fill in a description of your system's linker (not GNU ld)
6832     case $host_os in
6833     aix3*)
6834       allow_undefined_flag=unsupported
6835       always_export_symbols=yes
6836       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6837       # Note: this linker hardcodes the directories in LIBPATH if there
6838       # are no directories specified by -L.
6839       hardcode_minus_L=yes
6840       if test "$GCC" = yes && test -z "$link_static_flag"; then
6841         # Neither direct hardcoding nor static linking is supported with a
6842         # broken collect2.
6843         hardcode_direct=unsupported
6844       fi
6845       ;;
6846
6847     aix4* | aix5*)
6848       if test "$host_cpu" = ia64; then
6849         # On IA64, the linker does run time linking by default, so we don't
6850         # have to do anything special.
6851         aix_use_runtimelinking=no
6852         exp_sym_flag='-Bexport'
6853         no_entry_flag=""
6854       else
6855         # If we're using GNU nm, then we don't want the "-C" option.
6856         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6857         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6858           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6859         else
6860           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6861         fi
6862         aix_use_runtimelinking=no
6863
6864         # Test if we are trying to use run time linking or normal
6865         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6866         # need to do runtime linking.
6867         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6868           for ld_flag in $LDFLAGS; do
6869           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6870             aix_use_runtimelinking=yes
6871             break
6872           fi
6873           done
6874         esac
6875
6876         exp_sym_flag='-bexport'
6877         no_entry_flag='-bnoentry'
6878       fi
6879
6880       # When large executables or shared objects are built, AIX ld can
6881       # have problems creating the table of contents.  If linking a library
6882       # or program results in "error TOC overflow" add -mminimal-toc to
6883       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6884       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6885
6886       archive_cmds=''
6887       hardcode_direct=yes
6888       hardcode_libdir_separator=':'
6889       link_all_deplibs=yes
6890
6891       if test "$GCC" = yes; then
6892         case $host_os in aix4.012|aix4.012.*)
6893         # We only want to do this on AIX 4.2 and lower, the check
6894         # below for broken collect2 doesn't work under 4.3+
6895           collect2name=`${CC} -print-prog-name=collect2`
6896           if test -f "$collect2name" && \
6897            strings "$collect2name" | grep resolve_lib_name >/dev/null
6898           then
6899           # We have reworked collect2
6900           hardcode_direct=yes
6901           else
6902           # We have old collect2
6903           hardcode_direct=unsupported
6904           # It fails to find uninstalled libraries when the uninstalled
6905           # path is not listed in the libpath.  Setting hardcode_minus_L
6906           # to unsupported forces relinking
6907           hardcode_minus_L=yes
6908           hardcode_libdir_flag_spec='-L$libdir'
6909           hardcode_libdir_separator=
6910           fi
6911         esac
6912         shared_flag='-shared'
6913       else
6914         # not using gcc
6915         if test "$host_cpu" = ia64; then
6916         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6917         # chokes on -Wl,-G. The following line is correct:
6918           shared_flag='-G'
6919         else
6920         if test "$aix_use_runtimelinking" = yes; then
6921             shared_flag='${wl}-G'
6922           else
6923             shared_flag='${wl}-bM:SRE'
6924         fi
6925         fi
6926       fi
6927
6928       # It seems that -bexpall does not export symbols beginning with
6929       # underscore (_), so it is better to generate a list of symbols to export.
6930       always_export_symbols=yes
6931       if test "$aix_use_runtimelinking" = yes; then
6932         # Warning - without using the other runtime loading flags (-brtl),
6933         # -berok will link without error, but may produce a broken library.
6934         allow_undefined_flag='-berok'
6935        # Determine the default libpath from the value encoded in an empty executable.
6936        cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942
6943 int
6944 main ()
6945 {
6946
6947   ;
6948   return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953   (eval $ac_link) 2>conftest.er1
6954   ac_status=$?
6955   grep -v '^ *+' conftest.er1 >conftest.err
6956   rm -f conftest.er1
6957   cat conftest.err >&5
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } &&
6960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962   (eval $ac_try) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); }; } &&
6966          { ac_try='test -s conftest$ac_exeext'
6967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968   (eval $ac_try) 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); }; }; then
6972
6973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6974 }'`
6975 # Check for a 64-bit object if we didn't find anything.
6976 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6977 }'`; fi
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 fi
6983 rm -f conftest.err conftest.$ac_objext \
6984       conftest$ac_exeext conftest.$ac_ext
6985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6986
6987        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6988         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"
6989        else
6990         if test "$host_cpu" = ia64; then
6991           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6992           allow_undefined_flag="-z nodefs"
6993           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"
6994         else
6995          # Determine the default libpath from the value encoded in an empty executable.
6996          cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002
7003 int
7004 main ()
7005 {
7006
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013   (eval $ac_link) 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest$ac_exeext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032
7033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7034 }'`
7035 # Check for a 64-bit object if we didn't find anything.
7036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7037 }'`; fi
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042 fi
7043 rm -f conftest.err conftest.$ac_objext \
7044       conftest$ac_exeext conftest.$ac_ext
7045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7046
7047          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7048           # Warning - without using the other run time loading flags,
7049           # -berok will link without error, but may produce a broken library.
7050           no_undefined_flag=' ${wl}-bernotok'
7051           allow_undefined_flag=' ${wl}-berok'
7052           # -bexpall does not export symbols beginning with underscore (_)
7053           always_export_symbols=yes
7054           # Exported symbols can be pulled into shared objects from archives
7055           whole_archive_flag_spec=' '
7056           archive_cmds_need_lc=yes
7057           # This is similar to how AIX traditionally builds it's shared libraries.
7058           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'
7059         fi
7060       fi
7061       ;;
7062
7063     amigaos*)
7064       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7065       hardcode_libdir_flag_spec='-L$libdir'
7066       hardcode_minus_L=yes
7067       # see comment about different semantics on the GNU ld section
7068       ld_shlibs=no
7069       ;;
7070
7071     bsdi4*)
7072       export_dynamic_flag_spec=-rdynamic
7073       ;;
7074
7075     cygwin* | mingw* | pw32*)
7076       # When not using gcc, we currently assume that we are using
7077       # Microsoft Visual C++.
7078       # hardcode_libdir_flag_spec is actually meaningless, as there is
7079       # no search path for DLLs.
7080       hardcode_libdir_flag_spec=' '
7081       allow_undefined_flag=unsupported
7082       # Tell ltmain to make .lib files, not .a files.
7083       libext=lib
7084       # Tell ltmain to make .dll files, not .so files.
7085       shrext_cmds=".dll"
7086       # FIXME: Setting linknames here is a bad hack.
7087       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7088       # The linker will automatically build a .lib file if we build a DLL.
7089       old_archive_From_new_cmds='true'
7090       # FIXME: Should let the user specify the lib program.
7091       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7092       fix_srcfile_path='`cygpath -w "$srcfile"`'
7093       enable_shared_with_static_runtimes=yes
7094       ;;
7095
7096     darwin* | rhapsody*)
7097     if test "$GXX" = yes ; then
7098       archive_cmds_need_lc=no
7099       case "$host_os" in
7100       rhapsody* | darwin1.[012])
7101         allow_undefined_flag='-undefined suppress'
7102         ;;
7103       *) # Darwin 1.3 on
7104       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7105         allow_undefined_flag='-flat_namespace -undefined suppress'
7106       else
7107         case ${MACOSX_DEPLOYMENT_TARGET} in
7108           10.[012])
7109             allow_undefined_flag='-flat_namespace -undefined suppress'
7110             ;;
7111           10.*)
7112             allow_undefined_flag='-undefined dynamic_lookup'
7113             ;;
7114         esac
7115       fi
7116         ;;
7117       esac
7118         lt_int_apple_cc_single_mod=no
7119         output_verbose_link_cmd='echo'
7120         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7121           lt_int_apple_cc_single_mod=yes
7122         fi
7123         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7124           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7125         else
7126         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7127       fi
7128       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7129       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7130         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7131           archive_expsym_cmds='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}'
7132         else
7133           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7134         fi
7135           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}'
7136       hardcode_direct=no
7137       hardcode_automatic=yes
7138       hardcode_shlibpath_var=unsupported
7139       whole_archive_flag_spec='-all_load $convenience'
7140       link_all_deplibs=yes
7141     else
7142       ld_shlibs=no
7143     fi
7144       ;;
7145
7146     dgux*)
7147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148       hardcode_libdir_flag_spec='-L$libdir'
7149       hardcode_shlibpath_var=no
7150       ;;
7151
7152     freebsd1*)
7153       ld_shlibs=no
7154       ;;
7155
7156     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7157     # support.  Future versions do this automatically, but an explicit c++rt0.o
7158     # does not break anything, and helps significantly (at the cost of a little
7159     # extra space).
7160     freebsd2.2*)
7161       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7162       hardcode_libdir_flag_spec='-R$libdir'
7163       hardcode_direct=yes
7164       hardcode_shlibpath_var=no
7165       ;;
7166
7167     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7168     freebsd2*)
7169       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7170       hardcode_direct=yes
7171       hardcode_minus_L=yes
7172       hardcode_shlibpath_var=no
7173       ;;
7174
7175     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7176     freebsd* | kfreebsd*-gnu)
7177       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7178       hardcode_libdir_flag_spec='-R$libdir'
7179       hardcode_direct=yes
7180       hardcode_shlibpath_var=no
7181       ;;
7182
7183     hpux9*)
7184       if test "$GCC" = yes; then
7185         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7186       else
7187         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7188       fi
7189       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190       hardcode_libdir_separator=:
7191       hardcode_direct=yes
7192
7193       # hardcode_minus_L: Not really in the search PATH,
7194       # but as the default location of the library.
7195       hardcode_minus_L=yes
7196       export_dynamic_flag_spec='${wl}-E'
7197       ;;
7198
7199     hpux10* | hpux11*)
7200       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7201         case "$host_cpu" in
7202         hppa*64*|ia64*)
7203           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7204           ;;
7205         *)
7206           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7207           ;;
7208         esac
7209       else
7210         case "$host_cpu" in
7211         hppa*64*|ia64*)
7212           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7213           ;;
7214         *)
7215           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7216           ;;
7217         esac
7218       fi
7219       if test "$with_gnu_ld" = no; then
7220         case "$host_cpu" in
7221         hppa*64*)
7222           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223           hardcode_libdir_flag_spec_ld='+b $libdir'
7224           hardcode_libdir_separator=:
7225           hardcode_direct=no
7226           hardcode_shlibpath_var=no
7227           ;;
7228         ia64*)
7229           hardcode_libdir_flag_spec='-L$libdir'
7230           hardcode_direct=no
7231           hardcode_shlibpath_var=no
7232
7233           # hardcode_minus_L: Not really in the search PATH,
7234           # but as the default location of the library.
7235           hardcode_minus_L=yes
7236           ;;
7237         *)
7238           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7239           hardcode_libdir_separator=:
7240           hardcode_direct=yes
7241           export_dynamic_flag_spec='${wl}-E'
7242
7243           # hardcode_minus_L: Not really in the search PATH,
7244           # but as the default location of the library.
7245           hardcode_minus_L=yes
7246           ;;
7247         esac
7248       fi
7249       ;;
7250
7251     irix5* | irix6* | nonstopux*)
7252       if test "$GCC" = yes; then
7253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7254       else
7255         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7256         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7257       fi
7258       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7259       hardcode_libdir_separator=:
7260       link_all_deplibs=yes
7261       ;;
7262
7263     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7265         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7266       else
7267         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7268       fi
7269       hardcode_libdir_flag_spec='-R$libdir'
7270       hardcode_direct=yes
7271       hardcode_shlibpath_var=no
7272       ;;
7273
7274     newsos6)
7275       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7276       hardcode_direct=yes
7277       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7278       hardcode_libdir_separator=:
7279       hardcode_shlibpath_var=no
7280       ;;
7281
7282     openbsd*)
7283       hardcode_direct=yes
7284       hardcode_shlibpath_var=no
7285       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7286         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7287         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7288         export_dynamic_flag_spec='${wl}-E'
7289       else
7290        case $host_os in
7291          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7292            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7293            hardcode_libdir_flag_spec='-R$libdir'
7294            ;;
7295          *)
7296            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298            ;;
7299        esac
7300       fi
7301       ;;
7302
7303     os2*)
7304       hardcode_libdir_flag_spec='-L$libdir'
7305       hardcode_minus_L=yes
7306       allow_undefined_flag=unsupported
7307       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7308       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7309       ;;
7310
7311     osf3*)
7312       if test "$GCC" = yes; then
7313         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7315       else
7316         allow_undefined_flag=' -expect_unresolved \*'
7317         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7318       fi
7319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320       hardcode_libdir_separator=:
7321       ;;
7322
7323     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7324       if test "$GCC" = yes; then
7325         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7327         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328       else
7329         allow_undefined_flag=' -expect_unresolved \*'
7330         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7331         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7332         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7333
7334         # Both c and cxx compiler support -rpath directly
7335         hardcode_libdir_flag_spec='-rpath $libdir'
7336       fi
7337       hardcode_libdir_separator=:
7338       ;;
7339
7340     sco3.2v5*)
7341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342       hardcode_shlibpath_var=no
7343       export_dynamic_flag_spec='${wl}-Bexport'
7344       runpath_var=LD_RUN_PATH
7345       hardcode_runpath_var=yes
7346       ;;
7347
7348     solaris*)
7349       no_undefined_flag=' -z text'
7350       if test "$GCC" = yes; then
7351         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7354       else
7355         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7358       fi
7359       hardcode_libdir_flag_spec='-R$libdir'
7360       hardcode_shlibpath_var=no
7361       case $host_os in
7362       solaris2.[0-5] | solaris2.[0-5].*) ;;
7363       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7364         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7365       esac
7366       link_all_deplibs=yes
7367       ;;
7368
7369     sunos4*)
7370       if test "x$host_vendor" = xsequent; then
7371         # Use $CC to link under sequent, because it throws in some extra .o
7372         # files that make .init and .fini sections work.
7373         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7374       else
7375         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7376       fi
7377       hardcode_libdir_flag_spec='-L$libdir'
7378       hardcode_direct=yes
7379       hardcode_minus_L=yes
7380       hardcode_shlibpath_var=no
7381       ;;
7382
7383     sysv4)
7384       case $host_vendor in
7385         sni)
7386           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387           hardcode_direct=yes # is this really true???
7388         ;;
7389         siemens)
7390           ## LD is ld it makes a PLAMLIB
7391           ## CC just makes a GrossModule.
7392           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7393           reload_cmds='$CC -r -o $output$reload_objs'
7394           hardcode_direct=no
7395         ;;
7396         motorola)
7397           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7399         ;;
7400       esac
7401       runpath_var='LD_RUN_PATH'
7402       hardcode_shlibpath_var=no
7403       ;;
7404
7405     sysv4.3*)
7406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407       hardcode_shlibpath_var=no
7408       export_dynamic_flag_spec='-Bexport'
7409       ;;
7410
7411     sysv4*MP*)
7412       if test -d /usr/nec; then
7413         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414         hardcode_shlibpath_var=no
7415         runpath_var=LD_RUN_PATH
7416         hardcode_runpath_var=yes
7417         ld_shlibs=yes
7418       fi
7419       ;;
7420
7421     sysv4.2uw2*)
7422       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7423       hardcode_direct=yes
7424       hardcode_minus_L=no
7425       hardcode_shlibpath_var=no
7426       hardcode_runpath_var=yes
7427       runpath_var=LD_RUN_PATH
7428       ;;
7429
7430    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7431       no_undefined_flag='${wl}-z ${wl}text'
7432       if test "$GCC" = yes; then
7433         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7434       else
7435         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7436       fi
7437       runpath_var='LD_RUN_PATH'
7438       hardcode_shlibpath_var=no
7439       ;;
7440
7441     sysv5*)
7442       no_undefined_flag=' -z text'
7443       # $CC -shared without GNU ld will not create a library from C++
7444       # object files and a static libstdc++, better avoid it by now
7445       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7447                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7448       hardcode_libdir_flag_spec=
7449       hardcode_shlibpath_var=no
7450       runpath_var='LD_RUN_PATH'
7451       ;;
7452
7453     uts4*)
7454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455       hardcode_libdir_flag_spec='-L$libdir'
7456       hardcode_shlibpath_var=no
7457       ;;
7458
7459     *)
7460       ld_shlibs=no
7461       ;;
7462     esac
7463   fi
7464
7465 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7466 echo "${ECHO_T}$ld_shlibs" >&6
7467 test "$ld_shlibs" = no && can_build_shared=no
7468
7469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7470 if test "$GCC" = yes; then
7471   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7472 fi
7473
7474 #
7475 # Do we need to explicitly link libc?
7476 #
7477 case "x$archive_cmds_need_lc" in
7478 x|xyes)
7479   # Assume -lc should be added
7480   archive_cmds_need_lc=yes
7481
7482   if test "$enable_shared" = yes && test "$GCC" = yes; then
7483     case $archive_cmds in
7484     *'~'*)
7485       # FIXME: we may have to deal with multi-command sequences.
7486       ;;
7487     '$CC '*)
7488       # Test whether the compiler implicitly links with -lc since on some
7489       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7490       # to ld, don't add -lc before -lgcc.
7491       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7493       $rm conftest*
7494       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7495
7496       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497   (eval $ac_compile) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } 2>conftest.err; then
7501         soname=conftest
7502         lib=conftest
7503         libobjs=conftest.$ac_objext
7504         deplibs=
7505         wl=$lt_prog_compiler_wl
7506         compiler_flags=-v
7507         linker_flags=-v
7508         verstring=
7509         output_objdir=.
7510         libname=conftest
7511         lt_save_allow_undefined_flag=$allow_undefined_flag
7512         allow_undefined_flag=
7513         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7514   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }
7518         then
7519           archive_cmds_need_lc=no
7520         else
7521           archive_cmds_need_lc=yes
7522         fi
7523         allow_undefined_flag=$lt_save_allow_undefined_flag
7524       else
7525         cat conftest.err 1>&5
7526       fi
7527       $rm conftest*
7528       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7529 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7530       ;;
7531     esac
7532   fi
7533   ;;
7534 esac
7535
7536 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7537 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7538 library_names_spec=
7539 libname_spec='lib$name'
7540 soname_spec=
7541 shrext_cmds=".so"
7542 postinstall_cmds=
7543 postuninstall_cmds=
7544 finish_cmds=
7545 finish_eval=
7546 shlibpath_var=
7547 shlibpath_overrides_runpath=unknown
7548 version_type=none
7549 dynamic_linker="$host_os ld.so"
7550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7551 if test "$GCC" = yes; then
7552   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7553   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7554     # if the path contains ";" then we assume it to be the separator
7555     # otherwise default to the standard path separator (i.e. ":") - it is
7556     # assumed that no part of a normal pathname contains ";" but that should
7557     # okay in the real world where ";" in dirpaths is itself problematic.
7558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7559   else
7560     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7561   fi
7562 else
7563   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7564 fi
7565 need_lib_prefix=unknown
7566 hardcode_into_libs=no
7567
7568 # when you set need_version to no, make sure it does not cause -set_version
7569 # flags to be left without arguments
7570 need_version=unknown
7571
7572 case $host_os in
7573 aix3*)
7574   version_type=linux
7575   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7576   shlibpath_var=LIBPATH
7577
7578   # AIX 3 has no versioning support, so we append a major version to the name.
7579   soname_spec='${libname}${release}${shared_ext}$major'
7580   ;;
7581
7582 aix4* | aix5*)
7583   version_type=linux
7584   need_lib_prefix=no
7585   need_version=no
7586   hardcode_into_libs=yes
7587   if test "$host_cpu" = ia64; then
7588     # AIX 5 supports IA64
7589     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7590     shlibpath_var=LD_LIBRARY_PATH
7591   else
7592     # With GCC up to 2.95.x, collect2 would create an import file
7593     # for dependence libraries.  The import file would start with
7594     # the line `#! .'.  This would cause the generated library to
7595     # depend on `.', always an invalid library.  This was fixed in
7596     # development snapshots of GCC prior to 3.0.
7597     case $host_os in
7598       aix4 | aix4.[01] | aix4.[01].*)
7599       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7600            echo ' yes '
7601            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7602         :
7603       else
7604         can_build_shared=no
7605       fi
7606       ;;
7607     esac
7608     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7609     # soname into executable. Probably we can add versioning support to
7610     # collect2, so additional links can be useful in future.
7611     if test "$aix_use_runtimelinking" = yes; then
7612       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7613       # instead of lib<name>.a to let people know that these are not
7614       # typical AIX shared libraries.
7615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7616     else
7617       # We preserve .a as extension for shared libraries through AIX4.2
7618       # and later when we are not doing run time linking.
7619       library_names_spec='${libname}${release}.a $libname.a'
7620       soname_spec='${libname}${release}${shared_ext}$major'
7621     fi
7622     shlibpath_var=LIBPATH
7623   fi
7624   ;;
7625
7626 amigaos*)
7627   library_names_spec='$libname.ixlibrary $libname.a'
7628   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7629   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'
7630   ;;
7631
7632 beos*)
7633   library_names_spec='${libname}${shared_ext}'
7634   dynamic_linker="$host_os ld.so"
7635   shlibpath_var=LIBRARY_PATH
7636   ;;
7637
7638 bsdi4*)
7639   version_type=linux
7640   need_version=no
7641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642   soname_spec='${libname}${release}${shared_ext}$major'
7643   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7644   shlibpath_var=LD_LIBRARY_PATH
7645   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7646   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7647   # the default ld.so.conf also contains /usr/contrib/lib and
7648   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7649   # libtool to hard-code these into programs
7650   ;;
7651
7652 cygwin* | mingw* | pw32*)
7653   version_type=windows
7654   shrext_cmds=".dll"
7655   need_version=no
7656   need_lib_prefix=no
7657
7658   case $GCC,$host_os in
7659   yes,cygwin* | yes,mingw* | yes,pw32*)
7660     library_names_spec='$libname.dll.a'
7661     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7662     postinstall_cmds='base_file=`basename \${file}`~
7663       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7664       dldir=$destdir/`dirname \$dlpath`~
7665       test -d \$dldir || mkdir -p \$dldir~
7666       $install_prog $dir/$dlname \$dldir/$dlname'
7667     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7668       dlpath=$dir/\$dldll~
7669        $rm \$dlpath'
7670     shlibpath_overrides_runpath=yes
7671
7672     case $host_os in
7673     cygwin*)
7674       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7675       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7676       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7677       ;;
7678     mingw*)
7679       # MinGW DLLs use traditional 'lib' prefix
7680       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7681       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7682       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7683         # It is most probably a Windows format PATH printed by
7684         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7685         # path with ; separators, and with drive letters. We can handle the
7686         # drive letters (cygwin fileutils understands them), so leave them,
7687         # especially as we might pass files found there to a mingw objdump,
7688         # which wouldn't understand a cygwinified path. Ahh.
7689         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7690       else
7691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7692       fi
7693       ;;
7694     pw32*)
7695       # pw32 DLLs use 'pw' prefix rather than 'lib'
7696       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7697       ;;
7698     esac
7699     ;;
7700
7701   *)
7702     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7703     ;;
7704   esac
7705   dynamic_linker='Win32 ld.exe'
7706   # FIXME: first we should search . and the directory the executable is in
7707   shlibpath_var=PATH
7708   ;;
7709
7710 darwin* | rhapsody*)
7711   dynamic_linker="$host_os dyld"
7712   version_type=darwin
7713   need_lib_prefix=no
7714   need_version=no
7715   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7716   soname_spec='${libname}${release}${major}$shared_ext'
7717   shlibpath_overrides_runpath=yes
7718   shlibpath_var=DYLD_LIBRARY_PATH
7719   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7720   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7721   if test "$GCC" = yes; then
7722     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"`
7723   else
7724     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7725   fi
7726   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7727   ;;
7728
7729 dgux*)
7730   version_type=linux
7731   need_lib_prefix=no
7732   need_version=no
7733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7734   soname_spec='${libname}${release}${shared_ext}$major'
7735   shlibpath_var=LD_LIBRARY_PATH
7736   ;;
7737
7738 freebsd1*)
7739   dynamic_linker=no
7740   ;;
7741
7742 kfreebsd*-gnu)
7743   version_type=linux
7744   need_lib_prefix=no
7745   need_version=no
7746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7747   soname_spec='${libname}${release}${shared_ext}$major'
7748   shlibpath_var=LD_LIBRARY_PATH
7749   shlibpath_overrides_runpath=no
7750   hardcode_into_libs=yes
7751   dynamic_linker='GNU ld.so'
7752   ;;
7753
7754 freebsd*)
7755   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7756   version_type=freebsd-$objformat
7757   case $version_type in
7758     freebsd-elf*)
7759       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7760       need_version=no
7761       need_lib_prefix=no
7762       ;;
7763     freebsd-*)
7764       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7765       need_version=yes
7766       ;;
7767   esac
7768   shlibpath_var=LD_LIBRARY_PATH
7769   case $host_os in
7770   freebsd2*)
7771     shlibpath_overrides_runpath=yes
7772     ;;
7773   freebsd3.01* | freebsdelf3.01*)
7774     shlibpath_overrides_runpath=yes
7775     hardcode_into_libs=yes
7776     ;;
7777   *) # from 3.2 on
7778     shlibpath_overrides_runpath=no
7779     hardcode_into_libs=yes
7780     ;;
7781   esac
7782   ;;
7783
7784 gnu*)
7785   version_type=linux
7786   need_lib_prefix=no
7787   need_version=no
7788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7789   soname_spec='${libname}${release}${shared_ext}$major'
7790   shlibpath_var=LD_LIBRARY_PATH
7791   hardcode_into_libs=yes
7792   ;;
7793
7794 hpux9* | hpux10* | hpux11*)
7795   # Give a soname corresponding to the major version so that dld.sl refuses to
7796   # link against other versions.
7797   version_type=sunos
7798   need_lib_prefix=no
7799   need_version=no
7800   case "$host_cpu" in
7801   ia64*)
7802     shrext_cmds='.so'
7803     hardcode_into_libs=yes
7804     dynamic_linker="$host_os dld.so"
7805     shlibpath_var=LD_LIBRARY_PATH
7806     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808     soname_spec='${libname}${release}${shared_ext}$major'
7809     if test "X$HPUX_IA64_MODE" = X32; then
7810       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7811     else
7812       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7813     fi
7814     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7815     ;;
7816    hppa*64*)
7817      shrext_cmds='.sl'
7818      hardcode_into_libs=yes
7819      dynamic_linker="$host_os dld.sl"
7820      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7821      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7822      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823      soname_spec='${libname}${release}${shared_ext}$major'
7824      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7825      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7826      ;;
7827    *)
7828     shrext_cmds='.sl'
7829     dynamic_linker="$host_os dld.sl"
7830     shlibpath_var=SHLIB_PATH
7831     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833     soname_spec='${libname}${release}${shared_ext}$major'
7834     ;;
7835   esac
7836   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7837   postinstall_cmds='chmod 555 $lib'
7838   ;;
7839
7840 irix5* | irix6* | nonstopux*)
7841   case $host_os in
7842     nonstopux*) version_type=nonstopux ;;
7843     *)
7844         if test "$lt_cv_prog_gnu_ld" = yes; then
7845                 version_type=linux
7846         else
7847                 version_type=irix
7848         fi ;;
7849   esac
7850   need_lib_prefix=no
7851   need_version=no
7852   soname_spec='${libname}${release}${shared_ext}$major'
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7854   case $host_os in
7855   irix5* | nonstopux*)
7856     libsuff= shlibsuff=
7857     ;;
7858   *)
7859     case $LD in # libtool.m4 will add one of these switches to LD
7860     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7861       libsuff= shlibsuff= libmagic=32-bit;;
7862     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7863       libsuff=32 shlibsuff=N32 libmagic=N32;;
7864     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7865       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7866     *) libsuff= shlibsuff= libmagic=never-match;;
7867     esac
7868     ;;
7869   esac
7870   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7871   shlibpath_overrides_runpath=no
7872   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7873   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7874   hardcode_into_libs=yes
7875   ;;
7876
7877 # No shared lib support for Linux oldld, aout, or coff.
7878 linux*oldld* | linux*aout* | linux*coff*)
7879   dynamic_linker=no
7880   ;;
7881
7882 # This must be Linux ELF.
7883 linux*)
7884   version_type=linux
7885   need_lib_prefix=no
7886   need_version=no
7887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888   soname_spec='${libname}${release}${shared_ext}$major'
7889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7890   shlibpath_var=LD_LIBRARY_PATH
7891   shlibpath_overrides_runpath=no
7892   # This implies no fast_install, which is unacceptable.
7893   # Some rework will be needed to allow for fast_install
7894   # before this can be enabled.
7895   hardcode_into_libs=yes
7896
7897   # Append ld.so.conf contents to the search path
7898   if test -f /etc/ld.so.conf; then
7899     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7901   fi
7902
7903   # We used to test for /lib/ld.so.1 and disable shared libraries on
7904   # powerpc, because MkLinux only supported shared libraries with the
7905   # GNU dynamic linker.  Since this was broken with cross compilers,
7906   # most powerpc-linux boxes support dynamic linking these days and
7907   # people can always --disable-shared, the test was removed, and we
7908   # assume the GNU/Linux dynamic linker is in use.
7909   dynamic_linker='GNU/Linux ld.so'
7910   ;;
7911
7912 netbsdelf*-gnu)
7913   version_type=linux
7914   need_lib_prefix=no
7915   need_version=no
7916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7917   soname_spec='${libname}${release}${shared_ext}$major'
7918   shlibpath_var=LD_LIBRARY_PATH
7919   shlibpath_overrides_runpath=no
7920   hardcode_into_libs=yes
7921   dynamic_linker='NetBSD ld.elf_so'
7922   ;;
7923
7924 knetbsd*-gnu)
7925   version_type=linux
7926   need_lib_prefix=no
7927   need_version=no
7928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7929   soname_spec='${libname}${release}${shared_ext}$major'
7930   shlibpath_var=LD_LIBRARY_PATH
7931   shlibpath_overrides_runpath=no
7932   hardcode_into_libs=yes
7933   dynamic_linker='GNU ld.so'
7934   ;;
7935
7936 netbsd*)
7937   version_type=sunos
7938   need_lib_prefix=no
7939   need_version=no
7940   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7942     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7943     dynamic_linker='NetBSD (a.out) ld.so'
7944   else
7945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7946     soname_spec='${libname}${release}${shared_ext}$major'
7947     dynamic_linker='NetBSD ld.elf_so'
7948   fi
7949   shlibpath_var=LD_LIBRARY_PATH
7950   shlibpath_overrides_runpath=yes
7951   hardcode_into_libs=yes
7952   ;;
7953
7954 newsos6)
7955   version_type=linux
7956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957   shlibpath_var=LD_LIBRARY_PATH
7958   shlibpath_overrides_runpath=yes
7959   ;;
7960
7961 nto-qnx*)
7962   version_type=linux
7963   need_lib_prefix=no
7964   need_version=no
7965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966   soname_spec='${libname}${release}${shared_ext}$major'
7967   shlibpath_var=LD_LIBRARY_PATH
7968   shlibpath_overrides_runpath=yes
7969   ;;
7970
7971 openbsd*)
7972   version_type=sunos
7973   need_lib_prefix=no
7974   need_version=yes
7975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7977   shlibpath_var=LD_LIBRARY_PATH
7978   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7979     case $host_os in
7980       openbsd2.[89] | openbsd2.[89].*)
7981         shlibpath_overrides_runpath=no
7982         ;;
7983       *)
7984         shlibpath_overrides_runpath=yes
7985         ;;
7986       esac
7987   else
7988     shlibpath_overrides_runpath=yes
7989   fi
7990   ;;
7991
7992 os2*)
7993   libname_spec='$name'
7994   shrext_cmds=".dll"
7995   need_lib_prefix=no
7996   library_names_spec='$libname${shared_ext} $libname.a'
7997   dynamic_linker='OS/2 ld.exe'
7998   shlibpath_var=LIBPATH
7999   ;;
8000
8001 osf3* | osf4* | osf5*)
8002   version_type=osf
8003   need_lib_prefix=no
8004   need_version=no
8005   soname_spec='${libname}${release}${shared_ext}$major'
8006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007   shlibpath_var=LD_LIBRARY_PATH
8008   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8009   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8010   ;;
8011
8012 sco3.2v5*)
8013   version_type=osf
8014   soname_spec='${libname}${release}${shared_ext}$major'
8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016   shlibpath_var=LD_LIBRARY_PATH
8017   ;;
8018
8019 solaris*)
8020   version_type=linux
8021   need_lib_prefix=no
8022   need_version=no
8023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024   soname_spec='${libname}${release}${shared_ext}$major'
8025   shlibpath_var=LD_LIBRARY_PATH
8026   shlibpath_overrides_runpath=yes
8027   hardcode_into_libs=yes
8028   # ldd complains unless libraries are executable
8029   postinstall_cmds='chmod +x $lib'
8030   ;;
8031
8032 sunos4*)
8033   version_type=sunos
8034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8035   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8036   shlibpath_var=LD_LIBRARY_PATH
8037   shlibpath_overrides_runpath=yes
8038   if test "$with_gnu_ld" = yes; then
8039     need_lib_prefix=no
8040   fi
8041   need_version=yes
8042   ;;
8043
8044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8045   version_type=linux
8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047   soname_spec='${libname}${release}${shared_ext}$major'
8048   shlibpath_var=LD_LIBRARY_PATH
8049   case $host_vendor in
8050     sni)
8051       shlibpath_overrides_runpath=no
8052       need_lib_prefix=no
8053       export_dynamic_flag_spec='${wl}-Blargedynsym'
8054       runpath_var=LD_RUN_PATH
8055       ;;
8056     siemens)
8057       need_lib_prefix=no
8058       ;;
8059     motorola)
8060       need_lib_prefix=no
8061       need_version=no
8062       shlibpath_overrides_runpath=no
8063       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8064       ;;
8065   esac
8066   ;;
8067
8068 sysv4*MP*)
8069   if test -d /usr/nec ;then
8070     version_type=linux
8071     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8072     soname_spec='$libname${shared_ext}.$major'
8073     shlibpath_var=LD_LIBRARY_PATH
8074   fi
8075   ;;
8076
8077 uts4*)
8078   version_type=linux
8079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080   soname_spec='${libname}${release}${shared_ext}$major'
8081   shlibpath_var=LD_LIBRARY_PATH
8082   ;;
8083
8084 *)
8085   dynamic_linker=no
8086   ;;
8087 esac
8088 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8089 echo "${ECHO_T}$dynamic_linker" >&6
8090 test "$dynamic_linker" = no && can_build_shared=no
8091
8092 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8093 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8094 hardcode_action=
8095 if test -n "$hardcode_libdir_flag_spec" || \
8096    test -n "$runpath_var " || \
8097    test "X$hardcode_automatic"="Xyes" ; then
8098
8099   # We can hardcode non-existant directories.
8100   if test "$hardcode_direct" != no &&
8101      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8102      # have to relink, otherwise we might link with an installed library
8103      # when we should be linking with a yet-to-be-installed one
8104      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8105      test "$hardcode_minus_L" != no; then
8106     # Linking always hardcodes the temporary library directory.
8107     hardcode_action=relink
8108   else
8109     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8110     hardcode_action=immediate
8111   fi
8112 else
8113   # We cannot hardcode anything, or else we can only hardcode existing
8114   # directories.
8115   hardcode_action=unsupported
8116 fi
8117 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8118 echo "${ECHO_T}$hardcode_action" >&6
8119
8120 if test "$hardcode_action" = relink; then
8121   # Fast installation is not supported
8122   enable_fast_install=no
8123 elif test "$shlibpath_overrides_runpath" = yes ||
8124      test "$enable_shared" = no; then
8125   # Fast installation is not necessary
8126   enable_fast_install=needless
8127 fi
8128
8129 striplib=
8130 old_striplib=
8131 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8132 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8133 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8134   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8135   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8136   echo "$as_me:$LINENO: result: yes" >&5
8137 echo "${ECHO_T}yes" >&6
8138 else
8139 # FIXME - insert some real tests, host_os isn't really good enough
8140   case $host_os in
8141    darwin*)
8142        if test -n "$STRIP" ; then
8143          striplib="$STRIP -x"
8144          echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8146        else
8147   echo "$as_me:$LINENO: result: no" >&5
8148 echo "${ECHO_T}no" >&6
8149 fi
8150        ;;
8151    *)
8152   echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8154     ;;
8155   esac
8156 fi
8157
8158 if test "x$enable_dlopen" != xyes; then
8159   enable_dlopen=unknown
8160   enable_dlopen_self=unknown
8161   enable_dlopen_self_static=unknown
8162 else
8163   lt_cv_dlopen=no
8164   lt_cv_dlopen_libs=
8165
8166   case $host_os in
8167   beos*)
8168     lt_cv_dlopen="load_add_on"
8169     lt_cv_dlopen_libs=
8170     lt_cv_dlopen_self=yes
8171     ;;
8172
8173   mingw* | pw32*)
8174     lt_cv_dlopen="LoadLibrary"
8175     lt_cv_dlopen_libs=
8176    ;;
8177
8178   cygwin*)
8179     lt_cv_dlopen="dlopen"
8180     lt_cv_dlopen_libs=
8181    ;;
8182
8183   darwin*)
8184   # if libdl is installed we need to link against it
8185     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8186 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190   ac_check_lib_save_LIBS=$LIBS
8191 LIBS="-ldl  $LIBS"
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h.  */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h.  */
8198
8199 /* Override any gcc2 internal prototype to avoid an error.  */
8200 #ifdef __cplusplus
8201 extern "C"
8202 #endif
8203 /* We use char because int might match the return type of a gcc2
8204    builtin and then its argument prototype would still apply.  */
8205 char dlopen ();
8206 int
8207 main ()
8208 {
8209 dlopen ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216   (eval $ac_link) 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; } &&
8229          { ac_try='test -s conftest$ac_exeext'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; }; then
8235   ac_cv_lib_dl_dlopen=yes
8236 else
8237   echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240 ac_cv_lib_dl_dlopen=no
8241 fi
8242 rm -f conftest.err conftest.$ac_objext \
8243       conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8245 fi
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8248 if test $ac_cv_lib_dl_dlopen = yes; then
8249   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8250 else
8251
8252     lt_cv_dlopen="dyld"
8253     lt_cv_dlopen_libs=
8254     lt_cv_dlopen_self=yes
8255
8256 fi
8257
8258    ;;
8259
8260   *)
8261     echo "$as_me:$LINENO: checking for shl_load" >&5
8262 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8263 if test "${ac_cv_func_shl_load+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8274 #define shl_load innocuous_shl_load
8275
8276 /* System header to define __stub macros and hopefully few prototypes,
8277     which can conflict with char shl_load (); below.
8278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279     <limits.h> exists even on freestanding compilers.  */
8280
8281 #ifdef __STDC__
8282 # include <limits.h>
8283 #else
8284 # include <assert.h>
8285 #endif
8286
8287 #undef shl_load
8288
8289 /* Override any gcc2 internal prototype to avoid an error.  */
8290 #ifdef __cplusplus
8291 extern "C"
8292 {
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295    builtin and then its argument prototype would still apply.  */
8296 char shl_load ();
8297 /* The GNU C library defines this for functions which it implements
8298     to always fail with ENOSYS.  Some functions are actually named
8299     something starting with __ and the normal name is an alias.  */
8300 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8301 choke me
8302 #else
8303 char (*f) () = shl_load;
8304 #endif
8305 #ifdef __cplusplus
8306 }
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 return f != shl_load;
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319   (eval $ac_link) 2>conftest.er1
8320   ac_status=$?
8321   grep -v '^ *+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } &&
8326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; } &&
8332          { ac_try='test -s conftest$ac_exeext'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; }; then
8338   ac_cv_func_shl_load=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 ac_cv_func_shl_load=no
8344 fi
8345 rm -f conftest.err conftest.$ac_objext \
8346       conftest$ac_exeext conftest.$ac_ext
8347 fi
8348 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8349 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8350 if test $ac_cv_func_shl_load = yes; then
8351   lt_cv_dlopen="shl_load"
8352 else
8353   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8354 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8355 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   ac_check_lib_save_LIBS=$LIBS
8359 LIBS="-ldld  $LIBS"
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h.  */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h.  */
8366
8367 /* Override any gcc2 internal prototype to avoid an error.  */
8368 #ifdef __cplusplus
8369 extern "C"
8370 #endif
8371 /* We use char because int might match the return type of a gcc2
8372    builtin and then its argument prototype would still apply.  */
8373 char shl_load ();
8374 int
8375 main ()
8376 {
8377 shl_load ();
8378   ;
8379   return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384   (eval $ac_link) 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393   (eval $ac_try) 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; } &&
8397          { ac_try='test -s conftest$ac_exeext'
8398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399   (eval $ac_try) 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; }; then
8403   ac_cv_lib_dld_shl_load=yes
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_lib_dld_shl_load=no
8409 fi
8410 rm -f conftest.err conftest.$ac_objext \
8411       conftest$ac_exeext conftest.$ac_ext
8412 LIBS=$ac_check_lib_save_LIBS
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8416 if test $ac_cv_lib_dld_shl_load = yes; then
8417   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8418 else
8419   echo "$as_me:$LINENO: checking for dlopen" >&5
8420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8421 if test "${ac_cv_func_dlopen+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8432 #define dlopen innocuous_dlopen
8433
8434 /* System header to define __stub macros and hopefully few prototypes,
8435     which can conflict with char dlopen (); below.
8436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437     <limits.h> exists even on freestanding compilers.  */
8438
8439 #ifdef __STDC__
8440 # include <limits.h>
8441 #else
8442 # include <assert.h>
8443 #endif
8444
8445 #undef dlopen
8446
8447 /* Override any gcc2 internal prototype to avoid an error.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 {
8451 #endif
8452 /* We use char because int might match the return type of a gcc2
8453    builtin and then its argument prototype would still apply.  */
8454 char dlopen ();
8455 /* The GNU C library defines this for functions which it implements
8456     to always fail with ENOSYS.  Some functions are actually named
8457     something starting with __ and the normal name is an alias.  */
8458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8459 choke me
8460 #else
8461 char (*f) () = dlopen;
8462 #endif
8463 #ifdef __cplusplus
8464 }
8465 #endif
8466
8467 int
8468 main ()
8469 {
8470 return f != dlopen;
8471   ;
8472   return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477   (eval $ac_link) 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; } &&
8490          { ac_try='test -s conftest$ac_exeext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_func_dlopen=yes
8497 else
8498   echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_cv_func_dlopen=no
8502 fi
8503 rm -f conftest.err conftest.$ac_objext \
8504       conftest$ac_exeext conftest.$ac_ext
8505 fi
8506 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8507 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8508 if test $ac_cv_func_dlopen = yes; then
8509   lt_cv_dlopen="dlopen"
8510 else
8511   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   ac_check_lib_save_LIBS=$LIBS
8517 LIBS="-ldl  $LIBS"
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 /* We use char because int might match the return type of a gcc2
8530    builtin and then its argument prototype would still apply.  */
8531 char dlopen ();
8532 int
8533 main ()
8534 {
8535 dlopen ();
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542   (eval $ac_link) 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_lib_dl_dlopen=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_cv_lib_dl_dlopen=no
8567 fi
8568 rm -f conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8571 fi
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8574 if test $ac_cv_lib_dl_dlopen = yes; then
8575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8576 else
8577   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8578 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8579 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582   ac_check_lib_save_LIBS=$LIBS
8583 LIBS="-lsvld  $LIBS"
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591 /* Override any gcc2 internal prototype to avoid an error.  */
8592 #ifdef __cplusplus
8593 extern "C"
8594 #endif
8595 /* We use char because int might match the return type of a gcc2
8596    builtin and then its argument prototype would still apply.  */
8597 char dlopen ();
8598 int
8599 main ()
8600 {
8601 dlopen ();
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608   (eval $ac_link) 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_exeext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_lib_svld_dlopen=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_cv_lib_svld_dlopen=no
8633 fi
8634 rm -f conftest.err conftest.$ac_objext \
8635       conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8637 fi
8638 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8639 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8640 if test $ac_cv_lib_svld_dlopen = yes; then
8641   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8642 else
8643   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8644 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8645 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   ac_check_lib_save_LIBS=$LIBS
8649 LIBS="-ldld  $LIBS"
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656
8657 /* Override any gcc2 internal prototype to avoid an error.  */
8658 #ifdef __cplusplus
8659 extern "C"
8660 #endif
8661 /* We use char because int might match the return type of a gcc2
8662    builtin and then its argument prototype would still apply.  */
8663 char dld_link ();
8664 int
8665 main ()
8666 {
8667 dld_link ();
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674   (eval $ac_link) 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } &&
8681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; } &&
8687          { ac_try='test -s conftest$ac_exeext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   ac_cv_lib_dld_dld_link=yes
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_lib_dld_dld_link=no
8699 fi
8700 rm -f conftest.err conftest.$ac_objext \
8701       conftest$ac_exeext conftest.$ac_ext
8702 LIBS=$ac_check_lib_save_LIBS
8703 fi
8704 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8705 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8706 if test $ac_cv_lib_dld_dld_link = yes; then
8707   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8708 fi
8709
8710
8711 fi
8712
8713
8714 fi
8715
8716
8717 fi
8718
8719
8720 fi
8721
8722
8723 fi
8724
8725     ;;
8726   esac
8727
8728   if test "x$lt_cv_dlopen" != xno; then
8729     enable_dlopen=yes
8730   else
8731     enable_dlopen=no
8732   fi
8733
8734   case $lt_cv_dlopen in
8735   dlopen)
8736     save_CPPFLAGS="$CPPFLAGS"
8737     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8738
8739     save_LDFLAGS="$LDFLAGS"
8740     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8741
8742     save_LIBS="$LIBS"
8743     LIBS="$lt_cv_dlopen_libs $LIBS"
8744
8745     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8746 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8747 if test "${lt_cv_dlopen_self+set}" = set; then
8748   echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750           if test "$cross_compiling" = yes; then :
8751   lt_cv_dlopen_self=cross
8752 else
8753   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8754   lt_status=$lt_dlunknown
8755   cat > conftest.$ac_ext <<EOF
8756 #line 8756 "configure"
8757 #include "confdefs.h"
8758
8759 #if HAVE_DLFCN_H
8760 #include <dlfcn.h>
8761 #endif
8762
8763 #include <stdio.h>
8764
8765 #ifdef RTLD_GLOBAL
8766 #  define LT_DLGLOBAL           RTLD_GLOBAL
8767 #else
8768 #  ifdef DL_GLOBAL
8769 #    define LT_DLGLOBAL         DL_GLOBAL
8770 #  else
8771 #    define LT_DLGLOBAL         0
8772 #  endif
8773 #endif
8774
8775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8776    find out it does not work in some platform. */
8777 #ifndef LT_DLLAZY_OR_NOW
8778 #  ifdef RTLD_LAZY
8779 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8780 #  else
8781 #    ifdef DL_LAZY
8782 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8783 #    else
8784 #      ifdef RTLD_NOW
8785 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8786 #      else
8787 #        ifdef DL_NOW
8788 #          define LT_DLLAZY_OR_NOW      DL_NOW
8789 #        else
8790 #          define LT_DLLAZY_OR_NOW      0
8791 #        endif
8792 #      endif
8793 #    endif
8794 #  endif
8795 #endif
8796
8797 #ifdef __cplusplus
8798 extern "C" void exit (int);
8799 #endif
8800
8801 void fnord() { int i=42;}
8802 int main ()
8803 {
8804   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8805   int status = $lt_dlunknown;
8806
8807   if (self)
8808     {
8809       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8810       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8811       /* dlclose (self); */
8812     }
8813
8814     exit (status);
8815 }
8816 EOF
8817   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818   (eval $ac_link) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8822     (./conftest; exit; ) 2>/dev/null
8823     lt_status=$?
8824     case x$lt_status in
8825       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8826       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8827       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8828     esac
8829   else :
8830     # compilation failed
8831     lt_cv_dlopen_self=no
8832   fi
8833 fi
8834 rm -fr conftest*
8835
8836
8837 fi
8838 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8839 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8840
8841     if test "x$lt_cv_dlopen_self" = xyes; then
8842       LDFLAGS="$LDFLAGS $link_static_flag"
8843       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8844 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8845 if test "${lt_cv_dlopen_self_static+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848           if test "$cross_compiling" = yes; then :
8849   lt_cv_dlopen_self_static=cross
8850 else
8851   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8852   lt_status=$lt_dlunknown
8853   cat > conftest.$ac_ext <<EOF
8854 #line 8854 "configure"
8855 #include "confdefs.h"
8856
8857 #if HAVE_DLFCN_H
8858 #include <dlfcn.h>
8859 #endif
8860
8861 #include <stdio.h>
8862
8863 #ifdef RTLD_GLOBAL
8864 #  define LT_DLGLOBAL           RTLD_GLOBAL
8865 #else
8866 #  ifdef DL_GLOBAL
8867 #    define LT_DLGLOBAL         DL_GLOBAL
8868 #  else
8869 #    define LT_DLGLOBAL         0
8870 #  endif
8871 #endif
8872
8873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8874    find out it does not work in some platform. */
8875 #ifndef LT_DLLAZY_OR_NOW
8876 #  ifdef RTLD_LAZY
8877 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8878 #  else
8879 #    ifdef DL_LAZY
8880 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8881 #    else
8882 #      ifdef RTLD_NOW
8883 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8884 #      else
8885 #        ifdef DL_NOW
8886 #          define LT_DLLAZY_OR_NOW      DL_NOW
8887 #        else
8888 #          define LT_DLLAZY_OR_NOW      0
8889 #        endif
8890 #      endif
8891 #    endif
8892 #  endif
8893 #endif
8894
8895 #ifdef __cplusplus
8896 extern "C" void exit (int);
8897 #endif
8898
8899 void fnord() { int i=42;}
8900 int main ()
8901 {
8902   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8903   int status = $lt_dlunknown;
8904
8905   if (self)
8906     {
8907       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8908       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8909       /* dlclose (self); */
8910     }
8911
8912     exit (status);
8913 }
8914 EOF
8915   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916   (eval $ac_link) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8920     (./conftest; exit; ) 2>/dev/null
8921     lt_status=$?
8922     case x$lt_status in
8923       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8924       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8925       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8926     esac
8927   else :
8928     # compilation failed
8929     lt_cv_dlopen_self_static=no
8930   fi
8931 fi
8932 rm -fr conftest*
8933
8934
8935 fi
8936 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8937 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8938     fi
8939
8940     CPPFLAGS="$save_CPPFLAGS"
8941     LDFLAGS="$save_LDFLAGS"
8942     LIBS="$save_LIBS"
8943     ;;
8944   esac
8945
8946   case $lt_cv_dlopen_self in
8947   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8948   *) enable_dlopen_self=unknown ;;
8949   esac
8950
8951   case $lt_cv_dlopen_self_static in
8952   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8953   *) enable_dlopen_self_static=unknown ;;
8954   esac
8955 fi
8956
8957
8958 # Report which librarie types wil actually be built
8959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8962 echo "${ECHO_T}$can_build_shared" >&6
8963
8964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8966 test "$can_build_shared" = "no" && enable_shared=no
8967
8968 # On AIX, shared libraries and static libraries use the same namespace, and
8969 # are all built from PIC.
8970 case "$host_os" in
8971 aix3*)
8972   test "$enable_shared" = yes && enable_static=no
8973   if test -n "$RANLIB"; then
8974     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8975     postinstall_cmds='$RANLIB $lib'
8976   fi
8977   ;;
8978
8979 aix4* | aix5*)
8980   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8981     test "$enable_shared" = yes && enable_static=no
8982   fi
8983   ;;
8984   darwin* | rhapsody*)
8985   if test "$GCC" = yes; then
8986     archive_cmds_need_lc=no
8987     case "$host_os" in
8988     rhapsody* | darwin1.[012])
8989       allow_undefined_flag='-undefined suppress'
8990       ;;
8991     *) # Darwin 1.3 on
8992       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8993         allow_undefined_flag='-flat_namespace -undefined suppress'
8994       else
8995         case ${MACOSX_DEPLOYMENT_TARGET} in
8996           10.[012])
8997             allow_undefined_flag='-flat_namespace -undefined suppress'
8998             ;;
8999           10.*)
9000             allow_undefined_flag='-undefined dynamic_lookup'
9001             ;;
9002         esac
9003       fi
9004       ;;
9005     esac
9006     output_verbose_link_cmd='echo'
9007     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9008     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9009     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9010     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}'
9011     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}'
9012     hardcode_direct=no
9013     hardcode_automatic=yes
9014     hardcode_shlibpath_var=unsupported
9015     whole_archive_flag_spec='-all_load $convenience'
9016     link_all_deplibs=yes
9017   else
9018     ld_shlibs=no
9019   fi
9020     ;;
9021 esac
9022 echo "$as_me:$LINENO: result: $enable_shared" >&5
9023 echo "${ECHO_T}$enable_shared" >&6
9024
9025 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9026 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9027 # Make sure either enable_shared or enable_static is yes.
9028 test "$enable_shared" = yes || enable_static=yes
9029 echo "$as_me:$LINENO: result: $enable_static" >&5
9030 echo "${ECHO_T}$enable_static" >&6
9031
9032 # The else clause should only fire when bootstrapping the
9033 # libtool distribution, otherwise you forgot to ship ltmain.sh
9034 # with your package, and you will get complaints that there are
9035 # no rules to generate ltmain.sh.
9036 if test -f "$ltmain"; then
9037   # See if we are running on zsh, and set the options which allow our commands through
9038   # without removal of \ escapes.
9039   if test -n "${ZSH_VERSION+set}" ; then
9040     setopt NO_GLOB_SUBST
9041   fi
9042   # Now quote all the things that may contain metacharacters while being
9043   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9044   # variables and quote the copies for generation of the libtool script.
9045   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9046     SED SHELL STRIP \
9047     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9048     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9049     deplibs_check_method reload_flag reload_cmds need_locks \
9050     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9051     lt_cv_sys_global_symbol_to_c_name_address \
9052     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9053     old_postinstall_cmds old_postuninstall_cmds \
9054     compiler \
9055     CC \
9056     LD \
9057     lt_prog_compiler_wl \
9058     lt_prog_compiler_pic \
9059     lt_prog_compiler_static \
9060     lt_prog_compiler_no_builtin_flag \
9061     export_dynamic_flag_spec \
9062     thread_safe_flag_spec \
9063     whole_archive_flag_spec \
9064     enable_shared_with_static_runtimes \
9065     old_archive_cmds \
9066     old_archive_from_new_cmds \
9067     predep_objects \
9068     postdep_objects \
9069     predeps \
9070     postdeps \
9071     compiler_lib_search_path \
9072     archive_cmds \
9073     archive_expsym_cmds \
9074     postinstall_cmds \
9075     postuninstall_cmds \
9076     old_archive_from_expsyms_cmds \
9077     allow_undefined_flag \
9078     no_undefined_flag \
9079     export_symbols_cmds \
9080     hardcode_libdir_flag_spec \
9081     hardcode_libdir_flag_spec_ld \
9082     hardcode_libdir_separator \
9083     hardcode_automatic \
9084     module_cmds \
9085     module_expsym_cmds \
9086     lt_cv_prog_compiler_c_o \
9087     exclude_expsyms \
9088     include_expsyms; do
9089
9090     case $var in
9091     old_archive_cmds | \
9092     old_archive_from_new_cmds | \
9093     archive_cmds | \
9094     archive_expsym_cmds | \
9095     module_cmds | \
9096     module_expsym_cmds | \
9097     old_archive_from_expsyms_cmds | \
9098     export_symbols_cmds | \
9099     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9100     postinstall_cmds | postuninstall_cmds | \
9101     old_postinstall_cmds | old_postuninstall_cmds | \
9102     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9103       # Double-quote double-evaled strings.
9104       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9105       ;;
9106     *)
9107       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9108       ;;
9109     esac
9110   done
9111
9112   case $lt_echo in
9113   *'\$0 --fallback-echo"')
9114     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9115     ;;
9116   esac
9117
9118 cfgfile="${ofile}T"
9119   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9120   $rm -f "$cfgfile"
9121   { echo "$as_me:$LINENO: creating $ofile" >&5
9122 echo "$as_me: creating $ofile" >&6;}
9123
9124   cat <<__EOF__ >> "$cfgfile"
9125 #! $SHELL
9126
9127 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9128 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9130 #
9131 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9132 # Free Software Foundation, Inc.
9133 #
9134 # This file is part of GNU Libtool:
9135 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9136 #
9137 # This program is free software; you can redistribute it and/or modify
9138 # it under the terms of the GNU General Public License as published by
9139 # the Free Software Foundation; either version 2 of the License, or
9140 # (at your option) any later version.
9141 #
9142 # This program is distributed in the hope that it will be useful, but
9143 # WITHOUT ANY WARRANTY; without even the implied warranty of
9144 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9145 # General Public License for more details.
9146 #
9147 # You should have received a copy of the GNU General Public License
9148 # along with this program; if not, write to the Free Software
9149 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9150 #
9151 # As a special exception to the GNU General Public License, if you
9152 # distribute this file as part of a program that contains a
9153 # configuration script generated by Autoconf, you may include it under
9154 # the same distribution terms that you use for the rest of that program.
9155
9156 # A sed program that does not truncate output.
9157 SED=$lt_SED
9158
9159 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9160 Xsed="$SED -e s/^X//"
9161
9162 # The HP-UX ksh and POSIX shell print the target directory to stdout
9163 # if CDPATH is set.
9164 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9165
9166 # The names of the tagged configurations supported by this script.
9167 available_tags=
9168
9169 # ### BEGIN LIBTOOL CONFIG
9170
9171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9172
9173 # Shell to use when invoking shell scripts.
9174 SHELL=$lt_SHELL
9175
9176 # Whether or not to build shared libraries.
9177 build_libtool_libs=$enable_shared
9178
9179 # Whether or not to build static libraries.
9180 build_old_libs=$enable_static
9181
9182 # Whether or not to add -lc for building shared libraries.
9183 build_libtool_need_lc=$archive_cmds_need_lc
9184
9185 # Whether or not to disallow shared libs when runtime libs are static
9186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9187
9188 # Whether or not to optimize for fast installation.
9189 fast_install=$enable_fast_install
9190
9191 # The host system.
9192 host_alias=$host_alias
9193 host=$host
9194
9195 # An echo program that does not interpret backslashes.
9196 echo=$lt_echo
9197
9198 # The archiver.
9199 AR=$lt_AR
9200 AR_FLAGS=$lt_AR_FLAGS
9201
9202 # A C compiler.
9203 LTCC=$lt_LTCC
9204
9205 # A language-specific compiler.
9206 CC=$lt_compiler
9207
9208 # Is the compiler the GNU C compiler?
9209 with_gcc=$GCC
9210
9211 # An ERE matcher.
9212 EGREP=$lt_EGREP
9213
9214 # The linker used to build libraries.
9215 LD=$lt_LD
9216
9217 # Whether we need hard or soft links.
9218 LN_S=$lt_LN_S
9219
9220 # A BSD-compatible nm program.
9221 NM=$lt_NM
9222
9223 # A symbol stripping program
9224 STRIP=$lt_STRIP
9225
9226 # Used to examine libraries when file_magic_cmd begins "file"
9227 MAGIC_CMD=$MAGIC_CMD
9228
9229 # Used on cygwin: DLL creation program.
9230 DLLTOOL="$DLLTOOL"
9231
9232 # Used on cygwin: object dumper.
9233 OBJDUMP="$OBJDUMP"
9234
9235 # Used on cygwin: assembler.
9236 AS="$AS"
9237
9238 # The name of the directory that contains temporary libtool files.
9239 objdir=$objdir
9240
9241 # How to create reloadable object files.
9242 reload_flag=$lt_reload_flag
9243 reload_cmds=$lt_reload_cmds
9244
9245 # How to pass a linker flag through the compiler.
9246 wl=$lt_lt_prog_compiler_wl
9247
9248 # Object file suffix (normally "o").
9249 objext="$ac_objext"
9250
9251 # Old archive suffix (normally "a").
9252 libext="$libext"
9253
9254 # Shared library suffix (normally ".so").
9255 shrext_cmds='$shrext_cmds'
9256
9257 # Executable file suffix (normally "").
9258 exeext="$exeext"
9259
9260 # Additional compiler flags for building library objects.
9261 pic_flag=$lt_lt_prog_compiler_pic
9262 pic_mode=$pic_mode
9263
9264 # What is the maximum length of a command?
9265 max_cmd_len=$lt_cv_sys_max_cmd_len
9266
9267 # Does compiler simultaneously support -c and -o options?
9268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9269
9270 # Must we lock files when doing compilation ?
9271 need_locks=$lt_need_locks
9272
9273 # Do we need the lib prefix for modules?
9274 need_lib_prefix=$need_lib_prefix
9275
9276 # Do we need a version for libraries?
9277 need_version=$need_version
9278
9279 # Whether dlopen is supported.
9280 dlopen_support=$enable_dlopen
9281
9282 # Whether dlopen of programs is supported.
9283 dlopen_self=$enable_dlopen_self
9284
9285 # Whether dlopen of statically linked programs is supported.
9286 dlopen_self_static=$enable_dlopen_self_static
9287
9288 # Compiler flag to prevent dynamic linking.
9289 link_static_flag=$lt_lt_prog_compiler_static
9290
9291 # Compiler flag to turn off builtin functions.
9292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9293
9294 # Compiler flag to allow reflexive dlopens.
9295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9296
9297 # Compiler flag to generate shared objects directly from archives.
9298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9299
9300 # Compiler flag to generate thread-safe objects.
9301 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9302
9303 # Library versioning type.
9304 version_type=$version_type
9305
9306 # Format of library name prefix.
9307 libname_spec=$lt_libname_spec
9308
9309 # List of archive names.  First name is the real one, the rest are links.
9310 # The last name is the one that the linker finds with -lNAME.
9311 library_names_spec=$lt_library_names_spec
9312
9313 # The coded name of the library, if different from the real name.
9314 soname_spec=$lt_soname_spec
9315
9316 # Commands used to build and install an old-style archive.
9317 RANLIB=$lt_RANLIB
9318 old_archive_cmds=$lt_old_archive_cmds
9319 old_postinstall_cmds=$lt_old_postinstall_cmds
9320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9321
9322 # Create an old-style archive from a shared archive.
9323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9324
9325 # Create a temporary old-style archive to link instead of a shared archive.
9326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9327
9328 # Commands used to build and install a shared archive.
9329 archive_cmds=$lt_archive_cmds
9330 archive_expsym_cmds=$lt_archive_expsym_cmds
9331 postinstall_cmds=$lt_postinstall_cmds
9332 postuninstall_cmds=$lt_postuninstall_cmds
9333
9334 # Commands used to build a loadable module (assumed same as above if empty)
9335 module_cmds=$lt_module_cmds
9336 module_expsym_cmds=$lt_module_expsym_cmds
9337
9338 # Commands to strip libraries.
9339 old_striplib=$lt_old_striplib
9340 striplib=$lt_striplib
9341
9342 # Dependencies to place before the objects being linked to create a
9343 # shared library.
9344 predep_objects=$lt_predep_objects
9345
9346 # Dependencies to place after the objects being linked to create a
9347 # shared library.
9348 postdep_objects=$lt_postdep_objects
9349
9350 # Dependencies to place before the objects being linked to create a
9351 # shared library.
9352 predeps=$lt_predeps
9353
9354 # Dependencies to place after the objects being linked to create a
9355 # shared library.
9356 postdeps=$lt_postdeps
9357
9358 # The library search path used internally by the compiler when linking
9359 # a shared library.
9360 compiler_lib_search_path=$lt_compiler_lib_search_path
9361
9362 # Method to check whether dependent libraries are shared objects.
9363 deplibs_check_method=$lt_deplibs_check_method
9364
9365 # Command to use when deplibs_check_method == file_magic.
9366 file_magic_cmd=$lt_file_magic_cmd
9367
9368 # Flag that allows shared libraries with undefined symbols to be built.
9369 allow_undefined_flag=$lt_allow_undefined_flag
9370
9371 # Flag that forces no undefined symbols.
9372 no_undefined_flag=$lt_no_undefined_flag
9373
9374 # Commands used to finish a libtool library installation in a directory.
9375 finish_cmds=$lt_finish_cmds
9376
9377 # Same as above, but a single script fragment to be evaled but not shown.
9378 finish_eval=$lt_finish_eval
9379
9380 # Take the output of nm and produce a listing of raw symbols and C names.
9381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9382
9383 # Transform the output of nm in a proper C declaration
9384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9385
9386 # Transform the output of nm in a C name address pair
9387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9388
9389 # This is the shared library runtime path variable.
9390 runpath_var=$runpath_var
9391
9392 # This is the shared library path variable.
9393 shlibpath_var=$shlibpath_var
9394
9395 # Is shlibpath searched before the hard-coded library search path?
9396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9397
9398 # How to hardcode a shared library path into an executable.
9399 hardcode_action=$hardcode_action
9400
9401 # Whether we should hardcode library paths into libraries.
9402 hardcode_into_libs=$hardcode_into_libs
9403
9404 # Flag to hardcode \$libdir into a binary during linking.
9405 # This must work even if \$libdir does not exist.
9406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9407
9408 # If ld is used when linking, flag to hardcode \$libdir into
9409 # a binary during linking. This must work even if \$libdir does
9410 # not exist.
9411 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9412
9413 # Whether we need a single -rpath flag with a separated argument.
9414 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9415
9416 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9417 # resulting binary.
9418 hardcode_direct=$hardcode_direct
9419
9420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9421 # resulting binary.
9422 hardcode_minus_L=$hardcode_minus_L
9423
9424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9425 # the resulting binary.
9426 hardcode_shlibpath_var=$hardcode_shlibpath_var
9427
9428 # Set to yes if building a shared library automatically hardcodes DIR into the library
9429 # and all subsequent libraries and executables linked against it.
9430 hardcode_automatic=$hardcode_automatic
9431
9432 # Variables whose values should be saved in libtool wrapper scripts and
9433 # restored at relink time.
9434 variables_saved_for_relink="$variables_saved_for_relink"
9435
9436 # Whether libtool must link a program against all its dependency libraries.
9437 link_all_deplibs=$link_all_deplibs
9438
9439 # Compile-time system search path for libraries
9440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9441
9442 # Run-time system search path for libraries
9443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9444
9445 # Fix the shell variable \$srcfile for the compiler.
9446 fix_srcfile_path="$fix_srcfile_path"
9447
9448 # Set to yes if exported symbols are required.
9449 always_export_symbols=$always_export_symbols
9450
9451 # The commands to list exported symbols.
9452 export_symbols_cmds=$lt_export_symbols_cmds
9453
9454 # The commands to extract the exported symbol list from a shared archive.
9455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9456
9457 # Symbols that should not be listed in the preloaded symbols.
9458 exclude_expsyms=$lt_exclude_expsyms
9459
9460 # Symbols that must always be exported.
9461 include_expsyms=$lt_include_expsyms
9462
9463 # ### END LIBTOOL CONFIG
9464
9465 __EOF__
9466
9467
9468   case $host_os in
9469   aix3*)
9470     cat <<\EOF >> "$cfgfile"
9471
9472 # AIX sometimes has problems with the GCC collect2 program.  For some
9473 # reason, if we set the COLLECT_NAMES environment variable, the problems
9474 # vanish in a puff of smoke.
9475 if test "X${COLLECT_NAMES+set}" != Xset; then
9476   COLLECT_NAMES=
9477   export COLLECT_NAMES
9478 fi
9479 EOF
9480     ;;
9481   esac
9482
9483   # We use sed instead of cat because bash on DJGPP gets confused if
9484   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9485   # text mode, it properly converts lines to CR/LF.  This bash problem
9486   # is reportedly fixed, but why not run on old versions too?
9487   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9488
9489   mv -f "$cfgfile" "$ofile" || \
9490     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9491   chmod +x "$ofile"
9492
9493 else
9494   # If there is no Makefile yet, we rely on a make rule to execute
9495   # `config.status --recheck' to rerun these tests and create the
9496   # libtool script then.
9497   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9498   if test -f "$ltmain_in"; then
9499     test -f Makefile && make "$ltmain"
9500   fi
9501 fi
9502
9503
9504 ac_ext=c
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509
9510 CC="$lt_save_CC"
9511
9512
9513 # Check whether --with-tags or --without-tags was given.
9514 if test "${with_tags+set}" = set; then
9515   withval="$with_tags"
9516   tagnames="$withval"
9517 fi;
9518
9519 if test -f "$ltmain" && test -n "$tagnames"; then
9520   if test ! -f "${ofile}"; then
9521     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9522 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9523   fi
9524
9525   if test -z "$LTCC"; then
9526     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9527     if test -z "$LTCC"; then
9528       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9529 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9530     else
9531       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9532 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9533     fi
9534   fi
9535
9536   # Extract list of available tagged configurations in $ofile.
9537   # Note that this assumes the entire list is on one line.
9538   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9539
9540   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9541   for tagname in $tagnames; do
9542     IFS="$lt_save_ifs"
9543     # Check whether tagname contains only valid characters
9544     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9545     "") ;;
9546     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9547 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9548    { (exit 1); exit 1; }; }
9549         ;;
9550     esac
9551
9552     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9553     then
9554       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9555 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9556    { (exit 1); exit 1; }; }
9557     fi
9558
9559     # Update the list of available tags.
9560     if test -n "$tagname"; then
9561       echo appending configuration tag \"$tagname\" to $ofile
9562
9563       case $tagname in
9564       CXX)
9565         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9566           ac_ext=cc
9567 ac_cpp='$CXXCPP $CPPFLAGS'
9568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9571
9572
9573
9574
9575 archive_cmds_need_lc_CXX=no
9576 allow_undefined_flag_CXX=
9577 always_export_symbols_CXX=no
9578 archive_expsym_cmds_CXX=
9579 export_dynamic_flag_spec_CXX=
9580 hardcode_direct_CXX=no
9581 hardcode_libdir_flag_spec_CXX=
9582 hardcode_libdir_flag_spec_ld_CXX=
9583 hardcode_libdir_separator_CXX=
9584 hardcode_minus_L_CXX=no
9585 hardcode_automatic_CXX=no
9586 module_cmds_CXX=
9587 module_expsym_cmds_CXX=
9588 link_all_deplibs_CXX=unknown
9589 old_archive_cmds_CXX=$old_archive_cmds
9590 no_undefined_flag_CXX=
9591 whole_archive_flag_spec_CXX=
9592 enable_shared_with_static_runtimes_CXX=no
9593
9594 # Dependencies to place before and after the object being linked:
9595 predep_objects_CXX=
9596 postdep_objects_CXX=
9597 predeps_CXX=
9598 postdeps_CXX=
9599 compiler_lib_search_path_CXX=
9600
9601 # Source file extension for C++ test sources.
9602 ac_ext=cc
9603
9604 # Object file extension for compiled C++ test sources.
9605 objext=o
9606 objext_CXX=$objext
9607
9608 # Code to be used in simple compile tests
9609 lt_simple_compile_test_code="int some_variable = 0;\n"
9610
9611 # Code to be used in simple link tests
9612 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9613
9614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9615
9616 # If no C compiler was specified, use CC.
9617 LTCC=${LTCC-"$CC"}
9618
9619 # Allow CC to be a program name with arguments.
9620 compiler=$CC
9621
9622
9623 # Allow CC to be a program name with arguments.
9624 lt_save_CC=$CC
9625 lt_save_LD=$LD
9626 lt_save_GCC=$GCC
9627 GCC=$GXX
9628 lt_save_with_gnu_ld=$with_gnu_ld
9629 lt_save_path_LD=$lt_cv_path_LD
9630 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9631   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9632 else
9633   unset lt_cv_prog_gnu_ld
9634 fi
9635 if test -n "${lt_cv_path_LDCXX+set}"; then
9636   lt_cv_path_LD=$lt_cv_path_LDCXX
9637 else
9638   unset lt_cv_path_LD
9639 fi
9640 test -z "${LDCXX+set}" || LD=$LDCXX
9641 CC=${CXX-"c++"}
9642 compiler=$CC
9643 compiler_CXX=$CC
9644 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9645
9646 # We don't want -fno-exception wen compiling C++ code, so set the
9647 # no_builtin_flag separately
9648 if test "$GXX" = yes; then
9649   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9650 else
9651   lt_prog_compiler_no_builtin_flag_CXX=
9652 fi
9653
9654 if test "$GXX" = yes; then
9655   # Set up default GNU C++ configuration
9656
9657
9658 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9659 if test "${with_gnu_ld+set}" = set; then
9660   withval="$with_gnu_ld"
9661   test "$withval" = no || with_gnu_ld=yes
9662 else
9663   with_gnu_ld=no
9664 fi;
9665 ac_prog=ld
9666 if test "$GCC" = yes; then
9667   # Check if gcc -print-prog-name=ld gives a path.
9668   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9670   case $host in
9671   *-*-mingw*)
9672     # gcc leaves a trailing carriage return which upsets mingw
9673     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9674   *)
9675     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9676   esac
9677   case $ac_prog in
9678     # Accept absolute paths.
9679     [\\/]* | ?:[\\/]*)
9680       re_direlt='/[^/][^/]*/\.\./'
9681       # Canonicalize the pathname of ld
9682       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9683       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9684         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9685       done
9686       test -z "$LD" && LD="$ac_prog"
9687       ;;
9688   "")
9689     # If it fails, then pretend we aren't using GCC.
9690     ac_prog=ld
9691     ;;
9692   *)
9693     # If it is relative, then search for the first ld in PATH.
9694     with_gnu_ld=unknown
9695     ;;
9696   esac
9697 elif test "$with_gnu_ld" = yes; then
9698   echo "$as_me:$LINENO: checking for GNU ld" >&5
9699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9700 else
9701   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9703 fi
9704 if test "${lt_cv_path_LD+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   if test -z "$LD"; then
9708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9709   for ac_dir in $PATH; do
9710     IFS="$lt_save_ifs"
9711     test -z "$ac_dir" && ac_dir=.
9712     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9713       lt_cv_path_LD="$ac_dir/$ac_prog"
9714       # Check to see if the program is GNU ld.  I'd rather use --version,
9715       # but apparently some GNU ld's only accept -v.
9716       # Break only if it was the GNU/non-GNU ld that we prefer.
9717       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9718       *GNU* | *'with BFD'*)
9719         test "$with_gnu_ld" != no && break
9720         ;;
9721       *)
9722         test "$with_gnu_ld" != yes && break
9723         ;;
9724       esac
9725     fi
9726   done
9727   IFS="$lt_save_ifs"
9728 else
9729   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9730 fi
9731 fi
9732
9733 LD="$lt_cv_path_LD"
9734 if test -n "$LD"; then
9735   echo "$as_me:$LINENO: result: $LD" >&5
9736 echo "${ECHO_T}$LD" >&6
9737 else
9738   echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9740 fi
9741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9743    { (exit 1); exit 1; }; }
9744 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9750 case `$LD -v 2>&1 </dev/null` in
9751 *GNU* | *'with BFD'*)
9752   lt_cv_prog_gnu_ld=yes
9753   ;;
9754 *)
9755   lt_cv_prog_gnu_ld=no
9756   ;;
9757 esac
9758 fi
9759 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9761 with_gnu_ld=$lt_cv_prog_gnu_ld
9762
9763
9764
9765   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9766   # archiving commands below assume that GNU ld is being used.
9767   if test "$with_gnu_ld" = yes; then
9768     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9770
9771     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9772     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9773
9774     # If archive_cmds runs LD, not CC, wlarc should be empty
9775     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9776     #     investigate it a little bit more. (MM)
9777     wlarc='${wl}'
9778
9779     # ancient GNU ld didn't support --whole-archive et. al.
9780     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9781         grep 'no-whole-archive' > /dev/null; then
9782       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9783     else
9784       whole_archive_flag_spec_CXX=
9785     fi
9786   else
9787     with_gnu_ld=no
9788     wlarc=
9789
9790     # A generic and very simple default shared library creation
9791     # command for GNU C++ for the case where it uses the native
9792     # linker, instead of GNU ld.  If possible, this setting should
9793     # overridden to take advantage of the native linker features on
9794     # the platform it is being used on.
9795     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9796   fi
9797
9798   # Commands to make compiler produce verbose output that lists
9799   # what "hidden" libraries, object files and flags are used when
9800   # linking a shared library.
9801   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9802
9803 else
9804   GXX=no
9805   with_gnu_ld=no
9806   wlarc=
9807 fi
9808
9809 # PORTME: fill in a description of your system's C++ link characteristics
9810 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9811 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9812 ld_shlibs_CXX=yes
9813 case $host_os in
9814   aix3*)
9815     # FIXME: insert proper C++ library support
9816     ld_shlibs_CXX=no
9817     ;;
9818   aix4* | aix5*)
9819     if test "$host_cpu" = ia64; then
9820       # On IA64, the linker does run time linking by default, so we don't
9821       # have to do anything special.
9822       aix_use_runtimelinking=no
9823       exp_sym_flag='-Bexport'
9824       no_entry_flag=""
9825     else
9826       aix_use_runtimelinking=no
9827
9828       # Test if we are trying to use run time linking or normal
9829       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9830       # need to do runtime linking.
9831       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9832         for ld_flag in $LDFLAGS; do
9833           case $ld_flag in
9834           *-brtl*)
9835             aix_use_runtimelinking=yes
9836             break
9837             ;;
9838           esac
9839         done
9840       esac
9841
9842       exp_sym_flag='-bexport'
9843       no_entry_flag='-bnoentry'
9844     fi
9845
9846     # When large executables or shared objects are built, AIX ld can
9847     # have problems creating the table of contents.  If linking a library
9848     # or program results in "error TOC overflow" add -mminimal-toc to
9849     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9850     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9851
9852     archive_cmds_CXX=''
9853     hardcode_direct_CXX=yes
9854     hardcode_libdir_separator_CXX=':'
9855     link_all_deplibs_CXX=yes
9856
9857     if test "$GXX" = yes; then
9858       case $host_os in aix4.012|aix4.012.*)
9859       # We only want to do this on AIX 4.2 and lower, the check
9860       # below for broken collect2 doesn't work under 4.3+
9861         collect2name=`${CC} -print-prog-name=collect2`
9862         if test -f "$collect2name" && \
9863            strings "$collect2name" | grep resolve_lib_name >/dev/null
9864         then
9865           # We have reworked collect2
9866           hardcode_direct_CXX=yes
9867         else
9868           # We have old collect2
9869           hardcode_direct_CXX=unsupported
9870           # It fails to find uninstalled libraries when the uninstalled
9871           # path is not listed in the libpath.  Setting hardcode_minus_L
9872           # to unsupported forces relinking
9873           hardcode_minus_L_CXX=yes
9874           hardcode_libdir_flag_spec_CXX='-L$libdir'
9875           hardcode_libdir_separator_CXX=
9876         fi
9877       esac
9878       shared_flag='-shared'
9879     else
9880       # not using gcc
9881       if test "$host_cpu" = ia64; then
9882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9883         # chokes on -Wl,-G. The following line is correct:
9884         shared_flag='-G'
9885       else
9886         if test "$aix_use_runtimelinking" = yes; then
9887           shared_flag='${wl}-G'
9888         else
9889           shared_flag='${wl}-bM:SRE'
9890         fi
9891       fi
9892     fi
9893
9894     # It seems that -bexpall does not export symbols beginning with
9895     # underscore (_), so it is better to generate a list of symbols to export.
9896     always_export_symbols_CXX=yes
9897     if test "$aix_use_runtimelinking" = yes; then
9898       # Warning - without using the other runtime loading flags (-brtl),
9899       # -berok will link without error, but may produce a broken library.
9900       allow_undefined_flag_CXX='-berok'
9901       # Determine the default libpath from the value encoded in an empty executable.
9902       cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908
9909 int
9910 main ()
9911 {
9912
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919   (eval $ac_link) 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928   (eval $ac_try) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; } &&
9932          { ac_try='test -s conftest$ac_exeext'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938
9939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9940 }'`
9941 # Check for a 64-bit object if we didn't find anything.
9942 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9943 }'`; fi
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950       conftest$ac_exeext conftest.$ac_ext
9951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9952
9953       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9954
9955       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"
9956      else
9957       if test "$host_cpu" = ia64; then
9958         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9959         allow_undefined_flag_CXX="-z nodefs"
9960         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"
9961       else
9962         # Determine the default libpath from the value encoded in an empty executable.
9963         cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 int
9971 main ()
9972 {
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999
10000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10001 }'`
10002 # Check for a 64-bit object if we didn't find anything.
10003 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10004 }'`; fi
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 fi
10010 rm -f conftest.err conftest.$ac_objext \
10011       conftest$ac_exeext conftest.$ac_ext
10012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10013
10014         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10015         # Warning - without using the other run time loading flags,
10016         # -berok will link without error, but may produce a broken library.
10017         no_undefined_flag_CXX=' ${wl}-bernotok'
10018         allow_undefined_flag_CXX=' ${wl}-berok'
10019         # -bexpall does not export symbols beginning with underscore (_)
10020         always_export_symbols_CXX=yes
10021         # Exported symbols can be pulled into shared objects from archives
10022         whole_archive_flag_spec_CXX=' '
10023         archive_cmds_need_lc_CXX=yes
10024         # This is similar to how AIX traditionally builds it's shared libraries.
10025         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'
10026       fi
10027     fi
10028     ;;
10029   chorus*)
10030     case $cc_basename in
10031       *)
10032         # FIXME: insert proper C++ library support
10033         ld_shlibs_CXX=no
10034         ;;
10035     esac
10036     ;;
10037
10038   cygwin* | mingw* | pw32*)
10039     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10040     # as there is no search path for DLLs.
10041     hardcode_libdir_flag_spec_CXX='-L$libdir'
10042     allow_undefined_flag_CXX=unsupported
10043     always_export_symbols_CXX=no
10044     enable_shared_with_static_runtimes_CXX=yes
10045
10046     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10047       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'
10048       # If the export-symbols file already is a .def file (1st line
10049       # is EXPORTS), use it as is; otherwise, prepend...
10050       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10051         cp $export_symbols $output_objdir/$soname.def;
10052       else
10053         echo EXPORTS > $output_objdir/$soname.def;
10054         cat $export_symbols >> $output_objdir/$soname.def;
10055       fi~
10056       $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'
10057     else
10058       ld_shlibs_CXX=no
10059     fi
10060   ;;
10061
10062   darwin* | rhapsody*)
10063   if test "$GXX" = yes; then
10064     archive_cmds_need_lc_CXX=no
10065     case "$host_os" in
10066     rhapsody* | darwin1.[012])
10067       allow_undefined_flag_CXX='-undefined suppress'
10068       ;;
10069     *) # Darwin 1.3 on
10070       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10071         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10072       else
10073         case ${MACOSX_DEPLOYMENT_TARGET} in
10074           10.[012])
10075             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10076             ;;
10077           10.*)
10078             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10079             ;;
10080         esac
10081       fi
10082       ;;
10083     esac
10084     lt_int_apple_cc_single_mod=no
10085     output_verbose_link_cmd='echo'
10086     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10087       lt_int_apple_cc_single_mod=yes
10088     fi
10089     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10090       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10091     else
10092       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10093     fi
10094     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10095
10096     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10097     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10098       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}'
10099     else
10100       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10101     fi
10102     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}'
10103     hardcode_direct_CXX=no
10104     hardcode_automatic_CXX=yes
10105     hardcode_shlibpath_var_CXX=unsupported
10106     whole_archive_flag_spec_CXX='-all_load $convenience'
10107     link_all_deplibs_CXX=yes
10108   else
10109     ld_shlibs_CXX=no
10110   fi
10111     ;;
10112
10113   dgux*)
10114     case $cc_basename in
10115       ec++)
10116         # FIXME: insert proper C++ library support
10117         ld_shlibs_CXX=no
10118         ;;
10119       ghcx)
10120         # Green Hills C++ Compiler
10121         # FIXME: insert proper C++ library support
10122         ld_shlibs_CXX=no
10123         ;;
10124       *)
10125         # FIXME: insert proper C++ library support
10126         ld_shlibs_CXX=no
10127         ;;
10128     esac
10129     ;;
10130   freebsd12*)
10131     # C++ shared libraries reported to be fairly broken before switch to ELF
10132     ld_shlibs_CXX=no
10133     ;;
10134   freebsd-elf*)
10135     archive_cmds_need_lc_CXX=no
10136     ;;
10137   freebsd* | kfreebsd*-gnu)
10138     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10139     # conventions
10140     ld_shlibs_CXX=yes
10141     ;;
10142   gnu*)
10143     ;;
10144   hpux9*)
10145     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10146     hardcode_libdir_separator_CXX=:
10147     export_dynamic_flag_spec_CXX='${wl}-E'
10148     hardcode_direct_CXX=yes
10149     hardcode_minus_L_CXX=yes # Not in the search PATH,
10150                                 # but as the default
10151                                 # location of the library.
10152
10153     case $cc_basename in
10154     CC)
10155       # FIXME: insert proper C++ library support
10156       ld_shlibs_CXX=no
10157       ;;
10158     aCC)
10159       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10160       # Commands to make compiler produce verbose output that lists
10161       # what "hidden" libraries, object files and flags are used when
10162       # linking a shared library.
10163       #
10164       # There doesn't appear to be a way to prevent this compiler from
10165       # explicitly linking system object files so we need to strip them
10166       # from the output so that they don't get included in the library
10167       # dependencies.
10168       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10169       ;;
10170     *)
10171       if test "$GXX" = yes; then
10172         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10173       else
10174         # FIXME: insert proper C++ library support
10175         ld_shlibs_CXX=no
10176       fi
10177       ;;
10178     esac
10179     ;;
10180   hpux10*|hpux11*)
10181     if test $with_gnu_ld = no; then
10182       case "$host_cpu" in
10183       hppa*64*)
10184         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10185         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10186         hardcode_libdir_separator_CXX=:
10187         ;;
10188       ia64*)
10189         hardcode_libdir_flag_spec_CXX='-L$libdir'
10190         ;;
10191       *)
10192         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193         hardcode_libdir_separator_CXX=:
10194         export_dynamic_flag_spec_CXX='${wl}-E'
10195         ;;
10196       esac
10197     fi
10198     case "$host_cpu" in
10199     hppa*64*)
10200       hardcode_direct_CXX=no
10201       hardcode_shlibpath_var_CXX=no
10202       ;;
10203     ia64*)
10204       hardcode_direct_CXX=no
10205       hardcode_shlibpath_var_CXX=no
10206       hardcode_minus_L_CXX=yes # Not in the search PATH,
10207                                               # but as the default
10208                                               # location of the library.
10209       ;;
10210     *)
10211       hardcode_direct_CXX=yes
10212       hardcode_minus_L_CXX=yes # Not in the search PATH,
10213                                               # but as the default
10214                                               # location of the library.
10215       ;;
10216     esac
10217
10218     case $cc_basename in
10219       CC)
10220         # FIXME: insert proper C++ library support
10221         ld_shlibs_CXX=no
10222         ;;
10223       aCC)
10224         case "$host_cpu" in
10225         hppa*64*|ia64*)
10226           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10227           ;;
10228         *)
10229           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10230           ;;
10231         esac
10232         # Commands to make compiler produce verbose output that lists
10233         # what "hidden" libraries, object files and flags are used when
10234         # linking a shared library.
10235         #
10236         # There doesn't appear to be a way to prevent this compiler from
10237         # explicitly linking system object files so we need to strip them
10238         # from the output so that they don't get included in the library
10239         # dependencies.
10240         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10241         ;;
10242       *)
10243         if test "$GXX" = yes; then
10244           if test $with_gnu_ld = no; then
10245             case "$host_cpu" in
10246             ia64*|hppa*64*)
10247               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10248               ;;
10249             *)
10250               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'
10251               ;;
10252             esac
10253           fi
10254         else
10255           # FIXME: insert proper C++ library support
10256           ld_shlibs_CXX=no
10257         fi
10258         ;;
10259     esac
10260     ;;
10261   irix5* | irix6*)
10262     case $cc_basename in
10263       CC)
10264         # SGI C++
10265         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10266
10267         # Archives containing C++ object files must be created using
10268         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10269         # necessary to make sure instantiated templates are included
10270         # in the archive.
10271         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10272         ;;
10273       *)
10274         if test "$GXX" = yes; then
10275           if test "$with_gnu_ld" = no; then
10276             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10277           else
10278             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10279           fi
10280         fi
10281         link_all_deplibs_CXX=yes
10282         ;;
10283     esac
10284     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10285     hardcode_libdir_separator_CXX=:
10286     ;;
10287   linux*)
10288     case $cc_basename in
10289       KCC)
10290         # Kuck and Associates, Inc. (KAI) C++ Compiler
10291
10292         # KCC will only create a shared library if the output file
10293         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10294         # to its proper name (with version) after linking.
10295         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10296         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10297         # Commands to make compiler produce verbose output that lists
10298         # what "hidden" libraries, object files and flags are used when
10299         # linking a shared library.
10300         #
10301         # There doesn't appear to be a way to prevent this compiler from
10302         # explicitly linking system object files so we need to strip them
10303         # from the output so that they don't get included in the library
10304         # dependencies.
10305         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10306
10307         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10308         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10309
10310         # Archives containing C++ object files must be created using
10311         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10312         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10313         ;;
10314       icpc)
10315         # Intel C++
10316         with_gnu_ld=yes
10317         archive_cmds_need_lc_CXX=no
10318         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10319         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10320         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10321         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10322         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10323         ;;
10324       cxx)
10325         # Compaq C++
10326         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10328
10329         runpath_var=LD_RUN_PATH
10330         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10331         hardcode_libdir_separator_CXX=:
10332
10333         # Commands to make compiler produce verbose output that lists
10334         # what "hidden" libraries, object files and flags are used when
10335         # linking a shared library.
10336         #
10337         # There doesn't appear to be a way to prevent this compiler from
10338         # explicitly linking system object files so we need to strip them
10339         # from the output so that they don't get included in the library
10340         # dependencies.
10341         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10342         ;;
10343     esac
10344     ;;
10345   lynxos*)
10346     # FIXME: insert proper C++ library support
10347     ld_shlibs_CXX=no
10348     ;;
10349   m88k*)
10350     # FIXME: insert proper C++ library support
10351     ld_shlibs_CXX=no
10352     ;;
10353   mvs*)
10354     case $cc_basename in
10355       cxx)
10356         # FIXME: insert proper C++ library support
10357         ld_shlibs_CXX=no
10358         ;;
10359       *)
10360         # FIXME: insert proper C++ library support
10361         ld_shlibs_CXX=no
10362         ;;
10363     esac
10364     ;;
10365   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10366     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10367       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10368       wlarc=
10369       hardcode_libdir_flag_spec_CXX='-R$libdir'
10370       hardcode_direct_CXX=yes
10371       hardcode_shlibpath_var_CXX=no
10372     fi
10373     # Workaround some broken pre-1.5 toolchains
10374     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10375     ;;
10376   osf3*)
10377     case $cc_basename in
10378       KCC)
10379         # Kuck and Associates, Inc. (KAI) C++ Compiler
10380
10381         # KCC will only create a shared library if the output file
10382         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10383         # to its proper name (with version) after linking.
10384         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10385
10386         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10387         hardcode_libdir_separator_CXX=:
10388
10389         # Archives containing C++ object files must be created using
10390         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10391         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10392
10393         ;;
10394       RCC)
10395         # Rational C++ 2.4.1
10396         # FIXME: insert proper C++ library support
10397         ld_shlibs_CXX=no
10398         ;;
10399       cxx)
10400         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10401         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10402
10403         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10404         hardcode_libdir_separator_CXX=:
10405
10406         # Commands to make compiler produce verbose output that lists
10407         # what "hidden" libraries, object files and flags are used when
10408         # linking a shared library.
10409         #
10410         # There doesn't appear to be a way to prevent this compiler from
10411         # explicitly linking system object files so we need to strip them
10412         # from the output so that they don't get included in the library
10413         # dependencies.
10414         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10415         ;;
10416       *)
10417         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10418           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10419           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10420
10421           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10422           hardcode_libdir_separator_CXX=:
10423
10424           # Commands to make compiler produce verbose output that lists
10425           # what "hidden" libraries, object files and flags are used when
10426           # linking a shared library.
10427           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10428
10429         else
10430           # FIXME: insert proper C++ library support
10431           ld_shlibs_CXX=no
10432         fi
10433         ;;
10434     esac
10435     ;;
10436   osf4* | osf5*)
10437     case $cc_basename in
10438       KCC)
10439         # Kuck and Associates, Inc. (KAI) C++ Compiler
10440
10441         # KCC will only create a shared library if the output file
10442         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10443         # to its proper name (with version) after linking.
10444         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10445
10446         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10447         hardcode_libdir_separator_CXX=:
10448
10449         # Archives containing C++ object files must be created using
10450         # the KAI C++ compiler.
10451         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10452         ;;
10453       RCC)
10454         # Rational C++ 2.4.1
10455         # FIXME: insert proper C++ library support
10456         ld_shlibs_CXX=no
10457         ;;
10458       cxx)
10459         allow_undefined_flag_CXX=' -expect_unresolved \*'
10460         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10461         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10462           echo "-hidden">> $lib.exp~
10463           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10464           $rm $lib.exp'
10465
10466         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10467         hardcode_libdir_separator_CXX=:
10468
10469         # Commands to make compiler produce verbose output that lists
10470         # what "hidden" libraries, object files and flags are used when
10471         # linking a shared library.
10472         #
10473         # There doesn't appear to be a way to prevent this compiler from
10474         # explicitly linking system object files so we need to strip them
10475         # from the output so that they don't get included in the library
10476         # dependencies.
10477         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10478         ;;
10479       *)
10480         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10481           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10483
10484           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485           hardcode_libdir_separator_CXX=:
10486
10487           # Commands to make compiler produce verbose output that lists
10488           # what "hidden" libraries, object files and flags are used when
10489           # linking a shared library.
10490           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10491
10492         else
10493           # FIXME: insert proper C++ library support
10494           ld_shlibs_CXX=no
10495         fi
10496         ;;
10497     esac
10498     ;;
10499   psos*)
10500     # FIXME: insert proper C++ library support
10501     ld_shlibs_CXX=no
10502     ;;
10503   sco*)
10504     archive_cmds_need_lc_CXX=no
10505     case $cc_basename in
10506       CC)
10507         # FIXME: insert proper C++ library support
10508         ld_shlibs_CXX=no
10509         ;;
10510       *)
10511         # FIXME: insert proper C++ library support
10512         ld_shlibs_CXX=no
10513         ;;
10514     esac
10515     ;;
10516   sunos4*)
10517     case $cc_basename in
10518       CC)
10519         # Sun C++ 4.x
10520         # FIXME: insert proper C++ library support
10521         ld_shlibs_CXX=no
10522         ;;
10523       lcc)
10524         # Lucid
10525         # FIXME: insert proper C++ library support
10526         ld_shlibs_CXX=no
10527         ;;
10528       *)
10529         # FIXME: insert proper C++ library support
10530         ld_shlibs_CXX=no
10531         ;;
10532     esac
10533     ;;
10534   solaris*)
10535     case $cc_basename in
10536       CC)
10537         # Sun C++ 4.2, 5.x and Centerline C++
10538         no_undefined_flag_CXX=' -zdefs'
10539         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10540         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10541         $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'
10542
10543         hardcode_libdir_flag_spec_CXX='-R$libdir'
10544         hardcode_shlibpath_var_CXX=no
10545         case $host_os in
10546           solaris2.0-5 | solaris2.0-5.*) ;;
10547           *)
10548             # The C++ compiler is used as linker so we must use $wl
10549             # flag to pass the commands to the underlying system
10550             # linker.
10551             # Supported since Solaris 2.6 (maybe 2.5.1?)
10552             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10553             ;;
10554         esac
10555         link_all_deplibs_CXX=yes
10556
10557         # Commands to make compiler produce verbose output that lists
10558         # what "hidden" libraries, object files and flags are used when
10559         # linking a shared library.
10560         #
10561         # There doesn't appear to be a way to prevent this compiler from
10562         # explicitly linking system object files so we need to strip them
10563         # from the output so that they don't get included in the library
10564         # dependencies.
10565         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'
10566
10567         # Archives containing C++ object files must be created using
10568         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10569         # necessary to make sure instantiated templates are included
10570         # in the archive.
10571         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10572         ;;
10573       gcx)
10574         # Green Hills C++ Compiler
10575         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10576
10577         # The C++ compiler must be used to create the archive.
10578         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10579         ;;
10580       *)
10581         # GNU C++ compiler with Solaris linker
10582         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10583           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10584           if $CC --version | grep -v '^2\.7' > /dev/null; then
10585             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10586             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10587                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10588
10589             # Commands to make compiler produce verbose output that lists
10590             # what "hidden" libraries, object files and flags are used when
10591             # linking a shared library.
10592             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10593           else
10594             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10595             # platform.
10596             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10597             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10598                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10599
10600             # Commands to make compiler produce verbose output that lists
10601             # what "hidden" libraries, object files and flags are used when
10602             # linking a shared library.
10603             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10604           fi
10605
10606           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10607         fi
10608         ;;
10609     esac
10610     ;;
10611   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10612     archive_cmds_need_lc_CXX=no
10613     ;;
10614   tandem*)
10615     case $cc_basename in
10616       NCC)
10617         # NonStop-UX NCC 3.20
10618         # FIXME: insert proper C++ library support
10619         ld_shlibs_CXX=no
10620         ;;
10621       *)
10622         # FIXME: insert proper C++ library support
10623         ld_shlibs_CXX=no
10624         ;;
10625     esac
10626     ;;
10627   vxworks*)
10628     # FIXME: insert proper C++ library support
10629     ld_shlibs_CXX=no
10630     ;;
10631   *)
10632     # FIXME: insert proper C++ library support
10633     ld_shlibs_CXX=no
10634     ;;
10635 esac
10636 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10637 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10638 test "$ld_shlibs_CXX" = no && can_build_shared=no
10639
10640 GCC_CXX="$GXX"
10641 LD_CXX="$LD"
10642
10643
10644 cat > conftest.$ac_ext <<EOF
10645 class Foo
10646 {
10647 public:
10648   Foo (void) { a = 0; }
10649 private:
10650   int a;
10651 };
10652 EOF
10653
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655   (eval $ac_compile) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; then
10659   # Parse the compiler output and extract the necessary
10660   # objects, libraries and library flags.
10661
10662   # Sentinel used to keep track of whether or not we are before
10663   # the conftest object file.
10664   pre_test_object_deps_done=no
10665
10666   # The `*' in the case matches for architectures that use `case' in
10667   # $output_verbose_cmd can trigger glob expansion during the loop
10668   # eval without this substitution.
10669   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10670
10671   for p in `eval $output_verbose_link_cmd`; do
10672     case $p in
10673
10674     -L* | -R* | -l*)
10675        # Some compilers place space between "-{L,R}" and the path.
10676        # Remove the space.
10677        if test $p = "-L" \
10678           || test $p = "-R"; then
10679          prev=$p
10680          continue
10681        else
10682          prev=
10683        fi
10684
10685        if test "$pre_test_object_deps_done" = no; then
10686          case $p in
10687          -L* | -R*)
10688            # Internal compiler library paths should come after those
10689            # provided the user.  The postdeps already come after the
10690            # user supplied libs so there is no need to process them.
10691            if test -z "$compiler_lib_search_path_CXX"; then
10692              compiler_lib_search_path_CXX="${prev}${p}"
10693            else
10694              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10695            fi
10696            ;;
10697          # The "-l" case would never come before the object being
10698          # linked, so don't bother handling this case.
10699          esac
10700        else
10701          if test -z "$postdeps_CXX"; then
10702            postdeps_CXX="${prev}${p}"
10703          else
10704            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10705          fi
10706        fi
10707        ;;
10708
10709     *.$objext)
10710        # This assumes that the test object file only shows up
10711        # once in the compiler output.
10712        if test "$p" = "conftest.$objext"; then
10713          pre_test_object_deps_done=yes
10714          continue
10715        fi
10716
10717        if test "$pre_test_object_deps_done" = no; then
10718          if test -z "$predep_objects_CXX"; then
10719            predep_objects_CXX="$p"
10720          else
10721            predep_objects_CXX="$predep_objects_CXX $p"
10722          fi
10723        else
10724          if test -z "$postdep_objects_CXX"; then
10725            postdep_objects_CXX="$p"
10726          else
10727            postdep_objects_CXX="$postdep_objects_CXX $p"
10728          fi
10729        fi
10730        ;;
10731
10732     *) ;; # Ignore the rest.
10733
10734     esac
10735   done
10736
10737   # Clean up.
10738   rm -f a.out a.exe
10739 else
10740   echo "libtool.m4: error: problem compiling CXX test program"
10741 fi
10742
10743 $rm -f confest.$objext
10744
10745 case " $postdeps_CXX " in
10746 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10747 esac
10748
10749 lt_prog_compiler_wl_CXX=
10750 lt_prog_compiler_pic_CXX=
10751 lt_prog_compiler_static_CXX=
10752
10753 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10754 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10755
10756   # C++ specific cases for pic, static, wl, etc.
10757   if test "$GXX" = yes; then
10758     lt_prog_compiler_wl_CXX='-Wl,'
10759     lt_prog_compiler_static_CXX='-static'
10760
10761     case $host_os in
10762     aix*)
10763       # All AIX code is PIC.
10764       if test "$host_cpu" = ia64; then
10765         # AIX 5 now supports IA64 processor
10766         lt_prog_compiler_static_CXX='-Bstatic'
10767       fi
10768       ;;
10769     amigaos*)
10770       # FIXME: we need at least 68020 code to build shared libraries, but
10771       # adding the `-m68020' flag to GCC prevents building anything better,
10772       # like `-m68040'.
10773       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10774       ;;
10775     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10776       # PIC is the default for these OSes.
10777       ;;
10778     mingw* | os2* | pw32*)
10779       # This hack is so that the source file can tell whether it is being
10780       # built for inclusion in a dll (and should export symbols for example).
10781       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10782       ;;
10783     darwin* | rhapsody*)
10784       # PIC is the default on this platform
10785       # Common symbols not allowed in MH_DYLIB files
10786       lt_prog_compiler_pic_CXX='-fno-common'
10787       ;;
10788     *djgpp*)
10789       # DJGPP does not support shared libraries at all
10790       lt_prog_compiler_pic_CXX=
10791       ;;
10792     sysv4*MP*)
10793       if test -d /usr/nec; then
10794         lt_prog_compiler_pic_CXX=-Kconform_pic
10795       fi
10796       ;;
10797     hpux*)
10798       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10799       # not for PA HP-UX.
10800       case "$host_cpu" in
10801       hppa*64*|ia64*)
10802         ;;
10803       *)
10804         lt_prog_compiler_pic_CXX='-fPIC'
10805         ;;
10806       esac
10807       ;;
10808     *)
10809       lt_prog_compiler_pic_CXX='-fPIC'
10810       ;;
10811     esac
10812   else
10813     case $host_os in
10814       aix4* | aix5*)
10815         # All AIX code is PIC.
10816         if test "$host_cpu" = ia64; then
10817           # AIX 5 now supports IA64 processor
10818           lt_prog_compiler_static_CXX='-Bstatic'
10819         else
10820           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10821         fi
10822         ;;
10823       chorus*)
10824         case $cc_basename in
10825         cxch68)
10826           # Green Hills C++ Compiler
10827           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10828           ;;
10829         esac
10830         ;;
10831       dgux*)
10832         case $cc_basename in
10833           ec++)
10834             lt_prog_compiler_pic_CXX='-KPIC'
10835             ;;
10836           ghcx)
10837             # Green Hills C++ Compiler
10838             lt_prog_compiler_pic_CXX='-pic'
10839             ;;
10840           *)
10841             ;;
10842         esac
10843         ;;
10844       freebsd* | kfreebsd*-gnu)
10845         # FreeBSD uses GNU C++
10846         ;;
10847       hpux9* | hpux10* | hpux11*)
10848         case $cc_basename in
10849           CC)
10850             lt_prog_compiler_wl_CXX='-Wl,'
10851             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10852             if test "$host_cpu" != ia64; then
10853               lt_prog_compiler_pic_CXX='+Z'
10854             fi
10855             ;;
10856           aCC)
10857             lt_prog_compiler_wl_CXX='-Wl,'
10858             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10859             case "$host_cpu" in
10860             hppa*64*|ia64*)
10861               # +Z the default
10862               ;;
10863             *)
10864               lt_prog_compiler_pic_CXX='+Z'
10865               ;;
10866             esac
10867             ;;
10868           *)
10869             ;;
10870         esac
10871         ;;
10872       irix5* | irix6* | nonstopux*)
10873         case $cc_basename in
10874           CC)
10875             lt_prog_compiler_wl_CXX='-Wl,'
10876             lt_prog_compiler_static_CXX='-non_shared'
10877             # CC pic flag -KPIC is the default.
10878             ;;
10879           *)
10880             ;;
10881         esac
10882         ;;
10883       linux*)
10884         case $cc_basename in
10885           KCC)
10886             # KAI C++ Compiler
10887             lt_prog_compiler_wl_CXX='--backend -Wl,'
10888             lt_prog_compiler_pic_CXX='-fPIC'
10889             ;;
10890           icpc)
10891             # Intel C++
10892             lt_prog_compiler_wl_CXX='-Wl,'
10893             lt_prog_compiler_pic_CXX='-KPIC'
10894             lt_prog_compiler_static_CXX='-static'
10895             ;;
10896           cxx)
10897             # Compaq C++
10898             # Make sure the PIC flag is empty.  It appears that all Alpha
10899             # Linux and Compaq Tru64 Unix objects are PIC.
10900             lt_prog_compiler_pic_CXX=
10901             lt_prog_compiler_static_CXX='-non_shared'
10902             ;;
10903           *)
10904             ;;
10905         esac
10906         ;;
10907       lynxos*)
10908         ;;
10909       m88k*)
10910         ;;
10911       mvs*)
10912         case $cc_basename in
10913           cxx)
10914             lt_prog_compiler_pic_CXX='-W c,exportall'
10915             ;;
10916           *)
10917             ;;
10918         esac
10919         ;;
10920       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10921         ;;
10922       osf3* | osf4* | osf5*)
10923         case $cc_basename in
10924           KCC)
10925             lt_prog_compiler_wl_CXX='--backend -Wl,'
10926             ;;
10927           RCC)
10928             # Rational C++ 2.4.1
10929             lt_prog_compiler_pic_CXX='-pic'
10930             ;;
10931           cxx)
10932             # Digital/Compaq C++
10933             lt_prog_compiler_wl_CXX='-Wl,'
10934             # Make sure the PIC flag is empty.  It appears that all Alpha
10935             # Linux and Compaq Tru64 Unix objects are PIC.
10936             lt_prog_compiler_pic_CXX=
10937             lt_prog_compiler_static_CXX='-non_shared'
10938             ;;
10939           *)
10940             ;;
10941         esac
10942         ;;
10943       psos*)
10944         ;;
10945       sco*)
10946         case $cc_basename in
10947           CC)
10948             lt_prog_compiler_pic_CXX='-fPIC'
10949             ;;
10950           *)
10951             ;;
10952         esac
10953         ;;
10954       solaris*)
10955         case $cc_basename in
10956           CC)
10957             # Sun C++ 4.2, 5.x and Centerline C++
10958             lt_prog_compiler_pic_CXX='-KPIC'
10959             lt_prog_compiler_static_CXX='-Bstatic'
10960             lt_prog_compiler_wl_CXX='-Qoption ld '
10961             ;;
10962           gcx)
10963             # Green Hills C++ Compiler
10964             lt_prog_compiler_pic_CXX='-PIC'
10965             ;;
10966           *)
10967             ;;
10968         esac
10969         ;;
10970       sunos4*)
10971         case $cc_basename in
10972           CC)
10973             # Sun C++ 4.x
10974             lt_prog_compiler_pic_CXX='-pic'
10975             lt_prog_compiler_static_CXX='-Bstatic'
10976             ;;
10977           lcc)
10978             # Lucid
10979             lt_prog_compiler_pic_CXX='-pic'
10980             ;;
10981           *)
10982             ;;
10983         esac
10984         ;;
10985       tandem*)
10986         case $cc_basename in
10987           NCC)
10988             # NonStop-UX NCC 3.20
10989             lt_prog_compiler_pic_CXX='-KPIC'
10990             ;;
10991           *)
10992             ;;
10993         esac
10994         ;;
10995       unixware*)
10996         ;;
10997       vxworks*)
10998         ;;
10999       *)
11000         lt_prog_compiler_can_build_shared_CXX=no
11001         ;;
11002     esac
11003   fi
11004
11005 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11006 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11007
11008 #
11009 # Check to make sure the PIC flag actually works.
11010 #
11011 if test -n "$lt_prog_compiler_pic_CXX"; then
11012
11013 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11014 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11015 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   lt_prog_compiler_pic_works_CXX=no
11019   ac_outfile=conftest.$ac_objext
11020    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11021    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11022    # Insert the option either (1) after the last *FLAGS variable, or
11023    # (2) before a word containing "conftest.", or (3) at the end.
11024    # Note that $ac_compile itself does not contain backslashes and begins
11025    # with a dollar sign (not a hyphen), so the echo should work correctly.
11026    # The option is referenced via a variable to avoid confusing sed.
11027    lt_compile=`echo "$ac_compile" | $SED \
11028    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11030    -e 's:$: $lt_compiler_flag:'`
11031    (eval echo "\"\$as_me:11031: $lt_compile\"" >&5)
11032    (eval "$lt_compile" 2>conftest.err)
11033    ac_status=$?
11034    cat conftest.err >&5
11035    echo "$as_me:11035: \$? = $ac_status" >&5
11036    if (exit $ac_status) && test -s "$ac_outfile"; then
11037      # The compiler can only warn and ignore the option if not recognized
11038      # So say no if there are warnings
11039      if test ! -s conftest.err; then
11040        lt_prog_compiler_pic_works_CXX=yes
11041      fi
11042    fi
11043    $rm conftest*
11044
11045 fi
11046 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11047 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11048
11049 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11050     case $lt_prog_compiler_pic_CXX in
11051      "" | " "*) ;;
11052      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11053      esac
11054 else
11055     lt_prog_compiler_pic_CXX=
11056      lt_prog_compiler_can_build_shared_CXX=no
11057 fi
11058
11059 fi
11060 case "$host_os" in
11061   # For platforms which do not support PIC, -DPIC is meaningless:
11062   *djgpp*)
11063     lt_prog_compiler_pic_CXX=
11064     ;;
11065   *)
11066     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11067     ;;
11068 esac
11069
11070 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11071 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11072 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11073   echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075   lt_cv_prog_compiler_c_o_CXX=no
11076    $rm -r conftest 2>/dev/null
11077    mkdir conftest
11078    cd conftest
11079    mkdir out
11080    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11081
11082    lt_compiler_flag="-o out/conftest2.$ac_objext"
11083    # Insert the option either (1) after the last *FLAGS variable, or
11084    # (2) before a word containing "conftest.", or (3) at the end.
11085    # Note that $ac_compile itself does not contain backslashes and begins
11086    # with a dollar sign (not a hyphen), so the echo should work correctly.
11087    lt_compile=`echo "$ac_compile" | $SED \
11088    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11090    -e 's:$: $lt_compiler_flag:'`
11091    (eval echo "\"\$as_me:11091: $lt_compile\"" >&5)
11092    (eval "$lt_compile" 2>out/conftest.err)
11093    ac_status=$?
11094    cat out/conftest.err >&5
11095    echo "$as_me:11095: \$? = $ac_status" >&5
11096    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11097    then
11098      # The compiler can only warn and ignore the option if not recognized
11099      # So say no if there are warnings
11100      if test ! -s out/conftest.err; then
11101        lt_cv_prog_compiler_c_o_CXX=yes
11102      fi
11103    fi
11104    chmod u+w .
11105    $rm conftest*
11106    # SGI C++ compiler will create directory out/ii_files/ for
11107    # template instantiation
11108    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11109    $rm out/* && rmdir out
11110    cd ..
11111    rmdir conftest
11112    $rm conftest*
11113
11114 fi
11115 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11116 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11117
11118
11119 hard_links="nottested"
11120 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11121   # do not overwrite the value of need_locks provided by the user
11122   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11123 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11124   hard_links=yes
11125   $rm conftest*
11126   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11127   touch conftest.a
11128   ln conftest.a conftest.b 2>&5 || hard_links=no
11129   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11130   echo "$as_me:$LINENO: result: $hard_links" >&5
11131 echo "${ECHO_T}$hard_links" >&6
11132   if test "$hard_links" = no; then
11133     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11134 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11135     need_locks=warn
11136   fi
11137 else
11138   need_locks=no
11139 fi
11140
11141 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11142 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11143
11144   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11145   case $host_os in
11146   aix4* | aix5*)
11147     # If we're using GNU nm, then we don't want the "-C" option.
11148     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11149     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11150       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11151     else
11152       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11153     fi
11154     ;;
11155   pw32*)
11156     export_symbols_cmds_CXX="$ltdll_cmds"
11157   ;;
11158   cygwin* | mingw*)
11159     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11160   ;;
11161   linux*)
11162     link_all_deplibs_CXX=no
11163   ;;
11164   *)
11165     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11166   ;;
11167   esac
11168
11169 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11170 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11171 test "$ld_shlibs_CXX" = no && can_build_shared=no
11172
11173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174 if test "$GCC" = yes; then
11175   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11176 fi
11177
11178 #
11179 # Do we need to explicitly link libc?
11180 #
11181 case "x$archive_cmds_need_lc_CXX" in
11182 x|xyes)
11183   # Assume -lc should be added
11184   archive_cmds_need_lc_CXX=yes
11185
11186   if test "$enable_shared" = yes && test "$GCC" = yes; then
11187     case $archive_cmds_CXX in
11188     *'~'*)
11189       # FIXME: we may have to deal with multi-command sequences.
11190       ;;
11191     '$CC '*)
11192       # Test whether the compiler implicitly links with -lc since on some
11193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194       # to ld, don't add -lc before -lgcc.
11195       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11197       $rm conftest*
11198       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11199
11200       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201   (eval $ac_compile) 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); } 2>conftest.err; then
11205         soname=conftest
11206         lib=conftest
11207         libobjs=conftest.$ac_objext
11208         deplibs=
11209         wl=$lt_prog_compiler_wl_CXX
11210         compiler_flags=-v
11211         linker_flags=-v
11212         verstring=
11213         output_objdir=.
11214         libname=conftest
11215         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11216         allow_undefined_flag_CXX=
11217         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11218   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }
11222         then
11223           archive_cmds_need_lc_CXX=no
11224         else
11225           archive_cmds_need_lc_CXX=yes
11226         fi
11227         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11228       else
11229         cat conftest.err 1>&5
11230       fi
11231       $rm conftest*
11232       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11233 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11234       ;;
11235     esac
11236   fi
11237   ;;
11238 esac
11239
11240 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11242 library_names_spec=
11243 libname_spec='lib$name'
11244 soname_spec=
11245 shrext_cmds=".so"
11246 postinstall_cmds=
11247 postuninstall_cmds=
11248 finish_cmds=
11249 finish_eval=
11250 shlibpath_var=
11251 shlibpath_overrides_runpath=unknown
11252 version_type=none
11253 dynamic_linker="$host_os ld.so"
11254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11255 if test "$GCC" = yes; then
11256   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11257   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11258     # if the path contains ";" then we assume it to be the separator
11259     # otherwise default to the standard path separator (i.e. ":") - it is
11260     # assumed that no part of a normal pathname contains ";" but that should
11261     # okay in the real world where ";" in dirpaths is itself problematic.
11262     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11263   else
11264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11265   fi
11266 else
11267   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11268 fi
11269 need_lib_prefix=unknown
11270 hardcode_into_libs=no
11271
11272 # when you set need_version to no, make sure it does not cause -set_version
11273 # flags to be left without arguments
11274 need_version=unknown
11275
11276 case $host_os in
11277 aix3*)
11278   version_type=linux
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11280   shlibpath_var=LIBPATH
11281
11282   # AIX 3 has no versioning support, so we append a major version to the name.
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   ;;
11285
11286 aix4* | aix5*)
11287   version_type=linux
11288   need_lib_prefix=no
11289   need_version=no
11290   hardcode_into_libs=yes
11291   if test "$host_cpu" = ia64; then
11292     # AIX 5 supports IA64
11293     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11294     shlibpath_var=LD_LIBRARY_PATH
11295   else
11296     # With GCC up to 2.95.x, collect2 would create an import file
11297     # for dependence libraries.  The import file would start with
11298     # the line `#! .'.  This would cause the generated library to
11299     # depend on `.', always an invalid library.  This was fixed in
11300     # development snapshots of GCC prior to 3.0.
11301     case $host_os in
11302       aix4 | aix4.[01] | aix4.[01].*)
11303       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11304            echo ' yes '
11305            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11306         :
11307       else
11308         can_build_shared=no
11309       fi
11310       ;;
11311     esac
11312     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11313     # soname into executable. Probably we can add versioning support to
11314     # collect2, so additional links can be useful in future.
11315     if test "$aix_use_runtimelinking" = yes; then
11316       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11317       # instead of lib<name>.a to let people know that these are not
11318       # typical AIX shared libraries.
11319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320     else
11321       # We preserve .a as extension for shared libraries through AIX4.2
11322       # and later when we are not doing run time linking.
11323       library_names_spec='${libname}${release}.a $libname.a'
11324       soname_spec='${libname}${release}${shared_ext}$major'
11325     fi
11326     shlibpath_var=LIBPATH
11327   fi
11328   ;;
11329
11330 amigaos*)
11331   library_names_spec='$libname.ixlibrary $libname.a'
11332   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333   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'
11334   ;;
11335
11336 beos*)
11337   library_names_spec='${libname}${shared_ext}'
11338   dynamic_linker="$host_os ld.so"
11339   shlibpath_var=LIBRARY_PATH
11340   ;;
11341
11342 bsdi4*)
11343   version_type=linux
11344   need_version=no
11345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346   soname_spec='${libname}${release}${shared_ext}$major'
11347   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11350   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11351   # the default ld.so.conf also contains /usr/contrib/lib and
11352   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11353   # libtool to hard-code these into programs
11354   ;;
11355
11356 cygwin* | mingw* | pw32*)
11357   version_type=windows
11358   shrext_cmds=".dll"
11359   need_version=no
11360   need_lib_prefix=no
11361
11362   case $GCC,$host_os in
11363   yes,cygwin* | yes,mingw* | yes,pw32*)
11364     library_names_spec='$libname.dll.a'
11365     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366     postinstall_cmds='base_file=`basename \${file}`~
11367       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11368       dldir=$destdir/`dirname \$dlpath`~
11369       test -d \$dldir || mkdir -p \$dldir~
11370       $install_prog $dir/$dlname \$dldir/$dlname'
11371     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372       dlpath=$dir/\$dldll~
11373        $rm \$dlpath'
11374     shlibpath_overrides_runpath=yes
11375
11376     case $host_os in
11377     cygwin*)
11378       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11379       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11381       ;;
11382     mingw*)
11383       # MinGW DLLs use traditional 'lib' prefix
11384       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11385       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11386       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11387         # It is most probably a Windows format PATH printed by
11388         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11389         # path with ; separators, and with drive letters. We can handle the
11390         # drive letters (cygwin fileutils understands them), so leave them,
11391         # especially as we might pass files found there to a mingw objdump,
11392         # which wouldn't understand a cygwinified path. Ahh.
11393         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11394       else
11395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11396       fi
11397       ;;
11398     pw32*)
11399       # pw32 DLLs use 'pw' prefix rather than 'lib'
11400       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11401       ;;
11402     esac
11403     ;;
11404
11405   *)
11406     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11407     ;;
11408   esac
11409   dynamic_linker='Win32 ld.exe'
11410   # FIXME: first we should search . and the directory the executable is in
11411   shlibpath_var=PATH
11412   ;;
11413
11414 darwin* | rhapsody*)
11415   dynamic_linker="$host_os dyld"
11416   version_type=darwin
11417   need_lib_prefix=no
11418   need_version=no
11419   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11420   soname_spec='${libname}${release}${major}$shared_ext'
11421   shlibpath_overrides_runpath=yes
11422   shlibpath_var=DYLD_LIBRARY_PATH
11423   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11424   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11425   if test "$GCC" = yes; then
11426     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"`
11427   else
11428     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11429   fi
11430   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11431   ;;
11432
11433 dgux*)
11434   version_type=linux
11435   need_lib_prefix=no
11436   need_version=no
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11438   soname_spec='${libname}${release}${shared_ext}$major'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   ;;
11441
11442 freebsd1*)
11443   dynamic_linker=no
11444   ;;
11445
11446 kfreebsd*-gnu)
11447   version_type=linux
11448   need_lib_prefix=no
11449   need_version=no
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   shlibpath_var=LD_LIBRARY_PATH
11453   shlibpath_overrides_runpath=no
11454   hardcode_into_libs=yes
11455   dynamic_linker='GNU ld.so'
11456   ;;
11457
11458 freebsd*)
11459   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11460   version_type=freebsd-$objformat
11461   case $version_type in
11462     freebsd-elf*)
11463       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11464       need_version=no
11465       need_lib_prefix=no
11466       ;;
11467     freebsd-*)
11468       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11469       need_version=yes
11470       ;;
11471   esac
11472   shlibpath_var=LD_LIBRARY_PATH
11473   case $host_os in
11474   freebsd2*)
11475     shlibpath_overrides_runpath=yes
11476     ;;
11477   freebsd3.01* | freebsdelf3.01*)
11478     shlibpath_overrides_runpath=yes
11479     hardcode_into_libs=yes
11480     ;;
11481   *) # from 3.2 on
11482     shlibpath_overrides_runpath=no
11483     hardcode_into_libs=yes
11484     ;;
11485   esac
11486   ;;
11487
11488 gnu*)
11489   version_type=linux
11490   need_lib_prefix=no
11491   need_version=no
11492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493   soname_spec='${libname}${release}${shared_ext}$major'
11494   shlibpath_var=LD_LIBRARY_PATH
11495   hardcode_into_libs=yes
11496   ;;
11497
11498 hpux9* | hpux10* | hpux11*)
11499   # Give a soname corresponding to the major version so that dld.sl refuses to
11500   # link against other versions.
11501   version_type=sunos
11502   need_lib_prefix=no
11503   need_version=no
11504   case "$host_cpu" in
11505   ia64*)
11506     shrext_cmds='.so'
11507     hardcode_into_libs=yes
11508     dynamic_linker="$host_os dld.so"
11509     shlibpath_var=LD_LIBRARY_PATH
11510     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512     soname_spec='${libname}${release}${shared_ext}$major'
11513     if test "X$HPUX_IA64_MODE" = X32; then
11514       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11515     else
11516       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11517     fi
11518     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519     ;;
11520    hppa*64*)
11521      shrext_cmds='.sl'
11522      hardcode_into_libs=yes
11523      dynamic_linker="$host_os dld.sl"
11524      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11525      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11526      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527      soname_spec='${libname}${release}${shared_ext}$major'
11528      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11529      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11530      ;;
11531    *)
11532     shrext_cmds='.sl'
11533     dynamic_linker="$host_os dld.sl"
11534     shlibpath_var=SHLIB_PATH
11535     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537     soname_spec='${libname}${release}${shared_ext}$major'
11538     ;;
11539   esac
11540   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11541   postinstall_cmds='chmod 555 $lib'
11542   ;;
11543
11544 irix5* | irix6* | nonstopux*)
11545   case $host_os in
11546     nonstopux*) version_type=nonstopux ;;
11547     *)
11548         if test "$lt_cv_prog_gnu_ld" = yes; then
11549                 version_type=linux
11550         else
11551                 version_type=irix
11552         fi ;;
11553   esac
11554   need_lib_prefix=no
11555   need_version=no
11556   soname_spec='${libname}${release}${shared_ext}$major'
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11558   case $host_os in
11559   irix5* | nonstopux*)
11560     libsuff= shlibsuff=
11561     ;;
11562   *)
11563     case $LD in # libtool.m4 will add one of these switches to LD
11564     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565       libsuff= shlibsuff= libmagic=32-bit;;
11566     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567       libsuff=32 shlibsuff=N32 libmagic=N32;;
11568     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570     *) libsuff= shlibsuff= libmagic=never-match;;
11571     esac
11572     ;;
11573   esac
11574   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575   shlibpath_overrides_runpath=no
11576   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11577   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11578   hardcode_into_libs=yes
11579   ;;
11580
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11583   dynamic_linker=no
11584   ;;
11585
11586 # This must be Linux ELF.
11587 linux*)
11588   version_type=linux
11589   need_lib_prefix=no
11590   need_version=no
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592   soname_spec='${libname}${release}${shared_ext}$major'
11593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11594   shlibpath_var=LD_LIBRARY_PATH
11595   shlibpath_overrides_runpath=no
11596   # This implies no fast_install, which is unacceptable.
11597   # Some rework will be needed to allow for fast_install
11598   # before this can be enabled.
11599   hardcode_into_libs=yes
11600
11601   # Append ld.so.conf contents to the search path
11602   if test -f /etc/ld.so.conf; then
11603     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11604     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11605   fi
11606
11607   # We used to test for /lib/ld.so.1 and disable shared libraries on
11608   # powerpc, because MkLinux only supported shared libraries with the
11609   # GNU dynamic linker.  Since this was broken with cross compilers,
11610   # most powerpc-linux boxes support dynamic linking these days and
11611   # people can always --disable-shared, the test was removed, and we
11612   # assume the GNU/Linux dynamic linker is in use.
11613   dynamic_linker='GNU/Linux ld.so'
11614   ;;
11615
11616 netbsdelf*-gnu)
11617   version_type=linux
11618   need_lib_prefix=no
11619   need_version=no
11620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621   soname_spec='${libname}${release}${shared_ext}$major'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   shlibpath_overrides_runpath=no
11624   hardcode_into_libs=yes
11625   dynamic_linker='NetBSD ld.elf_so'
11626   ;;
11627
11628 knetbsd*-gnu)
11629   version_type=linux
11630   need_lib_prefix=no
11631   need_version=no
11632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633   soname_spec='${libname}${release}${shared_ext}$major'
11634   shlibpath_var=LD_LIBRARY_PATH
11635   shlibpath_overrides_runpath=no
11636   hardcode_into_libs=yes
11637   dynamic_linker='GNU ld.so'
11638   ;;
11639
11640 netbsd*)
11641   version_type=sunos
11642   need_lib_prefix=no
11643   need_version=no
11644   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647     dynamic_linker='NetBSD (a.out) ld.so'
11648   else
11649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650     soname_spec='${libname}${release}${shared_ext}$major'
11651     dynamic_linker='NetBSD ld.elf_so'
11652   fi
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=yes
11655   hardcode_into_libs=yes
11656   ;;
11657
11658 newsos6)
11659   version_type=linux
11660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661   shlibpath_var=LD_LIBRARY_PATH
11662   shlibpath_overrides_runpath=yes
11663   ;;
11664
11665 nto-qnx*)
11666   version_type=linux
11667   need_lib_prefix=no
11668   need_version=no
11669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670   soname_spec='${libname}${release}${shared_ext}$major'
11671   shlibpath_var=LD_LIBRARY_PATH
11672   shlibpath_overrides_runpath=yes
11673   ;;
11674
11675 openbsd*)
11676   version_type=sunos
11677   need_lib_prefix=no
11678   need_version=yes
11679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11681   shlibpath_var=LD_LIBRARY_PATH
11682   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11683     case $host_os in
11684       openbsd2.[89] | openbsd2.[89].*)
11685         shlibpath_overrides_runpath=no
11686         ;;
11687       *)
11688         shlibpath_overrides_runpath=yes
11689         ;;
11690       esac
11691   else
11692     shlibpath_overrides_runpath=yes
11693   fi
11694   ;;
11695
11696 os2*)
11697   libname_spec='$name'
11698   shrext_cmds=".dll"
11699   need_lib_prefix=no
11700   library_names_spec='$libname${shared_ext} $libname.a'
11701   dynamic_linker='OS/2 ld.exe'
11702   shlibpath_var=LIBPATH
11703   ;;
11704
11705 osf3* | osf4* | osf5*)
11706   version_type=osf
11707   need_lib_prefix=no
11708   need_version=no
11709   soname_spec='${libname}${release}${shared_ext}$major'
11710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11713   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11714   ;;
11715
11716 sco3.2v5*)
11717   version_type=osf
11718   soname_spec='${libname}${release}${shared_ext}$major'
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720   shlibpath_var=LD_LIBRARY_PATH
11721   ;;
11722
11723 solaris*)
11724   version_type=linux
11725   need_lib_prefix=no
11726   need_version=no
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728   soname_spec='${libname}${release}${shared_ext}$major'
11729   shlibpath_var=LD_LIBRARY_PATH
11730   shlibpath_overrides_runpath=yes
11731   hardcode_into_libs=yes
11732   # ldd complains unless libraries are executable
11733   postinstall_cmds='chmod +x $lib'
11734   ;;
11735
11736 sunos4*)
11737   version_type=sunos
11738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11739   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   shlibpath_overrides_runpath=yes
11742   if test "$with_gnu_ld" = yes; then
11743     need_lib_prefix=no
11744   fi
11745   need_version=yes
11746   ;;
11747
11748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11749   version_type=linux
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   soname_spec='${libname}${release}${shared_ext}$major'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   case $host_vendor in
11754     sni)
11755       shlibpath_overrides_runpath=no
11756       need_lib_prefix=no
11757       export_dynamic_flag_spec='${wl}-Blargedynsym'
11758       runpath_var=LD_RUN_PATH
11759       ;;
11760     siemens)
11761       need_lib_prefix=no
11762       ;;
11763     motorola)
11764       need_lib_prefix=no
11765       need_version=no
11766       shlibpath_overrides_runpath=no
11767       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11768       ;;
11769   esac
11770   ;;
11771
11772 sysv4*MP*)
11773   if test -d /usr/nec ;then
11774     version_type=linux
11775     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11776     soname_spec='$libname${shared_ext}.$major'
11777     shlibpath_var=LD_LIBRARY_PATH
11778   fi
11779   ;;
11780
11781 uts4*)
11782   version_type=linux
11783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784   soname_spec='${libname}${release}${shared_ext}$major'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   ;;
11787
11788 *)
11789   dynamic_linker=no
11790   ;;
11791 esac
11792 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11793 echo "${ECHO_T}$dynamic_linker" >&6
11794 test "$dynamic_linker" = no && can_build_shared=no
11795
11796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11798 hardcode_action_CXX=
11799 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11800    test -n "$runpath_var CXX" || \
11801    test "X$hardcode_automatic_CXX"="Xyes" ; then
11802
11803   # We can hardcode non-existant directories.
11804   if test "$hardcode_direct_CXX" != no &&
11805      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11806      # have to relink, otherwise we might link with an installed library
11807      # when we should be linking with a yet-to-be-installed one
11808      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11809      test "$hardcode_minus_L_CXX" != no; then
11810     # Linking always hardcodes the temporary library directory.
11811     hardcode_action_CXX=relink
11812   else
11813     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11814     hardcode_action_CXX=immediate
11815   fi
11816 else
11817   # We cannot hardcode anything, or else we can only hardcode existing
11818   # directories.
11819   hardcode_action_CXX=unsupported
11820 fi
11821 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11822 echo "${ECHO_T}$hardcode_action_CXX" >&6
11823
11824 if test "$hardcode_action_CXX" = relink; then
11825   # Fast installation is not supported
11826   enable_fast_install=no
11827 elif test "$shlibpath_overrides_runpath" = yes ||
11828      test "$enable_shared" = no; then
11829   # Fast installation is not necessary
11830   enable_fast_install=needless
11831 fi
11832
11833 striplib=
11834 old_striplib=
11835 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11837 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11838   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11839   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11840   echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6
11842 else
11843 # FIXME - insert some real tests, host_os isn't really good enough
11844   case $host_os in
11845    darwin*)
11846        if test -n "$STRIP" ; then
11847          striplib="$STRIP -x"
11848          echo "$as_me:$LINENO: result: yes" >&5
11849 echo "${ECHO_T}yes" >&6
11850        else
11851   echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6
11853 fi
11854        ;;
11855    *)
11856   echo "$as_me:$LINENO: result: no" >&5
11857 echo "${ECHO_T}no" >&6
11858     ;;
11859   esac
11860 fi
11861
11862 if test "x$enable_dlopen" != xyes; then
11863   enable_dlopen=unknown
11864   enable_dlopen_self=unknown
11865   enable_dlopen_self_static=unknown
11866 else
11867   lt_cv_dlopen=no
11868   lt_cv_dlopen_libs=
11869
11870   case $host_os in
11871   beos*)
11872     lt_cv_dlopen="load_add_on"
11873     lt_cv_dlopen_libs=
11874     lt_cv_dlopen_self=yes
11875     ;;
11876
11877   mingw* | pw32*)
11878     lt_cv_dlopen="LoadLibrary"
11879     lt_cv_dlopen_libs=
11880    ;;
11881
11882   cygwin*)
11883     lt_cv_dlopen="dlopen"
11884     lt_cv_dlopen_libs=
11885    ;;
11886
11887   darwin*)
11888   # if libdl is installed we need to link against it
11889     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldl  $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902
11903 /* Override any gcc2 internal prototype to avoid an error.  */
11904 #ifdef __cplusplus
11905 extern "C"
11906 #endif
11907 /* We use char because int might match the return type of a gcc2
11908    builtin and then its argument prototype would still apply.  */
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 dlopen ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920   (eval $ac_link) 2>conftest.er1
11921   ac_status=$?
11922   grep -v '^ *+' conftest.er1 >conftest.err
11923   rm -f conftest.er1
11924   cat conftest.err >&5
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } &&
11927          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; } &&
11933          { ac_try='test -s conftest$ac_exeext'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }; then
11939   ac_cv_lib_dl_dlopen=yes
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 ac_cv_lib_dl_dlopen=no
11945 fi
11946 rm -f conftest.err conftest.$ac_objext \
11947       conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11952 if test $ac_cv_lib_dl_dlopen = yes; then
11953   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11954 else
11955
11956     lt_cv_dlopen="dyld"
11957     lt_cv_dlopen_libs=
11958     lt_cv_dlopen_self=yes
11959
11960 fi
11961
11962    ;;
11963
11964   *)
11965     echo "$as_me:$LINENO: checking for shl_load" >&5
11966 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11967 if test "${ac_cv_func_shl_load+set}" = set; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11978 #define shl_load innocuous_shl_load
11979
11980 /* System header to define __stub macros and hopefully few prototypes,
11981     which can conflict with char shl_load (); below.
11982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983     <limits.h> exists even on freestanding compilers.  */
11984
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11990
11991 #undef shl_load
11992
11993 /* Override any gcc2 internal prototype to avoid an error.  */
11994 #ifdef __cplusplus
11995 extern "C"
11996 {
11997 #endif
11998 /* We use char because int might match the return type of a gcc2
11999    builtin and then its argument prototype would still apply.  */
12000 char shl_load ();
12001 /* The GNU C library defines this for functions which it implements
12002     to always fail with ENOSYS.  Some functions are actually named
12003     something starting with __ and the normal name is an alias.  */
12004 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12005 choke me
12006 #else
12007 char (*f) () = shl_load;
12008 #endif
12009 #ifdef __cplusplus
12010 }
12011 #endif
12012
12013 int
12014 main ()
12015 {
12016 return f != shl_load;
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023   (eval $ac_link) 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest$ac_exeext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   ac_cv_func_shl_load=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ac_cv_func_shl_load=no
12048 fi
12049 rm -f conftest.err conftest.$ac_objext \
12050       conftest$ac_exeext conftest.$ac_ext
12051 fi
12052 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12054 if test $ac_cv_func_shl_load = yes; then
12055   lt_cv_dlopen="shl_load"
12056 else
12057   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12058 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12059 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12060   echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062   ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-ldld  $LIBS"
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h.  */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h.  */
12070
12071 /* Override any gcc2 internal prototype to avoid an error.  */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 /* We use char because int might match the return type of a gcc2
12076    builtin and then its argument prototype would still apply.  */
12077 char shl_load ();
12078 int
12079 main ()
12080 {
12081 shl_load ();
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088   (eval $ac_link) 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   ac_cv_lib_dld_shl_load=yes
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_cv_lib_dld_shl_load=no
12113 fi
12114 rm -f conftest.err conftest.$ac_objext \
12115       conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12117 fi
12118 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12119 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12120 if test $ac_cv_lib_dld_shl_load = yes; then
12121   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12122 else
12123   echo "$as_me:$LINENO: checking for dlopen" >&5
12124 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12125 if test "${ac_cv_func_dlopen+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12136 #define dlopen innocuous_dlopen
12137
12138 /* System header to define __stub macros and hopefully few prototypes,
12139     which can conflict with char dlopen (); below.
12140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141     <limits.h> exists even on freestanding compilers.  */
12142
12143 #ifdef __STDC__
12144 # include <limits.h>
12145 #else
12146 # include <assert.h>
12147 #endif
12148
12149 #undef dlopen
12150
12151 /* Override any gcc2 internal prototype to avoid an error.  */
12152 #ifdef __cplusplus
12153 extern "C"
12154 {
12155 #endif
12156 /* We use char because int might match the return type of a gcc2
12157    builtin and then its argument prototype would still apply.  */
12158 char dlopen ();
12159 /* The GNU C library defines this for functions which it implements
12160     to always fail with ENOSYS.  Some functions are actually named
12161     something starting with __ and the normal name is an alias.  */
12162 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12163 choke me
12164 #else
12165 char (*f) () = dlopen;
12166 #endif
12167 #ifdef __cplusplus
12168 }
12169 #endif
12170
12171 int
12172 main ()
12173 {
12174 return f != dlopen;
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; } &&
12194          { ac_try='test -s conftest$ac_exeext'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; }; then
12200   ac_cv_func_dlopen=yes
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_cv_func_dlopen=no
12206 fi
12207 rm -f conftest.err conftest.$ac_objext \
12208       conftest$ac_exeext conftest.$ac_ext
12209 fi
12210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12212 if test $ac_cv_func_dlopen = yes; then
12213   lt_cv_dlopen="dlopen"
12214 else
12215   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220   ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-ldl  $LIBS"
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228
12229 /* Override any gcc2 internal prototype to avoid an error.  */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 /* We use char because int might match the return type of a gcc2
12234    builtin and then its argument prototype would still apply.  */
12235 char dlopen ();
12236 int
12237 main ()
12238 {
12239 dlopen ();
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246   (eval $ac_link) 2>conftest.er1
12247   ac_status=$?
12248   grep -v '^ *+' conftest.er1 >conftest.err
12249   rm -f conftest.er1
12250   cat conftest.err >&5
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); } &&
12253          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255   (eval $ac_try) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }; } &&
12259          { ac_try='test -s conftest$ac_exeext'
12260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261   (eval $ac_try) 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }; }; then
12265   ac_cv_lib_dl_dlopen=yes
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 ac_cv_lib_dl_dlopen=no
12271 fi
12272 rm -f conftest.err conftest.$ac_objext \
12273       conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12275 fi
12276 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12277 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12278 if test $ac_cv_lib_dl_dlopen = yes; then
12279   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12280 else
12281   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12282 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12283 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lsvld  $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294
12295 /* Override any gcc2 internal prototype to avoid an error.  */
12296 #ifdef __cplusplus
12297 extern "C"
12298 #endif
12299 /* We use char because int might match the return type of a gcc2
12300    builtin and then its argument prototype would still apply.  */
12301 char dlopen ();
12302 int
12303 main ()
12304 {
12305 dlopen ();
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312   (eval $ac_link) 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest$ac_exeext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_cv_lib_svld_dlopen=yes
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_cv_lib_svld_dlopen=no
12337 fi
12338 rm -f conftest.err conftest.$ac_objext \
12339       conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12341 fi
12342 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12343 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12344 if test $ac_cv_lib_svld_dlopen = yes; then
12345   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12346 else
12347   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12348 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   ac_check_lib_save_LIBS=$LIBS
12353 LIBS="-ldld  $LIBS"
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h.  */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h.  */
12360
12361 /* Override any gcc2 internal prototype to avoid an error.  */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 /* We use char because int might match the return type of a gcc2
12366    builtin and then its argument prototype would still apply.  */
12367 char dld_link ();
12368 int
12369 main ()
12370 {
12371 dld_link ();
12372   ;
12373   return 0;
12374 }
12375 _ACEOF
12376 rm -f conftest.$ac_objext conftest$ac_exeext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12378   (eval $ac_link) 2>conftest.er1
12379   ac_status=$?
12380   grep -v '^ *+' conftest.er1 >conftest.err
12381   rm -f conftest.er1
12382   cat conftest.err >&5
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; } &&
12391          { ac_try='test -s conftest$ac_exeext'
12392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393   (eval $ac_try) 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; }; then
12397   ac_cv_lib_dld_dld_link=yes
12398 else
12399   echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402 ac_cv_lib_dld_dld_link=no
12403 fi
12404 rm -f conftest.err conftest.$ac_objext \
12405       conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12407 fi
12408 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12409 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12410 if test $ac_cv_lib_dld_dld_link = yes; then
12411   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12412 fi
12413
12414
12415 fi
12416
12417
12418 fi
12419
12420
12421 fi
12422
12423
12424 fi
12425
12426
12427 fi
12428
12429     ;;
12430   esac
12431
12432   if test "x$lt_cv_dlopen" != xno; then
12433     enable_dlopen=yes
12434   else
12435     enable_dlopen=no
12436   fi
12437
12438   case $lt_cv_dlopen in
12439   dlopen)
12440     save_CPPFLAGS="$CPPFLAGS"
12441     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12442
12443     save_LDFLAGS="$LDFLAGS"
12444     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12445
12446     save_LIBS="$LIBS"
12447     LIBS="$lt_cv_dlopen_libs $LIBS"
12448
12449     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12450 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12451 if test "${lt_cv_dlopen_self+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454           if test "$cross_compiling" = yes; then :
12455   lt_cv_dlopen_self=cross
12456 else
12457   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12458   lt_status=$lt_dlunknown
12459   cat > conftest.$ac_ext <<EOF
12460 #line 12460 "configure"
12461 #include "confdefs.h"
12462
12463 #if HAVE_DLFCN_H
12464 #include <dlfcn.h>
12465 #endif
12466
12467 #include <stdio.h>
12468
12469 #ifdef RTLD_GLOBAL
12470 #  define LT_DLGLOBAL           RTLD_GLOBAL
12471 #else
12472 #  ifdef DL_GLOBAL
12473 #    define LT_DLGLOBAL         DL_GLOBAL
12474 #  else
12475 #    define LT_DLGLOBAL         0
12476 #  endif
12477 #endif
12478
12479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12480    find out it does not work in some platform. */
12481 #ifndef LT_DLLAZY_OR_NOW
12482 #  ifdef RTLD_LAZY
12483 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12484 #  else
12485 #    ifdef DL_LAZY
12486 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12487 #    else
12488 #      ifdef RTLD_NOW
12489 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12490 #      else
12491 #        ifdef DL_NOW
12492 #          define LT_DLLAZY_OR_NOW      DL_NOW
12493 #        else
12494 #          define LT_DLLAZY_OR_NOW      0
12495 #        endif
12496 #      endif
12497 #    endif
12498 #  endif
12499 #endif
12500
12501 #ifdef __cplusplus
12502 extern "C" void exit (int);
12503 #endif
12504
12505 void fnord() { int i=42;}
12506 int main ()
12507 {
12508   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12509   int status = $lt_dlunknown;
12510
12511   if (self)
12512     {
12513       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12514       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12515       /* dlclose (self); */
12516     }
12517
12518     exit (status);
12519 }
12520 EOF
12521   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522   (eval $ac_link) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12526     (./conftest; exit; ) 2>/dev/null
12527     lt_status=$?
12528     case x$lt_status in
12529       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12530       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12531       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12532     esac
12533   else :
12534     # compilation failed
12535     lt_cv_dlopen_self=no
12536   fi
12537 fi
12538 rm -fr conftest*
12539
12540
12541 fi
12542 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12543 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12544
12545     if test "x$lt_cv_dlopen_self" = xyes; then
12546       LDFLAGS="$LDFLAGS $link_static_flag"
12547       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12548 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12549 if test "${lt_cv_dlopen_self_static+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552           if test "$cross_compiling" = yes; then :
12553   lt_cv_dlopen_self_static=cross
12554 else
12555   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556   lt_status=$lt_dlunknown
12557   cat > conftest.$ac_ext <<EOF
12558 #line 12558 "configure"
12559 #include "confdefs.h"
12560
12561 #if HAVE_DLFCN_H
12562 #include <dlfcn.h>
12563 #endif
12564
12565 #include <stdio.h>
12566
12567 #ifdef RTLD_GLOBAL
12568 #  define LT_DLGLOBAL           RTLD_GLOBAL
12569 #else
12570 #  ifdef DL_GLOBAL
12571 #    define LT_DLGLOBAL         DL_GLOBAL
12572 #  else
12573 #    define LT_DLGLOBAL         0
12574 #  endif
12575 #endif
12576
12577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578    find out it does not work in some platform. */
12579 #ifndef LT_DLLAZY_OR_NOW
12580 #  ifdef RTLD_LAZY
12581 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12582 #  else
12583 #    ifdef DL_LAZY
12584 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12585 #    else
12586 #      ifdef RTLD_NOW
12587 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12588 #      else
12589 #        ifdef DL_NOW
12590 #          define LT_DLLAZY_OR_NOW      DL_NOW
12591 #        else
12592 #          define LT_DLLAZY_OR_NOW      0
12593 #        endif
12594 #      endif
12595 #    endif
12596 #  endif
12597 #endif
12598
12599 #ifdef __cplusplus
12600 extern "C" void exit (int);
12601 #endif
12602
12603 void fnord() { int i=42;}
12604 int main ()
12605 {
12606   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12607   int status = $lt_dlunknown;
12608
12609   if (self)
12610     {
12611       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12612       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12613       /* dlclose (self); */
12614     }
12615
12616     exit (status);
12617 }
12618 EOF
12619   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620   (eval $ac_link) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12624     (./conftest; exit; ) 2>/dev/null
12625     lt_status=$?
12626     case x$lt_status in
12627       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12628       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12629       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12630     esac
12631   else :
12632     # compilation failed
12633     lt_cv_dlopen_self_static=no
12634   fi
12635 fi
12636 rm -fr conftest*
12637
12638
12639 fi
12640 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12641 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12642     fi
12643
12644     CPPFLAGS="$save_CPPFLAGS"
12645     LDFLAGS="$save_LDFLAGS"
12646     LIBS="$save_LIBS"
12647     ;;
12648   esac
12649
12650   case $lt_cv_dlopen_self in
12651   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12652   *) enable_dlopen_self=unknown ;;
12653   esac
12654
12655   case $lt_cv_dlopen_self_static in
12656   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12657   *) enable_dlopen_self_static=unknown ;;
12658   esac
12659 fi
12660
12661
12662 # The else clause should only fire when bootstrapping the
12663 # libtool distribution, otherwise you forgot to ship ltmain.sh
12664 # with your package, and you will get complaints that there are
12665 # no rules to generate ltmain.sh.
12666 if test -f "$ltmain"; then
12667   # See if we are running on zsh, and set the options which allow our commands through
12668   # without removal of \ escapes.
12669   if test -n "${ZSH_VERSION+set}" ; then
12670     setopt NO_GLOB_SUBST
12671   fi
12672   # Now quote all the things that may contain metacharacters while being
12673   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12674   # variables and quote the copies for generation of the libtool script.
12675   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12676     SED SHELL STRIP \
12677     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12678     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12679     deplibs_check_method reload_flag reload_cmds need_locks \
12680     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12681     lt_cv_sys_global_symbol_to_c_name_address \
12682     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12683     old_postinstall_cmds old_postuninstall_cmds \
12684     compiler_CXX \
12685     CC_CXX \
12686     LD_CXX \
12687     lt_prog_compiler_wl_CXX \
12688     lt_prog_compiler_pic_CXX \
12689     lt_prog_compiler_static_CXX \
12690     lt_prog_compiler_no_builtin_flag_CXX \
12691     export_dynamic_flag_spec_CXX \
12692     thread_safe_flag_spec_CXX \
12693     whole_archive_flag_spec_CXX \
12694     enable_shared_with_static_runtimes_CXX \
12695     old_archive_cmds_CXX \
12696     old_archive_from_new_cmds_CXX \
12697     predep_objects_CXX \
12698     postdep_objects_CXX \
12699     predeps_CXX \
12700     postdeps_CXX \
12701     compiler_lib_search_path_CXX \
12702     archive_cmds_CXX \
12703     archive_expsym_cmds_CXX \
12704     postinstall_cmds_CXX \
12705     postuninstall_cmds_CXX \
12706     old_archive_from_expsyms_cmds_CXX \
12707     allow_undefined_flag_CXX \
12708     no_undefined_flag_CXX \
12709     export_symbols_cmds_CXX \
12710     hardcode_libdir_flag_spec_CXX \
12711     hardcode_libdir_flag_spec_ld_CXX \
12712     hardcode_libdir_separator_CXX \
12713     hardcode_automatic_CXX \
12714     module_cmds_CXX \
12715     module_expsym_cmds_CXX \
12716     lt_cv_prog_compiler_c_o_CXX \
12717     exclude_expsyms_CXX \
12718     include_expsyms_CXX; do
12719
12720     case $var in
12721     old_archive_cmds_CXX | \
12722     old_archive_from_new_cmds_CXX | \
12723     archive_cmds_CXX | \
12724     archive_expsym_cmds_CXX | \
12725     module_cmds_CXX | \
12726     module_expsym_cmds_CXX | \
12727     old_archive_from_expsyms_cmds_CXX | \
12728     export_symbols_cmds_CXX | \
12729     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12730     postinstall_cmds | postuninstall_cmds | \
12731     old_postinstall_cmds | old_postuninstall_cmds | \
12732     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12733       # Double-quote double-evaled strings.
12734       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12735       ;;
12736     *)
12737       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12738       ;;
12739     esac
12740   done
12741
12742   case $lt_echo in
12743   *'\$0 --fallback-echo"')
12744     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12745     ;;
12746   esac
12747
12748 cfgfile="$ofile"
12749
12750   cat <<__EOF__ >> "$cfgfile"
12751 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12752
12753 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12754
12755 # Shell to use when invoking shell scripts.
12756 SHELL=$lt_SHELL
12757
12758 # Whether or not to build shared libraries.
12759 build_libtool_libs=$enable_shared
12760
12761 # Whether or not to build static libraries.
12762 build_old_libs=$enable_static
12763
12764 # Whether or not to add -lc for building shared libraries.
12765 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12766
12767 # Whether or not to disallow shared libs when runtime libs are static
12768 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12769
12770 # Whether or not to optimize for fast installation.
12771 fast_install=$enable_fast_install
12772
12773 # The host system.
12774 host_alias=$host_alias
12775 host=$host
12776
12777 # An echo program that does not interpret backslashes.
12778 echo=$lt_echo
12779
12780 # The archiver.
12781 AR=$lt_AR
12782 AR_FLAGS=$lt_AR_FLAGS
12783
12784 # A C compiler.
12785 LTCC=$lt_LTCC
12786
12787 # A language-specific compiler.
12788 CC=$lt_compiler_CXX
12789
12790 # Is the compiler the GNU C compiler?
12791 with_gcc=$GCC_CXX
12792
12793 # An ERE matcher.
12794 EGREP=$lt_EGREP
12795
12796 # The linker used to build libraries.
12797 LD=$lt_LD_CXX
12798
12799 # Whether we need hard or soft links.
12800 LN_S=$lt_LN_S
12801
12802 # A BSD-compatible nm program.
12803 NM=$lt_NM
12804
12805 # A symbol stripping program
12806 STRIP=$lt_STRIP
12807
12808 # Used to examine libraries when file_magic_cmd begins "file"
12809 MAGIC_CMD=$MAGIC_CMD
12810
12811 # Used on cygwin: DLL creation program.
12812 DLLTOOL="$DLLTOOL"
12813
12814 # Used on cygwin: object dumper.
12815 OBJDUMP="$OBJDUMP"
12816
12817 # Used on cygwin: assembler.
12818 AS="$AS"
12819
12820 # The name of the directory that contains temporary libtool files.
12821 objdir=$objdir
12822
12823 # How to create reloadable object files.
12824 reload_flag=$lt_reload_flag
12825 reload_cmds=$lt_reload_cmds
12826
12827 # How to pass a linker flag through the compiler.
12828 wl=$lt_lt_prog_compiler_wl_CXX
12829
12830 # Object file suffix (normally "o").
12831 objext="$ac_objext"
12832
12833 # Old archive suffix (normally "a").
12834 libext="$libext"
12835
12836 # Shared library suffix (normally ".so").
12837 shrext_cmds='$shrext_cmds'
12838
12839 # Executable file suffix (normally "").
12840 exeext="$exeext"
12841
12842 # Additional compiler flags for building library objects.
12843 pic_flag=$lt_lt_prog_compiler_pic_CXX
12844 pic_mode=$pic_mode
12845
12846 # What is the maximum length of a command?
12847 max_cmd_len=$lt_cv_sys_max_cmd_len
12848
12849 # Does compiler simultaneously support -c and -o options?
12850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12851
12852 # Must we lock files when doing compilation ?
12853 need_locks=$lt_need_locks
12854
12855 # Do we need the lib prefix for modules?
12856 need_lib_prefix=$need_lib_prefix
12857
12858 # Do we need a version for libraries?
12859 need_version=$need_version
12860
12861 # Whether dlopen is supported.
12862 dlopen_support=$enable_dlopen
12863
12864 # Whether dlopen of programs is supported.
12865 dlopen_self=$enable_dlopen_self
12866
12867 # Whether dlopen of statically linked programs is supported.
12868 dlopen_self_static=$enable_dlopen_self_static
12869
12870 # Compiler flag to prevent dynamic linking.
12871 link_static_flag=$lt_lt_prog_compiler_static_CXX
12872
12873 # Compiler flag to turn off builtin functions.
12874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12875
12876 # Compiler flag to allow reflexive dlopens.
12877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12878
12879 # Compiler flag to generate shared objects directly from archives.
12880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12881
12882 # Compiler flag to generate thread-safe objects.
12883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12884
12885 # Library versioning type.
12886 version_type=$version_type
12887
12888 # Format of library name prefix.
12889 libname_spec=$lt_libname_spec
12890
12891 # List of archive names.  First name is the real one, the rest are links.
12892 # The last name is the one that the linker finds with -lNAME.
12893 library_names_spec=$lt_library_names_spec
12894
12895 # The coded name of the library, if different from the real name.
12896 soname_spec=$lt_soname_spec
12897
12898 # Commands used to build and install an old-style archive.
12899 RANLIB=$lt_RANLIB
12900 old_archive_cmds=$lt_old_archive_cmds_CXX
12901 old_postinstall_cmds=$lt_old_postinstall_cmds
12902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12903
12904 # Create an old-style archive from a shared archive.
12905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12906
12907 # Create a temporary old-style archive to link instead of a shared archive.
12908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12909
12910 # Commands used to build and install a shared archive.
12911 archive_cmds=$lt_archive_cmds_CXX
12912 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12913 postinstall_cmds=$lt_postinstall_cmds
12914 postuninstall_cmds=$lt_postuninstall_cmds
12915
12916 # Commands used to build a loadable module (assumed same as above if empty)
12917 module_cmds=$lt_module_cmds_CXX
12918 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12919
12920 # Commands to strip libraries.
12921 old_striplib=$lt_old_striplib
12922 striplib=$lt_striplib
12923
12924 # Dependencies to place before the objects being linked to create a
12925 # shared library.
12926 predep_objects=$lt_predep_objects_CXX
12927
12928 # Dependencies to place after the objects being linked to create a
12929 # shared library.
12930 postdep_objects=$lt_postdep_objects_CXX
12931
12932 # Dependencies to place before the objects being linked to create a
12933 # shared library.
12934 predeps=$lt_predeps_CXX
12935
12936 # Dependencies to place after the objects being linked to create a
12937 # shared library.
12938 postdeps=$lt_postdeps_CXX
12939
12940 # The library search path used internally by the compiler when linking
12941 # a shared library.
12942 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12943
12944 # Method to check whether dependent libraries are shared objects.
12945 deplibs_check_method=$lt_deplibs_check_method
12946
12947 # Command to use when deplibs_check_method == file_magic.
12948 file_magic_cmd=$lt_file_magic_cmd
12949
12950 # Flag that allows shared libraries with undefined symbols to be built.
12951 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12952
12953 # Flag that forces no undefined symbols.
12954 no_undefined_flag=$lt_no_undefined_flag_CXX
12955
12956 # Commands used to finish a libtool library installation in a directory.
12957 finish_cmds=$lt_finish_cmds
12958
12959 # Same as above, but a single script fragment to be evaled but not shown.
12960 finish_eval=$lt_finish_eval
12961
12962 # Take the output of nm and produce a listing of raw symbols and C names.
12963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12964
12965 # Transform the output of nm in a proper C declaration
12966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12967
12968 # Transform the output of nm in a C name address pair
12969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12970
12971 # This is the shared library runtime path variable.
12972 runpath_var=$runpath_var
12973
12974 # This is the shared library path variable.
12975 shlibpath_var=$shlibpath_var
12976
12977 # Is shlibpath searched before the hard-coded library search path?
12978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12979
12980 # How to hardcode a shared library path into an executable.
12981 hardcode_action=$hardcode_action_CXX
12982
12983 # Whether we should hardcode library paths into libraries.
12984 hardcode_into_libs=$hardcode_into_libs
12985
12986 # Flag to hardcode \$libdir into a binary during linking.
12987 # This must work even if \$libdir does not exist.
12988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12989
12990 # If ld is used when linking, flag to hardcode \$libdir into
12991 # a binary during linking. This must work even if \$libdir does
12992 # not exist.
12993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12994
12995 # Whether we need a single -rpath flag with a separated argument.
12996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12997
12998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12999 # resulting binary.
13000 hardcode_direct=$hardcode_direct_CXX
13001
13002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13003 # resulting binary.
13004 hardcode_minus_L=$hardcode_minus_L_CXX
13005
13006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13007 # the resulting binary.
13008 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13009
13010 # Set to yes if building a shared library automatically hardcodes DIR into the library
13011 # and all subsequent libraries and executables linked against it.
13012 hardcode_automatic=$hardcode_automatic_CXX
13013
13014 # Variables whose values should be saved in libtool wrapper scripts and
13015 # restored at relink time.
13016 variables_saved_for_relink="$variables_saved_for_relink"
13017
13018 # Whether libtool must link a program against all its dependency libraries.
13019 link_all_deplibs=$link_all_deplibs_CXX
13020
13021 # Compile-time system search path for libraries
13022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13023
13024 # Run-time system search path for libraries
13025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13026
13027 # Fix the shell variable \$srcfile for the compiler.
13028 fix_srcfile_path="$fix_srcfile_path_CXX"
13029
13030 # Set to yes if exported symbols are required.
13031 always_export_symbols=$always_export_symbols_CXX
13032
13033 # The commands to list exported symbols.
13034 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13035
13036 # The commands to extract the exported symbol list from a shared archive.
13037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13038
13039 # Symbols that should not be listed in the preloaded symbols.
13040 exclude_expsyms=$lt_exclude_expsyms_CXX
13041
13042 # Symbols that must always be exported.
13043 include_expsyms=$lt_include_expsyms_CXX
13044
13045 # ### END LIBTOOL TAG CONFIG: $tagname
13046
13047 __EOF__
13048
13049
13050 else
13051   # If there is no Makefile yet, we rely on a make rule to execute
13052   # `config.status --recheck' to rerun these tests and create the
13053   # libtool script then.
13054   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13055   if test -f "$ltmain_in"; then
13056     test -f Makefile && make "$ltmain"
13057   fi
13058 fi
13059
13060
13061 ac_ext=c
13062 ac_cpp='$CPP $CPPFLAGS'
13063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13066
13067 CC=$lt_save_CC
13068 LDCXX=$LD
13069 LD=$lt_save_LD
13070 GCC=$lt_save_GCC
13071 with_gnu_ldcxx=$with_gnu_ld
13072 with_gnu_ld=$lt_save_with_gnu_ld
13073 lt_cv_path_LDCXX=$lt_cv_path_LD
13074 lt_cv_path_LD=$lt_save_path_LD
13075 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13076 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13077
13078         else
13079           tagname=""
13080         fi
13081         ;;
13082
13083       F77)
13084         if test -n "$F77" && test "X$F77" != "Xno"; then
13085
13086 ac_ext=f
13087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13090
13091
13092 archive_cmds_need_lc_F77=no
13093 allow_undefined_flag_F77=
13094 always_export_symbols_F77=no
13095 archive_expsym_cmds_F77=
13096 export_dynamic_flag_spec_F77=
13097 hardcode_direct_F77=no
13098 hardcode_libdir_flag_spec_F77=
13099 hardcode_libdir_flag_spec_ld_F77=
13100 hardcode_libdir_separator_F77=
13101 hardcode_minus_L_F77=no
13102 hardcode_automatic_F77=no
13103 module_cmds_F77=
13104 module_expsym_cmds_F77=
13105 link_all_deplibs_F77=unknown
13106 old_archive_cmds_F77=$old_archive_cmds
13107 no_undefined_flag_F77=
13108 whole_archive_flag_spec_F77=
13109 enable_shared_with_static_runtimes_F77=no
13110
13111 # Source file extension for f77 test sources.
13112 ac_ext=f
13113
13114 # Object file extension for compiled f77 test sources.
13115 objext=o
13116 objext_F77=$objext
13117
13118 # Code to be used in simple compile tests
13119 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13120
13121 # Code to be used in simple link tests
13122 lt_simple_link_test_code="      program t\n      end\n"
13123
13124 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13125
13126 # If no C compiler was specified, use CC.
13127 LTCC=${LTCC-"$CC"}
13128
13129 # Allow CC to be a program name with arguments.
13130 compiler=$CC
13131
13132
13133 # Allow CC to be a program name with arguments.
13134 lt_save_CC="$CC"
13135 CC=${F77-"f77"}
13136 compiler=$CC
13137 compiler_F77=$CC
13138 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13139
13140 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13141 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13142 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13143 echo "${ECHO_T}$can_build_shared" >&6
13144
13145 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13146 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13147 test "$can_build_shared" = "no" && enable_shared=no
13148
13149 # On AIX, shared libraries and static libraries use the same namespace, and
13150 # are all built from PIC.
13151 case "$host_os" in
13152 aix3*)
13153   test "$enable_shared" = yes && enable_static=no
13154   if test -n "$RANLIB"; then
13155     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13156     postinstall_cmds='$RANLIB $lib'
13157   fi
13158   ;;
13159 aix4* | aix5*)
13160   test "$enable_shared" = yes && enable_static=no
13161   ;;
13162 esac
13163 echo "$as_me:$LINENO: result: $enable_shared" >&5
13164 echo "${ECHO_T}$enable_shared" >&6
13165
13166 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13167 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13168 # Make sure either enable_shared or enable_static is yes.
13169 test "$enable_shared" = yes || enable_static=yes
13170 echo "$as_me:$LINENO: result: $enable_static" >&5
13171 echo "${ECHO_T}$enable_static" >&6
13172
13173 test "$ld_shlibs_F77" = no && can_build_shared=no
13174
13175 GCC_F77="$G77"
13176 LD_F77="$LD"
13177
13178 lt_prog_compiler_wl_F77=
13179 lt_prog_compiler_pic_F77=
13180 lt_prog_compiler_static_F77=
13181
13182 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13183 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13184
13185   if test "$GCC" = yes; then
13186     lt_prog_compiler_wl_F77='-Wl,'
13187     lt_prog_compiler_static_F77='-static'
13188
13189     case $host_os in
13190       aix*)
13191       # All AIX code is PIC.
13192       if test "$host_cpu" = ia64; then
13193         # AIX 5 now supports IA64 processor
13194         lt_prog_compiler_static_F77='-Bstatic'
13195       fi
13196       ;;
13197
13198     amigaos*)
13199       # FIXME: we need at least 68020 code to build shared libraries, but
13200       # adding the `-m68020' flag to GCC prevents building anything better,
13201       # like `-m68040'.
13202       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13203       ;;
13204
13205     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13206       # PIC is the default for these OSes.
13207       ;;
13208
13209     mingw* | pw32* | os2*)
13210       # This hack is so that the source file can tell whether it is being
13211       # built for inclusion in a dll (and should export symbols for example).
13212       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13213       ;;
13214
13215     darwin* | rhapsody*)
13216       # PIC is the default on this platform
13217       # Common symbols not allowed in MH_DYLIB files
13218       lt_prog_compiler_pic_F77='-fno-common'
13219       ;;
13220
13221     msdosdjgpp*)
13222       # Just because we use GCC doesn't mean we suddenly get shared libraries
13223       # on systems that don't support them.
13224       lt_prog_compiler_can_build_shared_F77=no
13225       enable_shared=no
13226       ;;
13227
13228     sysv4*MP*)
13229       if test -d /usr/nec; then
13230         lt_prog_compiler_pic_F77=-Kconform_pic
13231       fi
13232       ;;
13233
13234     hpux*)
13235       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13236       # not for PA HP-UX.
13237       case "$host_cpu" in
13238       hppa*64*|ia64*)
13239         # +Z the default
13240         ;;
13241       *)
13242         lt_prog_compiler_pic_F77='-fPIC'
13243         ;;
13244       esac
13245       ;;
13246
13247     *)
13248       lt_prog_compiler_pic_F77='-fPIC'
13249       ;;
13250     esac
13251   else
13252     # PORTME Check for flag to pass linker flags through the system compiler.
13253     case $host_os in
13254     aix*)
13255       lt_prog_compiler_wl_F77='-Wl,'
13256       if test "$host_cpu" = ia64; then
13257         # AIX 5 now supports IA64 processor
13258         lt_prog_compiler_static_F77='-Bstatic'
13259       else
13260         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13261       fi
13262       ;;
13263
13264     mingw* | pw32* | os2*)
13265       # This hack is so that the source file can tell whether it is being
13266       # built for inclusion in a dll (and should export symbols for example).
13267       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13268       ;;
13269
13270     hpux9* | hpux10* | hpux11*)
13271       lt_prog_compiler_wl_F77='-Wl,'
13272       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13273       # not for PA HP-UX.
13274       case "$host_cpu" in
13275       hppa*64*|ia64*)
13276         # +Z the default
13277         ;;
13278       *)
13279         lt_prog_compiler_pic_F77='+Z'
13280         ;;
13281       esac
13282       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13283       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13284       ;;
13285
13286     irix5* | irix6* | nonstopux*)
13287       lt_prog_compiler_wl_F77='-Wl,'
13288       # PIC (with -KPIC) is the default.
13289       lt_prog_compiler_static_F77='-non_shared'
13290       ;;
13291
13292     newsos6)
13293       lt_prog_compiler_pic_F77='-KPIC'
13294       lt_prog_compiler_static_F77='-Bstatic'
13295       ;;
13296
13297     linux*)
13298       case $CC in
13299       icc* | ecc*)
13300         lt_prog_compiler_wl_F77='-Wl,'
13301         lt_prog_compiler_pic_F77='-KPIC'
13302         lt_prog_compiler_static_F77='-static'
13303         ;;
13304       ccc*)
13305         lt_prog_compiler_wl_F77='-Wl,'
13306         # All Alpha code is PIC.
13307         lt_prog_compiler_static_F77='-non_shared'
13308         ;;
13309       esac
13310       ;;
13311
13312     osf3* | osf4* | osf5*)
13313       lt_prog_compiler_wl_F77='-Wl,'
13314       # All OSF/1 code is PIC.
13315       lt_prog_compiler_static_F77='-non_shared'
13316       ;;
13317
13318     sco3.2v5*)
13319       lt_prog_compiler_pic_F77='-Kpic'
13320       lt_prog_compiler_static_F77='-dn'
13321       ;;
13322
13323     solaris*)
13324       lt_prog_compiler_wl_F77='-Wl,'
13325       lt_prog_compiler_pic_F77='-KPIC'
13326       lt_prog_compiler_static_F77='-Bstatic'
13327       ;;
13328
13329     sunos4*)
13330       lt_prog_compiler_wl_F77='-Qoption ld '
13331       lt_prog_compiler_pic_F77='-PIC'
13332       lt_prog_compiler_static_F77='-Bstatic'
13333       ;;
13334
13335     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13336       lt_prog_compiler_wl_F77='-Wl,'
13337       lt_prog_compiler_pic_F77='-KPIC'
13338       lt_prog_compiler_static_F77='-Bstatic'
13339       ;;
13340
13341     sysv4*MP*)
13342       if test -d /usr/nec ;then
13343         lt_prog_compiler_pic_F77='-Kconform_pic'
13344         lt_prog_compiler_static_F77='-Bstatic'
13345       fi
13346       ;;
13347
13348     uts4*)
13349       lt_prog_compiler_pic_F77='-pic'
13350       lt_prog_compiler_static_F77='-Bstatic'
13351       ;;
13352
13353     *)
13354       lt_prog_compiler_can_build_shared_F77=no
13355       ;;
13356     esac
13357   fi
13358
13359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13360 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13361
13362 #
13363 # Check to make sure the PIC flag actually works.
13364 #
13365 if test -n "$lt_prog_compiler_pic_F77"; then
13366
13367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13369 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13370   echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372   lt_prog_compiler_pic_works_F77=no
13373   ac_outfile=conftest.$ac_objext
13374    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13376    # Insert the option either (1) after the last *FLAGS variable, or
13377    # (2) before a word containing "conftest.", or (3) at the end.
13378    # Note that $ac_compile itself does not contain backslashes and begins
13379    # with a dollar sign (not a hyphen), so the echo should work correctly.
13380    # The option is referenced via a variable to avoid confusing sed.
13381    lt_compile=`echo "$ac_compile" | $SED \
13382    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384    -e 's:$: $lt_compiler_flag:'`
13385    (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386    (eval "$lt_compile" 2>conftest.err)
13387    ac_status=$?
13388    cat conftest.err >&5
13389    echo "$as_me:13389: \$? = $ac_status" >&5
13390    if (exit $ac_status) && test -s "$ac_outfile"; then
13391      # The compiler can only warn and ignore the option if not recognized
13392      # So say no if there are warnings
13393      if test ! -s conftest.err; then
13394        lt_prog_compiler_pic_works_F77=yes
13395      fi
13396    fi
13397    $rm conftest*
13398
13399 fi
13400 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13401 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13402
13403 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13404     case $lt_prog_compiler_pic_F77 in
13405      "" | " "*) ;;
13406      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13407      esac
13408 else
13409     lt_prog_compiler_pic_F77=
13410      lt_prog_compiler_can_build_shared_F77=no
13411 fi
13412
13413 fi
13414 case "$host_os" in
13415   # For platforms which do not support PIC, -DPIC is meaningless:
13416   *djgpp*)
13417     lt_prog_compiler_pic_F77=
13418     ;;
13419   *)
13420     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13421     ;;
13422 esac
13423
13424 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13425 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13426 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13427   echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429   lt_cv_prog_compiler_c_o_F77=no
13430    $rm -r conftest 2>/dev/null
13431    mkdir conftest
13432    cd conftest
13433    mkdir out
13434    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13435
13436    lt_compiler_flag="-o out/conftest2.$ac_objext"
13437    # Insert the option either (1) after the last *FLAGS variable, or
13438    # (2) before a word containing "conftest.", or (3) at the end.
13439    # Note that $ac_compile itself does not contain backslashes and begins
13440    # with a dollar sign (not a hyphen), so the echo should work correctly.
13441    lt_compile=`echo "$ac_compile" | $SED \
13442    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444    -e 's:$: $lt_compiler_flag:'`
13445    (eval echo "\"\$as_me:13445: $lt_compile\"" >&5)
13446    (eval "$lt_compile" 2>out/conftest.err)
13447    ac_status=$?
13448    cat out/conftest.err >&5
13449    echo "$as_me:13449: \$? = $ac_status" >&5
13450    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13451    then
13452      # The compiler can only warn and ignore the option if not recognized
13453      # So say no if there are warnings
13454      if test ! -s out/conftest.err; then
13455        lt_cv_prog_compiler_c_o_F77=yes
13456      fi
13457    fi
13458    chmod u+w .
13459    $rm conftest*
13460    # SGI C++ compiler will create directory out/ii_files/ for
13461    # template instantiation
13462    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13463    $rm out/* && rmdir out
13464    cd ..
13465    rmdir conftest
13466    $rm conftest*
13467
13468 fi
13469 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13470 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13471
13472
13473 hard_links="nottested"
13474 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13475   # do not overwrite the value of need_locks provided by the user
13476   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13477 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13478   hard_links=yes
13479   $rm conftest*
13480   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13481   touch conftest.a
13482   ln conftest.a conftest.b 2>&5 || hard_links=no
13483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13484   echo "$as_me:$LINENO: result: $hard_links" >&5
13485 echo "${ECHO_T}$hard_links" >&6
13486   if test "$hard_links" = no; then
13487     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13488 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13489     need_locks=warn
13490   fi
13491 else
13492   need_locks=no
13493 fi
13494
13495 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13496 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13497
13498   runpath_var=
13499   allow_undefined_flag_F77=
13500   enable_shared_with_static_runtimes_F77=no
13501   archive_cmds_F77=
13502   archive_expsym_cmds_F77=
13503   old_archive_From_new_cmds_F77=
13504   old_archive_from_expsyms_cmds_F77=
13505   export_dynamic_flag_spec_F77=
13506   whole_archive_flag_spec_F77=
13507   thread_safe_flag_spec_F77=
13508   hardcode_libdir_flag_spec_F77=
13509   hardcode_libdir_flag_spec_ld_F77=
13510   hardcode_libdir_separator_F77=
13511   hardcode_direct_F77=no
13512   hardcode_minus_L_F77=no
13513   hardcode_shlibpath_var_F77=unsupported
13514   link_all_deplibs_F77=unknown
13515   hardcode_automatic_F77=no
13516   module_cmds_F77=
13517   module_expsym_cmds_F77=
13518   always_export_symbols_F77=no
13519   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13520   # include_expsyms should be a list of space-separated symbols to be *always*
13521   # included in the symbol list
13522   include_expsyms_F77=
13523   # exclude_expsyms can be an extended regexp of symbols to exclude
13524   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13525   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13526   # as well as any symbol that contains `d'.
13527   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13528   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13529   # platforms (ab)use it in PIC code, but their linkers get confused if
13530   # the symbol is explicitly referenced.  Since portable code cannot
13531   # rely on this symbol name, it's probably fine to never include it in
13532   # preloaded symbol tables.
13533   extract_expsyms_cmds=
13534
13535   case $host_os in
13536   cygwin* | mingw* | pw32*)
13537     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13538     # When not using gcc, we currently assume that we are using
13539     # Microsoft Visual C++.
13540     if test "$GCC" != yes; then
13541       with_gnu_ld=no
13542     fi
13543     ;;
13544   openbsd*)
13545     with_gnu_ld=no
13546     ;;
13547   esac
13548
13549   ld_shlibs_F77=yes
13550   if test "$with_gnu_ld" = yes; then
13551     # If archive_cmds runs LD, not CC, wlarc should be empty
13552     wlarc='${wl}'
13553
13554     # See if GNU ld supports shared libraries.
13555     case $host_os in
13556     aix3* | aix4* | aix5*)
13557       # On AIX/PPC, the GNU linker is very broken
13558       if test "$host_cpu" != ia64; then
13559         ld_shlibs_F77=no
13560         cat <<EOF 1>&2
13561
13562 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13563 *** to be unable to reliably create shared libraries on AIX.
13564 *** Therefore, libtool is disabling shared libraries support.  If you
13565 *** really care for shared libraries, you may want to modify your PATH
13566 *** so that a non-GNU linker is found, and then restart.
13567
13568 EOF
13569       fi
13570       ;;
13571
13572     amigaos*)
13573       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13574       hardcode_libdir_flag_spec_F77='-L$libdir'
13575       hardcode_minus_L_F77=yes
13576
13577       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13578       # that the semantics of dynamic libraries on AmigaOS, at least up
13579       # to version 4, is to share data among multiple programs linked
13580       # with the same dynamic library.  Since this doesn't match the
13581       # behavior of shared libraries on other platforms, we can't use
13582       # them.
13583       ld_shlibs_F77=no
13584       ;;
13585
13586     beos*)
13587       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13588         allow_undefined_flag_F77=unsupported
13589         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13590         # support --undefined.  This deserves some investigation.  FIXME
13591         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13592       else
13593         ld_shlibs_F77=no
13594       fi
13595       ;;
13596
13597     cygwin* | mingw* | pw32*)
13598       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13599       # as there is no search path for DLLs.
13600       hardcode_libdir_flag_spec_F77='-L$libdir'
13601       allow_undefined_flag_F77=unsupported
13602       always_export_symbols_F77=no
13603       enable_shared_with_static_runtimes_F77=yes
13604       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13605
13606       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13607         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13608         # If the export-symbols file already is a .def file (1st line
13609         # is EXPORTS), use it as is; otherwise, prepend...
13610         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13611           cp $export_symbols $output_objdir/$soname.def;
13612         else
13613           echo EXPORTS > $output_objdir/$soname.def;
13614           cat $export_symbols >> $output_objdir/$soname.def;
13615         fi~
13616         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13617       else
13618         ld_shlibs=no
13619       fi
13620       ;;
13621
13622     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13623       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13624         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13625         wlarc=
13626       else
13627         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13628         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13629       fi
13630       ;;
13631
13632     solaris* | sysv5*)
13633       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13634         ld_shlibs_F77=no
13635         cat <<EOF 1>&2
13636
13637 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13638 *** create shared libraries on Solaris systems.  Therefore, libtool
13639 *** is disabling shared libraries support.  We urge you to upgrade GNU
13640 *** binutils to release 2.9.1 or newer.  Another option is to modify
13641 *** your PATH or compiler configuration so that the native linker is
13642 *** used, and then restart.
13643
13644 EOF
13645       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13646         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13647         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13648       else
13649         ld_shlibs_F77=no
13650       fi
13651       ;;
13652
13653     sunos4*)
13654       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13655       wlarc=
13656       hardcode_direct_F77=yes
13657       hardcode_shlibpath_var_F77=no
13658       ;;
13659
13660   linux*)
13661     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13662         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663         archive_cmds_F77="$tmp_archive_cmds"
13664       supports_anon_versioning=no
13665       case `$LD -v 2>/dev/null` in
13666         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13667         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13668         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13669         *\ 2.11.*) ;; # other 2.11 versions
13670         *) supports_anon_versioning=yes ;;
13671       esac
13672       if test $supports_anon_versioning = yes; then
13673         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13675 $echo "local: *; };" >> $output_objdir/$libname.ver~
13676         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13677       else
13678         archive_expsym_cmds_F77="$tmp_archive_cmds"
13679       fi
13680       link_all_deplibs_F77=no
13681     else
13682       ld_shlibs_F77=no
13683     fi
13684     ;;
13685
13686     *)
13687       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13688         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13689         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13690       else
13691         ld_shlibs_F77=no
13692       fi
13693       ;;
13694     esac
13695
13696     if test "$ld_shlibs_F77" = yes; then
13697       runpath_var=LD_RUN_PATH
13698       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13699       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13700       # ancient GNU ld didn't support --whole-archive et. al.
13701       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13702         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13703       else
13704         whole_archive_flag_spec_F77=
13705       fi
13706     fi
13707   else
13708     # PORTME fill in a description of your system's linker (not GNU ld)
13709     case $host_os in
13710     aix3*)
13711       allow_undefined_flag_F77=unsupported
13712       always_export_symbols_F77=yes
13713       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13714       # Note: this linker hardcodes the directories in LIBPATH if there
13715       # are no directories specified by -L.
13716       hardcode_minus_L_F77=yes
13717       if test "$GCC" = yes && test -z "$link_static_flag"; then
13718         # Neither direct hardcoding nor static linking is supported with a
13719         # broken collect2.
13720         hardcode_direct_F77=unsupported
13721       fi
13722       ;;
13723
13724     aix4* | aix5*)
13725       if test "$host_cpu" = ia64; then
13726         # On IA64, the linker does run time linking by default, so we don't
13727         # have to do anything special.
13728         aix_use_runtimelinking=no
13729         exp_sym_flag='-Bexport'
13730         no_entry_flag=""
13731       else
13732         # If we're using GNU nm, then we don't want the "-C" option.
13733         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13734         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13735           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13736         else
13737           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13738         fi
13739         aix_use_runtimelinking=no
13740
13741         # Test if we are trying to use run time linking or normal
13742         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13743         # need to do runtime linking.
13744         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13745           for ld_flag in $LDFLAGS; do
13746           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13747             aix_use_runtimelinking=yes
13748             break
13749           fi
13750           done
13751         esac
13752
13753         exp_sym_flag='-bexport'
13754         no_entry_flag='-bnoentry'
13755       fi
13756
13757       # When large executables or shared objects are built, AIX ld can
13758       # have problems creating the table of contents.  If linking a library
13759       # or program results in "error TOC overflow" add -mminimal-toc to
13760       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13761       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13762
13763       archive_cmds_F77=''
13764       hardcode_direct_F77=yes
13765       hardcode_libdir_separator_F77=':'
13766       link_all_deplibs_F77=yes
13767
13768       if test "$GCC" = yes; then
13769         case $host_os in aix4.012|aix4.012.*)
13770         # We only want to do this on AIX 4.2 and lower, the check
13771         # below for broken collect2 doesn't work under 4.3+
13772           collect2name=`${CC} -print-prog-name=collect2`
13773           if test -f "$collect2name" && \
13774            strings "$collect2name" | grep resolve_lib_name >/dev/null
13775           then
13776           # We have reworked collect2
13777           hardcode_direct_F77=yes
13778           else
13779           # We have old collect2
13780           hardcode_direct_F77=unsupported
13781           # It fails to find uninstalled libraries when the uninstalled
13782           # path is not listed in the libpath.  Setting hardcode_minus_L
13783           # to unsupported forces relinking
13784           hardcode_minus_L_F77=yes
13785           hardcode_libdir_flag_spec_F77='-L$libdir'
13786           hardcode_libdir_separator_F77=
13787           fi
13788         esac
13789         shared_flag='-shared'
13790       else
13791         # not using gcc
13792         if test "$host_cpu" = ia64; then
13793         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13794         # chokes on -Wl,-G. The following line is correct:
13795           shared_flag='-G'
13796         else
13797         if test "$aix_use_runtimelinking" = yes; then
13798             shared_flag='${wl}-G'
13799           else
13800             shared_flag='${wl}-bM:SRE'
13801         fi
13802         fi
13803       fi
13804
13805       # It seems that -bexpall does not export symbols beginning with
13806       # underscore (_), so it is better to generate a list of symbols to export.
13807       always_export_symbols_F77=yes
13808       if test "$aix_use_runtimelinking" = yes; then
13809         # Warning - without using the other runtime loading flags (-brtl),
13810         # -berok will link without error, but may produce a broken library.
13811         allow_undefined_flag_F77='-berok'
13812        # Determine the default libpath from the value encoded in an empty executable.
13813        cat >conftest.$ac_ext <<_ACEOF
13814       program main
13815
13816       end
13817 _ACEOF
13818 rm -f conftest.$ac_objext conftest$ac_exeext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13820   (eval $ac_link) 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } &&
13827          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829   (eval $ac_try) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; } &&
13833          { ac_try='test -s conftest$ac_exeext'
13834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835   (eval $ac_try) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); }; }; then
13839
13840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13841 }'`
13842 # Check for a 64-bit object if we didn't find anything.
13843 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13844 }'`; fi
13845 else
13846   echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 fi
13850 rm -f conftest.err conftest.$ac_objext \
13851       conftest$ac_exeext conftest.$ac_ext
13852 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13853
13854        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13855         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"
13856        else
13857         if test "$host_cpu" = ia64; then
13858           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13859           allow_undefined_flag_F77="-z nodefs"
13860           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"
13861         else
13862          # Determine the default libpath from the value encoded in an empty executable.
13863          cat >conftest.$ac_ext <<_ACEOF
13864       program main
13865
13866       end
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870   (eval $ac_link) 2>conftest.er1
13871   ac_status=$?
13872   grep -v '^ *+' conftest.er1 >conftest.err
13873   rm -f conftest.er1
13874   cat conftest.err >&5
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); } &&
13877          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879   (eval $ac_try) 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); }; } &&
13883          { ac_try='test -s conftest$ac_exeext'
13884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885   (eval $ac_try) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); }; }; then
13889
13890 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13891 }'`
13892 # Check for a 64-bit object if we didn't find anything.
13893 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13894 }'`; fi
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 fi
13900 rm -f conftest.err conftest.$ac_objext \
13901       conftest$ac_exeext conftest.$ac_ext
13902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13903
13904          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13905           # Warning - without using the other run time loading flags,
13906           # -berok will link without error, but may produce a broken library.
13907           no_undefined_flag_F77=' ${wl}-bernotok'
13908           allow_undefined_flag_F77=' ${wl}-berok'
13909           # -bexpall does not export symbols beginning with underscore (_)
13910           always_export_symbols_F77=yes
13911           # Exported symbols can be pulled into shared objects from archives
13912           whole_archive_flag_spec_F77=' '
13913           archive_cmds_need_lc_F77=yes
13914           # This is similar to how AIX traditionally builds it's shared libraries.
13915           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'
13916         fi
13917       fi
13918       ;;
13919
13920     amigaos*)
13921       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13922       hardcode_libdir_flag_spec_F77='-L$libdir'
13923       hardcode_minus_L_F77=yes
13924       # see comment about different semantics on the GNU ld section
13925       ld_shlibs_F77=no
13926       ;;
13927
13928     bsdi4*)
13929       export_dynamic_flag_spec_F77=-rdynamic
13930       ;;
13931
13932     cygwin* | mingw* | pw32*)
13933       # When not using gcc, we currently assume that we are using
13934       # Microsoft Visual C++.
13935       # hardcode_libdir_flag_spec is actually meaningless, as there is
13936       # no search path for DLLs.
13937       hardcode_libdir_flag_spec_F77=' '
13938       allow_undefined_flag_F77=unsupported
13939       # Tell ltmain to make .lib files, not .a files.
13940       libext=lib
13941       # Tell ltmain to make .dll files, not .so files.
13942       shrext_cmds=".dll"
13943       # FIXME: Setting linknames here is a bad hack.
13944       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13945       # The linker will automatically build a .lib file if we build a DLL.
13946       old_archive_From_new_cmds_F77='true'
13947       # FIXME: Should let the user specify the lib program.
13948       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13949       fix_srcfile_path='`cygpath -w "$srcfile"`'
13950       enable_shared_with_static_runtimes_F77=yes
13951       ;;
13952
13953     darwin* | rhapsody*)
13954     if test "$GXX" = yes ; then
13955       archive_cmds_need_lc_F77=no
13956       case "$host_os" in
13957       rhapsody* | darwin1.[012])
13958         allow_undefined_flag_F77='-undefined suppress'
13959         ;;
13960       *) # Darwin 1.3 on
13961       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13962         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13963       else
13964         case ${MACOSX_DEPLOYMENT_TARGET} in
13965           10.[012])
13966             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13967             ;;
13968           10.*)
13969             allow_undefined_flag_F77='-undefined dynamic_lookup'
13970             ;;
13971         esac
13972       fi
13973         ;;
13974       esac
13975         lt_int_apple_cc_single_mod=no
13976         output_verbose_link_cmd='echo'
13977         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13978           lt_int_apple_cc_single_mod=yes
13979         fi
13980         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13981           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13982         else
13983         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13984       fi
13985       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13986       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13987         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13988           archive_expsym_cmds_F77='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}'
13989         else
13990           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13991         fi
13992           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}'
13993       hardcode_direct_F77=no
13994       hardcode_automatic_F77=yes
13995       hardcode_shlibpath_var_F77=unsupported
13996       whole_archive_flag_spec_F77='-all_load $convenience'
13997       link_all_deplibs_F77=yes
13998     else
13999       ld_shlibs_F77=no
14000     fi
14001       ;;
14002
14003     dgux*)
14004       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14005       hardcode_libdir_flag_spec_F77='-L$libdir'
14006       hardcode_shlibpath_var_F77=no
14007       ;;
14008
14009     freebsd1*)
14010       ld_shlibs_F77=no
14011       ;;
14012
14013     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14014     # support.  Future versions do this automatically, but an explicit c++rt0.o
14015     # does not break anything, and helps significantly (at the cost of a little
14016     # extra space).
14017     freebsd2.2*)
14018       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14019       hardcode_libdir_flag_spec_F77='-R$libdir'
14020       hardcode_direct_F77=yes
14021       hardcode_shlibpath_var_F77=no
14022       ;;
14023
14024     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14025     freebsd2*)
14026       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14027       hardcode_direct_F77=yes
14028       hardcode_minus_L_F77=yes
14029       hardcode_shlibpath_var_F77=no
14030       ;;
14031
14032     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14033     freebsd* | kfreebsd*-gnu)
14034       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14035       hardcode_libdir_flag_spec_F77='-R$libdir'
14036       hardcode_direct_F77=yes
14037       hardcode_shlibpath_var_F77=no
14038       ;;
14039
14040     hpux9*)
14041       if test "$GCC" = yes; then
14042         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14043       else
14044         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14045       fi
14046       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14047       hardcode_libdir_separator_F77=:
14048       hardcode_direct_F77=yes
14049
14050       # hardcode_minus_L: Not really in the search PATH,
14051       # but as the default location of the library.
14052       hardcode_minus_L_F77=yes
14053       export_dynamic_flag_spec_F77='${wl}-E'
14054       ;;
14055
14056     hpux10* | hpux11*)
14057       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14058         case "$host_cpu" in
14059         hppa*64*|ia64*)
14060           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14061           ;;
14062         *)
14063           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14064           ;;
14065         esac
14066       else
14067         case "$host_cpu" in
14068         hppa*64*|ia64*)
14069           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14070           ;;
14071         *)
14072           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14073           ;;
14074         esac
14075       fi
14076       if test "$with_gnu_ld" = no; then
14077         case "$host_cpu" in
14078         hppa*64*)
14079           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14080           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14081           hardcode_libdir_separator_F77=:
14082           hardcode_direct_F77=no
14083           hardcode_shlibpath_var_F77=no
14084           ;;
14085         ia64*)
14086           hardcode_libdir_flag_spec_F77='-L$libdir'
14087           hardcode_direct_F77=no
14088           hardcode_shlibpath_var_F77=no
14089
14090           # hardcode_minus_L: Not really in the search PATH,
14091           # but as the default location of the library.
14092           hardcode_minus_L_F77=yes
14093           ;;
14094         *)
14095           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14096           hardcode_libdir_separator_F77=:
14097           hardcode_direct_F77=yes
14098           export_dynamic_flag_spec_F77='${wl}-E'
14099
14100           # hardcode_minus_L: Not really in the search PATH,
14101           # but as the default location of the library.
14102           hardcode_minus_L_F77=yes
14103           ;;
14104         esac
14105       fi
14106       ;;
14107
14108     irix5* | irix6* | nonstopux*)
14109       if test "$GCC" = yes; then
14110         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14111       else
14112         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14113         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14114       fi
14115       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14116       hardcode_libdir_separator_F77=:
14117       link_all_deplibs_F77=yes
14118       ;;
14119
14120     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14121       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14122         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14123       else
14124         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14125       fi
14126       hardcode_libdir_flag_spec_F77='-R$libdir'
14127       hardcode_direct_F77=yes
14128       hardcode_shlibpath_var_F77=no
14129       ;;
14130
14131     newsos6)
14132       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133       hardcode_direct_F77=yes
14134       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14135       hardcode_libdir_separator_F77=:
14136       hardcode_shlibpath_var_F77=no
14137       ;;
14138
14139     openbsd*)
14140       hardcode_direct_F77=yes
14141       hardcode_shlibpath_var_F77=no
14142       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14143         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14144         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14145         export_dynamic_flag_spec_F77='${wl}-E'
14146       else
14147        case $host_os in
14148          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14149            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14150            hardcode_libdir_flag_spec_F77='-R$libdir'
14151            ;;
14152          *)
14153            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14154            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14155            ;;
14156        esac
14157       fi
14158       ;;
14159
14160     os2*)
14161       hardcode_libdir_flag_spec_F77='-L$libdir'
14162       hardcode_minus_L_F77=yes
14163       allow_undefined_flag_F77=unsupported
14164       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14165       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14166       ;;
14167
14168     osf3*)
14169       if test "$GCC" = yes; then
14170         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14171         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14172       else
14173         allow_undefined_flag_F77=' -expect_unresolved \*'
14174         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14175       fi
14176       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177       hardcode_libdir_separator_F77=:
14178       ;;
14179
14180     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14181       if test "$GCC" = yes; then
14182         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14184         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14185       else
14186         allow_undefined_flag_F77=' -expect_unresolved \*'
14187         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14188         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14189         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14190
14191         # Both c and cxx compiler support -rpath directly
14192         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14193       fi
14194       hardcode_libdir_separator_F77=:
14195       ;;
14196
14197     sco3.2v5*)
14198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14199       hardcode_shlibpath_var_F77=no
14200       export_dynamic_flag_spec_F77='${wl}-Bexport'
14201       runpath_var=LD_RUN_PATH
14202       hardcode_runpath_var=yes
14203       ;;
14204
14205     solaris*)
14206       no_undefined_flag_F77=' -z text'
14207       if test "$GCC" = yes; then
14208         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14210           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14211       else
14212         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14213         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14214         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14215       fi
14216       hardcode_libdir_flag_spec_F77='-R$libdir'
14217       hardcode_shlibpath_var_F77=no
14218       case $host_os in
14219       solaris2.[0-5] | solaris2.[0-5].*) ;;
14220       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14221         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14222       esac
14223       link_all_deplibs_F77=yes
14224       ;;
14225
14226     sunos4*)
14227       if test "x$host_vendor" = xsequent; then
14228         # Use $CC to link under sequent, because it throws in some extra .o
14229         # files that make .init and .fini sections work.
14230         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14231       else
14232         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14233       fi
14234       hardcode_libdir_flag_spec_F77='-L$libdir'
14235       hardcode_direct_F77=yes
14236       hardcode_minus_L_F77=yes
14237       hardcode_shlibpath_var_F77=no
14238       ;;
14239
14240     sysv4)
14241       case $host_vendor in
14242         sni)
14243           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244           hardcode_direct_F77=yes # is this really true???
14245         ;;
14246         siemens)
14247           ## LD is ld it makes a PLAMLIB
14248           ## CC just makes a GrossModule.
14249           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14250           reload_cmds_F77='$CC -r -o $output$reload_objs'
14251           hardcode_direct_F77=no
14252         ;;
14253         motorola)
14254           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14256         ;;
14257       esac
14258       runpath_var='LD_RUN_PATH'
14259       hardcode_shlibpath_var_F77=no
14260       ;;
14261
14262     sysv4.3*)
14263       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264       hardcode_shlibpath_var_F77=no
14265       export_dynamic_flag_spec_F77='-Bexport'
14266       ;;
14267
14268     sysv4*MP*)
14269       if test -d /usr/nec; then
14270         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271         hardcode_shlibpath_var_F77=no
14272         runpath_var=LD_RUN_PATH
14273         hardcode_runpath_var=yes
14274         ld_shlibs_F77=yes
14275       fi
14276       ;;
14277
14278     sysv4.2uw2*)
14279       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14280       hardcode_direct_F77=yes
14281       hardcode_minus_L_F77=no
14282       hardcode_shlibpath_var_F77=no
14283       hardcode_runpath_var=yes
14284       runpath_var=LD_RUN_PATH
14285       ;;
14286
14287    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14288       no_undefined_flag_F77='${wl}-z ${wl}text'
14289       if test "$GCC" = yes; then
14290         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14291       else
14292         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14293       fi
14294       runpath_var='LD_RUN_PATH'
14295       hardcode_shlibpath_var_F77=no
14296       ;;
14297
14298     sysv5*)
14299       no_undefined_flag_F77=' -z text'
14300       # $CC -shared without GNU ld will not create a library from C++
14301       # object files and a static libstdc++, better avoid it by now
14302       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14303       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14304                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14305       hardcode_libdir_flag_spec_F77=
14306       hardcode_shlibpath_var_F77=no
14307       runpath_var='LD_RUN_PATH'
14308       ;;
14309
14310     uts4*)
14311       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312       hardcode_libdir_flag_spec_F77='-L$libdir'
14313       hardcode_shlibpath_var_F77=no
14314       ;;
14315
14316     *)
14317       ld_shlibs_F77=no
14318       ;;
14319     esac
14320   fi
14321
14322 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14323 echo "${ECHO_T}$ld_shlibs_F77" >&6
14324 test "$ld_shlibs_F77" = no && can_build_shared=no
14325
14326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14327 if test "$GCC" = yes; then
14328   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14329 fi
14330
14331 #
14332 # Do we need to explicitly link libc?
14333 #
14334 case "x$archive_cmds_need_lc_F77" in
14335 x|xyes)
14336   # Assume -lc should be added
14337   archive_cmds_need_lc_F77=yes
14338
14339   if test "$enable_shared" = yes && test "$GCC" = yes; then
14340     case $archive_cmds_F77 in
14341     *'~'*)
14342       # FIXME: we may have to deal with multi-command sequences.
14343       ;;
14344     '$CC '*)
14345       # Test whether the compiler implicitly links with -lc since on some
14346       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14347       # to ld, don't add -lc before -lgcc.
14348       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14350       $rm conftest*
14351       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14352
14353       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354   (eval $ac_compile) 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); } 2>conftest.err; then
14358         soname=conftest
14359         lib=conftest
14360         libobjs=conftest.$ac_objext
14361         deplibs=
14362         wl=$lt_prog_compiler_wl_F77
14363         compiler_flags=-v
14364         linker_flags=-v
14365         verstring=
14366         output_objdir=.
14367         libname=conftest
14368         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14369         allow_undefined_flag_F77=
14370         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14371   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }
14375         then
14376           archive_cmds_need_lc_F77=no
14377         else
14378           archive_cmds_need_lc_F77=yes
14379         fi
14380         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14381       else
14382         cat conftest.err 1>&5
14383       fi
14384       $rm conftest*
14385       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14386 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14387       ;;
14388     esac
14389   fi
14390   ;;
14391 esac
14392
14393 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14394 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14395 library_names_spec=
14396 libname_spec='lib$name'
14397 soname_spec=
14398 shrext_cmds=".so"
14399 postinstall_cmds=
14400 postuninstall_cmds=
14401 finish_cmds=
14402 finish_eval=
14403 shlibpath_var=
14404 shlibpath_overrides_runpath=unknown
14405 version_type=none
14406 dynamic_linker="$host_os ld.so"
14407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14408 if test "$GCC" = yes; then
14409   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14410   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14411     # if the path contains ";" then we assume it to be the separator
14412     # otherwise default to the standard path separator (i.e. ":") - it is
14413     # assumed that no part of a normal pathname contains ";" but that should
14414     # okay in the real world where ";" in dirpaths is itself problematic.
14415     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416   else
14417     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14418   fi
14419 else
14420   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14421 fi
14422 need_lib_prefix=unknown
14423 hardcode_into_libs=no
14424
14425 # when you set need_version to no, make sure it does not cause -set_version
14426 # flags to be left without arguments
14427 need_version=unknown
14428
14429 case $host_os in
14430 aix3*)
14431   version_type=linux
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14433   shlibpath_var=LIBPATH
14434
14435   # AIX 3 has no versioning support, so we append a major version to the name.
14436   soname_spec='${libname}${release}${shared_ext}$major'
14437   ;;
14438
14439 aix4* | aix5*)
14440   version_type=linux
14441   need_lib_prefix=no
14442   need_version=no
14443   hardcode_into_libs=yes
14444   if test "$host_cpu" = ia64; then
14445     # AIX 5 supports IA64
14446     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14447     shlibpath_var=LD_LIBRARY_PATH
14448   else
14449     # With GCC up to 2.95.x, collect2 would create an import file
14450     # for dependence libraries.  The import file would start with
14451     # the line `#! .'.  This would cause the generated library to
14452     # depend on `.', always an invalid library.  This was fixed in
14453     # development snapshots of GCC prior to 3.0.
14454     case $host_os in
14455       aix4 | aix4.[01] | aix4.[01].*)
14456       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14457            echo ' yes '
14458            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14459         :
14460       else
14461         can_build_shared=no
14462       fi
14463       ;;
14464     esac
14465     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14466     # soname into executable. Probably we can add versioning support to
14467     # collect2, so additional links can be useful in future.
14468     if test "$aix_use_runtimelinking" = yes; then
14469       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14470       # instead of lib<name>.a to let people know that these are not
14471       # typical AIX shared libraries.
14472       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473     else
14474       # We preserve .a as extension for shared libraries through AIX4.2
14475       # and later when we are not doing run time linking.
14476       library_names_spec='${libname}${release}.a $libname.a'
14477       soname_spec='${libname}${release}${shared_ext}$major'
14478     fi
14479     shlibpath_var=LIBPATH
14480   fi
14481   ;;
14482
14483 amigaos*)
14484   library_names_spec='$libname.ixlibrary $libname.a'
14485   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14486   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'
14487   ;;
14488
14489 beos*)
14490   library_names_spec='${libname}${shared_ext}'
14491   dynamic_linker="$host_os ld.so"
14492   shlibpath_var=LIBRARY_PATH
14493   ;;
14494
14495 bsdi4*)
14496   version_type=linux
14497   need_version=no
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14501   shlibpath_var=LD_LIBRARY_PATH
14502   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14503   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14504   # the default ld.so.conf also contains /usr/contrib/lib and
14505   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14506   # libtool to hard-code these into programs
14507   ;;
14508
14509 cygwin* | mingw* | pw32*)
14510   version_type=windows
14511   shrext_cmds=".dll"
14512   need_version=no
14513   need_lib_prefix=no
14514
14515   case $GCC,$host_os in
14516   yes,cygwin* | yes,mingw* | yes,pw32*)
14517     library_names_spec='$libname.dll.a'
14518     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14519     postinstall_cmds='base_file=`basename \${file}`~
14520       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14521       dldir=$destdir/`dirname \$dlpath`~
14522       test -d \$dldir || mkdir -p \$dldir~
14523       $install_prog $dir/$dlname \$dldir/$dlname'
14524     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14525       dlpath=$dir/\$dldll~
14526        $rm \$dlpath'
14527     shlibpath_overrides_runpath=yes
14528
14529     case $host_os in
14530     cygwin*)
14531       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14532       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14533       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14534       ;;
14535     mingw*)
14536       # MinGW DLLs use traditional 'lib' prefix
14537       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14539       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14540         # It is most probably a Windows format PATH printed by
14541         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14542         # path with ; separators, and with drive letters. We can handle the
14543         # drive letters (cygwin fileutils understands them), so leave them,
14544         # especially as we might pass files found there to a mingw objdump,
14545         # which wouldn't understand a cygwinified path. Ahh.
14546         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14547       else
14548         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14549       fi
14550       ;;
14551     pw32*)
14552       # pw32 DLLs use 'pw' prefix rather than 'lib'
14553       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14554       ;;
14555     esac
14556     ;;
14557
14558   *)
14559     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14560     ;;
14561   esac
14562   dynamic_linker='Win32 ld.exe'
14563   # FIXME: first we should search . and the directory the executable is in
14564   shlibpath_var=PATH
14565   ;;
14566
14567 darwin* | rhapsody*)
14568   dynamic_linker="$host_os dyld"
14569   version_type=darwin
14570   need_lib_prefix=no
14571   need_version=no
14572   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14573   soname_spec='${libname}${release}${major}$shared_ext'
14574   shlibpath_overrides_runpath=yes
14575   shlibpath_var=DYLD_LIBRARY_PATH
14576   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14577   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14578   if test "$GCC" = yes; then
14579     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"`
14580   else
14581     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14582   fi
14583   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14584   ;;
14585
14586 dgux*)
14587   version_type=linux
14588   need_lib_prefix=no
14589   need_version=no
14590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14591   soname_spec='${libname}${release}${shared_ext}$major'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   ;;
14594
14595 freebsd1*)
14596   dynamic_linker=no
14597   ;;
14598
14599 kfreebsd*-gnu)
14600   version_type=linux
14601   need_lib_prefix=no
14602   need_version=no
14603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14604   soname_spec='${libname}${release}${shared_ext}$major'
14605   shlibpath_var=LD_LIBRARY_PATH
14606   shlibpath_overrides_runpath=no
14607   hardcode_into_libs=yes
14608   dynamic_linker='GNU ld.so'
14609   ;;
14610
14611 freebsd*)
14612   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14613   version_type=freebsd-$objformat
14614   case $version_type in
14615     freebsd-elf*)
14616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14617       need_version=no
14618       need_lib_prefix=no
14619       ;;
14620     freebsd-*)
14621       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14622       need_version=yes
14623       ;;
14624   esac
14625   shlibpath_var=LD_LIBRARY_PATH
14626   case $host_os in
14627   freebsd2*)
14628     shlibpath_overrides_runpath=yes
14629     ;;
14630   freebsd3.01* | freebsdelf3.01*)
14631     shlibpath_overrides_runpath=yes
14632     hardcode_into_libs=yes
14633     ;;
14634   *) # from 3.2 on
14635     shlibpath_overrides_runpath=no
14636     hardcode_into_libs=yes
14637     ;;
14638   esac
14639   ;;
14640
14641 gnu*)
14642   version_type=linux
14643   need_lib_prefix=no
14644   need_version=no
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14646   soname_spec='${libname}${release}${shared_ext}$major'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   hardcode_into_libs=yes
14649   ;;
14650
14651 hpux9* | hpux10* | hpux11*)
14652   # Give a soname corresponding to the major version so that dld.sl refuses to
14653   # link against other versions.
14654   version_type=sunos
14655   need_lib_prefix=no
14656   need_version=no
14657   case "$host_cpu" in
14658   ia64*)
14659     shrext_cmds='.so'
14660     hardcode_into_libs=yes
14661     dynamic_linker="$host_os dld.so"
14662     shlibpath_var=LD_LIBRARY_PATH
14663     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665     soname_spec='${libname}${release}${shared_ext}$major'
14666     if test "X$HPUX_IA64_MODE" = X32; then
14667       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14668     else
14669       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14670     fi
14671     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672     ;;
14673    hppa*64*)
14674      shrext_cmds='.sl'
14675      hardcode_into_libs=yes
14676      dynamic_linker="$host_os dld.sl"
14677      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14678      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14679      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680      soname_spec='${libname}${release}${shared_ext}$major'
14681      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14682      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14683      ;;
14684    *)
14685     shrext_cmds='.sl'
14686     dynamic_linker="$host_os dld.sl"
14687     shlibpath_var=SHLIB_PATH
14688     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690     soname_spec='${libname}${release}${shared_ext}$major'
14691     ;;
14692   esac
14693   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14694   postinstall_cmds='chmod 555 $lib'
14695   ;;
14696
14697 irix5* | irix6* | nonstopux*)
14698   case $host_os in
14699     nonstopux*) version_type=nonstopux ;;
14700     *)
14701         if test "$lt_cv_prog_gnu_ld" = yes; then
14702                 version_type=linux
14703         else
14704                 version_type=irix
14705         fi ;;
14706   esac
14707   need_lib_prefix=no
14708   need_version=no
14709   soname_spec='${libname}${release}${shared_ext}$major'
14710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14711   case $host_os in
14712   irix5* | nonstopux*)
14713     libsuff= shlibsuff=
14714     ;;
14715   *)
14716     case $LD in # libtool.m4 will add one of these switches to LD
14717     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14718       libsuff= shlibsuff= libmagic=32-bit;;
14719     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14720       libsuff=32 shlibsuff=N32 libmagic=N32;;
14721     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14722       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14723     *) libsuff= shlibsuff= libmagic=never-match;;
14724     esac
14725     ;;
14726   esac
14727   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14728   shlibpath_overrides_runpath=no
14729   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14730   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14731   hardcode_into_libs=yes
14732   ;;
14733
14734 # No shared lib support for Linux oldld, aout, or coff.
14735 linux*oldld* | linux*aout* | linux*coff*)
14736   dynamic_linker=no
14737   ;;
14738
14739 # This must be Linux ELF.
14740 linux*)
14741   version_type=linux
14742   need_lib_prefix=no
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   shlibpath_overrides_runpath=no
14749   # This implies no fast_install, which is unacceptable.
14750   # Some rework will be needed to allow for fast_install
14751   # before this can be enabled.
14752   hardcode_into_libs=yes
14753
14754   # Append ld.so.conf contents to the search path
14755   if test -f /etc/ld.so.conf; then
14756     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14757     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14758   fi
14759
14760   # We used to test for /lib/ld.so.1 and disable shared libraries on
14761   # powerpc, because MkLinux only supported shared libraries with the
14762   # GNU dynamic linker.  Since this was broken with cross compilers,
14763   # most powerpc-linux boxes support dynamic linking these days and
14764   # people can always --disable-shared, the test was removed, and we
14765   # assume the GNU/Linux dynamic linker is in use.
14766   dynamic_linker='GNU/Linux ld.so'
14767   ;;
14768
14769 netbsdelf*-gnu)
14770   version_type=linux
14771   need_lib_prefix=no
14772   need_version=no
14773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774   soname_spec='${libname}${release}${shared_ext}$major'
14775   shlibpath_var=LD_LIBRARY_PATH
14776   shlibpath_overrides_runpath=no
14777   hardcode_into_libs=yes
14778   dynamic_linker='NetBSD ld.elf_so'
14779   ;;
14780
14781 knetbsd*-gnu)
14782   version_type=linux
14783   need_lib_prefix=no
14784   need_version=no
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   shlibpath_overrides_runpath=no
14789   hardcode_into_libs=yes
14790   dynamic_linker='GNU ld.so'
14791   ;;
14792
14793 netbsd*)
14794   version_type=sunos
14795   need_lib_prefix=no
14796   need_version=no
14797   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14799     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14800     dynamic_linker='NetBSD (a.out) ld.so'
14801   else
14802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14803     soname_spec='${libname}${release}${shared_ext}$major'
14804     dynamic_linker='NetBSD ld.elf_so'
14805   fi
14806   shlibpath_var=LD_LIBRARY_PATH
14807   shlibpath_overrides_runpath=yes
14808   hardcode_into_libs=yes
14809   ;;
14810
14811 newsos6)
14812   version_type=linux
14813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814   shlibpath_var=LD_LIBRARY_PATH
14815   shlibpath_overrides_runpath=yes
14816   ;;
14817
14818 nto-qnx*)
14819   version_type=linux
14820   need_lib_prefix=no
14821   need_version=no
14822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823   soname_spec='${libname}${release}${shared_ext}$major'
14824   shlibpath_var=LD_LIBRARY_PATH
14825   shlibpath_overrides_runpath=yes
14826   ;;
14827
14828 openbsd*)
14829   version_type=sunos
14830   need_lib_prefix=no
14831   need_version=yes
14832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14833   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14834   shlibpath_var=LD_LIBRARY_PATH
14835   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14836     case $host_os in
14837       openbsd2.[89] | openbsd2.[89].*)
14838         shlibpath_overrides_runpath=no
14839         ;;
14840       *)
14841         shlibpath_overrides_runpath=yes
14842         ;;
14843       esac
14844   else
14845     shlibpath_overrides_runpath=yes
14846   fi
14847   ;;
14848
14849 os2*)
14850   libname_spec='$name'
14851   shrext_cmds=".dll"
14852   need_lib_prefix=no
14853   library_names_spec='$libname${shared_ext} $libname.a'
14854   dynamic_linker='OS/2 ld.exe'
14855   shlibpath_var=LIBPATH
14856   ;;
14857
14858 osf3* | osf4* | osf5*)
14859   version_type=osf
14860   need_lib_prefix=no
14861   need_version=no
14862   soname_spec='${libname}${release}${shared_ext}$major'
14863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864   shlibpath_var=LD_LIBRARY_PATH
14865   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14866   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14867   ;;
14868
14869 sco3.2v5*)
14870   version_type=osf
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   ;;
14875
14876 solaris*)
14877   version_type=linux
14878   need_lib_prefix=no
14879   need_version=no
14880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881   soname_spec='${libname}${release}${shared_ext}$major'
14882   shlibpath_var=LD_LIBRARY_PATH
14883   shlibpath_overrides_runpath=yes
14884   hardcode_into_libs=yes
14885   # ldd complains unless libraries are executable
14886   postinstall_cmds='chmod +x $lib'
14887   ;;
14888
14889 sunos4*)
14890   version_type=sunos
14891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14892   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14893   shlibpath_var=LD_LIBRARY_PATH
14894   shlibpath_overrides_runpath=yes
14895   if test "$with_gnu_ld" = yes; then
14896     need_lib_prefix=no
14897   fi
14898   need_version=yes
14899   ;;
14900
14901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14902   version_type=linux
14903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904   soname_spec='${libname}${release}${shared_ext}$major'
14905   shlibpath_var=LD_LIBRARY_PATH
14906   case $host_vendor in
14907     sni)
14908       shlibpath_overrides_runpath=no
14909       need_lib_prefix=no
14910       export_dynamic_flag_spec='${wl}-Blargedynsym'
14911       runpath_var=LD_RUN_PATH
14912       ;;
14913     siemens)
14914       need_lib_prefix=no
14915       ;;
14916     motorola)
14917       need_lib_prefix=no
14918       need_version=no
14919       shlibpath_overrides_runpath=no
14920       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14921       ;;
14922   esac
14923   ;;
14924
14925 sysv4*MP*)
14926   if test -d /usr/nec ;then
14927     version_type=linux
14928     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14929     soname_spec='$libname${shared_ext}.$major'
14930     shlibpath_var=LD_LIBRARY_PATH
14931   fi
14932   ;;
14933
14934 uts4*)
14935   version_type=linux
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   shlibpath_var=LD_LIBRARY_PATH
14939   ;;
14940
14941 *)
14942   dynamic_linker=no
14943   ;;
14944 esac
14945 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14946 echo "${ECHO_T}$dynamic_linker" >&6
14947 test "$dynamic_linker" = no && can_build_shared=no
14948
14949 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14950 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14951 hardcode_action_F77=
14952 if test -n "$hardcode_libdir_flag_spec_F77" || \
14953    test -n "$runpath_var F77" || \
14954    test "X$hardcode_automatic_F77"="Xyes" ; then
14955
14956   # We can hardcode non-existant directories.
14957   if test "$hardcode_direct_F77" != no &&
14958      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14959      # have to relink, otherwise we might link with an installed library
14960      # when we should be linking with a yet-to-be-installed one
14961      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14962      test "$hardcode_minus_L_F77" != no; then
14963     # Linking always hardcodes the temporary library directory.
14964     hardcode_action_F77=relink
14965   else
14966     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14967     hardcode_action_F77=immediate
14968   fi
14969 else
14970   # We cannot hardcode anything, or else we can only hardcode existing
14971   # directories.
14972   hardcode_action_F77=unsupported
14973 fi
14974 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14975 echo "${ECHO_T}$hardcode_action_F77" >&6
14976
14977 if test "$hardcode_action_F77" = relink; then
14978   # Fast installation is not supported
14979   enable_fast_install=no
14980 elif test "$shlibpath_overrides_runpath" = yes ||
14981      test "$enable_shared" = no; then
14982   # Fast installation is not necessary
14983   enable_fast_install=needless
14984 fi
14985
14986 striplib=
14987 old_striplib=
14988 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14989 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14990 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14991   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14992   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14993   echo "$as_me:$LINENO: result: yes" >&5
14994 echo "${ECHO_T}yes" >&6
14995 else
14996 # FIXME - insert some real tests, host_os isn't really good enough
14997   case $host_os in
14998    darwin*)
14999        if test -n "$STRIP" ; then
15000          striplib="$STRIP -x"
15001          echo "$as_me:$LINENO: result: yes" >&5
15002 echo "${ECHO_T}yes" >&6
15003        else
15004   echo "$as_me:$LINENO: result: no" >&5
15005 echo "${ECHO_T}no" >&6
15006 fi
15007        ;;
15008    *)
15009   echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6
15011     ;;
15012   esac
15013 fi
15014
15015
15016
15017 # The else clause should only fire when bootstrapping the
15018 # libtool distribution, otherwise you forgot to ship ltmain.sh
15019 # with your package, and you will get complaints that there are
15020 # no rules to generate ltmain.sh.
15021 if test -f "$ltmain"; then
15022   # See if we are running on zsh, and set the options which allow our commands through
15023   # without removal of \ escapes.
15024   if test -n "${ZSH_VERSION+set}" ; then
15025     setopt NO_GLOB_SUBST
15026   fi
15027   # Now quote all the things that may contain metacharacters while being
15028   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15029   # variables and quote the copies for generation of the libtool script.
15030   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15031     SED SHELL STRIP \
15032     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15033     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15034     deplibs_check_method reload_flag reload_cmds need_locks \
15035     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15036     lt_cv_sys_global_symbol_to_c_name_address \
15037     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15038     old_postinstall_cmds old_postuninstall_cmds \
15039     compiler_F77 \
15040     CC_F77 \
15041     LD_F77 \
15042     lt_prog_compiler_wl_F77 \
15043     lt_prog_compiler_pic_F77 \
15044     lt_prog_compiler_static_F77 \
15045     lt_prog_compiler_no_builtin_flag_F77 \
15046     export_dynamic_flag_spec_F77 \
15047     thread_safe_flag_spec_F77 \
15048     whole_archive_flag_spec_F77 \
15049     enable_shared_with_static_runtimes_F77 \
15050     old_archive_cmds_F77 \
15051     old_archive_from_new_cmds_F77 \
15052     predep_objects_F77 \
15053     postdep_objects_F77 \
15054     predeps_F77 \
15055     postdeps_F77 \
15056     compiler_lib_search_path_F77 \
15057     archive_cmds_F77 \
15058     archive_expsym_cmds_F77 \
15059     postinstall_cmds_F77 \
15060     postuninstall_cmds_F77 \
15061     old_archive_from_expsyms_cmds_F77 \
15062     allow_undefined_flag_F77 \
15063     no_undefined_flag_F77 \
15064     export_symbols_cmds_F77 \
15065     hardcode_libdir_flag_spec_F77 \
15066     hardcode_libdir_flag_spec_ld_F77 \
15067     hardcode_libdir_separator_F77 \
15068     hardcode_automatic_F77 \
15069     module_cmds_F77 \
15070     module_expsym_cmds_F77 \
15071     lt_cv_prog_compiler_c_o_F77 \
15072     exclude_expsyms_F77 \
15073     include_expsyms_F77; do
15074
15075     case $var in
15076     old_archive_cmds_F77 | \
15077     old_archive_from_new_cmds_F77 | \
15078     archive_cmds_F77 | \
15079     archive_expsym_cmds_F77 | \
15080     module_cmds_F77 | \
15081     module_expsym_cmds_F77 | \
15082     old_archive_from_expsyms_cmds_F77 | \
15083     export_symbols_cmds_F77 | \
15084     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15085     postinstall_cmds | postuninstall_cmds | \
15086     old_postinstall_cmds | old_postuninstall_cmds | \
15087     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15088       # Double-quote double-evaled strings.
15089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15090       ;;
15091     *)
15092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15093       ;;
15094     esac
15095   done
15096
15097   case $lt_echo in
15098   *'\$0 --fallback-echo"')
15099     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15100     ;;
15101   esac
15102
15103 cfgfile="$ofile"
15104
15105   cat <<__EOF__ >> "$cfgfile"
15106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15107
15108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15109
15110 # Shell to use when invoking shell scripts.
15111 SHELL=$lt_SHELL
15112
15113 # Whether or not to build shared libraries.
15114 build_libtool_libs=$enable_shared
15115
15116 # Whether or not to build static libraries.
15117 build_old_libs=$enable_static
15118
15119 # Whether or not to add -lc for building shared libraries.
15120 build_libtool_need_lc=$archive_cmds_need_lc_F77
15121
15122 # Whether or not to disallow shared libs when runtime libs are static
15123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15124
15125 # Whether or not to optimize for fast installation.
15126 fast_install=$enable_fast_install
15127
15128 # The host system.
15129 host_alias=$host_alias
15130 host=$host
15131
15132 # An echo program that does not interpret backslashes.
15133 echo=$lt_echo
15134
15135 # The archiver.
15136 AR=$lt_AR
15137 AR_FLAGS=$lt_AR_FLAGS
15138
15139 # A C compiler.
15140 LTCC=$lt_LTCC
15141
15142 # A language-specific compiler.
15143 CC=$lt_compiler_F77
15144
15145 # Is the compiler the GNU C compiler?
15146 with_gcc=$GCC_F77
15147
15148 # An ERE matcher.
15149 EGREP=$lt_EGREP
15150
15151 # The linker used to build libraries.
15152 LD=$lt_LD_F77
15153
15154 # Whether we need hard or soft links.
15155 LN_S=$lt_LN_S
15156
15157 # A BSD-compatible nm program.
15158 NM=$lt_NM
15159
15160 # A symbol stripping program
15161 STRIP=$lt_STRIP
15162
15163 # Used to examine libraries when file_magic_cmd begins "file"
15164 MAGIC_CMD=$MAGIC_CMD
15165
15166 # Used on cygwin: DLL creation program.
15167 DLLTOOL="$DLLTOOL"
15168
15169 # Used on cygwin: object dumper.
15170 OBJDUMP="$OBJDUMP"
15171
15172 # Used on cygwin: assembler.
15173 AS="$AS"
15174
15175 # The name of the directory that contains temporary libtool files.
15176 objdir=$objdir
15177
15178 # How to create reloadable object files.
15179 reload_flag=$lt_reload_flag
15180 reload_cmds=$lt_reload_cmds
15181
15182 # How to pass a linker flag through the compiler.
15183 wl=$lt_lt_prog_compiler_wl_F77
15184
15185 # Object file suffix (normally "o").
15186 objext="$ac_objext"
15187
15188 # Old archive suffix (normally "a").
15189 libext="$libext"
15190
15191 # Shared library suffix (normally ".so").
15192 shrext_cmds='$shrext_cmds'
15193
15194 # Executable file suffix (normally "").
15195 exeext="$exeext"
15196
15197 # Additional compiler flags for building library objects.
15198 pic_flag=$lt_lt_prog_compiler_pic_F77
15199 pic_mode=$pic_mode
15200
15201 # What is the maximum length of a command?
15202 max_cmd_len=$lt_cv_sys_max_cmd_len
15203
15204 # Does compiler simultaneously support -c and -o options?
15205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15206
15207 # Must we lock files when doing compilation ?
15208 need_locks=$lt_need_locks
15209
15210 # Do we need the lib prefix for modules?
15211 need_lib_prefix=$need_lib_prefix
15212
15213 # Do we need a version for libraries?
15214 need_version=$need_version
15215
15216 # Whether dlopen is supported.
15217 dlopen_support=$enable_dlopen
15218
15219 # Whether dlopen of programs is supported.
15220 dlopen_self=$enable_dlopen_self
15221
15222 # Whether dlopen of statically linked programs is supported.
15223 dlopen_self_static=$enable_dlopen_self_static
15224
15225 # Compiler flag to prevent dynamic linking.
15226 link_static_flag=$lt_lt_prog_compiler_static_F77
15227
15228 # Compiler flag to turn off builtin functions.
15229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15230
15231 # Compiler flag to allow reflexive dlopens.
15232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15233
15234 # Compiler flag to generate shared objects directly from archives.
15235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15236
15237 # Compiler flag to generate thread-safe objects.
15238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15239
15240 # Library versioning type.
15241 version_type=$version_type
15242
15243 # Format of library name prefix.
15244 libname_spec=$lt_libname_spec
15245
15246 # List of archive names.  First name is the real one, the rest are links.
15247 # The last name is the one that the linker finds with -lNAME.
15248 library_names_spec=$lt_library_names_spec
15249
15250 # The coded name of the library, if different from the real name.
15251 soname_spec=$lt_soname_spec
15252
15253 # Commands used to build and install an old-style archive.
15254 RANLIB=$lt_RANLIB
15255 old_archive_cmds=$lt_old_archive_cmds_F77
15256 old_postinstall_cmds=$lt_old_postinstall_cmds
15257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15258
15259 # Create an old-style archive from a shared archive.
15260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15261
15262 # Create a temporary old-style archive to link instead of a shared archive.
15263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15264
15265 # Commands used to build and install a shared archive.
15266 archive_cmds=$lt_archive_cmds_F77
15267 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15268 postinstall_cmds=$lt_postinstall_cmds
15269 postuninstall_cmds=$lt_postuninstall_cmds
15270
15271 # Commands used to build a loadable module (assumed same as above if empty)
15272 module_cmds=$lt_module_cmds_F77
15273 module_expsym_cmds=$lt_module_expsym_cmds_F77
15274
15275 # Commands to strip libraries.
15276 old_striplib=$lt_old_striplib
15277 striplib=$lt_striplib
15278
15279 # Dependencies to place before the objects being linked to create a
15280 # shared library.
15281 predep_objects=$lt_predep_objects_F77
15282
15283 # Dependencies to place after the objects being linked to create a
15284 # shared library.
15285 postdep_objects=$lt_postdep_objects_F77
15286
15287 # Dependencies to place before the objects being linked to create a
15288 # shared library.
15289 predeps=$lt_predeps_F77
15290
15291 # Dependencies to place after the objects being linked to create a
15292 # shared library.
15293 postdeps=$lt_postdeps_F77
15294
15295 # The library search path used internally by the compiler when linking
15296 # a shared library.
15297 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15298
15299 # Method to check whether dependent libraries are shared objects.
15300 deplibs_check_method=$lt_deplibs_check_method
15301
15302 # Command to use when deplibs_check_method == file_magic.
15303 file_magic_cmd=$lt_file_magic_cmd
15304
15305 # Flag that allows shared libraries with undefined symbols to be built.
15306 allow_undefined_flag=$lt_allow_undefined_flag_F77
15307
15308 # Flag that forces no undefined symbols.
15309 no_undefined_flag=$lt_no_undefined_flag_F77
15310
15311 # Commands used to finish a libtool library installation in a directory.
15312 finish_cmds=$lt_finish_cmds
15313
15314 # Same as above, but a single script fragment to be evaled but not shown.
15315 finish_eval=$lt_finish_eval
15316
15317 # Take the output of nm and produce a listing of raw symbols and C names.
15318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15319
15320 # Transform the output of nm in a proper C declaration
15321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15322
15323 # Transform the output of nm in a C name address pair
15324 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15325
15326 # This is the shared library runtime path variable.
15327 runpath_var=$runpath_var
15328
15329 # This is the shared library path variable.
15330 shlibpath_var=$shlibpath_var
15331
15332 # Is shlibpath searched before the hard-coded library search path?
15333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15334
15335 # How to hardcode a shared library path into an executable.
15336 hardcode_action=$hardcode_action_F77
15337
15338 # Whether we should hardcode library paths into libraries.
15339 hardcode_into_libs=$hardcode_into_libs
15340
15341 # Flag to hardcode \$libdir into a binary during linking.
15342 # This must work even if \$libdir does not exist.
15343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15344
15345 # If ld is used when linking, flag to hardcode \$libdir into
15346 # a binary during linking. This must work even if \$libdir does
15347 # not exist.
15348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15349
15350 # Whether we need a single -rpath flag with a separated argument.
15351 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15352
15353 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15354 # resulting binary.
15355 hardcode_direct=$hardcode_direct_F77
15356
15357 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15358 # resulting binary.
15359 hardcode_minus_L=$hardcode_minus_L_F77
15360
15361 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15362 # the resulting binary.
15363 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15364
15365 # Set to yes if building a shared library automatically hardcodes DIR into the library
15366 # and all subsequent libraries and executables linked against it.
15367 hardcode_automatic=$hardcode_automatic_F77
15368
15369 # Variables whose values should be saved in libtool wrapper scripts and
15370 # restored at relink time.
15371 variables_saved_for_relink="$variables_saved_for_relink"
15372
15373 # Whether libtool must link a program against all its dependency libraries.
15374 link_all_deplibs=$link_all_deplibs_F77
15375
15376 # Compile-time system search path for libraries
15377 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15378
15379 # Run-time system search path for libraries
15380 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15381
15382 # Fix the shell variable \$srcfile for the compiler.
15383 fix_srcfile_path="$fix_srcfile_path_F77"
15384
15385 # Set to yes if exported symbols are required.
15386 always_export_symbols=$always_export_symbols_F77
15387
15388 # The commands to list exported symbols.
15389 export_symbols_cmds=$lt_export_symbols_cmds_F77
15390
15391 # The commands to extract the exported symbol list from a shared archive.
15392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15393
15394 # Symbols that should not be listed in the preloaded symbols.
15395 exclude_expsyms=$lt_exclude_expsyms_F77
15396
15397 # Symbols that must always be exported.
15398 include_expsyms=$lt_include_expsyms_F77
15399
15400 # ### END LIBTOOL TAG CONFIG: $tagname
15401
15402 __EOF__
15403
15404
15405 else
15406   # If there is no Makefile yet, we rely on a make rule to execute
15407   # `config.status --recheck' to rerun these tests and create the
15408   # libtool script then.
15409   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15410   if test -f "$ltmain_in"; then
15411     test -f Makefile && make "$ltmain"
15412   fi
15413 fi
15414
15415
15416 ac_ext=c
15417 ac_cpp='$CPP $CPPFLAGS'
15418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15421
15422 CC="$lt_save_CC"
15423
15424         else
15425           tagname=""
15426         fi
15427         ;;
15428
15429       GCJ)
15430         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15431
15432
15433
15434 # Source file extension for Java test sources.
15435 ac_ext=java
15436
15437 # Object file extension for compiled Java test sources.
15438 objext=o
15439 objext_GCJ=$objext
15440
15441 # Code to be used in simple compile tests
15442 lt_simple_compile_test_code="class foo {}\n"
15443
15444 # Code to be used in simple link tests
15445 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15446
15447 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15448
15449 # If no C compiler was specified, use CC.
15450 LTCC=${LTCC-"$CC"}
15451
15452 # Allow CC to be a program name with arguments.
15453 compiler=$CC
15454
15455
15456 # Allow CC to be a program name with arguments.
15457 lt_save_CC="$CC"
15458 CC=${GCJ-"gcj"}
15459 compiler=$CC
15460 compiler_GCJ=$CC
15461
15462 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15463 archive_cmds_need_lc_GCJ=no
15464
15465
15466 lt_prog_compiler_no_builtin_flag_GCJ=
15467
15468 if test "$GCC" = yes; then
15469   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15470
15471
15472 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15473 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15474 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   lt_cv_prog_compiler_rtti_exceptions=no
15478   ac_outfile=conftest.$ac_objext
15479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15480    lt_compiler_flag="-fno-rtti -fno-exceptions"
15481    # Insert the option either (1) after the last *FLAGS variable, or
15482    # (2) before a word containing "conftest.", or (3) at the end.
15483    # Note that $ac_compile itself does not contain backslashes and begins
15484    # with a dollar sign (not a hyphen), so the echo should work correctly.
15485    # The option is referenced via a variable to avoid confusing sed.
15486    lt_compile=`echo "$ac_compile" | $SED \
15487    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15489    -e 's:$: $lt_compiler_flag:'`
15490    (eval echo "\"\$as_me:15490: $lt_compile\"" >&5)
15491    (eval "$lt_compile" 2>conftest.err)
15492    ac_status=$?
15493    cat conftest.err >&5
15494    echo "$as_me:15494: \$? = $ac_status" >&5
15495    if (exit $ac_status) && test -s "$ac_outfile"; then
15496      # The compiler can only warn and ignore the option if not recognized
15497      # So say no if there are warnings
15498      if test ! -s conftest.err; then
15499        lt_cv_prog_compiler_rtti_exceptions=yes
15500      fi
15501    fi
15502    $rm conftest*
15503
15504 fi
15505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15507
15508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15509     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15510 else
15511     :
15512 fi
15513
15514 fi
15515
15516 lt_prog_compiler_wl_GCJ=
15517 lt_prog_compiler_pic_GCJ=
15518 lt_prog_compiler_static_GCJ=
15519
15520 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15522
15523   if test "$GCC" = yes; then
15524     lt_prog_compiler_wl_GCJ='-Wl,'
15525     lt_prog_compiler_static_GCJ='-static'
15526
15527     case $host_os in
15528       aix*)
15529       # All AIX code is PIC.
15530       if test "$host_cpu" = ia64; then
15531         # AIX 5 now supports IA64 processor
15532         lt_prog_compiler_static_GCJ='-Bstatic'
15533       fi
15534       ;;
15535
15536     amigaos*)
15537       # FIXME: we need at least 68020 code to build shared libraries, but
15538       # adding the `-m68020' flag to GCC prevents building anything better,
15539       # like `-m68040'.
15540       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15541       ;;
15542
15543     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15544       # PIC is the default for these OSes.
15545       ;;
15546
15547     mingw* | pw32* | os2*)
15548       # This hack is so that the source file can tell whether it is being
15549       # built for inclusion in a dll (and should export symbols for example).
15550       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15551       ;;
15552
15553     darwin* | rhapsody*)
15554       # PIC is the default on this platform
15555       # Common symbols not allowed in MH_DYLIB files
15556       lt_prog_compiler_pic_GCJ='-fno-common'
15557       ;;
15558
15559     msdosdjgpp*)
15560       # Just because we use GCC doesn't mean we suddenly get shared libraries
15561       # on systems that don't support them.
15562       lt_prog_compiler_can_build_shared_GCJ=no
15563       enable_shared=no
15564       ;;
15565
15566     sysv4*MP*)
15567       if test -d /usr/nec; then
15568         lt_prog_compiler_pic_GCJ=-Kconform_pic
15569       fi
15570       ;;
15571
15572     hpux*)
15573       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15574       # not for PA HP-UX.
15575       case "$host_cpu" in
15576       hppa*64*|ia64*)
15577         # +Z the default
15578         ;;
15579       *)
15580         lt_prog_compiler_pic_GCJ='-fPIC'
15581         ;;
15582       esac
15583       ;;
15584
15585     *)
15586       lt_prog_compiler_pic_GCJ='-fPIC'
15587       ;;
15588     esac
15589   else
15590     # PORTME Check for flag to pass linker flags through the system compiler.
15591     case $host_os in
15592     aix*)
15593       lt_prog_compiler_wl_GCJ='-Wl,'
15594       if test "$host_cpu" = ia64; then
15595         # AIX 5 now supports IA64 processor
15596         lt_prog_compiler_static_GCJ='-Bstatic'
15597       else
15598         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15599       fi
15600       ;;
15601
15602     mingw* | pw32* | os2*)
15603       # This hack is so that the source file can tell whether it is being
15604       # built for inclusion in a dll (and should export symbols for example).
15605       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15606       ;;
15607
15608     hpux9* | hpux10* | hpux11*)
15609       lt_prog_compiler_wl_GCJ='-Wl,'
15610       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15611       # not for PA HP-UX.
15612       case "$host_cpu" in
15613       hppa*64*|ia64*)
15614         # +Z the default
15615         ;;
15616       *)
15617         lt_prog_compiler_pic_GCJ='+Z'
15618         ;;
15619       esac
15620       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15621       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15622       ;;
15623
15624     irix5* | irix6* | nonstopux*)
15625       lt_prog_compiler_wl_GCJ='-Wl,'
15626       # PIC (with -KPIC) is the default.
15627       lt_prog_compiler_static_GCJ='-non_shared'
15628       ;;
15629
15630     newsos6)
15631       lt_prog_compiler_pic_GCJ='-KPIC'
15632       lt_prog_compiler_static_GCJ='-Bstatic'
15633       ;;
15634
15635     linux*)
15636       case $CC in
15637       icc* | ecc*)
15638         lt_prog_compiler_wl_GCJ='-Wl,'
15639         lt_prog_compiler_pic_GCJ='-KPIC'
15640         lt_prog_compiler_static_GCJ='-static'
15641         ;;
15642       ccc*)
15643         lt_prog_compiler_wl_GCJ='-Wl,'
15644         # All Alpha code is PIC.
15645         lt_prog_compiler_static_GCJ='-non_shared'
15646         ;;
15647       esac
15648       ;;
15649
15650     osf3* | osf4* | osf5*)
15651       lt_prog_compiler_wl_GCJ='-Wl,'
15652       # All OSF/1 code is PIC.
15653       lt_prog_compiler_static_GCJ='-non_shared'
15654       ;;
15655
15656     sco3.2v5*)
15657       lt_prog_compiler_pic_GCJ='-Kpic'
15658       lt_prog_compiler_static_GCJ='-dn'
15659       ;;
15660
15661     solaris*)
15662       lt_prog_compiler_wl_GCJ='-Wl,'
15663       lt_prog_compiler_pic_GCJ='-KPIC'
15664       lt_prog_compiler_static_GCJ='-Bstatic'
15665       ;;
15666
15667     sunos4*)
15668       lt_prog_compiler_wl_GCJ='-Qoption ld '
15669       lt_prog_compiler_pic_GCJ='-PIC'
15670       lt_prog_compiler_static_GCJ='-Bstatic'
15671       ;;
15672
15673     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15674       lt_prog_compiler_wl_GCJ='-Wl,'
15675       lt_prog_compiler_pic_GCJ='-KPIC'
15676       lt_prog_compiler_static_GCJ='-Bstatic'
15677       ;;
15678
15679     sysv4*MP*)
15680       if test -d /usr/nec ;then
15681         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15682         lt_prog_compiler_static_GCJ='-Bstatic'
15683       fi
15684       ;;
15685
15686     uts4*)
15687       lt_prog_compiler_pic_GCJ='-pic'
15688       lt_prog_compiler_static_GCJ='-Bstatic'
15689       ;;
15690
15691     *)
15692       lt_prog_compiler_can_build_shared_GCJ=no
15693       ;;
15694     esac
15695   fi
15696
15697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15698 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15699
15700 #
15701 # Check to make sure the PIC flag actually works.
15702 #
15703 if test -n "$lt_prog_compiler_pic_GCJ"; then
15704
15705 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15706 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15707 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   lt_prog_compiler_pic_works_GCJ=no
15711   ac_outfile=conftest.$ac_objext
15712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15713    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15714    # Insert the option either (1) after the last *FLAGS variable, or
15715    # (2) before a word containing "conftest.", or (3) at the end.
15716    # Note that $ac_compile itself does not contain backslashes and begins
15717    # with a dollar sign (not a hyphen), so the echo should work correctly.
15718    # The option is referenced via a variable to avoid confusing sed.
15719    lt_compile=`echo "$ac_compile" | $SED \
15720    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15722    -e 's:$: $lt_compiler_flag:'`
15723    (eval echo "\"\$as_me:15723: $lt_compile\"" >&5)
15724    (eval "$lt_compile" 2>conftest.err)
15725    ac_status=$?
15726    cat conftest.err >&5
15727    echo "$as_me:15727: \$? = $ac_status" >&5
15728    if (exit $ac_status) && test -s "$ac_outfile"; then
15729      # The compiler can only warn and ignore the option if not recognized
15730      # So say no if there are warnings
15731      if test ! -s conftest.err; then
15732        lt_prog_compiler_pic_works_GCJ=yes
15733      fi
15734    fi
15735    $rm conftest*
15736
15737 fi
15738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15739 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15740
15741 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15742     case $lt_prog_compiler_pic_GCJ in
15743      "" | " "*) ;;
15744      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15745      esac
15746 else
15747     lt_prog_compiler_pic_GCJ=
15748      lt_prog_compiler_can_build_shared_GCJ=no
15749 fi
15750
15751 fi
15752 case "$host_os" in
15753   # For platforms which do not support PIC, -DPIC is meaningless:
15754   *djgpp*)
15755     lt_prog_compiler_pic_GCJ=
15756     ;;
15757   *)
15758     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15759     ;;
15760 esac
15761
15762 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15763 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15764 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15765   echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15767   lt_cv_prog_compiler_c_o_GCJ=no
15768    $rm -r conftest 2>/dev/null
15769    mkdir conftest
15770    cd conftest
15771    mkdir out
15772    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15773
15774    lt_compiler_flag="-o out/conftest2.$ac_objext"
15775    # Insert the option either (1) after the last *FLAGS variable, or
15776    # (2) before a word containing "conftest.", or (3) at the end.
15777    # Note that $ac_compile itself does not contain backslashes and begins
15778    # with a dollar sign (not a hyphen), so the echo should work correctly.
15779    lt_compile=`echo "$ac_compile" | $SED \
15780    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15782    -e 's:$: $lt_compiler_flag:'`
15783    (eval echo "\"\$as_me:15783: $lt_compile\"" >&5)
15784    (eval "$lt_compile" 2>out/conftest.err)
15785    ac_status=$?
15786    cat out/conftest.err >&5
15787    echo "$as_me:15787: \$? = $ac_status" >&5
15788    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15789    then
15790      # The compiler can only warn and ignore the option if not recognized
15791      # So say no if there are warnings
15792      if test ! -s out/conftest.err; then
15793        lt_cv_prog_compiler_c_o_GCJ=yes
15794      fi
15795    fi
15796    chmod u+w .
15797    $rm conftest*
15798    # SGI C++ compiler will create directory out/ii_files/ for
15799    # template instantiation
15800    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15801    $rm out/* && rmdir out
15802    cd ..
15803    rmdir conftest
15804    $rm conftest*
15805
15806 fi
15807 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15808 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15809
15810
15811 hard_links="nottested"
15812 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15813   # do not overwrite the value of need_locks provided by the user
15814   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15816   hard_links=yes
15817   $rm conftest*
15818   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15819   touch conftest.a
15820   ln conftest.a conftest.b 2>&5 || hard_links=no
15821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15822   echo "$as_me:$LINENO: result: $hard_links" >&5
15823 echo "${ECHO_T}$hard_links" >&6
15824   if test "$hard_links" = no; then
15825     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15827     need_locks=warn
15828   fi
15829 else
15830   need_locks=no
15831 fi
15832
15833 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15834 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15835
15836   runpath_var=
15837   allow_undefined_flag_GCJ=
15838   enable_shared_with_static_runtimes_GCJ=no
15839   archive_cmds_GCJ=
15840   archive_expsym_cmds_GCJ=
15841   old_archive_From_new_cmds_GCJ=
15842   old_archive_from_expsyms_cmds_GCJ=
15843   export_dynamic_flag_spec_GCJ=
15844   whole_archive_flag_spec_GCJ=
15845   thread_safe_flag_spec_GCJ=
15846   hardcode_libdir_flag_spec_GCJ=
15847   hardcode_libdir_flag_spec_ld_GCJ=
15848   hardcode_libdir_separator_GCJ=
15849   hardcode_direct_GCJ=no
15850   hardcode_minus_L_GCJ=no
15851   hardcode_shlibpath_var_GCJ=unsupported
15852   link_all_deplibs_GCJ=unknown
15853   hardcode_automatic_GCJ=no
15854   module_cmds_GCJ=
15855   module_expsym_cmds_GCJ=
15856   always_export_symbols_GCJ=no
15857   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15858   # include_expsyms should be a list of space-separated symbols to be *always*
15859   # included in the symbol list
15860   include_expsyms_GCJ=
15861   # exclude_expsyms can be an extended regexp of symbols to exclude
15862   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15863   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15864   # as well as any symbol that contains `d'.
15865   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15866   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15867   # platforms (ab)use it in PIC code, but their linkers get confused if
15868   # the symbol is explicitly referenced.  Since portable code cannot
15869   # rely on this symbol name, it's probably fine to never include it in
15870   # preloaded symbol tables.
15871   extract_expsyms_cmds=
15872
15873   case $host_os in
15874   cygwin* | mingw* | pw32*)
15875     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15876     # When not using gcc, we currently assume that we are using
15877     # Microsoft Visual C++.
15878     if test "$GCC" != yes; then
15879       with_gnu_ld=no
15880     fi
15881     ;;
15882   openbsd*)
15883     with_gnu_ld=no
15884     ;;
15885   esac
15886
15887   ld_shlibs_GCJ=yes
15888   if test "$with_gnu_ld" = yes; then
15889     # If archive_cmds runs LD, not CC, wlarc should be empty
15890     wlarc='${wl}'
15891
15892     # See if GNU ld supports shared libraries.
15893     case $host_os in
15894     aix3* | aix4* | aix5*)
15895       # On AIX/PPC, the GNU linker is very broken
15896       if test "$host_cpu" != ia64; then
15897         ld_shlibs_GCJ=no
15898         cat <<EOF 1>&2
15899
15900 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15901 *** to be unable to reliably create shared libraries on AIX.
15902 *** Therefore, libtool is disabling shared libraries support.  If you
15903 *** really care for shared libraries, you may want to modify your PATH
15904 *** so that a non-GNU linker is found, and then restart.
15905
15906 EOF
15907       fi
15908       ;;
15909
15910     amigaos*)
15911       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15912       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15913       hardcode_minus_L_GCJ=yes
15914
15915       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15916       # that the semantics of dynamic libraries on AmigaOS, at least up
15917       # to version 4, is to share data among multiple programs linked
15918       # with the same dynamic library.  Since this doesn't match the
15919       # behavior of shared libraries on other platforms, we can't use
15920       # them.
15921       ld_shlibs_GCJ=no
15922       ;;
15923
15924     beos*)
15925       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15926         allow_undefined_flag_GCJ=unsupported
15927         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15928         # support --undefined.  This deserves some investigation.  FIXME
15929         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930       else
15931         ld_shlibs_GCJ=no
15932       fi
15933       ;;
15934
15935     cygwin* | mingw* | pw32*)
15936       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15937       # as there is no search path for DLLs.
15938       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15939       allow_undefined_flag_GCJ=unsupported
15940       always_export_symbols_GCJ=no
15941       enable_shared_with_static_runtimes_GCJ=yes
15942       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15943
15944       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15945         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15946         # If the export-symbols file already is a .def file (1st line
15947         # is EXPORTS), use it as is; otherwise, prepend...
15948         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15949           cp $export_symbols $output_objdir/$soname.def;
15950         else
15951           echo EXPORTS > $output_objdir/$soname.def;
15952           cat $export_symbols >> $output_objdir/$soname.def;
15953         fi~
15954         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15955       else
15956         ld_shlibs=no
15957       fi
15958       ;;
15959
15960     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15961       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15962         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15963         wlarc=
15964       else
15965         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15967       fi
15968       ;;
15969
15970     solaris* | sysv5*)
15971       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15972         ld_shlibs_GCJ=no
15973         cat <<EOF 1>&2
15974
15975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15976 *** create shared libraries on Solaris systems.  Therefore, libtool
15977 *** is disabling shared libraries support.  We urge you to upgrade GNU
15978 *** binutils to release 2.9.1 or newer.  Another option is to modify
15979 *** your PATH or compiler configuration so that the native linker is
15980 *** used, and then restart.
15981
15982 EOF
15983       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15984         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15985         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15986       else
15987         ld_shlibs_GCJ=no
15988       fi
15989       ;;
15990
15991     sunos4*)
15992       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15993       wlarc=
15994       hardcode_direct_GCJ=yes
15995       hardcode_shlibpath_var_GCJ=no
15996       ;;
15997
15998   linux*)
15999     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001         archive_cmds_GCJ="$tmp_archive_cmds"
16002       supports_anon_versioning=no
16003       case `$LD -v 2>/dev/null` in
16004         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16005         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16006         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16007         *\ 2.11.*) ;; # other 2.11 versions
16008         *) supports_anon_versioning=yes ;;
16009       esac
16010       if test $supports_anon_versioning = yes; then
16011         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16013 $echo "local: *; };" >> $output_objdir/$libname.ver~
16014         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16015       else
16016         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16017       fi
16018       link_all_deplibs_GCJ=no
16019     else
16020       ld_shlibs_GCJ=no
16021     fi
16022     ;;
16023
16024     *)
16025       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16026         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16028       else
16029         ld_shlibs_GCJ=no
16030       fi
16031       ;;
16032     esac
16033
16034     if test "$ld_shlibs_GCJ" = yes; then
16035       runpath_var=LD_RUN_PATH
16036       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16037       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16038       # ancient GNU ld didn't support --whole-archive et. al.
16039       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16040         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16041       else
16042         whole_archive_flag_spec_GCJ=
16043       fi
16044     fi
16045   else
16046     # PORTME fill in a description of your system's linker (not GNU ld)
16047     case $host_os in
16048     aix3*)
16049       allow_undefined_flag_GCJ=unsupported
16050       always_export_symbols_GCJ=yes
16051       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16052       # Note: this linker hardcodes the directories in LIBPATH if there
16053       # are no directories specified by -L.
16054       hardcode_minus_L_GCJ=yes
16055       if test "$GCC" = yes && test -z "$link_static_flag"; then
16056         # Neither direct hardcoding nor static linking is supported with a
16057         # broken collect2.
16058         hardcode_direct_GCJ=unsupported
16059       fi
16060       ;;
16061
16062     aix4* | aix5*)
16063       if test "$host_cpu" = ia64; then
16064         # On IA64, the linker does run time linking by default, so we don't
16065         # have to do anything special.
16066         aix_use_runtimelinking=no
16067         exp_sym_flag='-Bexport'
16068         no_entry_flag=""
16069       else
16070         # If we're using GNU nm, then we don't want the "-C" option.
16071         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16072         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16073           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16074         else
16075           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16076         fi
16077         aix_use_runtimelinking=no
16078
16079         # Test if we are trying to use run time linking or normal
16080         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16081         # need to do runtime linking.
16082         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16083           for ld_flag in $LDFLAGS; do
16084           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16085             aix_use_runtimelinking=yes
16086             break
16087           fi
16088           done
16089         esac
16090
16091         exp_sym_flag='-bexport'
16092         no_entry_flag='-bnoentry'
16093       fi
16094
16095       # When large executables or shared objects are built, AIX ld can
16096       # have problems creating the table of contents.  If linking a library
16097       # or program results in "error TOC overflow" add -mminimal-toc to
16098       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16099       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16100
16101       archive_cmds_GCJ=''
16102       hardcode_direct_GCJ=yes
16103       hardcode_libdir_separator_GCJ=':'
16104       link_all_deplibs_GCJ=yes
16105
16106       if test "$GCC" = yes; then
16107         case $host_os in aix4.012|aix4.012.*)
16108         # We only want to do this on AIX 4.2 and lower, the check
16109         # below for broken collect2 doesn't work under 4.3+
16110           collect2name=`${CC} -print-prog-name=collect2`
16111           if test -f "$collect2name" && \
16112            strings "$collect2name" | grep resolve_lib_name >/dev/null
16113           then
16114           # We have reworked collect2
16115           hardcode_direct_GCJ=yes
16116           else
16117           # We have old collect2
16118           hardcode_direct_GCJ=unsupported
16119           # It fails to find uninstalled libraries when the uninstalled
16120           # path is not listed in the libpath.  Setting hardcode_minus_L
16121           # to unsupported forces relinking
16122           hardcode_minus_L_GCJ=yes
16123           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16124           hardcode_libdir_separator_GCJ=
16125           fi
16126         esac
16127         shared_flag='-shared'
16128       else
16129         # not using gcc
16130         if test "$host_cpu" = ia64; then
16131         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16132         # chokes on -Wl,-G. The following line is correct:
16133           shared_flag='-G'
16134         else
16135         if test "$aix_use_runtimelinking" = yes; then
16136             shared_flag='${wl}-G'
16137           else
16138             shared_flag='${wl}-bM:SRE'
16139         fi
16140         fi
16141       fi
16142
16143       # It seems that -bexpall does not export symbols beginning with
16144       # underscore (_), so it is better to generate a list of symbols to export.
16145       always_export_symbols_GCJ=yes
16146       if test "$aix_use_runtimelinking" = yes; then
16147         # Warning - without using the other runtime loading flags (-brtl),
16148         # -berok will link without error, but may produce a broken library.
16149         allow_undefined_flag_GCJ='-berok'
16150        # Determine the default libpath from the value encoded in an empty executable.
16151        cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157
16158 int
16159 main ()
16160 {
16161
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 rm -f conftest.$ac_objext conftest$ac_exeext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16168   (eval $ac_link) 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } &&
16175          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; } &&
16181          { ac_try='test -s conftest$ac_exeext'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187
16188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16189 }'`
16190 # Check for a 64-bit object if we didn't find anything.
16191 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16192 }'`; fi
16193 else
16194   echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 fi
16198 rm -f conftest.err conftest.$ac_objext \
16199       conftest$ac_exeext conftest.$ac_ext
16200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16201
16202        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16203         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"
16204        else
16205         if test "$host_cpu" = ia64; then
16206           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16207           allow_undefined_flag_GCJ="-z nodefs"
16208           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"
16209         else
16210          # Determine the default libpath from the value encoded in an empty executable.
16211          cat >conftest.$ac_ext <<_ACEOF
16212 /* confdefs.h.  */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h.  */
16217
16218 int
16219 main ()
16220 {
16221
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228   (eval $ac_link) 2>conftest.er1
16229   ac_status=$?
16230   grep -v '^ *+' conftest.er1 >conftest.err
16231   rm -f conftest.er1
16232   cat conftest.err >&5
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } &&
16235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237   (eval $ac_try) 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; } &&
16241          { ac_try='test -s conftest$ac_exeext'
16242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243   (eval $ac_try) 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; }; then
16247
16248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16249 }'`
16250 # Check for a 64-bit object if we didn't find anything.
16251 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16252 }'`; fi
16253 else
16254   echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257 fi
16258 rm -f conftest.err conftest.$ac_objext \
16259       conftest$ac_exeext conftest.$ac_ext
16260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16261
16262          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16263           # Warning - without using the other run time loading flags,
16264           # -berok will link without error, but may produce a broken library.
16265           no_undefined_flag_GCJ=' ${wl}-bernotok'
16266           allow_undefined_flag_GCJ=' ${wl}-berok'
16267           # -bexpall does not export symbols beginning with underscore (_)
16268           always_export_symbols_GCJ=yes
16269           # Exported symbols can be pulled into shared objects from archives
16270           whole_archive_flag_spec_GCJ=' '
16271           archive_cmds_need_lc_GCJ=yes
16272           # This is similar to how AIX traditionally builds it's shared libraries.
16273           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'
16274         fi
16275       fi
16276       ;;
16277
16278     amigaos*)
16279       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16280       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16281       hardcode_minus_L_GCJ=yes
16282       # see comment about different semantics on the GNU ld section
16283       ld_shlibs_GCJ=no
16284       ;;
16285
16286     bsdi4*)
16287       export_dynamic_flag_spec_GCJ=-rdynamic
16288       ;;
16289
16290     cygwin* | mingw* | pw32*)
16291       # When not using gcc, we currently assume that we are using
16292       # Microsoft Visual C++.
16293       # hardcode_libdir_flag_spec is actually meaningless, as there is
16294       # no search path for DLLs.
16295       hardcode_libdir_flag_spec_GCJ=' '
16296       allow_undefined_flag_GCJ=unsupported
16297       # Tell ltmain to make .lib files, not .a files.
16298       libext=lib
16299       # Tell ltmain to make .dll files, not .so files.
16300       shrext_cmds=".dll"
16301       # FIXME: Setting linknames here is a bad hack.
16302       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16303       # The linker will automatically build a .lib file if we build a DLL.
16304       old_archive_From_new_cmds_GCJ='true'
16305       # FIXME: Should let the user specify the lib program.
16306       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16307       fix_srcfile_path='`cygpath -w "$srcfile"`'
16308       enable_shared_with_static_runtimes_GCJ=yes
16309       ;;
16310
16311     darwin* | rhapsody*)
16312     if test "$GXX" = yes ; then
16313       archive_cmds_need_lc_GCJ=no
16314       case "$host_os" in
16315       rhapsody* | darwin1.[012])
16316         allow_undefined_flag_GCJ='-undefined suppress'
16317         ;;
16318       *) # Darwin 1.3 on
16319       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16320         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16321       else
16322         case ${MACOSX_DEPLOYMENT_TARGET} in
16323           10.[012])
16324             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16325             ;;
16326           10.*)
16327             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16328             ;;
16329         esac
16330       fi
16331         ;;
16332       esac
16333         lt_int_apple_cc_single_mod=no
16334         output_verbose_link_cmd='echo'
16335         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16336           lt_int_apple_cc_single_mod=yes
16337         fi
16338         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16339           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16340         else
16341         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16342       fi
16343       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16344       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16345         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16346           archive_expsym_cmds_GCJ='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}'
16347         else
16348           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16349         fi
16350           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}'
16351       hardcode_direct_GCJ=no
16352       hardcode_automatic_GCJ=yes
16353       hardcode_shlibpath_var_GCJ=unsupported
16354       whole_archive_flag_spec_GCJ='-all_load $convenience'
16355       link_all_deplibs_GCJ=yes
16356     else
16357       ld_shlibs_GCJ=no
16358     fi
16359       ;;
16360
16361     dgux*)
16362       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16364       hardcode_shlibpath_var_GCJ=no
16365       ;;
16366
16367     freebsd1*)
16368       ld_shlibs_GCJ=no
16369       ;;
16370
16371     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16372     # support.  Future versions do this automatically, but an explicit c++rt0.o
16373     # does not break anything, and helps significantly (at the cost of a little
16374     # extra space).
16375     freebsd2.2*)
16376       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16377       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16378       hardcode_direct_GCJ=yes
16379       hardcode_shlibpath_var_GCJ=no
16380       ;;
16381
16382     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16383     freebsd2*)
16384       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16385       hardcode_direct_GCJ=yes
16386       hardcode_minus_L_GCJ=yes
16387       hardcode_shlibpath_var_GCJ=no
16388       ;;
16389
16390     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16391     freebsd* | kfreebsd*-gnu)
16392       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16393       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16394       hardcode_direct_GCJ=yes
16395       hardcode_shlibpath_var_GCJ=no
16396       ;;
16397
16398     hpux9*)
16399       if test "$GCC" = yes; then
16400         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16401       else
16402         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16403       fi
16404       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16405       hardcode_libdir_separator_GCJ=:
16406       hardcode_direct_GCJ=yes
16407
16408       # hardcode_minus_L: Not really in the search PATH,
16409       # but as the default location of the library.
16410       hardcode_minus_L_GCJ=yes
16411       export_dynamic_flag_spec_GCJ='${wl}-E'
16412       ;;
16413
16414     hpux10* | hpux11*)
16415       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16416         case "$host_cpu" in
16417         hppa*64*|ia64*)
16418           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16419           ;;
16420         *)
16421           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16422           ;;
16423         esac
16424       else
16425         case "$host_cpu" in
16426         hppa*64*|ia64*)
16427           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16428           ;;
16429         *)
16430           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16431           ;;
16432         esac
16433       fi
16434       if test "$with_gnu_ld" = no; then
16435         case "$host_cpu" in
16436         hppa*64*)
16437           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16438           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16439           hardcode_libdir_separator_GCJ=:
16440           hardcode_direct_GCJ=no
16441           hardcode_shlibpath_var_GCJ=no
16442           ;;
16443         ia64*)
16444           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445           hardcode_direct_GCJ=no
16446           hardcode_shlibpath_var_GCJ=no
16447
16448           # hardcode_minus_L: Not really in the search PATH,
16449           # but as the default location of the library.
16450           hardcode_minus_L_GCJ=yes
16451           ;;
16452         *)
16453           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16454           hardcode_libdir_separator_GCJ=:
16455           hardcode_direct_GCJ=yes
16456           export_dynamic_flag_spec_GCJ='${wl}-E'
16457
16458           # hardcode_minus_L: Not really in the search PATH,
16459           # but as the default location of the library.
16460           hardcode_minus_L_GCJ=yes
16461           ;;
16462         esac
16463       fi
16464       ;;
16465
16466     irix5* | irix6* | nonstopux*)
16467       if test "$GCC" = yes; then
16468         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16469       else
16470         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16471         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16472       fi
16473       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16474       hardcode_libdir_separator_GCJ=:
16475       link_all_deplibs_GCJ=yes
16476       ;;
16477
16478     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16479       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16480         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16481       else
16482         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16483       fi
16484       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16485       hardcode_direct_GCJ=yes
16486       hardcode_shlibpath_var_GCJ=no
16487       ;;
16488
16489     newsos6)
16490       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491       hardcode_direct_GCJ=yes
16492       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16493       hardcode_libdir_separator_GCJ=:
16494       hardcode_shlibpath_var_GCJ=no
16495       ;;
16496
16497     openbsd*)
16498       hardcode_direct_GCJ=yes
16499       hardcode_shlibpath_var_GCJ=no
16500       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16501         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16502         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16503         export_dynamic_flag_spec_GCJ='${wl}-E'
16504       else
16505        case $host_os in
16506          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16507            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16508            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16509            ;;
16510          *)
16511            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16512            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16513            ;;
16514        esac
16515       fi
16516       ;;
16517
16518     os2*)
16519       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16520       hardcode_minus_L_GCJ=yes
16521       allow_undefined_flag_GCJ=unsupported
16522       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16523       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16524       ;;
16525
16526     osf3*)
16527       if test "$GCC" = yes; then
16528         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16529         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16530       else
16531         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16532         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16533       fi
16534       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16535       hardcode_libdir_separator_GCJ=:
16536       ;;
16537
16538     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16539       if test "$GCC" = yes; then
16540         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16541         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16542         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16543       else
16544         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16545         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16546         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16547         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16548
16549         # Both c and cxx compiler support -rpath directly
16550         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16551       fi
16552       hardcode_libdir_separator_GCJ=:
16553       ;;
16554
16555     sco3.2v5*)
16556       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557       hardcode_shlibpath_var_GCJ=no
16558       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16559       runpath_var=LD_RUN_PATH
16560       hardcode_runpath_var=yes
16561       ;;
16562
16563     solaris*)
16564       no_undefined_flag_GCJ=' -z text'
16565       if test "$GCC" = yes; then
16566         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16567         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16568           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16569       else
16570         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16572         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16573       fi
16574       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16575       hardcode_shlibpath_var_GCJ=no
16576       case $host_os in
16577       solaris2.[0-5] | solaris2.[0-5].*) ;;
16578       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16579         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16580       esac
16581       link_all_deplibs_GCJ=yes
16582       ;;
16583
16584     sunos4*)
16585       if test "x$host_vendor" = xsequent; then
16586         # Use $CC to link under sequent, because it throws in some extra .o
16587         # files that make .init and .fini sections work.
16588         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16589       else
16590         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16591       fi
16592       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16593       hardcode_direct_GCJ=yes
16594       hardcode_minus_L_GCJ=yes
16595       hardcode_shlibpath_var_GCJ=no
16596       ;;
16597
16598     sysv4)
16599       case $host_vendor in
16600         sni)
16601           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16602           hardcode_direct_GCJ=yes # is this really true???
16603         ;;
16604         siemens)
16605           ## LD is ld it makes a PLAMLIB
16606           ## CC just makes a GrossModule.
16607           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16608           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16609           hardcode_direct_GCJ=no
16610         ;;
16611         motorola)
16612           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16614         ;;
16615       esac
16616       runpath_var='LD_RUN_PATH'
16617       hardcode_shlibpath_var_GCJ=no
16618       ;;
16619
16620     sysv4.3*)
16621       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622       hardcode_shlibpath_var_GCJ=no
16623       export_dynamic_flag_spec_GCJ='-Bexport'
16624       ;;
16625
16626     sysv4*MP*)
16627       if test -d /usr/nec; then
16628         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629         hardcode_shlibpath_var_GCJ=no
16630         runpath_var=LD_RUN_PATH
16631         hardcode_runpath_var=yes
16632         ld_shlibs_GCJ=yes
16633       fi
16634       ;;
16635
16636     sysv4.2uw2*)
16637       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16638       hardcode_direct_GCJ=yes
16639       hardcode_minus_L_GCJ=no
16640       hardcode_shlibpath_var_GCJ=no
16641       hardcode_runpath_var=yes
16642       runpath_var=LD_RUN_PATH
16643       ;;
16644
16645    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16646       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16647       if test "$GCC" = yes; then
16648         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16649       else
16650         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651       fi
16652       runpath_var='LD_RUN_PATH'
16653       hardcode_shlibpath_var_GCJ=no
16654       ;;
16655
16656     sysv5*)
16657       no_undefined_flag_GCJ=' -z text'
16658       # $CC -shared without GNU ld will not create a library from C++
16659       # object files and a static libstdc++, better avoid it by now
16660       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16662                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16663       hardcode_libdir_flag_spec_GCJ=
16664       hardcode_shlibpath_var_GCJ=no
16665       runpath_var='LD_RUN_PATH'
16666       ;;
16667
16668     uts4*)
16669       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16671       hardcode_shlibpath_var_GCJ=no
16672       ;;
16673
16674     *)
16675       ld_shlibs_GCJ=no
16676       ;;
16677     esac
16678   fi
16679
16680 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16681 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16682 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16683
16684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16685 if test "$GCC" = yes; then
16686   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16687 fi
16688
16689 #
16690 # Do we need to explicitly link libc?
16691 #
16692 case "x$archive_cmds_need_lc_GCJ" in
16693 x|xyes)
16694   # Assume -lc should be added
16695   archive_cmds_need_lc_GCJ=yes
16696
16697   if test "$enable_shared" = yes && test "$GCC" = yes; then
16698     case $archive_cmds_GCJ in
16699     *'~'*)
16700       # FIXME: we may have to deal with multi-command sequences.
16701       ;;
16702     '$CC '*)
16703       # Test whether the compiler implicitly links with -lc since on some
16704       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16705       # to ld, don't add -lc before -lgcc.
16706       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16707 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16708       $rm conftest*
16709       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16710
16711       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712   (eval $ac_compile) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } 2>conftest.err; then
16716         soname=conftest
16717         lib=conftest
16718         libobjs=conftest.$ac_objext
16719         deplibs=
16720         wl=$lt_prog_compiler_wl_GCJ
16721         compiler_flags=-v
16722         linker_flags=-v
16723         verstring=
16724         output_objdir=.
16725         libname=conftest
16726         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16727         allow_undefined_flag_GCJ=
16728         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16729   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }
16733         then
16734           archive_cmds_need_lc_GCJ=no
16735         else
16736           archive_cmds_need_lc_GCJ=yes
16737         fi
16738         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16739       else
16740         cat conftest.err 1>&5
16741       fi
16742       $rm conftest*
16743       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16744 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16745       ;;
16746     esac
16747   fi
16748   ;;
16749 esac
16750
16751 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16753 library_names_spec=
16754 libname_spec='lib$name'
16755 soname_spec=
16756 shrext_cmds=".so"
16757 postinstall_cmds=
16758 postuninstall_cmds=
16759 finish_cmds=
16760 finish_eval=
16761 shlibpath_var=
16762 shlibpath_overrides_runpath=unknown
16763 version_type=none
16764 dynamic_linker="$host_os ld.so"
16765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16766 if test "$GCC" = yes; then
16767   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16768   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16769     # if the path contains ";" then we assume it to be the separator
16770     # otherwise default to the standard path separator (i.e. ":") - it is
16771     # assumed that no part of a normal pathname contains ";" but that should
16772     # okay in the real world where ";" in dirpaths is itself problematic.
16773     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16774   else
16775     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16776   fi
16777 else
16778   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16779 fi
16780 need_lib_prefix=unknown
16781 hardcode_into_libs=no
16782
16783 # when you set need_version to no, make sure it does not cause -set_version
16784 # flags to be left without arguments
16785 need_version=unknown
16786
16787 case $host_os in
16788 aix3*)
16789   version_type=linux
16790   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16791   shlibpath_var=LIBPATH
16792
16793   # AIX 3 has no versioning support, so we append a major version to the name.
16794   soname_spec='${libname}${release}${shared_ext}$major'
16795   ;;
16796
16797 aix4* | aix5*)
16798   version_type=linux
16799   need_lib_prefix=no
16800   need_version=no
16801   hardcode_into_libs=yes
16802   if test "$host_cpu" = ia64; then
16803     # AIX 5 supports IA64
16804     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16805     shlibpath_var=LD_LIBRARY_PATH
16806   else
16807     # With GCC up to 2.95.x, collect2 would create an import file
16808     # for dependence libraries.  The import file would start with
16809     # the line `#! .'.  This would cause the generated library to
16810     # depend on `.', always an invalid library.  This was fixed in
16811     # development snapshots of GCC prior to 3.0.
16812     case $host_os in
16813       aix4 | aix4.[01] | aix4.[01].*)
16814       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16815            echo ' yes '
16816            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16817         :
16818       else
16819         can_build_shared=no
16820       fi
16821       ;;
16822     esac
16823     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16824     # soname into executable. Probably we can add versioning support to
16825     # collect2, so additional links can be useful in future.
16826     if test "$aix_use_runtimelinking" = yes; then
16827       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16828       # instead of lib<name>.a to let people know that these are not
16829       # typical AIX shared libraries.
16830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831     else
16832       # We preserve .a as extension for shared libraries through AIX4.2
16833       # and later when we are not doing run time linking.
16834       library_names_spec='${libname}${release}.a $libname.a'
16835       soname_spec='${libname}${release}${shared_ext}$major'
16836     fi
16837     shlibpath_var=LIBPATH
16838   fi
16839   ;;
16840
16841 amigaos*)
16842   library_names_spec='$libname.ixlibrary $libname.a'
16843   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16844   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'
16845   ;;
16846
16847 beos*)
16848   library_names_spec='${libname}${shared_ext}'
16849   dynamic_linker="$host_os ld.so"
16850   shlibpath_var=LIBRARY_PATH
16851   ;;
16852
16853 bsdi4*)
16854   version_type=linux
16855   need_version=no
16856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16857   soname_spec='${libname}${release}${shared_ext}$major'
16858   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16859   shlibpath_var=LD_LIBRARY_PATH
16860   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16861   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16862   # the default ld.so.conf also contains /usr/contrib/lib and
16863   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16864   # libtool to hard-code these into programs
16865   ;;
16866
16867 cygwin* | mingw* | pw32*)
16868   version_type=windows
16869   shrext_cmds=".dll"
16870   need_version=no
16871   need_lib_prefix=no
16872
16873   case $GCC,$host_os in
16874   yes,cygwin* | yes,mingw* | yes,pw32*)
16875     library_names_spec='$libname.dll.a'
16876     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16877     postinstall_cmds='base_file=`basename \${file}`~
16878       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16879       dldir=$destdir/`dirname \$dlpath`~
16880       test -d \$dldir || mkdir -p \$dldir~
16881       $install_prog $dir/$dlname \$dldir/$dlname'
16882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16883       dlpath=$dir/\$dldll~
16884        $rm \$dlpath'
16885     shlibpath_overrides_runpath=yes
16886
16887     case $host_os in
16888     cygwin*)
16889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16892       ;;
16893     mingw*)
16894       # MinGW DLLs use traditional 'lib' prefix
16895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16897       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16898         # It is most probably a Windows format PATH printed by
16899         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16900         # path with ; separators, and with drive letters. We can handle the
16901         # drive letters (cygwin fileutils understands them), so leave them,
16902         # especially as we might pass files found there to a mingw objdump,
16903         # which wouldn't understand a cygwinified path. Ahh.
16904         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16905       else
16906         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16907       fi
16908       ;;
16909     pw32*)
16910       # pw32 DLLs use 'pw' prefix rather than 'lib'
16911       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16912       ;;
16913     esac
16914     ;;
16915
16916   *)
16917     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16918     ;;
16919   esac
16920   dynamic_linker='Win32 ld.exe'
16921   # FIXME: first we should search . and the directory the executable is in
16922   shlibpath_var=PATH
16923   ;;
16924
16925 darwin* | rhapsody*)
16926   dynamic_linker="$host_os dyld"
16927   version_type=darwin
16928   need_lib_prefix=no
16929   need_version=no
16930   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16931   soname_spec='${libname}${release}${major}$shared_ext'
16932   shlibpath_overrides_runpath=yes
16933   shlibpath_var=DYLD_LIBRARY_PATH
16934   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16935   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16936   if test "$GCC" = yes; then
16937     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"`
16938   else
16939     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16940   fi
16941   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16942   ;;
16943
16944 dgux*)
16945   version_type=linux
16946   need_lib_prefix=no
16947   need_version=no
16948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16949   soname_spec='${libname}${release}${shared_ext}$major'
16950   shlibpath_var=LD_LIBRARY_PATH
16951   ;;
16952
16953 freebsd1*)
16954   dynamic_linker=no
16955   ;;
16956
16957 kfreebsd*-gnu)
16958   version_type=linux
16959   need_lib_prefix=no
16960   need_version=no
16961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16962   soname_spec='${libname}${release}${shared_ext}$major'
16963   shlibpath_var=LD_LIBRARY_PATH
16964   shlibpath_overrides_runpath=no
16965   hardcode_into_libs=yes
16966   dynamic_linker='GNU ld.so'
16967   ;;
16968
16969 freebsd*)
16970   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16971   version_type=freebsd-$objformat
16972   case $version_type in
16973     freebsd-elf*)
16974       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16975       need_version=no
16976       need_lib_prefix=no
16977       ;;
16978     freebsd-*)
16979       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16980       need_version=yes
16981       ;;
16982   esac
16983   shlibpath_var=LD_LIBRARY_PATH
16984   case $host_os in
16985   freebsd2*)
16986     shlibpath_overrides_runpath=yes
16987     ;;
16988   freebsd3.01* | freebsdelf3.01*)
16989     shlibpath_overrides_runpath=yes
16990     hardcode_into_libs=yes
16991     ;;
16992   *) # from 3.2 on
16993     shlibpath_overrides_runpath=no
16994     hardcode_into_libs=yes
16995     ;;
16996   esac
16997   ;;
16998
16999 gnu*)
17000   version_type=linux
17001   need_lib_prefix=no
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   shlibpath_var=LD_LIBRARY_PATH
17006   hardcode_into_libs=yes
17007   ;;
17008
17009 hpux9* | hpux10* | hpux11*)
17010   # Give a soname corresponding to the major version so that dld.sl refuses to
17011   # link against other versions.
17012   version_type=sunos
17013   need_lib_prefix=no
17014   need_version=no
17015   case "$host_cpu" in
17016   ia64*)
17017     shrext_cmds='.so'
17018     hardcode_into_libs=yes
17019     dynamic_linker="$host_os dld.so"
17020     shlibpath_var=LD_LIBRARY_PATH
17021     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17023     soname_spec='${libname}${release}${shared_ext}$major'
17024     if test "X$HPUX_IA64_MODE" = X32; then
17025       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17026     else
17027       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17028     fi
17029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17030     ;;
17031    hppa*64*)
17032      shrext_cmds='.sl'
17033      hardcode_into_libs=yes
17034      dynamic_linker="$host_os dld.sl"
17035      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17036      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038      soname_spec='${libname}${release}${shared_ext}$major'
17039      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17040      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17041      ;;
17042    *)
17043     shrext_cmds='.sl'
17044     dynamic_linker="$host_os dld.sl"
17045     shlibpath_var=SHLIB_PATH
17046     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048     soname_spec='${libname}${release}${shared_ext}$major'
17049     ;;
17050   esac
17051   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17052   postinstall_cmds='chmod 555 $lib'
17053   ;;
17054
17055 irix5* | irix6* | nonstopux*)
17056   case $host_os in
17057     nonstopux*) version_type=nonstopux ;;
17058     *)
17059         if test "$lt_cv_prog_gnu_ld" = yes; then
17060                 version_type=linux
17061         else
17062                 version_type=irix
17063         fi ;;
17064   esac
17065   need_lib_prefix=no
17066   need_version=no
17067   soname_spec='${libname}${release}${shared_ext}$major'
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17069   case $host_os in
17070   irix5* | nonstopux*)
17071     libsuff= shlibsuff=
17072     ;;
17073   *)
17074     case $LD in # libtool.m4 will add one of these switches to LD
17075     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17076       libsuff= shlibsuff= libmagic=32-bit;;
17077     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17078       libsuff=32 shlibsuff=N32 libmagic=N32;;
17079     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17080       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17081     *) libsuff= shlibsuff= libmagic=never-match;;
17082     esac
17083     ;;
17084   esac
17085   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17086   shlibpath_overrides_runpath=no
17087   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17088   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17089   hardcode_into_libs=yes
17090   ;;
17091
17092 # No shared lib support for Linux oldld, aout, or coff.
17093 linux*oldld* | linux*aout* | linux*coff*)
17094   dynamic_linker=no
17095   ;;
17096
17097 # This must be Linux ELF.
17098 linux*)
17099   version_type=linux
17100   need_lib_prefix=no
17101   need_version=no
17102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103   soname_spec='${libname}${release}${shared_ext}$major'
17104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17105   shlibpath_var=LD_LIBRARY_PATH
17106   shlibpath_overrides_runpath=no
17107   # This implies no fast_install, which is unacceptable.
17108   # Some rework will be needed to allow for fast_install
17109   # before this can be enabled.
17110   hardcode_into_libs=yes
17111
17112   # Append ld.so.conf contents to the search path
17113   if test -f /etc/ld.so.conf; then
17114     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17115     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17116   fi
17117
17118   # We used to test for /lib/ld.so.1 and disable shared libraries on
17119   # powerpc, because MkLinux only supported shared libraries with the
17120   # GNU dynamic linker.  Since this was broken with cross compilers,
17121   # most powerpc-linux boxes support dynamic linking these days and
17122   # people can always --disable-shared, the test was removed, and we
17123   # assume the GNU/Linux dynamic linker is in use.
17124   dynamic_linker='GNU/Linux ld.so'
17125   ;;
17126
17127 netbsdelf*-gnu)
17128   version_type=linux
17129   need_lib_prefix=no
17130   need_version=no
17131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17132   soname_spec='${libname}${release}${shared_ext}$major'
17133   shlibpath_var=LD_LIBRARY_PATH
17134   shlibpath_overrides_runpath=no
17135   hardcode_into_libs=yes
17136   dynamic_linker='NetBSD ld.elf_so'
17137   ;;
17138
17139 knetbsd*-gnu)
17140   version_type=linux
17141   need_lib_prefix=no
17142   need_version=no
17143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144   soname_spec='${libname}${release}${shared_ext}$major'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   shlibpath_overrides_runpath=no
17147   hardcode_into_libs=yes
17148   dynamic_linker='GNU ld.so'
17149   ;;
17150
17151 netbsd*)
17152   version_type=sunos
17153   need_lib_prefix=no
17154   need_version=no
17155   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17158     dynamic_linker='NetBSD (a.out) ld.so'
17159   else
17160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161     soname_spec='${libname}${release}${shared_ext}$major'
17162     dynamic_linker='NetBSD ld.elf_so'
17163   fi
17164   shlibpath_var=LD_LIBRARY_PATH
17165   shlibpath_overrides_runpath=yes
17166   hardcode_into_libs=yes
17167   ;;
17168
17169 newsos6)
17170   version_type=linux
17171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172   shlibpath_var=LD_LIBRARY_PATH
17173   shlibpath_overrides_runpath=yes
17174   ;;
17175
17176 nto-qnx*)
17177   version_type=linux
17178   need_lib_prefix=no
17179   need_version=no
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181   soname_spec='${libname}${release}${shared_ext}$major'
17182   shlibpath_var=LD_LIBRARY_PATH
17183   shlibpath_overrides_runpath=yes
17184   ;;
17185
17186 openbsd*)
17187   version_type=sunos
17188   need_lib_prefix=no
17189   need_version=yes
17190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17194     case $host_os in
17195       openbsd2.[89] | openbsd2.[89].*)
17196         shlibpath_overrides_runpath=no
17197         ;;
17198       *)
17199         shlibpath_overrides_runpath=yes
17200         ;;
17201       esac
17202   else
17203     shlibpath_overrides_runpath=yes
17204   fi
17205   ;;
17206
17207 os2*)
17208   libname_spec='$name'
17209   shrext_cmds=".dll"
17210   need_lib_prefix=no
17211   library_names_spec='$libname${shared_ext} $libname.a'
17212   dynamic_linker='OS/2 ld.exe'
17213   shlibpath_var=LIBPATH
17214   ;;
17215
17216 osf3* | osf4* | osf5*)
17217   version_type=osf
17218   need_lib_prefix=no
17219   need_version=no
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17224   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17225   ;;
17226
17227 sco3.2v5*)
17228   version_type=osf
17229   soname_spec='${libname}${release}${shared_ext}$major'
17230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17231   shlibpath_var=LD_LIBRARY_PATH
17232   ;;
17233
17234 solaris*)
17235   version_type=linux
17236   need_lib_prefix=no
17237   need_version=no
17238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239   soname_spec='${libname}${release}${shared_ext}$major'
17240   shlibpath_var=LD_LIBRARY_PATH
17241   shlibpath_overrides_runpath=yes
17242   hardcode_into_libs=yes
17243   # ldd complains unless libraries are executable
17244   postinstall_cmds='chmod +x $lib'
17245   ;;
17246
17247 sunos4*)
17248   version_type=sunos
17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17251   shlibpath_var=LD_LIBRARY_PATH
17252   shlibpath_overrides_runpath=yes
17253   if test "$with_gnu_ld" = yes; then
17254     need_lib_prefix=no
17255   fi
17256   need_version=yes
17257   ;;
17258
17259 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17260   version_type=linux
17261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262   soname_spec='${libname}${release}${shared_ext}$major'
17263   shlibpath_var=LD_LIBRARY_PATH
17264   case $host_vendor in
17265     sni)
17266       shlibpath_overrides_runpath=no
17267       need_lib_prefix=no
17268       export_dynamic_flag_spec='${wl}-Blargedynsym'
17269       runpath_var=LD_RUN_PATH
17270       ;;
17271     siemens)
17272       need_lib_prefix=no
17273       ;;
17274     motorola)
17275       need_lib_prefix=no
17276       need_version=no
17277       shlibpath_overrides_runpath=no
17278       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17279       ;;
17280   esac
17281   ;;
17282
17283 sysv4*MP*)
17284   if test -d /usr/nec ;then
17285     version_type=linux
17286     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17287     soname_spec='$libname${shared_ext}.$major'
17288     shlibpath_var=LD_LIBRARY_PATH
17289   fi
17290   ;;
17291
17292 uts4*)
17293   version_type=linux
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295   soname_spec='${libname}${release}${shared_ext}$major'
17296   shlibpath_var=LD_LIBRARY_PATH
17297   ;;
17298
17299 *)
17300   dynamic_linker=no
17301   ;;
17302 esac
17303 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17304 echo "${ECHO_T}$dynamic_linker" >&6
17305 test "$dynamic_linker" = no && can_build_shared=no
17306
17307 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17308 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17309 hardcode_action_GCJ=
17310 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17311    test -n "$runpath_var GCJ" || \
17312    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17313
17314   # We can hardcode non-existant directories.
17315   if test "$hardcode_direct_GCJ" != no &&
17316      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17317      # have to relink, otherwise we might link with an installed library
17318      # when we should be linking with a yet-to-be-installed one
17319      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17320      test "$hardcode_minus_L_GCJ" != no; then
17321     # Linking always hardcodes the temporary library directory.
17322     hardcode_action_GCJ=relink
17323   else
17324     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17325     hardcode_action_GCJ=immediate
17326   fi
17327 else
17328   # We cannot hardcode anything, or else we can only hardcode existing
17329   # directories.
17330   hardcode_action_GCJ=unsupported
17331 fi
17332 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17333 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17334
17335 if test "$hardcode_action_GCJ" = relink; then
17336   # Fast installation is not supported
17337   enable_fast_install=no
17338 elif test "$shlibpath_overrides_runpath" = yes ||
17339      test "$enable_shared" = no; then
17340   # Fast installation is not necessary
17341   enable_fast_install=needless
17342 fi
17343
17344 striplib=
17345 old_striplib=
17346 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17347 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17348 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17349   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17350   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17351   echo "$as_me:$LINENO: result: yes" >&5
17352 echo "${ECHO_T}yes" >&6
17353 else
17354 # FIXME - insert some real tests, host_os isn't really good enough
17355   case $host_os in
17356    darwin*)
17357        if test -n "$STRIP" ; then
17358          striplib="$STRIP -x"
17359          echo "$as_me:$LINENO: result: yes" >&5
17360 echo "${ECHO_T}yes" >&6
17361        else
17362   echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6
17364 fi
17365        ;;
17366    *)
17367   echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6
17369     ;;
17370   esac
17371 fi
17372
17373 if test "x$enable_dlopen" != xyes; then
17374   enable_dlopen=unknown
17375   enable_dlopen_self=unknown
17376   enable_dlopen_self_static=unknown
17377 else
17378   lt_cv_dlopen=no
17379   lt_cv_dlopen_libs=
17380
17381   case $host_os in
17382   beos*)
17383     lt_cv_dlopen="load_add_on"
17384     lt_cv_dlopen_libs=
17385     lt_cv_dlopen_self=yes
17386     ;;
17387
17388   mingw* | pw32*)
17389     lt_cv_dlopen="LoadLibrary"
17390     lt_cv_dlopen_libs=
17391    ;;
17392
17393   cygwin*)
17394     lt_cv_dlopen="dlopen"
17395     lt_cv_dlopen_libs=
17396    ;;
17397
17398   darwin*)
17399   # if libdl is installed we need to link against it
17400     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   ac_check_lib_save_LIBS=$LIBS
17406 LIBS="-ldl  $LIBS"
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413
17414 /* Override any gcc2 internal prototype to avoid an error.  */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 /* We use char because int might match the return type of a gcc2
17419    builtin and then its argument prototype would still apply.  */
17420 char dlopen ();
17421 int
17422 main ()
17423 {
17424 dlopen ();
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431   (eval $ac_link) 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } &&
17438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440   (eval $ac_try) 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; } &&
17444          { ac_try='test -s conftest$ac_exeext'
17445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446   (eval $ac_try) 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); }; }; then
17450   ac_cv_lib_dl_dlopen=yes
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455 ac_cv_lib_dl_dlopen=no
17456 fi
17457 rm -f conftest.err conftest.$ac_objext \
17458       conftest$ac_exeext conftest.$ac_ext
17459 LIBS=$ac_check_lib_save_LIBS
17460 fi
17461 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17463 if test $ac_cv_lib_dl_dlopen = yes; then
17464   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17465 else
17466
17467     lt_cv_dlopen="dyld"
17468     lt_cv_dlopen_libs=
17469     lt_cv_dlopen_self=yes
17470
17471 fi
17472
17473    ;;
17474
17475   *)
17476     echo "$as_me:$LINENO: checking for shl_load" >&5
17477 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17478 if test "${ac_cv_func_shl_load+set}" = set; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17489 #define shl_load innocuous_shl_load
17490
17491 /* System header to define __stub macros and hopefully few prototypes,
17492     which can conflict with char shl_load (); below.
17493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17494     <limits.h> exists even on freestanding compilers.  */
17495
17496 #ifdef __STDC__
17497 # include <limits.h>
17498 #else
17499 # include <assert.h>
17500 #endif
17501
17502 #undef shl_load
17503
17504 /* Override any gcc2 internal prototype to avoid an error.  */
17505 #ifdef __cplusplus
17506 extern "C"
17507 {
17508 #endif
17509 /* We use char because int might match the return type of a gcc2
17510    builtin and then its argument prototype would still apply.  */
17511 char shl_load ();
17512 /* The GNU C library defines this for functions which it implements
17513     to always fail with ENOSYS.  Some functions are actually named
17514     something starting with __ and the normal name is an alias.  */
17515 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17516 choke me
17517 #else
17518 char (*f) () = shl_load;
17519 #endif
17520 #ifdef __cplusplus
17521 }
17522 #endif
17523
17524 int
17525 main ()
17526 {
17527 return f != shl_load;
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534   (eval $ac_link) 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; } &&
17547          { ac_try='test -s conftest$ac_exeext'
17548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549   (eval $ac_try) 2>&5
17550   ac_status=$?
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); }; }; then
17553   ac_cv_func_shl_load=yes
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 ac_cv_func_shl_load=no
17559 fi
17560 rm -f conftest.err conftest.$ac_objext \
17561       conftest$ac_exeext conftest.$ac_ext
17562 fi
17563 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17564 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17565 if test $ac_cv_func_shl_load = yes; then
17566   lt_cv_dlopen="shl_load"
17567 else
17568   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17569 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17570 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17571   echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573   ac_check_lib_save_LIBS=$LIBS
17574 LIBS="-ldld  $LIBS"
17575 cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h.  */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h.  */
17581
17582 /* Override any gcc2 internal prototype to avoid an error.  */
17583 #ifdef __cplusplus
17584 extern "C"
17585 #endif
17586 /* We use char because int might match the return type of a gcc2
17587    builtin and then its argument prototype would still apply.  */
17588 char shl_load ();
17589 int
17590 main ()
17591 {
17592 shl_load ();
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599   (eval $ac_link) 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608   (eval $ac_try) 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; } &&
17612          { ac_try='test -s conftest$ac_exeext'
17613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614   (eval $ac_try) 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; }; then
17618   ac_cv_lib_dld_shl_load=yes
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623 ac_cv_lib_dld_shl_load=no
17624 fi
17625 rm -f conftest.err conftest.$ac_objext \
17626       conftest$ac_exeext conftest.$ac_ext
17627 LIBS=$ac_check_lib_save_LIBS
17628 fi
17629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17630 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17631 if test $ac_cv_lib_dld_shl_load = yes; then
17632   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17633 else
17634   echo "$as_me:$LINENO: checking for dlopen" >&5
17635 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17636 if test "${ac_cv_func_dlopen+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17647 #define dlopen innocuous_dlopen
17648
17649 /* System header to define __stub macros and hopefully few prototypes,
17650     which can conflict with char dlopen (); below.
17651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17652     <limits.h> exists even on freestanding compilers.  */
17653
17654 #ifdef __STDC__
17655 # include <limits.h>
17656 #else
17657 # include <assert.h>
17658 #endif
17659
17660 #undef dlopen
17661
17662 /* Override any gcc2 internal prototype to avoid an error.  */
17663 #ifdef __cplusplus
17664 extern "C"
17665 {
17666 #endif
17667 /* We use char because int might match the return type of a gcc2
17668    builtin and then its argument prototype would still apply.  */
17669 char dlopen ();
17670 /* The GNU C library defines this for functions which it implements
17671     to always fail with ENOSYS.  Some functions are actually named
17672     something starting with __ and the normal name is an alias.  */
17673 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17674 choke me
17675 #else
17676 char (*f) () = dlopen;
17677 #endif
17678 #ifdef __cplusplus
17679 }
17680 #endif
17681
17682 int
17683 main ()
17684 {
17685 return f != dlopen;
17686   ;
17687   return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692   (eval $ac_link) 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701   (eval $ac_try) 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; } &&
17705          { ac_try='test -s conftest$ac_exeext'
17706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707   (eval $ac_try) 2>&5
17708   ac_status=$?
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); }; }; then
17711   ac_cv_func_dlopen=yes
17712 else
17713   echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716 ac_cv_func_dlopen=no
17717 fi
17718 rm -f conftest.err conftest.$ac_objext \
17719       conftest$ac_exeext conftest.$ac_ext
17720 fi
17721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17723 if test $ac_cv_func_dlopen = yes; then
17724   lt_cv_dlopen="dlopen"
17725 else
17726   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17729   echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731   ac_check_lib_save_LIBS=$LIBS
17732 LIBS="-ldl  $LIBS"
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739
17740 /* Override any gcc2 internal prototype to avoid an error.  */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 /* We use char because int might match the return type of a gcc2
17745    builtin and then its argument prototype would still apply.  */
17746 char dlopen ();
17747 int
17748 main ()
17749 {
17750 dlopen ();
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17757   (eval $ac_link) 2>conftest.er1
17758   ac_status=$?
17759   grep -v '^ *+' conftest.er1 >conftest.err
17760   rm -f conftest.er1
17761   cat conftest.err >&5
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } &&
17764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_lib_dl_dlopen=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_cv_lib_dl_dlopen=no
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17786 fi
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17789 if test $ac_cv_lib_dl_dlopen = yes; then
17790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17791 else
17792   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17793 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17795   echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797   ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-lsvld  $LIBS"
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 /* Override any gcc2 internal prototype to avoid an error.  */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 /* We use char because int might match the return type of a gcc2
17811    builtin and then its argument prototype would still apply.  */
17812 char dlopen ();
17813 int
17814 main ()
17815 {
17816 dlopen ();
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823   (eval $ac_link) 2>conftest.er1
17824   ac_status=$?
17825   grep -v '^ *+' conftest.er1 >conftest.err
17826   rm -f conftest.er1
17827   cat conftest.err >&5
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); } &&
17830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; } &&
17836          { ac_try='test -s conftest$ac_exeext'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_cv_lib_svld_dlopen=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 ac_cv_lib_svld_dlopen=no
17848 fi
17849 rm -f conftest.err conftest.$ac_objext \
17850       conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17852 fi
17853 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17854 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17855 if test $ac_cv_lib_svld_dlopen = yes; then
17856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17857 else
17858   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17859 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17860 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17861   echo $ECHO_N "(cached) $ECHO_C" >&6
17862 else
17863   ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-ldld  $LIBS"
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871
17872 /* Override any gcc2 internal prototype to avoid an error.  */
17873 #ifdef __cplusplus
17874 extern "C"
17875 #endif
17876 /* We use char because int might match the return type of a gcc2
17877    builtin and then its argument prototype would still apply.  */
17878 char dld_link ();
17879 int
17880 main ()
17881 {
17882 dld_link ();
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; } &&
17902          { ac_try='test -s conftest$ac_exeext'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; }; then
17908   ac_cv_lib_dld_dld_link=yes
17909 else
17910   echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 ac_cv_lib_dld_dld_link=no
17914 fi
17915 rm -f conftest.err conftest.$ac_objext \
17916       conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17918 fi
17919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17920 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17921 if test $ac_cv_lib_dld_dld_link = yes; then
17922   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17923 fi
17924
17925
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934
17935 fi
17936
17937
17938 fi
17939
17940     ;;
17941   esac
17942
17943   if test "x$lt_cv_dlopen" != xno; then
17944     enable_dlopen=yes
17945   else
17946     enable_dlopen=no
17947   fi
17948
17949   case $lt_cv_dlopen in
17950   dlopen)
17951     save_CPPFLAGS="$CPPFLAGS"
17952     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17953
17954     save_LDFLAGS="$LDFLAGS"
17955     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17956
17957     save_LIBS="$LIBS"
17958     LIBS="$lt_cv_dlopen_libs $LIBS"
17959
17960     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17961 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17962 if test "${lt_cv_dlopen_self+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965           if test "$cross_compiling" = yes; then :
17966   lt_cv_dlopen_self=cross
17967 else
17968   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17969   lt_status=$lt_dlunknown
17970   cat > conftest.$ac_ext <<EOF
17971 #line 17971 "configure"
17972 #include "confdefs.h"
17973
17974 #if HAVE_DLFCN_H
17975 #include <dlfcn.h>
17976 #endif
17977
17978 #include <stdio.h>
17979
17980 #ifdef RTLD_GLOBAL
17981 #  define LT_DLGLOBAL           RTLD_GLOBAL
17982 #else
17983 #  ifdef DL_GLOBAL
17984 #    define LT_DLGLOBAL         DL_GLOBAL
17985 #  else
17986 #    define LT_DLGLOBAL         0
17987 #  endif
17988 #endif
17989
17990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17991    find out it does not work in some platform. */
17992 #ifndef LT_DLLAZY_OR_NOW
17993 #  ifdef RTLD_LAZY
17994 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17995 #  else
17996 #    ifdef DL_LAZY
17997 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17998 #    else
17999 #      ifdef RTLD_NOW
18000 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18001 #      else
18002 #        ifdef DL_NOW
18003 #          define LT_DLLAZY_OR_NOW      DL_NOW
18004 #        else
18005 #          define LT_DLLAZY_OR_NOW      0
18006 #        endif
18007 #      endif
18008 #    endif
18009 #  endif
18010 #endif
18011
18012 #ifdef __cplusplus
18013 extern "C" void exit (int);
18014 #endif
18015
18016 void fnord() { int i=42;}
18017 int main ()
18018 {
18019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18020   int status = $lt_dlunknown;
18021
18022   if (self)
18023     {
18024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18025       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18026       /* dlclose (self); */
18027     }
18028
18029     exit (status);
18030 }
18031 EOF
18032   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033   (eval $ac_link) 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18037     (./conftest; exit; ) 2>/dev/null
18038     lt_status=$?
18039     case x$lt_status in
18040       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18043     esac
18044   else :
18045     # compilation failed
18046     lt_cv_dlopen_self=no
18047   fi
18048 fi
18049 rm -fr conftest*
18050
18051
18052 fi
18053 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18054 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18055
18056     if test "x$lt_cv_dlopen_self" = xyes; then
18057       LDFLAGS="$LDFLAGS $link_static_flag"
18058       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18059 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18060 if test "${lt_cv_dlopen_self_static+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063           if test "$cross_compiling" = yes; then :
18064   lt_cv_dlopen_self_static=cross
18065 else
18066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067   lt_status=$lt_dlunknown
18068   cat > conftest.$ac_ext <<EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18071
18072 #if HAVE_DLFCN_H
18073 #include <dlfcn.h>
18074 #endif
18075
18076 #include <stdio.h>
18077
18078 #ifdef RTLD_GLOBAL
18079 #  define LT_DLGLOBAL           RTLD_GLOBAL
18080 #else
18081 #  ifdef DL_GLOBAL
18082 #    define LT_DLGLOBAL         DL_GLOBAL
18083 #  else
18084 #    define LT_DLGLOBAL         0
18085 #  endif
18086 #endif
18087
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089    find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18091 #  ifdef RTLD_LAZY
18092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18093 #  else
18094 #    ifdef DL_LAZY
18095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18096 #    else
18097 #      ifdef RTLD_NOW
18098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18099 #      else
18100 #        ifdef DL_NOW
18101 #          define LT_DLLAZY_OR_NOW      DL_NOW
18102 #        else
18103 #          define LT_DLLAZY_OR_NOW      0
18104 #        endif
18105 #      endif
18106 #    endif
18107 #  endif
18108 #endif
18109
18110 #ifdef __cplusplus
18111 extern "C" void exit (int);
18112 #endif
18113
18114 void fnord() { int i=42;}
18115 int main ()
18116 {
18117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118   int status = $lt_dlunknown;
18119
18120   if (self)
18121     {
18122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124       /* dlclose (self); */
18125     }
18126
18127     exit (status);
18128 }
18129 EOF
18130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131   (eval $ac_link) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135     (./conftest; exit; ) 2>/dev/null
18136     lt_status=$?
18137     case x$lt_status in
18138       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18139       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18140       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18141     esac
18142   else :
18143     # compilation failed
18144     lt_cv_dlopen_self_static=no
18145   fi
18146 fi
18147 rm -fr conftest*
18148
18149
18150 fi
18151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18152 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18153     fi
18154
18155     CPPFLAGS="$save_CPPFLAGS"
18156     LDFLAGS="$save_LDFLAGS"
18157     LIBS="$save_LIBS"
18158     ;;
18159   esac
18160
18161   case $lt_cv_dlopen_self in
18162   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18163   *) enable_dlopen_self=unknown ;;
18164   esac
18165
18166   case $lt_cv_dlopen_self_static in
18167   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18168   *) enable_dlopen_self_static=unknown ;;
18169   esac
18170 fi
18171
18172
18173 # The else clause should only fire when bootstrapping the
18174 # libtool distribution, otherwise you forgot to ship ltmain.sh
18175 # with your package, and you will get complaints that there are
18176 # no rules to generate ltmain.sh.
18177 if test -f "$ltmain"; then
18178   # See if we are running on zsh, and set the options which allow our commands through
18179   # without removal of \ escapes.
18180   if test -n "${ZSH_VERSION+set}" ; then
18181     setopt NO_GLOB_SUBST
18182   fi
18183   # Now quote all the things that may contain metacharacters while being
18184   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18185   # variables and quote the copies for generation of the libtool script.
18186   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18187     SED SHELL STRIP \
18188     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18189     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18190     deplibs_check_method reload_flag reload_cmds need_locks \
18191     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18192     lt_cv_sys_global_symbol_to_c_name_address \
18193     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18194     old_postinstall_cmds old_postuninstall_cmds \
18195     compiler_GCJ \
18196     CC_GCJ \
18197     LD_GCJ \
18198     lt_prog_compiler_wl_GCJ \
18199     lt_prog_compiler_pic_GCJ \
18200     lt_prog_compiler_static_GCJ \
18201     lt_prog_compiler_no_builtin_flag_GCJ \
18202     export_dynamic_flag_spec_GCJ \
18203     thread_safe_flag_spec_GCJ \
18204     whole_archive_flag_spec_GCJ \
18205     enable_shared_with_static_runtimes_GCJ \
18206     old_archive_cmds_GCJ \
18207     old_archive_from_new_cmds_GCJ \
18208     predep_objects_GCJ \
18209     postdep_objects_GCJ \
18210     predeps_GCJ \
18211     postdeps_GCJ \
18212     compiler_lib_search_path_GCJ \
18213     archive_cmds_GCJ \
18214     archive_expsym_cmds_GCJ \
18215     postinstall_cmds_GCJ \
18216     postuninstall_cmds_GCJ \
18217     old_archive_from_expsyms_cmds_GCJ \
18218     allow_undefined_flag_GCJ \
18219     no_undefined_flag_GCJ \
18220     export_symbols_cmds_GCJ \
18221     hardcode_libdir_flag_spec_GCJ \
18222     hardcode_libdir_flag_spec_ld_GCJ \
18223     hardcode_libdir_separator_GCJ \
18224     hardcode_automatic_GCJ \
18225     module_cmds_GCJ \
18226     module_expsym_cmds_GCJ \
18227     lt_cv_prog_compiler_c_o_GCJ \
18228     exclude_expsyms_GCJ \
18229     include_expsyms_GCJ; do
18230
18231     case $var in
18232     old_archive_cmds_GCJ | \
18233     old_archive_from_new_cmds_GCJ | \
18234     archive_cmds_GCJ | \
18235     archive_expsym_cmds_GCJ | \
18236     module_cmds_GCJ | \
18237     module_expsym_cmds_GCJ | \
18238     old_archive_from_expsyms_cmds_GCJ | \
18239     export_symbols_cmds_GCJ | \
18240     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18241     postinstall_cmds | postuninstall_cmds | \
18242     old_postinstall_cmds | old_postuninstall_cmds | \
18243     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18244       # Double-quote double-evaled strings.
18245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18246       ;;
18247     *)
18248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18249       ;;
18250     esac
18251   done
18252
18253   case $lt_echo in
18254   *'\$0 --fallback-echo"')
18255     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18256     ;;
18257   esac
18258
18259 cfgfile="$ofile"
18260
18261   cat <<__EOF__ >> "$cfgfile"
18262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18263
18264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18265
18266 # Shell to use when invoking shell scripts.
18267 SHELL=$lt_SHELL
18268
18269 # Whether or not to build shared libraries.
18270 build_libtool_libs=$enable_shared
18271
18272 # Whether or not to build static libraries.
18273 build_old_libs=$enable_static
18274
18275 # Whether or not to add -lc for building shared libraries.
18276 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18277
18278 # Whether or not to disallow shared libs when runtime libs are static
18279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18280
18281 # Whether or not to optimize for fast installation.
18282 fast_install=$enable_fast_install
18283
18284 # The host system.
18285 host_alias=$host_alias
18286 host=$host
18287
18288 # An echo program that does not interpret backslashes.
18289 echo=$lt_echo
18290
18291 # The archiver.
18292 AR=$lt_AR
18293 AR_FLAGS=$lt_AR_FLAGS
18294
18295 # A C compiler.
18296 LTCC=$lt_LTCC
18297
18298 # A language-specific compiler.
18299 CC=$lt_compiler_GCJ
18300
18301 # Is the compiler the GNU C compiler?
18302 with_gcc=$GCC_GCJ
18303
18304 # An ERE matcher.
18305 EGREP=$lt_EGREP
18306
18307 # The linker used to build libraries.
18308 LD=$lt_LD_GCJ
18309
18310 # Whether we need hard or soft links.
18311 LN_S=$lt_LN_S
18312
18313 # A BSD-compatible nm program.
18314 NM=$lt_NM
18315
18316 # A symbol stripping program
18317 STRIP=$lt_STRIP
18318
18319 # Used to examine libraries when file_magic_cmd begins "file"
18320 MAGIC_CMD=$MAGIC_CMD
18321
18322 # Used on cygwin: DLL creation program.
18323 DLLTOOL="$DLLTOOL"
18324
18325 # Used on cygwin: object dumper.
18326 OBJDUMP="$OBJDUMP"
18327
18328 # Used on cygwin: assembler.
18329 AS="$AS"
18330
18331 # The name of the directory that contains temporary libtool files.
18332 objdir=$objdir
18333
18334 # How to create reloadable object files.
18335 reload_flag=$lt_reload_flag
18336 reload_cmds=$lt_reload_cmds
18337
18338 # How to pass a linker flag through the compiler.
18339 wl=$lt_lt_prog_compiler_wl_GCJ
18340
18341 # Object file suffix (normally "o").
18342 objext="$ac_objext"
18343
18344 # Old archive suffix (normally "a").
18345 libext="$libext"
18346
18347 # Shared library suffix (normally ".so").
18348 shrext_cmds='$shrext_cmds'
18349
18350 # Executable file suffix (normally "").
18351 exeext="$exeext"
18352
18353 # Additional compiler flags for building library objects.
18354 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18355 pic_mode=$pic_mode
18356
18357 # What is the maximum length of a command?
18358 max_cmd_len=$lt_cv_sys_max_cmd_len
18359
18360 # Does compiler simultaneously support -c and -o options?
18361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18362
18363 # Must we lock files when doing compilation ?
18364 need_locks=$lt_need_locks
18365
18366 # Do we need the lib prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18368
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18371
18372 # Whether dlopen is supported.
18373 dlopen_support=$enable_dlopen
18374
18375 # Whether dlopen of programs is supported.
18376 dlopen_self=$enable_dlopen_self
18377
18378 # Whether dlopen of statically linked programs is supported.
18379 dlopen_self_static=$enable_dlopen_self_static
18380
18381 # Compiler flag to prevent dynamic linking.
18382 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18383
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18386
18387 # Compiler flag to allow reflexive dlopens.
18388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18389
18390 # Compiler flag to generate shared objects directly from archives.
18391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18392
18393 # Compiler flag to generate thread-safe objects.
18394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18395
18396 # Library versioning type.
18397 version_type=$version_type
18398
18399 # Format of library name prefix.
18400 libname_spec=$lt_libname_spec
18401
18402 # List of archive names.  First name is the real one, the rest are links.
18403 # The last name is the one that the linker finds with -lNAME.
18404 library_names_spec=$lt_library_names_spec
18405
18406 # The coded name of the library, if different from the real name.
18407 soname_spec=$lt_soname_spec
18408
18409 # Commands used to build and install an old-style archive.
18410 RANLIB=$lt_RANLIB
18411 old_archive_cmds=$lt_old_archive_cmds_GCJ
18412 old_postinstall_cmds=$lt_old_postinstall_cmds
18413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18414
18415 # Create an old-style archive from a shared archive.
18416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18417
18418 # Create a temporary old-style archive to link instead of a shared archive.
18419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18420
18421 # Commands used to build and install a shared archive.
18422 archive_cmds=$lt_archive_cmds_GCJ
18423 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18424 postinstall_cmds=$lt_postinstall_cmds
18425 postuninstall_cmds=$lt_postuninstall_cmds
18426
18427 # Commands used to build a loadable module (assumed same as above if empty)
18428 module_cmds=$lt_module_cmds_GCJ
18429 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18430
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18434
18435 # Dependencies to place before the objects being linked to create a
18436 # shared library.
18437 predep_objects=$lt_predep_objects_GCJ
18438
18439 # Dependencies to place after the objects being linked to create a
18440 # shared library.
18441 postdep_objects=$lt_postdep_objects_GCJ
18442
18443 # Dependencies to place before the objects being linked to create a
18444 # shared library.
18445 predeps=$lt_predeps_GCJ
18446
18447 # Dependencies to place after the objects being linked to create a
18448 # shared library.
18449 postdeps=$lt_postdeps_GCJ
18450
18451 # The library search path used internally by the compiler when linking
18452 # a shared library.
18453 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18454
18455 # Method to check whether dependent libraries are shared objects.
18456 deplibs_check_method=$lt_deplibs_check_method
18457
18458 # Command to use when deplibs_check_method == file_magic.
18459 file_magic_cmd=$lt_file_magic_cmd
18460
18461 # Flag that allows shared libraries with undefined symbols to be built.
18462 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18463
18464 # Flag that forces no undefined symbols.
18465 no_undefined_flag=$lt_no_undefined_flag_GCJ
18466
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18469
18470 # Same as above, but a single script fragment to be evaled but not shown.
18471 finish_eval=$lt_finish_eval
18472
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18475
18476 # Transform the output of nm in a proper C declaration
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18478
18479 # Transform the output of nm in a C name address pair
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18481
18482 # This is the shared library runtime path variable.
18483 runpath_var=$runpath_var
18484
18485 # This is the shared library path variable.
18486 shlibpath_var=$shlibpath_var
18487
18488 # Is shlibpath searched before the hard-coded library search path?
18489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18490
18491 # How to hardcode a shared library path into an executable.
18492 hardcode_action=$hardcode_action_GCJ
18493
18494 # Whether we should hardcode library paths into libraries.
18495 hardcode_into_libs=$hardcode_into_libs
18496
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist.
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18500
18501 # If ld is used when linking, flag to hardcode \$libdir into
18502 # a binary during linking. This must work even if \$libdir does
18503 # not exist.
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18505
18506 # Whether we need a single -rpath flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18508
18509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510 # resulting binary.
18511 hardcode_direct=$hardcode_direct_GCJ
18512
18513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_minus_L=$hardcode_minus_L_GCJ
18516
18517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518 # the resulting binary.
18519 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18520
18521 # Set to yes if building a shared library automatically hardcodes DIR into the library
18522 # and all subsequent libraries and executables linked against it.
18523 hardcode_automatic=$hardcode_automatic_GCJ
18524
18525 # Variables whose values should be saved in libtool wrapper scripts and
18526 # restored at relink time.
18527 variables_saved_for_relink="$variables_saved_for_relink"
18528
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_GCJ
18531
18532 # Compile-time system search path for libraries
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535 # Run-time system search path for libraries
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538 # Fix the shell variable \$srcfile for the compiler.
18539 fix_srcfile_path="$fix_srcfile_path_GCJ"
18540
18541 # Set to yes if exported symbols are required.
18542 always_export_symbols=$always_export_symbols_GCJ
18543
18544 # The commands to list exported symbols.
18545 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18546
18547 # The commands to extract the exported symbol list from a shared archive.
18548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18549
18550 # Symbols that should not be listed in the preloaded symbols.
18551 exclude_expsyms=$lt_exclude_expsyms_GCJ
18552
18553 # Symbols that must always be exported.
18554 include_expsyms=$lt_include_expsyms_GCJ
18555
18556 # ### END LIBTOOL TAG CONFIG: $tagname
18557
18558 __EOF__
18559
18560
18561 else
18562   # If there is no Makefile yet, we rely on a make rule to execute
18563   # `config.status --recheck' to rerun these tests and create the
18564   # libtool script then.
18565   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566   if test -f "$ltmain_in"; then
18567     test -f Makefile && make "$ltmain"
18568   fi
18569 fi
18570
18571
18572 ac_ext=c
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578 CC="$lt_save_CC"
18579
18580         else
18581           tagname=""
18582         fi
18583         ;;
18584
18585       RC)
18586
18587
18588
18589 # Source file extension for RC test sources.
18590 ac_ext=rc
18591
18592 # Object file extension for compiled RC test sources.
18593 objext=o
18594 objext_RC=$objext
18595
18596 # Code to be used in simple compile tests
18597 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18598
18599 # Code to be used in simple link tests
18600 lt_simple_link_test_code="$lt_simple_compile_test_code"
18601
18602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18603
18604 # If no C compiler was specified, use CC.
18605 LTCC=${LTCC-"$CC"}
18606
18607 # Allow CC to be a program name with arguments.
18608 compiler=$CC
18609
18610
18611 # Allow CC to be a program name with arguments.
18612 lt_save_CC="$CC"
18613 CC=${RC-"windres"}
18614 compiler=$CC
18615 compiler_RC=$CC
18616 lt_cv_prog_compiler_c_o_RC=yes
18617
18618 # The else clause should only fire when bootstrapping the
18619 # libtool distribution, otherwise you forgot to ship ltmain.sh
18620 # with your package, and you will get complaints that there are
18621 # no rules to generate ltmain.sh.
18622 if test -f "$ltmain"; then
18623   # See if we are running on zsh, and set the options which allow our commands through
18624   # without removal of \ escapes.
18625   if test -n "${ZSH_VERSION+set}" ; then
18626     setopt NO_GLOB_SUBST
18627   fi
18628   # Now quote all the things that may contain metacharacters while being
18629   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18630   # variables and quote the copies for generation of the libtool script.
18631   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18632     SED SHELL STRIP \
18633     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18634     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18635     deplibs_check_method reload_flag reload_cmds need_locks \
18636     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18637     lt_cv_sys_global_symbol_to_c_name_address \
18638     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18639     old_postinstall_cmds old_postuninstall_cmds \
18640     compiler_RC \
18641     CC_RC \
18642     LD_RC \
18643     lt_prog_compiler_wl_RC \
18644     lt_prog_compiler_pic_RC \
18645     lt_prog_compiler_static_RC \
18646     lt_prog_compiler_no_builtin_flag_RC \
18647     export_dynamic_flag_spec_RC \
18648     thread_safe_flag_spec_RC \
18649     whole_archive_flag_spec_RC \
18650     enable_shared_with_static_runtimes_RC \
18651     old_archive_cmds_RC \
18652     old_archive_from_new_cmds_RC \
18653     predep_objects_RC \
18654     postdep_objects_RC \
18655     predeps_RC \
18656     postdeps_RC \
18657     compiler_lib_search_path_RC \
18658     archive_cmds_RC \
18659     archive_expsym_cmds_RC \
18660     postinstall_cmds_RC \
18661     postuninstall_cmds_RC \
18662     old_archive_from_expsyms_cmds_RC \
18663     allow_undefined_flag_RC \
18664     no_undefined_flag_RC \
18665     export_symbols_cmds_RC \
18666     hardcode_libdir_flag_spec_RC \
18667     hardcode_libdir_flag_spec_ld_RC \
18668     hardcode_libdir_separator_RC \
18669     hardcode_automatic_RC \
18670     module_cmds_RC \
18671     module_expsym_cmds_RC \
18672     lt_cv_prog_compiler_c_o_RC \
18673     exclude_expsyms_RC \
18674     include_expsyms_RC; do
18675
18676     case $var in
18677     old_archive_cmds_RC | \
18678     old_archive_from_new_cmds_RC | \
18679     archive_cmds_RC | \
18680     archive_expsym_cmds_RC | \
18681     module_cmds_RC | \
18682     module_expsym_cmds_RC | \
18683     old_archive_from_expsyms_cmds_RC | \
18684     export_symbols_cmds_RC | \
18685     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18686     postinstall_cmds | postuninstall_cmds | \
18687     old_postinstall_cmds | old_postuninstall_cmds | \
18688     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18689       # Double-quote double-evaled strings.
18690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18691       ;;
18692     *)
18693       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18694       ;;
18695     esac
18696   done
18697
18698   case $lt_echo in
18699   *'\$0 --fallback-echo"')
18700     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18701     ;;
18702   esac
18703
18704 cfgfile="$ofile"
18705
18706   cat <<__EOF__ >> "$cfgfile"
18707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18708
18709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18710
18711 # Shell to use when invoking shell scripts.
18712 SHELL=$lt_SHELL
18713
18714 # Whether or not to build shared libraries.
18715 build_libtool_libs=$enable_shared
18716
18717 # Whether or not to build static libraries.
18718 build_old_libs=$enable_static
18719
18720 # Whether or not to add -lc for building shared libraries.
18721 build_libtool_need_lc=$archive_cmds_need_lc_RC
18722
18723 # Whether or not to disallow shared libs when runtime libs are static
18724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18725
18726 # Whether or not to optimize for fast installation.
18727 fast_install=$enable_fast_install
18728
18729 # The host system.
18730 host_alias=$host_alias
18731 host=$host
18732
18733 # An echo program that does not interpret backslashes.
18734 echo=$lt_echo
18735
18736 # The archiver.
18737 AR=$lt_AR
18738 AR_FLAGS=$lt_AR_FLAGS
18739
18740 # A C compiler.
18741 LTCC=$lt_LTCC
18742
18743 # A language-specific compiler.
18744 CC=$lt_compiler_RC
18745
18746 # Is the compiler the GNU C compiler?
18747 with_gcc=$GCC_RC
18748
18749 # An ERE matcher.
18750 EGREP=$lt_EGREP
18751
18752 # The linker used to build libraries.
18753 LD=$lt_LD_RC
18754
18755 # Whether we need hard or soft links.
18756 LN_S=$lt_LN_S
18757
18758 # A BSD-compatible nm program.
18759 NM=$lt_NM
18760
18761 # A symbol stripping program
18762 STRIP=$lt_STRIP
18763
18764 # Used to examine libraries when file_magic_cmd begins "file"
18765 MAGIC_CMD=$MAGIC_CMD
18766
18767 # Used on cygwin: DLL creation program.
18768 DLLTOOL="$DLLTOOL"
18769
18770 # Used on cygwin: object dumper.
18771 OBJDUMP="$OBJDUMP"
18772
18773 # Used on cygwin: assembler.
18774 AS="$AS"
18775
18776 # The name of the directory that contains temporary libtool files.
18777 objdir=$objdir
18778
18779 # How to create reloadable object files.
18780 reload_flag=$lt_reload_flag
18781 reload_cmds=$lt_reload_cmds
18782
18783 # How to pass a linker flag through the compiler.
18784 wl=$lt_lt_prog_compiler_wl_RC
18785
18786 # Object file suffix (normally "o").
18787 objext="$ac_objext"
18788
18789 # Old archive suffix (normally "a").
18790 libext="$libext"
18791
18792 # Shared library suffix (normally ".so").
18793 shrext_cmds='$shrext_cmds'
18794
18795 # Executable file suffix (normally "").
18796 exeext="$exeext"
18797
18798 # Additional compiler flags for building library objects.
18799 pic_flag=$lt_lt_prog_compiler_pic_RC
18800 pic_mode=$pic_mode
18801
18802 # What is the maximum length of a command?
18803 max_cmd_len=$lt_cv_sys_max_cmd_len
18804
18805 # Does compiler simultaneously support -c and -o options?
18806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18807
18808 # Must we lock files when doing compilation ?
18809 need_locks=$lt_need_locks
18810
18811 # Do we need the lib prefix for modules?
18812 need_lib_prefix=$need_lib_prefix
18813
18814 # Do we need a version for libraries?
18815 need_version=$need_version
18816
18817 # Whether dlopen is supported.
18818 dlopen_support=$enable_dlopen
18819
18820 # Whether dlopen of programs is supported.
18821 dlopen_self=$enable_dlopen_self
18822
18823 # Whether dlopen of statically linked programs is supported.
18824 dlopen_self_static=$enable_dlopen_self_static
18825
18826 # Compiler flag to prevent dynamic linking.
18827 link_static_flag=$lt_lt_prog_compiler_static_RC
18828
18829 # Compiler flag to turn off builtin functions.
18830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18831
18832 # Compiler flag to allow reflexive dlopens.
18833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18834
18835 # Compiler flag to generate shared objects directly from archives.
18836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18837
18838 # Compiler flag to generate thread-safe objects.
18839 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18840
18841 # Library versioning type.
18842 version_type=$version_type
18843
18844 # Format of library name prefix.
18845 libname_spec=$lt_libname_spec
18846
18847 # List of archive names.  First name is the real one, the rest are links.
18848 # The last name is the one that the linker finds with -lNAME.
18849 library_names_spec=$lt_library_names_spec
18850
18851 # The coded name of the library, if different from the real name.
18852 soname_spec=$lt_soname_spec
18853
18854 # Commands used to build and install an old-style archive.
18855 RANLIB=$lt_RANLIB
18856 old_archive_cmds=$lt_old_archive_cmds_RC
18857 old_postinstall_cmds=$lt_old_postinstall_cmds
18858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18859
18860 # Create an old-style archive from a shared archive.
18861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18862
18863 # Create a temporary old-style archive to link instead of a shared archive.
18864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18865
18866 # Commands used to build and install a shared archive.
18867 archive_cmds=$lt_archive_cmds_RC
18868 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18869 postinstall_cmds=$lt_postinstall_cmds
18870 postuninstall_cmds=$lt_postuninstall_cmds
18871
18872 # Commands used to build a loadable module (assumed same as above if empty)
18873 module_cmds=$lt_module_cmds_RC
18874 module_expsym_cmds=$lt_module_expsym_cmds_RC
18875
18876 # Commands to strip libraries.
18877 old_striplib=$lt_old_striplib
18878 striplib=$lt_striplib
18879
18880 # Dependencies to place before the objects being linked to create a
18881 # shared library.
18882 predep_objects=$lt_predep_objects_RC
18883
18884 # Dependencies to place after the objects being linked to create a
18885 # shared library.
18886 postdep_objects=$lt_postdep_objects_RC
18887
18888 # Dependencies to place before the objects being linked to create a
18889 # shared library.
18890 predeps=$lt_predeps_RC
18891
18892 # Dependencies to place after the objects being linked to create a
18893 # shared library.
18894 postdeps=$lt_postdeps_RC
18895
18896 # The library search path used internally by the compiler when linking
18897 # a shared library.
18898 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18899
18900 # Method to check whether dependent libraries are shared objects.
18901 deplibs_check_method=$lt_deplibs_check_method
18902
18903 # Command to use when deplibs_check_method == file_magic.
18904 file_magic_cmd=$lt_file_magic_cmd
18905
18906 # Flag that allows shared libraries with undefined symbols to be built.
18907 allow_undefined_flag=$lt_allow_undefined_flag_RC
18908
18909 # Flag that forces no undefined symbols.
18910 no_undefined_flag=$lt_no_undefined_flag_RC
18911
18912 # Commands used to finish a libtool library installation in a directory.
18913 finish_cmds=$lt_finish_cmds
18914
18915 # Same as above, but a single script fragment to be evaled but not shown.
18916 finish_eval=$lt_finish_eval
18917
18918 # Take the output of nm and produce a listing of raw symbols and C names.
18919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18920
18921 # Transform the output of nm in a proper C declaration
18922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18923
18924 # Transform the output of nm in a C name address pair
18925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18926
18927 # This is the shared library runtime path variable.
18928 runpath_var=$runpath_var
18929
18930 # This is the shared library path variable.
18931 shlibpath_var=$shlibpath_var
18932
18933 # Is shlibpath searched before the hard-coded library search path?
18934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18935
18936 # How to hardcode a shared library path into an executable.
18937 hardcode_action=$hardcode_action_RC
18938
18939 # Whether we should hardcode library paths into libraries.
18940 hardcode_into_libs=$hardcode_into_libs
18941
18942 # Flag to hardcode \$libdir into a binary during linking.
18943 # This must work even if \$libdir does not exist.
18944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18945
18946 # If ld is used when linking, flag to hardcode \$libdir into
18947 # a binary during linking. This must work even if \$libdir does
18948 # not exist.
18949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18950
18951 # Whether we need a single -rpath flag with a separated argument.
18952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18953
18954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18955 # resulting binary.
18956 hardcode_direct=$hardcode_direct_RC
18957
18958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18959 # resulting binary.
18960 hardcode_minus_L=$hardcode_minus_L_RC
18961
18962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18963 # the resulting binary.
18964 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18965
18966 # Set to yes if building a shared library automatically hardcodes DIR into the library
18967 # and all subsequent libraries and executables linked against it.
18968 hardcode_automatic=$hardcode_automatic_RC
18969
18970 # Variables whose values should be saved in libtool wrapper scripts and
18971 # restored at relink time.
18972 variables_saved_for_relink="$variables_saved_for_relink"
18973
18974 # Whether libtool must link a program against all its dependency libraries.
18975 link_all_deplibs=$link_all_deplibs_RC
18976
18977 # Compile-time system search path for libraries
18978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18979
18980 # Run-time system search path for libraries
18981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18982
18983 # Fix the shell variable \$srcfile for the compiler.
18984 fix_srcfile_path="$fix_srcfile_path_RC"
18985
18986 # Set to yes if exported symbols are required.
18987 always_export_symbols=$always_export_symbols_RC
18988
18989 # The commands to list exported symbols.
18990 export_symbols_cmds=$lt_export_symbols_cmds_RC
18991
18992 # The commands to extract the exported symbol list from a shared archive.
18993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18994
18995 # Symbols that should not be listed in the preloaded symbols.
18996 exclude_expsyms=$lt_exclude_expsyms_RC
18997
18998 # Symbols that must always be exported.
18999 include_expsyms=$lt_include_expsyms_RC
19000
19001 # ### END LIBTOOL TAG CONFIG: $tagname
19002
19003 __EOF__
19004
19005
19006 else
19007   # If there is no Makefile yet, we rely on a make rule to execute
19008   # `config.status --recheck' to rerun these tests and create the
19009   # libtool script then.
19010   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19011   if test -f "$ltmain_in"; then
19012     test -f Makefile && make "$ltmain"
19013   fi
19014 fi
19015
19016
19017 ac_ext=c
19018 ac_cpp='$CPP $CPPFLAGS'
19019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022
19023 CC="$lt_save_CC"
19024
19025         ;;
19026
19027       *)
19028         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19030    { (exit 1); exit 1; }; }
19031         ;;
19032       esac
19033
19034       # Append the new tag name to the list of available tags.
19035       if test -n "$tagname" ; then
19036       available_tags="$available_tags $tagname"
19037     fi
19038     fi
19039   done
19040   IFS="$lt_save_ifs"
19041
19042   # Now substitute the updated list of available tags.
19043   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19044     mv "${ofile}T" "$ofile"
19045     chmod +x "$ofile"
19046   else
19047     rm -f "${ofile}T"
19048     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19050    { (exit 1); exit 1; }; }
19051   fi
19052 fi
19053
19054
19055
19056 # This can be used to rebuild libtool when needed
19057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19058
19059 # Always use our own libtool.
19060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19061
19062 # Prevent multiple expansion
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083 ac_ext=cc
19084 ac_cpp='$CXXCPP $CPPFLAGS'
19085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19088
19089
19090 # Check for a sane C/C++ build environment.
19091 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19093 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19094 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097   cat >conftest.make <<\_ACEOF
19098 all:
19099         @echo 'ac_maketemp="$(MAKE)"'
19100 _ACEOF
19101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19102 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19103 if test -n "$ac_maketemp"; then
19104   eval ac_cv_prog_make_${ac_make}_set=yes
19105 else
19106   eval ac_cv_prog_make_${ac_make}_set=no
19107 fi
19108 rm -f conftest.make
19109 fi
19110 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19111   echo "$as_me:$LINENO: result: yes" >&5
19112 echo "${ECHO_T}yes" >&6
19113   SET_MAKE=
19114 else
19115   echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6
19117   SET_MAKE="MAKE=${MAKE-make}"
19118 fi
19119
19120 # Find a good install program.  We prefer a C program (faster),
19121 # so one script is as good as another.  But avoid the broken or
19122 # incompatible versions:
19123 # SysV /etc/install, /usr/sbin/install
19124 # SunOS /usr/etc/install
19125 # IRIX /sbin/install
19126 # AIX /bin/install
19127 # AmigaOS /C/install, which installs bootblocks on floppy discs
19128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19131 # OS/2's system install, which has a completely different semantic
19132 # ./install, which can be erroneously created by make from ./install.sh.
19133 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19134 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19135 if test -z "$INSTALL"; then
19136 if test "${ac_cv_path_install+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19140 for as_dir in $PATH
19141 do
19142   IFS=$as_save_IFS
19143   test -z "$as_dir" && as_dir=.
19144   # Account for people who put trailing slashes in PATH elements.
19145 case $as_dir/ in
19146   ./ | .// | /cC/* | \
19147   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19148   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19149   /usr/ucb/* ) ;;
19150   *)
19151     # OSF1 and SCO ODT 3.0 have their own names for install.
19152     # Don't use installbsd from OSF since it installs stuff as root
19153     # by default.
19154     for ac_prog in ginstall scoinst install; do
19155       for ac_exec_ext in '' $ac_executable_extensions; do
19156         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19157           if test $ac_prog = install &&
19158             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19159             # AIX install.  It has an incompatible calling convention.
19160             :
19161           elif test $ac_prog = install &&
19162             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19163             # program-specific install script used by HP pwplus--don't use.
19164             :
19165           else
19166             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19167             break 3
19168           fi
19169         fi
19170       done
19171     done
19172     ;;
19173 esac
19174 done
19175
19176
19177 fi
19178   if test "${ac_cv_path_install+set}" = set; then
19179     INSTALL=$ac_cv_path_install
19180   else
19181     # As a last resort, use the slow shell script.  We don't cache a
19182     # path for INSTALL within a source directory, because that will
19183     # break other packages using the cache if that directory is
19184     # removed, or if the path is relative.
19185     INSTALL=$ac_install_sh
19186   fi
19187 fi
19188 echo "$as_me:$LINENO: result: $INSTALL" >&5
19189 echo "${ECHO_T}$INSTALL" >&6
19190
19191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19192 # It thinks the first close brace ends the variable substitution.
19193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19194
19195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19196
19197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19198
19199 ac_ext=cc
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204 if test -n "$ac_tool_prefix"; then
19205   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19206   do
19207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19209 echo "$as_me:$LINENO: checking for $ac_word" >&5
19210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19211 if test "${ac_cv_prog_CXX+set}" = set; then
19212   echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214   if test -n "$CXX"; then
19215   ac_cv_prog_CXX="$CXX" # Let the user override the test.
19216 else
19217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19218 for as_dir in $PATH
19219 do
19220   IFS=$as_save_IFS
19221   test -z "$as_dir" && as_dir=.
19222   for ac_exec_ext in '' $ac_executable_extensions; do
19223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19224     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19226     break 2
19227   fi
19228 done
19229 done
19230
19231 fi
19232 fi
19233 CXX=$ac_cv_prog_CXX
19234 if test -n "$CXX"; then
19235   echo "$as_me:$LINENO: result: $CXX" >&5
19236 echo "${ECHO_T}$CXX" >&6
19237 else
19238   echo "$as_me:$LINENO: result: no" >&5
19239 echo "${ECHO_T}no" >&6
19240 fi
19241
19242     test -n "$CXX" && break
19243   done
19244 fi
19245 if test -z "$CXX"; then
19246   ac_ct_CXX=$CXX
19247   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19248 do
19249   # Extract the first word of "$ac_prog", so it can be a program name with args.
19250 set dummy $ac_prog; ac_word=$2
19251 echo "$as_me:$LINENO: checking for $ac_word" >&5
19252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19253 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   if test -n "$ac_ct_CXX"; then
19257   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19258 else
19259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19260 for as_dir in $PATH
19261 do
19262   IFS=$as_save_IFS
19263   test -z "$as_dir" && as_dir=.
19264   for ac_exec_ext in '' $ac_executable_extensions; do
19265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19266     ac_cv_prog_ac_ct_CXX="$ac_prog"
19267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19268     break 2
19269   fi
19270 done
19271 done
19272
19273 fi
19274 fi
19275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19276 if test -n "$ac_ct_CXX"; then
19277   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19278 echo "${ECHO_T}$ac_ct_CXX" >&6
19279 else
19280   echo "$as_me:$LINENO: result: no" >&5
19281 echo "${ECHO_T}no" >&6
19282 fi
19283
19284   test -n "$ac_ct_CXX" && break
19285 done
19286 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19287
19288   CXX=$ac_ct_CXX
19289 fi
19290
19291
19292 # Provide some information about the compiler.
19293 echo "$as_me:$LINENO:" \
19294      "checking for C++ compiler version" >&5
19295 ac_compiler=`set X $ac_compile; echo $2`
19296 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19297   (eval $ac_compiler --version </dev/null >&5) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }
19301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19302   (eval $ac_compiler -v </dev/null >&5) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }
19306 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19307   (eval $ac_compiler -V </dev/null >&5) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }
19311
19312 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19313 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19314 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19315   echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317   cat >conftest.$ac_ext <<_ACEOF
19318 /* confdefs.h.  */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h.  */
19323
19324 int
19325 main ()
19326 {
19327 #ifndef __GNUC__
19328        choke me
19329 #endif
19330
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19337   (eval $ac_compile) 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } &&
19344          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346   (eval $ac_try) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; } &&
19350          { ac_try='test -s conftest.$ac_objext'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; }; then
19356   ac_compiler_gnu=yes
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ac_compiler_gnu=no
19362 fi
19363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19365
19366 fi
19367 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19369 GXX=`test $ac_compiler_gnu = yes && echo yes`
19370 ac_test_CXXFLAGS=${CXXFLAGS+set}
19371 ac_save_CXXFLAGS=$CXXFLAGS
19372 CXXFLAGS="-g"
19373 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19374 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19375 if test "${ac_cv_prog_cxx_g+set}" = set; then
19376   echo $ECHO_N "(cached) $ECHO_C" >&6
19377 else
19378   cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384
19385 int
19386 main ()
19387 {
19388
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395   (eval $ac_compile) 2>conftest.er1
19396   ac_status=$?
19397   grep -v '^ *+' conftest.er1 >conftest.err
19398   rm -f conftest.er1
19399   cat conftest.err >&5
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); } &&
19402          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404   (eval $ac_try) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; } &&
19408          { ac_try='test -s conftest.$ac_objext'
19409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410   (eval $ac_try) 2>&5
19411   ac_status=$?
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); }; }; then
19414   ac_cv_prog_cxx_g=yes
19415 else
19416   echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 ac_cv_prog_cxx_g=no
19420 fi
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19422 fi
19423 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19424 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19425 if test "$ac_test_CXXFLAGS" = set; then
19426   CXXFLAGS=$ac_save_CXXFLAGS
19427 elif test $ac_cv_prog_cxx_g = yes; then
19428   if test "$GXX" = yes; then
19429     CXXFLAGS="-g -O2"
19430   else
19431     CXXFLAGS="-g"
19432   fi
19433 else
19434   if test "$GXX" = yes; then
19435     CXXFLAGS="-O2"
19436   else
19437     CXXFLAGS=
19438   fi
19439 fi
19440 for ac_declaration in \
19441    '' \
19442    'extern "C" void std::exit (int) throw (); using std::exit;' \
19443    'extern "C" void std::exit (int); using std::exit;' \
19444    'extern "C" void exit (int) throw ();' \
19445    'extern "C" void exit (int);' \
19446    'void exit (int);'
19447 do
19448   cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454 $ac_declaration
19455 #include <stdlib.h>
19456 int
19457 main ()
19458 {
19459 exit (42);
19460   ;
19461   return 0;
19462 }
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466   (eval $ac_compile) 2>conftest.er1
19467   ac_status=$?
19468   grep -v '^ *+' conftest.er1 >conftest.err
19469   rm -f conftest.er1
19470   cat conftest.err >&5
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } &&
19473          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475   (eval $ac_try) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; } &&
19479          { ac_try='test -s conftest.$ac_objext'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   :
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 continue
19491 fi
19492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19493   cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499 $ac_declaration
19500 int
19501 main ()
19502 {
19503 exit (42);
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510   (eval $ac_compile) 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } &&
19517          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519   (eval $ac_try) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; } &&
19523          { ac_try='test -s conftest.$ac_objext'
19524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525   (eval $ac_try) 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; }; then
19529   break
19530 else
19531   echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 fi
19535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19536 done
19537 rm -f conftest*
19538 if test -n "$ac_declaration"; then
19539   echo '#ifdef __cplusplus' >>confdefs.h
19540   echo $ac_declaration      >>confdefs.h
19541   echo '#endif'             >>confdefs.h
19542 fi
19543
19544 ac_ext=cc
19545 ac_cpp='$CXXCPP $CPPFLAGS'
19546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19549
19550 depcc="$CXX"  am_compiler_list=
19551
19552 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19553 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19554 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19555   echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19558   # We make a subdir and do the tests there.  Otherwise we can end up
19559   # making bogus files that we don't know about and never remove.  For
19560   # instance it was reported that on HP-UX the gcc test will end up
19561   # making a dummy file named `D' -- because `-MD' means `put the output
19562   # in D'.
19563   mkdir conftest.dir
19564   # Copy depcomp to subdir because otherwise we won't find it if we're
19565   # using a relative directory.
19566   cp "$am_depcomp" conftest.dir
19567   cd conftest.dir
19568   # We will build objects and dependencies in a subdirectory because
19569   # it helps to detect inapplicable dependency modes.  For instance
19570   # both Tru64's cc and ICC support -MD to output dependencies as a
19571   # side effect of compilation, but ICC will put the dependencies in
19572   # the current directory while Tru64 will put them in the object
19573   # directory.
19574   mkdir sub
19575
19576   am_cv_CXX_dependencies_compiler_type=none
19577   if test "$am_compiler_list" = ""; then
19578      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19579   fi
19580   for depmode in $am_compiler_list; do
19581     # Setup a source with many dependencies, because some compilers
19582     # like to wrap large dependency lists on column 80 (with \), and
19583     # we should not choose a depcomp mode which is confused by this.
19584     #
19585     # We need to recreate these files for each test, as the compiler may
19586     # overwrite some of them when testing with obscure command lines.
19587     # This happens at least with the AIX C compiler.
19588     : > sub/conftest.c
19589     for i in 1 2 3 4 5 6; do
19590       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19591       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19592       # Solaris 8's {/usr,}/bin/sh.
19593       touch sub/conftst$i.h
19594     done
19595     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19596
19597     case $depmode in
19598     nosideeffect)
19599       # after this tag, mechanisms are not by side-effect, so they'll
19600       # only be used when explicitly requested
19601       if test "x$enable_dependency_tracking" = xyes; then
19602         continue
19603       else
19604         break
19605       fi
19606       ;;
19607     none) break ;;
19608     esac
19609     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19610     # mode.  It turns out that the SunPro C++ compiler does not properly
19611     # handle `-M -o', and we need to detect this.
19612     if depmode=$depmode \
19613        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19614        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19615        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19616          >/dev/null 2>conftest.err &&
19617        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19618        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19619        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19620       # icc doesn't choke on unknown options, it will just issue warnings
19621       # or remarks (even with -Werror).  So we grep stderr for any message
19622       # that says an option was ignored or not supported.
19623       # When given -MP, icc 7.0 and 7.1 complain thusly:
19624       #   icc: Command line warning: ignoring option '-M'; no argument required
19625       # The diagnosis changed in icc 8.0:
19626       #   icc: Command line remark: option '-MP' not supported
19627       if (grep 'ignoring option' conftest.err ||
19628           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19629         am_cv_CXX_dependencies_compiler_type=$depmode
19630         break
19631       fi
19632     fi
19633   done
19634
19635   cd ..
19636   rm -rf conftest.dir
19637 else
19638   am_cv_CXX_dependencies_compiler_type=none
19639 fi
19640
19641 fi
19642 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19643 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19644 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19645
19646
19647
19648 if
19649   test "x$enable_dependency_tracking" != xno \
19650   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19651   am__fastdepCXX_TRUE=
19652   am__fastdepCXX_FALSE='#'
19653 else
19654   am__fastdepCXX_TRUE='#'
19655   am__fastdepCXX_FALSE=
19656 fi
19657
19658
19659
19660 # Check if 'long long' or 'long double' are available and use them instead.
19661 echo "$as_me:$LINENO: checking for long long" >&5
19662 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19663 if test "${ac_cv_type_long_long+set}" = set; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 $ac_includes_default
19673 int
19674 main ()
19675 {
19676 if ((long long *) 0)
19677   return 0;
19678 if (sizeof (long long))
19679   return 0;
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686   (eval $ac_compile) 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695   (eval $ac_try) 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; } &&
19699          { ac_try='test -s conftest.$ac_objext'
19700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701   (eval $ac_try) 2>&5
19702   ac_status=$?
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); }; }; then
19705   ac_cv_type_long_long=yes
19706 else
19707   echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_cv_type_long_long=no
19711 fi
19712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19713 fi
19714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19715 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19716 if test $ac_cv_type_long_long = yes; then
19717   TYPE_INT="long long"
19718
19719 else
19720   TYPE_INT=long
19721
19722 fi
19723
19724 echo "$as_me:$LINENO: checking for long double" >&5
19725 echo $ECHO_N "checking for long double... $ECHO_C" >&6
19726 if test "${ac_cv_type_long_double+set}" = set; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 $ac_includes_default
19736 int
19737 main ()
19738 {
19739 if ((long double *) 0)
19740   return 0;
19741 if (sizeof (long double))
19742   return 0;
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749   (eval $ac_compile) 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } &&
19756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758   (eval $ac_try) 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); }; } &&
19762          { ac_try='test -s conftest.$ac_objext'
19763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764   (eval $ac_try) 2>&5
19765   ac_status=$?
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); }; }; then
19768   ac_cv_type_long_double=yes
19769 else
19770   echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773 ac_cv_type_long_double=no
19774 fi
19775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19776 fi
19777 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
19778 echo "${ECHO_T}$ac_cv_type_long_double" >&6
19779 if test $ac_cv_type_long_double = yes; then
19780   TYPE_FLOAT="long double"
19781
19782 else
19783   TYPE_FLOAT=double
19784
19785 fi
19786
19787
19788 # Conditionally build iostream wrappers
19789 # Check whether --enable-iostream or --disable-iostream was given.
19790 if test "${enable_iostream+set}" = set; then
19791   enableval="$enable_iostream"
19792
19793 fi;
19794
19795 if test ${enable_iostream:=yes} = yes; then
19796    echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
19797 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
19798 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lstdc++  $LIBS"
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809
19810
19811 int
19812 main ()
19813 {
19814 main ();
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821   (eval $ac_link) 2>conftest.er1
19822   ac_status=$?
19823   grep -v '^ *+' conftest.er1 >conftest.err
19824   rm -f conftest.er1
19825   cat conftest.err >&5
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); } &&
19828          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830   (eval $ac_try) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; } &&
19834          { ac_try='test -s conftest$ac_exeext'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   ac_cv_lib_stdcpp_main=yes
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 ac_cv_lib_stdcpp_main=no
19846 fi
19847 rm -f conftest.err conftest.$ac_objext \
19848       conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_check_lib_save_LIBS
19850 fi
19851 echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
19852 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
19853 if test $ac_cv_lib_stdcpp_main = yes; then
19854   ENABLE_IOSTREAM=1
19855
19856 else
19857   ENABLE_IOSTREAM=0
19858
19859 fi
19860
19861 else
19862         ENABLE_IOSTREAM=0
19863
19864 fi
19865
19866 # Conditionally build std::string methods
19867 # Check whether --enable-string or --disable-string was given.
19868 if test "${enable_string+set}" = set; then
19869   enableval="$enable_string"
19870
19871 fi;
19872
19873 if test ${enable_string:=yes} = yes; then
19874    echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
19875 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
19876 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
19877   echo $ECHO_N "(cached) $ECHO_C" >&6
19878 else
19879   ac_check_lib_save_LIBS=$LIBS
19880 LIBS="-lstdc++  $LIBS"
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h.  */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h.  */
19887
19888
19889 int
19890 main ()
19891 {
19892 main ();
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899   (eval $ac_link) 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } &&
19906          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908   (eval $ac_try) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; } &&
19912          { ac_try='test -s conftest$ac_exeext'
19913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914   (eval $ac_try) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; }; then
19918   ac_cv_lib_stdcpp_main=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_cv_lib_stdcpp_main=no
19924 fi
19925 rm -f conftest.err conftest.$ac_objext \
19926       conftest$ac_exeext conftest.$ac_ext
19927 LIBS=$ac_check_lib_save_LIBS
19928 fi
19929 echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
19930 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
19931 if test $ac_cv_lib_stdcpp_main = yes; then
19932   ENABLE_STRING=1
19933
19934 else
19935   ENABLE_STRING=0
19936
19937 fi
19938
19939 else
19940         ENABLE_STRING=0
19941
19942 fi
19943
19944 # Check if we are using the ISO standard C++ library
19945
19946 # Check whether --with-iso or --without-iso was given.
19947 if test "${with_iso+set}" = set; then
19948   withval="$with_iso"
19949
19950 fi;
19951
19952 if test x${with_iso} = xyes; then
19953    ISO_STDLIB=1
19954
19955 elif test x${with_iso} = xno; then
19956    ISO_STDLIB=0
19957
19958 else
19959         echo "$as_me:$LINENO: checking for std::basic_istream<char>" >&5
19960 echo $ECHO_N "checking for std::basic_istream<char>... $ECHO_C" >&6
19961 if test "${ac_cv_type_std__basic_istream_char_+set}" = set; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964   cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h.  */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h.  */
19970 #include <iostream>
19971
19972 int
19973 main ()
19974 {
19975 if ((std::basic_istream<char> *) 0)
19976   return 0;
19977 if (sizeof (std::basic_istream<char>))
19978   return 0;
19979   ;
19980   return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985   (eval $ac_compile) 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } &&
19992          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994   (eval $ac_try) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); }; } &&
19998          { ac_try='test -s conftest.$ac_objext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   ac_cv_type_std__basic_istream_char_=yes
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 ac_cv_type_std__basic_istream_char_=no
20010 fi
20011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20012 fi
20013 echo "$as_me:$LINENO: result: $ac_cv_type_std__basic_istream_char_" >&5
20014 echo "${ECHO_T}$ac_cv_type_std__basic_istream_char_" >&6
20015 if test $ac_cv_type_std__basic_istream_char_ = yes; then
20016   ISO_STDLIB=1
20017
20018 else
20019   ISO_STDLIB=0
20020
20021 fi
20022
20023 fi
20024
20025 # Conditionally build with 'math.h' (and maybe library) dependencies
20026
20027 # Check whether --with-math or --without-math was given.
20028 if test "${with_math+set}" = set; then
20029   withval="$with_math"
20030
20031 fi;
20032
20033 if test ${with_math:=yes} = yes; then
20034    echo "$as_me:$LINENO: checking for ldexp" >&5
20035 echo $ECHO_N "checking for ldexp... $ECHO_C" >&6
20036 if test "${ac_cv_func_ldexp+set}" = set; then
20037   echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039   cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045 /* Define ldexp to an innocuous variant, in case <limits.h> declares ldexp.
20046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20047 #define ldexp innocuous_ldexp
20048
20049 /* System header to define __stub macros and hopefully few prototypes,
20050     which can conflict with char ldexp (); below.
20051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20052     <limits.h> exists even on freestanding compilers.  */
20053
20054 #ifdef __STDC__
20055 # include <limits.h>
20056 #else
20057 # include <assert.h>
20058 #endif
20059
20060 #undef ldexp
20061
20062 /* Override any gcc2 internal prototype to avoid an error.  */
20063 #ifdef __cplusplus
20064 extern "C"
20065 {
20066 #endif
20067 /* We use char because int might match the return type of a gcc2
20068    builtin and then its argument prototype would still apply.  */
20069 char ldexp ();
20070 /* The GNU C library defines this for functions which it implements
20071     to always fail with ENOSYS.  Some functions are actually named
20072     something starting with __ and the normal name is an alias.  */
20073 #if defined (__stub_ldexp) || defined (__stub___ldexp)
20074 choke me
20075 #else
20076 char (*f) () = ldexp;
20077 #endif
20078 #ifdef __cplusplus
20079 }
20080 #endif
20081
20082 int
20083 main ()
20084 {
20085 return f != ldexp;
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20092   (eval $ac_link) 2>conftest.er1
20093   ac_status=$?
20094   grep -v '^ *+' conftest.er1 >conftest.err
20095   rm -f conftest.er1
20096   cat conftest.err >&5
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); } &&
20099          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101   (eval $ac_try) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; } &&
20105          { ac_try='test -s conftest$ac_exeext'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   ac_cv_func_ldexp=yes
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_cv_func_ldexp=no
20117 fi
20118 rm -f conftest.err conftest.$ac_objext \
20119       conftest$ac_exeext conftest.$ac_ext
20120 fi
20121 echo "$as_me:$LINENO: result: $ac_cv_func_ldexp" >&5
20122 echo "${ECHO_T}$ac_cv_func_ldexp" >&6
20123 if test $ac_cv_func_ldexp = yes; then
20124   WITH_MATH=1
20125
20126 else
20127   WITH_MATH=0
20128
20129 fi
20130
20131 else
20132         WITH_MATH=0
20133
20134 fi
20135
20136 cat >confcache <<\_ACEOF
20137 # This file is a shell script that caches the results of configure
20138 # tests run on this system so they can be shared between configure
20139 # scripts and configure runs, see configure's option --config-cache.
20140 # It is not useful on other systems.  If it contains results you don't
20141 # want to keep, you may remove or edit it.
20142 #
20143 # config.status only pays attention to the cache file if you give it
20144 # the --recheck option to rerun configure.
20145 #
20146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20148 # following values.
20149
20150 _ACEOF
20151
20152 # The following way of writing the cache mishandles newlines in values,
20153 # but we know of no workaround that is simple, portable, and efficient.
20154 # So, don't put newlines in cache variables' values.
20155 # Ultrix sh set writes to stderr and can't be redirected directly,
20156 # and sets the high bit in the cache file unless we assign to the vars.
20157 {
20158   (set) 2>&1 |
20159     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20160     *ac_space=\ *)
20161       # `set' does not quote correctly, so add quotes (double-quote
20162       # substitution turns \\\\ into \\, and sed turns \\ into \).
20163       sed -n \
20164         "s/'/'\\\\''/g;
20165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20166       ;;
20167     *)
20168       # `set' quotes correctly as required by POSIX, so do not add quotes.
20169       sed -n \
20170         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20171       ;;
20172     esac;
20173 } |
20174   sed '
20175      t clear
20176      : clear
20177      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20178      t end
20179      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20180      : end' >>confcache
20181 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20182   if test -w $cache_file; then
20183     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20184     cat confcache >$cache_file
20185   else
20186     echo "not updating unwritable cache $cache_file"
20187   fi
20188 fi
20189 rm -f confcache
20190
20191 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20192 # Let make expand exec_prefix.
20193 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20194
20195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20197 # trailing colons and then remove the whole line if VPATH becomes empty
20198 # (actually we leave an empty line to preserve line numbers).
20199 if test "x$srcdir" = x.; then
20200   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20201 s/:*\$(srcdir):*/:/;
20202 s/:*\${srcdir}:*/:/;
20203 s/:*@srcdir@:*/:/;
20204 s/^\([^=]*=[     ]*\):*/\1/;
20205 s/:*$//;
20206 s/^[^=]*=[       ]*$//;
20207 }'
20208 fi
20209
20210 # Transform confdefs.h into DEFS.
20211 # Protect against shell expansion while executing Makefile rules.
20212 # Protect against Makefile macro expansion.
20213 #
20214 # If the first sed substitution is executed (which looks for macros that
20215 # take arguments), then we branch to the quote section.  Otherwise,
20216 # look for a macro that doesn't take arguments.
20217 cat >confdef2opt.sed <<\_ACEOF
20218 t clear
20219 : clear
20220 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
20221 t quote
20222 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
20223 t quote
20224 d
20225 : quote
20226 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
20227 s,\[,\\&,g
20228 s,\],\\&,g
20229 s,\$,$$,g
20230 p
20231 _ACEOF
20232 # We use echo to avoid assuming a particular line-breaking character.
20233 # The extra dot is to prevent the shell from consuming trailing
20234 # line-breaks from the sub-command output.  A line-break within
20235 # single-quotes doesn't work because, if this script is created in a
20236 # platform that uses two characters for line-breaks (e.g., DOS), tr
20237 # would break.
20238 ac_LF_and_DOT=`echo; echo .`
20239 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20240 rm -f confdef2opt.sed
20241
20242
20243 ac_libobjs=
20244 ac_ltlibobjs=
20245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20246   # 1. Remove the extension, and $U if already installed.
20247   ac_i=`echo "$ac_i" |
20248          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20249   # 2. Add them.
20250   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20251   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20252 done
20253 LIBOBJS=$ac_libobjs
20254
20255 LTLIBOBJS=$ac_ltlibobjs
20256
20257
20258 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20259   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20260 Usually this means the macro was only invoked conditionally." >&5
20261 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20262 Usually this means the macro was only invoked conditionally." >&2;}
20263    { (exit 1); exit 1; }; }
20264 fi
20265 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20266   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20267 Usually this means the macro was only invoked conditionally." >&5
20268 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20269 Usually this means the macro was only invoked conditionally." >&2;}
20270    { (exit 1); exit 1; }; }
20271 fi
20272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20273   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20274 Usually this means the macro was only invoked conditionally." >&5
20275 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20276 Usually this means the macro was only invoked conditionally." >&2;}
20277    { (exit 1); exit 1; }; }
20278 fi
20279 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20280   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20281 Usually this means the macro was only invoked conditionally." >&5
20282 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20283 Usually this means the macro was only invoked conditionally." >&2;}
20284    { (exit 1); exit 1; }; }
20285 fi
20286 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20287   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20288 Usually this means the macro was only invoked conditionally." >&5
20289 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20290 Usually this means the macro was only invoked conditionally." >&2;}
20291    { (exit 1); exit 1; }; }
20292 fi
20293
20294 : ${CONFIG_STATUS=./config.status}
20295 ac_clean_files_save=$ac_clean_files
20296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20299 cat >$CONFIG_STATUS <<_ACEOF
20300 #! $SHELL
20301 # Generated by $as_me.
20302 # Run this file to recreate the current configuration.
20303 # Compiler output produced by configure, useful for debugging
20304 # configure, is in config.log if it exists.
20305
20306 debug=false
20307 ac_cs_recheck=false
20308 ac_cs_silent=false
20309 SHELL=\${CONFIG_SHELL-$SHELL}
20310 _ACEOF
20311
20312 cat >>$CONFIG_STATUS <<\_ACEOF
20313 ## --------------------- ##
20314 ## M4sh Initialization.  ##
20315 ## --------------------- ##
20316
20317 # Be Bourne compatible
20318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20319   emulate sh
20320   NULLCMD=:
20321   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20322   # is contrary to our usage.  Disable this feature.
20323   alias -g '${1+"$@"}'='"$@"'
20324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20325   set -o posix
20326 fi
20327 DUALCASE=1; export DUALCASE # for MKS sh
20328
20329 # Support unset when possible.
20330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20331   as_unset=unset
20332 else
20333   as_unset=false
20334 fi
20335
20336
20337 # Work around bugs in pre-3.0 UWIN ksh.
20338 $as_unset ENV MAIL MAILPATH
20339 PS1='$ '
20340 PS2='> '
20341 PS4='+ '
20342
20343 # NLS nuisances.
20344 for as_var in \
20345   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20346   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20347   LC_TELEPHONE LC_TIME
20348 do
20349   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20350     eval $as_var=C; export $as_var
20351   else
20352     $as_unset $as_var
20353   fi
20354 done
20355
20356 # Required to use basename.
20357 if expr a : '\(a\)' >/dev/null 2>&1; then
20358   as_expr=expr
20359 else
20360   as_expr=false
20361 fi
20362
20363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20364   as_basename=basename
20365 else
20366   as_basename=false
20367 fi
20368
20369
20370 # Name of the executable.
20371 as_me=`$as_basename "$0" ||
20372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20373          X"$0" : 'X\(//\)$' \| \
20374          X"$0" : 'X\(/\)$' \| \
20375          .     : '\(.\)' 2>/dev/null ||
20376 echo X/"$0" |
20377     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20378           /^X\/\(\/\/\)$/{ s//\1/; q; }
20379           /^X\/\(\/\).*/{ s//\1/; q; }
20380           s/.*/./; q'`
20381
20382
20383 # PATH needs CR, and LINENO needs CR and PATH.
20384 # Avoid depending upon Character Ranges.
20385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20388 as_cr_digits='0123456789'
20389 as_cr_alnum=$as_cr_Letters$as_cr_digits
20390
20391 # The user is always right.
20392 if test "${PATH_SEPARATOR+set}" != set; then
20393   echo "#! /bin/sh" >conf$$.sh
20394   echo  "exit 0"   >>conf$$.sh
20395   chmod +x conf$$.sh
20396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20397     PATH_SEPARATOR=';'
20398   else
20399     PATH_SEPARATOR=:
20400   fi
20401   rm -f conf$$.sh
20402 fi
20403
20404
20405   as_lineno_1=$LINENO
20406   as_lineno_2=$LINENO
20407   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20408   test "x$as_lineno_1" != "x$as_lineno_2" &&
20409   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20410   # Find who we are.  Look in the path if we contain no path at all
20411   # relative or not.
20412   case $0 in
20413     *[\\/]* ) as_myself=$0 ;;
20414     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417   IFS=$as_save_IFS
20418   test -z "$as_dir" && as_dir=.
20419   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20420 done
20421
20422        ;;
20423   esac
20424   # We did not find ourselves, most probably we were run as `sh COMMAND'
20425   # in which case we are not to be found in the path.
20426   if test "x$as_myself" = x; then
20427     as_myself=$0
20428   fi
20429   if test ! -f "$as_myself"; then
20430     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20432    { (exit 1); exit 1; }; }
20433   fi
20434   case $CONFIG_SHELL in
20435   '')
20436     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20438 do
20439   IFS=$as_save_IFS
20440   test -z "$as_dir" && as_dir=.
20441   for as_base in sh bash ksh sh5; do
20442          case $as_dir in
20443          /*)
20444            if ("$as_dir/$as_base" -c '
20445   as_lineno_1=$LINENO
20446   as_lineno_2=$LINENO
20447   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20448   test "x$as_lineno_1" != "x$as_lineno_2" &&
20449   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20450              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20451              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20452              CONFIG_SHELL=$as_dir/$as_base
20453              export CONFIG_SHELL
20454              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20455            fi;;
20456          esac
20457        done
20458 done
20459 ;;
20460   esac
20461
20462   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20463   # uniformly replaced by the line number.  The first 'sed' inserts a
20464   # line-number line before each line; the second 'sed' does the real
20465   # work.  The second script uses 'N' to pair each line-number line
20466   # with the numbered line, and appends trailing '-' during
20467   # substitution so that $LINENO is not a special case at line end.
20468   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20469   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20470   sed '=' <$as_myself |
20471     sed '
20472       N
20473       s,$,-,
20474       : loop
20475       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20476       t loop
20477       s,-$,,
20478       s,^['$as_cr_digits']*\n,,
20479     ' >$as_me.lineno &&
20480   chmod +x $as_me.lineno ||
20481     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20483    { (exit 1); exit 1; }; }
20484
20485   # Don't try to exec as it changes $[0], causing all sort of problems
20486   # (the dirname of $[0] is not the place where we might find the
20487   # original and so on.  Autoconf is especially sensible to this).
20488   . ./$as_me.lineno
20489   # Exit status is that of the last command.
20490   exit
20491 }
20492
20493
20494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20495   *c*,-n*) ECHO_N= ECHO_C='
20496 ' ECHO_T='      ' ;;
20497   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20498   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20499 esac
20500
20501 if expr a : '\(a\)' >/dev/null 2>&1; then
20502   as_expr=expr
20503 else
20504   as_expr=false
20505 fi
20506
20507 rm -f conf$$ conf$$.exe conf$$.file
20508 echo >conf$$.file
20509 if ln -s conf$$.file conf$$ 2>/dev/null; then
20510   # We could just check for DJGPP; but this test a) works b) is more generic
20511   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20512   if test -f conf$$.exe; then
20513     # Don't use ln at all; we don't have any links
20514     as_ln_s='cp -p'
20515   else
20516     as_ln_s='ln -s'
20517   fi
20518 elif ln conf$$.file conf$$ 2>/dev/null; then
20519   as_ln_s=ln
20520 else
20521   as_ln_s='cp -p'
20522 fi
20523 rm -f conf$$ conf$$.exe conf$$.file
20524
20525 if mkdir -p . 2>/dev/null; then
20526   as_mkdir_p=:
20527 else
20528   test -d ./-p && rmdir ./-p
20529   as_mkdir_p=false
20530 fi
20531
20532 as_executable_p="test -f"
20533
20534 # Sed expression to map a string onto a valid CPP name.
20535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20536
20537 # Sed expression to map a string onto a valid variable name.
20538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20539
20540
20541 # IFS
20542 # We need space, tab and new line, in precisely that order.
20543 as_nl='
20544 '
20545 IFS="   $as_nl"
20546
20547 # CDPATH.
20548 $as_unset CDPATH
20549
20550 exec 6>&1
20551
20552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20553 # report actual input values of CONFIG_FILES etc. instead of their
20554 # values after options handling.  Logging --version etc. is OK.
20555 exec 5>>config.log
20556 {
20557   echo
20558   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20559 ## Running $as_me. ##
20560 _ASBOX
20561 } >&5
20562 cat >&5 <<_CSEOF
20563
20564 This file was extended by binio $as_me 1.4, which was
20565 generated by GNU Autoconf 2.59.  Invocation command line was
20566
20567   CONFIG_FILES    = $CONFIG_FILES
20568   CONFIG_HEADERS  = $CONFIG_HEADERS
20569   CONFIG_LINKS    = $CONFIG_LINKS
20570   CONFIG_COMMANDS = $CONFIG_COMMANDS
20571   $ $0 $@
20572
20573 _CSEOF
20574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20575 echo >&5
20576 _ACEOF
20577
20578 # Files that config.status was made for.
20579 if test -n "$ac_config_files"; then
20580   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20581 fi
20582
20583 if test -n "$ac_config_headers"; then
20584   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20585 fi
20586
20587 if test -n "$ac_config_links"; then
20588   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20589 fi
20590
20591 if test -n "$ac_config_commands"; then
20592   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20593 fi
20594
20595 cat >>$CONFIG_STATUS <<\_ACEOF
20596
20597 ac_cs_usage="\
20598 \`$as_me' instantiates files from templates according to the
20599 current configuration.
20600
20601 Usage: $0 [OPTIONS] [FILE]...
20602
20603   -h, --help       print this help, then exit
20604   -V, --version    print version number, then exit
20605   -q, --quiet      do not print progress messages
20606   -d, --debug      don't remove temporary files
20607       --recheck    update $as_me by reconfiguring in the same conditions
20608   --file=FILE[:TEMPLATE]
20609                    instantiate the configuration file FILE
20610
20611 Configuration files:
20612 $config_files
20613
20614 Configuration commands:
20615 $config_commands
20616
20617 Report bugs to <bug-autoconf@gnu.org>."
20618 _ACEOF
20619
20620 cat >>$CONFIG_STATUS <<_ACEOF
20621 ac_cs_version="\\
20622 binio config.status 1.4
20623 configured by $0, generated by GNU Autoconf 2.59,
20624   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20625
20626 Copyright (C) 2003 Free Software Foundation, Inc.
20627 This config.status script is free software; the Free Software Foundation
20628 gives unlimited permission to copy, distribute and modify it."
20629 srcdir=$srcdir
20630 INSTALL="$INSTALL"
20631 _ACEOF
20632
20633 cat >>$CONFIG_STATUS <<\_ACEOF
20634 # If no file are specified by the user, then we need to provide default
20635 # value.  By we need to know if files were specified by the user.
20636 ac_need_defaults=:
20637 while test $# != 0
20638 do
20639   case $1 in
20640   --*=*)
20641     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20642     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20643     ac_shift=:
20644     ;;
20645   -*)
20646     ac_option=$1
20647     ac_optarg=$2
20648     ac_shift=shift
20649     ;;
20650   *) # This is not an option, so the user has probably given explicit
20651      # arguments.
20652      ac_option=$1
20653      ac_need_defaults=false;;
20654   esac
20655
20656   case $ac_option in
20657   # Handling of the options.
20658 _ACEOF
20659 cat >>$CONFIG_STATUS <<\_ACEOF
20660   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20661     ac_cs_recheck=: ;;
20662   --version | --vers* | -V )
20663     echo "$ac_cs_version"; exit 0 ;;
20664   --he | --h)
20665     # Conflict between --help and --header
20666     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20667 Try \`$0 --help' for more information." >&5
20668 echo "$as_me: error: ambiguous option: $1
20669 Try \`$0 --help' for more information." >&2;}
20670    { (exit 1); exit 1; }; };;
20671   --help | --hel | -h )
20672     echo "$ac_cs_usage"; exit 0 ;;
20673   --debug | --d* | -d )
20674     debug=: ;;
20675   --file | --fil | --fi | --f )
20676     $ac_shift
20677     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20678     ac_need_defaults=false;;
20679   --header | --heade | --head | --hea )
20680     $ac_shift
20681     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20682     ac_need_defaults=false;;
20683   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20684   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20685     ac_cs_silent=: ;;
20686
20687   # This is an error.
20688   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20689 Try \`$0 --help' for more information." >&5
20690 echo "$as_me: error: unrecognized option: $1
20691 Try \`$0 --help' for more information." >&2;}
20692    { (exit 1); exit 1; }; } ;;
20693
20694   *) ac_config_targets="$ac_config_targets $1" ;;
20695
20696   esac
20697   shift
20698 done
20699
20700 ac_configure_extra_args=
20701
20702 if $ac_cs_silent; then
20703   exec 6>/dev/null
20704   ac_configure_extra_args="$ac_configure_extra_args --silent"
20705 fi
20706
20707 _ACEOF
20708 cat >>$CONFIG_STATUS <<_ACEOF
20709 if \$ac_cs_recheck; then
20710   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20711   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20712 fi
20713
20714 _ACEOF
20715
20716 cat >>$CONFIG_STATUS <<_ACEOF
20717 #
20718 # INIT-COMMANDS section.
20719 #
20720
20721 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20722
20723 _ACEOF
20724
20725
20726
20727 cat >>$CONFIG_STATUS <<\_ACEOF
20728 for ac_config_target in $ac_config_targets
20729 do
20730   case "$ac_config_target" in
20731   # Handling of arguments.
20732   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20733   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20734   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20735   "src/binio.h" ) CONFIG_FILES="$CONFIG_FILES src/binio.h" ;;
20736   "libbinio.pc" ) CONFIG_FILES="$CONFIG_FILES libbinio.pc" ;;
20737   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20738   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20740    { (exit 1); exit 1; }; };;
20741   esac
20742 done
20743
20744 # If the user did not use the arguments to specify the items to instantiate,
20745 # then the envvar interface is used.  Set only those that are not.
20746 # We use the long form for the default assignment because of an extremely
20747 # bizarre bug on SunOS 4.1.3.
20748 if $ac_need_defaults; then
20749   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20750   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20751 fi
20752
20753 # Have a temporary directory for convenience.  Make it in the build tree
20754 # simply because there is no reason to put it here, and in addition,
20755 # creating and moving files from /tmp can sometimes cause problems.
20756 # Create a temporary directory, and hook for its removal unless debugging.
20757 $debug ||
20758 {
20759   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20760   trap '{ (exit 1); exit 1; }' 1 2 13 15
20761 }
20762
20763 # Create a (secure) tmp directory for tmp files.
20764
20765 {
20766   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20767   test -n "$tmp" && test -d "$tmp"
20768 }  ||
20769 {
20770   tmp=./confstat$$-$RANDOM
20771   (umask 077 && mkdir $tmp)
20772 } ||
20773 {
20774    echo "$me: cannot create a temporary directory in ." >&2
20775    { (exit 1); exit 1; }
20776 }
20777
20778 _ACEOF
20779
20780 cat >>$CONFIG_STATUS <<_ACEOF
20781
20782 #
20783 # CONFIG_FILES section.
20784 #
20785
20786 # No need to generate the scripts if there are no CONFIG_FILES.
20787 # This happens for instance when ./config.status config.h
20788 if test -n "\$CONFIG_FILES"; then
20789   # Protect against being on the right side of a sed subst in config.status.
20790   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20791    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20792 s,@SHELL@,$SHELL,;t t
20793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20794 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20795 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20796 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20797 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20798 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20799 s,@exec_prefix@,$exec_prefix,;t t
20800 s,@prefix@,$prefix,;t t
20801 s,@program_transform_name@,$program_transform_name,;t t
20802 s,@bindir@,$bindir,;t t
20803 s,@sbindir@,$sbindir,;t t
20804 s,@libexecdir@,$libexecdir,;t t
20805 s,@datadir@,$datadir,;t t
20806 s,@sysconfdir@,$sysconfdir,;t t
20807 s,@sharedstatedir@,$sharedstatedir,;t t
20808 s,@localstatedir@,$localstatedir,;t t
20809 s,@libdir@,$libdir,;t t
20810 s,@includedir@,$includedir,;t t
20811 s,@oldincludedir@,$oldincludedir,;t t
20812 s,@infodir@,$infodir,;t t
20813 s,@mandir@,$mandir,;t t
20814 s,@build_alias@,$build_alias,;t t
20815 s,@host_alias@,$host_alias,;t t
20816 s,@target_alias@,$target_alias,;t t
20817 s,@DEFS@,$DEFS,;t t
20818 s,@ECHO_C@,$ECHO_C,;t t
20819 s,@ECHO_N@,$ECHO_N,;t t
20820 s,@ECHO_T@,$ECHO_T,;t t
20821 s,@LIBS@,$LIBS,;t t
20822 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20823 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20824 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20825 s,@CYGPATH_W@,$CYGPATH_W,;t t
20826 s,@PACKAGE@,$PACKAGE,;t t
20827 s,@VERSION@,$VERSION,;t t
20828 s,@ACLOCAL@,$ACLOCAL,;t t
20829 s,@AUTOCONF@,$AUTOCONF,;t t
20830 s,@AUTOMAKE@,$AUTOMAKE,;t t
20831 s,@AUTOHEADER@,$AUTOHEADER,;t t
20832 s,@MAKEINFO@,$MAKEINFO,;t t
20833 s,@install_sh@,$install_sh,;t t
20834 s,@STRIP@,$STRIP,;t t
20835 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20836 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20837 s,@mkdir_p@,$mkdir_p,;t t
20838 s,@AWK@,$AWK,;t t
20839 s,@SET_MAKE@,$SET_MAKE,;t t
20840 s,@am__leading_dot@,$am__leading_dot,;t t
20841 s,@AMTAR@,$AMTAR,;t t
20842 s,@am__tar@,$am__tar,;t t
20843 s,@am__untar@,$am__untar,;t t
20844 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20845 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20846 s,@MAINT@,$MAINT,;t t
20847 s,@build@,$build,;t t
20848 s,@build_cpu@,$build_cpu,;t t
20849 s,@build_vendor@,$build_vendor,;t t
20850 s,@build_os@,$build_os,;t t
20851 s,@host@,$host,;t t
20852 s,@host_cpu@,$host_cpu,;t t
20853 s,@host_vendor@,$host_vendor,;t t
20854 s,@host_os@,$host_os,;t t
20855 s,@CC@,$CC,;t t
20856 s,@CFLAGS@,$CFLAGS,;t t
20857 s,@LDFLAGS@,$LDFLAGS,;t t
20858 s,@CPPFLAGS@,$CPPFLAGS,;t t
20859 s,@ac_ct_CC@,$ac_ct_CC,;t t
20860 s,@EXEEXT@,$EXEEXT,;t t
20861 s,@OBJEXT@,$OBJEXT,;t t
20862 s,@DEPDIR@,$DEPDIR,;t t
20863 s,@am__include@,$am__include,;t t
20864 s,@am__quote@,$am__quote,;t t
20865 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20866 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20867 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20868 s,@CCDEPMODE@,$CCDEPMODE,;t t
20869 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20870 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20871 s,@EGREP@,$EGREP,;t t
20872 s,@LN_S@,$LN_S,;t t
20873 s,@ECHO@,$ECHO,;t t
20874 s,@AR@,$AR,;t t
20875 s,@ac_ct_AR@,$ac_ct_AR,;t t
20876 s,@RANLIB@,$RANLIB,;t t
20877 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20878 s,@CPP@,$CPP,;t t
20879 s,@CXX@,$CXX,;t t
20880 s,@CXXFLAGS@,$CXXFLAGS,;t t
20881 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20882 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20883 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20884 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20885 s,@CXXCPP@,$CXXCPP,;t t
20886 s,@F77@,$F77,;t t
20887 s,@FFLAGS@,$FFLAGS,;t t
20888 s,@ac_ct_F77@,$ac_ct_F77,;t t
20889 s,@LIBTOOL@,$LIBTOOL,;t t
20890 s,@TYPE_INT@,$TYPE_INT,;t t
20891 s,@TYPE_FLOAT@,$TYPE_FLOAT,;t t
20892 s,@ENABLE_IOSTREAM@,$ENABLE_IOSTREAM,;t t
20893 s,@ENABLE_STRING@,$ENABLE_STRING,;t t
20894 s,@ISO_STDLIB@,$ISO_STDLIB,;t t
20895 s,@WITH_MATH@,$WITH_MATH,;t t
20896 s,@LIBOBJS@,$LIBOBJS,;t t
20897 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20898 CEOF
20899
20900 _ACEOF
20901
20902   cat >>$CONFIG_STATUS <<\_ACEOF
20903   # Split the substitutions into bite-sized pieces for seds with
20904   # small command number limits, like on Digital OSF/1 and HP-UX.
20905   ac_max_sed_lines=48
20906   ac_sed_frag=1 # Number of current file.
20907   ac_beg=1 # First line for current file.
20908   ac_end=$ac_max_sed_lines # Line after last line for current file.
20909   ac_more_lines=:
20910   ac_sed_cmds=
20911   while $ac_more_lines; do
20912     if test $ac_beg -gt 1; then
20913       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20914     else
20915       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20916     fi
20917     if test ! -s $tmp/subs.frag; then
20918       ac_more_lines=false
20919     else
20920       # The purpose of the label and of the branching condition is to
20921       # speed up the sed processing (if there are no `@' at all, there
20922       # is no need to browse any of the substitutions).
20923       # These are the two extra sed commands mentioned above.
20924       (echo ':t
20925   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20926       if test -z "$ac_sed_cmds"; then
20927         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20928       else
20929         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20930       fi
20931       ac_sed_frag=`expr $ac_sed_frag + 1`
20932       ac_beg=$ac_end
20933       ac_end=`expr $ac_end + $ac_max_sed_lines`
20934     fi
20935   done
20936   if test -z "$ac_sed_cmds"; then
20937     ac_sed_cmds=cat
20938   fi
20939 fi # test -n "$CONFIG_FILES"
20940
20941 _ACEOF
20942 cat >>$CONFIG_STATUS <<\_ACEOF
20943 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20944   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20945   case $ac_file in
20946   - | *:- | *:-:* ) # input from stdin
20947         cat >$tmp/stdin
20948         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20949         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20950   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20951         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20952   * )   ac_file_in=$ac_file.in ;;
20953   esac
20954
20955   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20956   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20958          X"$ac_file" : 'X\(//\)[^/]' \| \
20959          X"$ac_file" : 'X\(//\)$' \| \
20960          X"$ac_file" : 'X\(/\)' \| \
20961          .     : '\(.\)' 2>/dev/null ||
20962 echo X"$ac_file" |
20963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20965           /^X\(\/\/\)$/{ s//\1/; q; }
20966           /^X\(\/\).*/{ s//\1/; q; }
20967           s/.*/./; q'`
20968   { if $as_mkdir_p; then
20969     mkdir -p "$ac_dir"
20970   else
20971     as_dir="$ac_dir"
20972     as_dirs=
20973     while test ! -d "$as_dir"; do
20974       as_dirs="$as_dir $as_dirs"
20975       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977          X"$as_dir" : 'X\(//\)[^/]' \| \
20978          X"$as_dir" : 'X\(//\)$' \| \
20979          X"$as_dir" : 'X\(/\)' \| \
20980          .     : '\(.\)' 2>/dev/null ||
20981 echo X"$as_dir" |
20982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20984           /^X\(\/\/\)$/{ s//\1/; q; }
20985           /^X\(\/\).*/{ s//\1/; q; }
20986           s/.*/./; q'`
20987     done
20988     test ! -n "$as_dirs" || mkdir $as_dirs
20989   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20991    { (exit 1); exit 1; }; }; }
20992
20993   ac_builddir=.
20994
20995 if test "$ac_dir" != .; then
20996   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20997   # A "../" for each directory in $ac_dir_suffix.
20998   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20999 else
21000   ac_dir_suffix= ac_top_builddir=
21001 fi
21002
21003 case $srcdir in
21004   .)  # No --srcdir option.  We are building in place.
21005     ac_srcdir=.
21006     if test -z "$ac_top_builddir"; then
21007        ac_top_srcdir=.
21008     else
21009        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21010     fi ;;
21011   [\\/]* | ?:[\\/]* )  # Absolute path.
21012     ac_srcdir=$srcdir$ac_dir_suffix;
21013     ac_top_srcdir=$srcdir ;;
21014   *) # Relative path.
21015     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21016     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21017 esac
21018
21019 # Do not use `cd foo && pwd` to compute absolute paths, because
21020 # the directories may not exist.
21021 case `pwd` in
21022 .) ac_abs_builddir="$ac_dir";;
21023 *)
21024   case "$ac_dir" in
21025   .) ac_abs_builddir=`pwd`;;
21026   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21027   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21028   esac;;
21029 esac
21030 case $ac_abs_builddir in
21031 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21032 *)
21033   case ${ac_top_builddir}. in
21034   .) ac_abs_top_builddir=$ac_abs_builddir;;
21035   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21036   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21037   esac;;
21038 esac
21039 case $ac_abs_builddir in
21040 .) ac_abs_srcdir=$ac_srcdir;;
21041 *)
21042   case $ac_srcdir in
21043   .) ac_abs_srcdir=$ac_abs_builddir;;
21044   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21045   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21046   esac;;
21047 esac
21048 case $ac_abs_builddir in
21049 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21050 *)
21051   case $ac_top_srcdir in
21052   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21053   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21054   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21055   esac;;
21056 esac
21057
21058
21059   case $INSTALL in
21060   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21061   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21062   esac
21063
21064   # Let's still pretend it is `configure' which instantiates (i.e., don't
21065   # use $as_me), people would be surprised to read:
21066   #    /* config.h.  Generated by config.status.  */
21067   if test x"$ac_file" = x-; then
21068     configure_input=
21069   else
21070     configure_input="$ac_file.  "
21071   fi
21072   configure_input=$configure_input"Generated from `echo $ac_file_in |
21073                                      sed 's,.*/,,'` by configure."
21074
21075   # First look for the input files in the build tree, otherwise in the
21076   # src tree.
21077   ac_file_inputs=`IFS=:
21078     for f in $ac_file_in; do
21079       case $f in
21080       -) echo $tmp/stdin ;;
21081       [\\/$]*)
21082          # Absolute (can't be DOS-style, as IFS=:)
21083          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21084 echo "$as_me: error: cannot find input file: $f" >&2;}
21085    { (exit 1); exit 1; }; }
21086          echo "$f";;
21087       *) # Relative
21088          if test -f "$f"; then
21089            # Build tree
21090            echo "$f"
21091          elif test -f "$srcdir/$f"; then
21092            # Source tree
21093            echo "$srcdir/$f"
21094          else
21095            # /dev/null tree
21096            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21097 echo "$as_me: error: cannot find input file: $f" >&2;}
21098    { (exit 1); exit 1; }; }
21099          fi;;
21100       esac
21101     done` || { (exit 1); exit 1; }
21102
21103   if test x"$ac_file" != x-; then
21104     { echo "$as_me:$LINENO: creating $ac_file" >&5
21105 echo "$as_me: creating $ac_file" >&6;}
21106     rm -f "$ac_file"
21107   fi
21108 _ACEOF
21109 cat >>$CONFIG_STATUS <<_ACEOF
21110   sed "$ac_vpsub
21111 $extrasub
21112 _ACEOF
21113 cat >>$CONFIG_STATUS <<\_ACEOF
21114 :t
21115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21116 s,@configure_input@,$configure_input,;t t
21117 s,@srcdir@,$ac_srcdir,;t t
21118 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21119 s,@top_srcdir@,$ac_top_srcdir,;t t
21120 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21121 s,@builddir@,$ac_builddir,;t t
21122 s,@abs_builddir@,$ac_abs_builddir,;t t
21123 s,@top_builddir@,$ac_top_builddir,;t t
21124 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21125 s,@INSTALL@,$ac_INSTALL,;t t
21126 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21127   rm -f $tmp/stdin
21128   if test x"$ac_file" != x-; then
21129     mv $tmp/out $ac_file
21130   else
21131     cat $tmp/out
21132     rm -f $tmp/out
21133   fi
21134
21135 done
21136 _ACEOF
21137 cat >>$CONFIG_STATUS <<\_ACEOF
21138
21139 #
21140 # CONFIG_COMMANDS section.
21141 #
21142 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21143   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21144   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21145   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21146 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21147          X"$ac_dest" : 'X\(//\)[^/]' \| \
21148          X"$ac_dest" : 'X\(//\)$' \| \
21149          X"$ac_dest" : 'X\(/\)' \| \
21150          .     : '\(.\)' 2>/dev/null ||
21151 echo X"$ac_dest" |
21152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21153           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21154           /^X\(\/\/\)$/{ s//\1/; q; }
21155           /^X\(\/\).*/{ s//\1/; q; }
21156           s/.*/./; q'`
21157   { if $as_mkdir_p; then
21158     mkdir -p "$ac_dir"
21159   else
21160     as_dir="$ac_dir"
21161     as_dirs=
21162     while test ! -d "$as_dir"; do
21163       as_dirs="$as_dir $as_dirs"
21164       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21166          X"$as_dir" : 'X\(//\)[^/]' \| \
21167          X"$as_dir" : 'X\(//\)$' \| \
21168          X"$as_dir" : 'X\(/\)' \| \
21169          .     : '\(.\)' 2>/dev/null ||
21170 echo X"$as_dir" |
21171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21172           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21173           /^X\(\/\/\)$/{ s//\1/; q; }
21174           /^X\(\/\).*/{ s//\1/; q; }
21175           s/.*/./; q'`
21176     done
21177     test ! -n "$as_dirs" || mkdir $as_dirs
21178   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21179 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21180    { (exit 1); exit 1; }; }; }
21181
21182   ac_builddir=.
21183
21184 if test "$ac_dir" != .; then
21185   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21186   # A "../" for each directory in $ac_dir_suffix.
21187   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21188 else
21189   ac_dir_suffix= ac_top_builddir=
21190 fi
21191
21192 case $srcdir in
21193   .)  # No --srcdir option.  We are building in place.
21194     ac_srcdir=.
21195     if test -z "$ac_top_builddir"; then
21196        ac_top_srcdir=.
21197     else
21198        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21199     fi ;;
21200   [\\/]* | ?:[\\/]* )  # Absolute path.
21201     ac_srcdir=$srcdir$ac_dir_suffix;
21202     ac_top_srcdir=$srcdir ;;
21203   *) # Relative path.
21204     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21205     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21206 esac
21207
21208 # Do not use `cd foo && pwd` to compute absolute paths, because
21209 # the directories may not exist.
21210 case `pwd` in
21211 .) ac_abs_builddir="$ac_dir";;
21212 *)
21213   case "$ac_dir" in
21214   .) ac_abs_builddir=`pwd`;;
21215   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21216   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21217   esac;;
21218 esac
21219 case $ac_abs_builddir in
21220 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21221 *)
21222   case ${ac_top_builddir}. in
21223   .) ac_abs_top_builddir=$ac_abs_builddir;;
21224   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21225   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21226   esac;;
21227 esac
21228 case $ac_abs_builddir in
21229 .) ac_abs_srcdir=$ac_srcdir;;
21230 *)
21231   case $ac_srcdir in
21232   .) ac_abs_srcdir=$ac_abs_builddir;;
21233   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21234   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21235   esac;;
21236 esac
21237 case $ac_abs_builddir in
21238 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21239 *)
21240   case $ac_top_srcdir in
21241   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21242   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21243   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21244   esac;;
21245 esac
21246
21247
21248   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21249 echo "$as_me: executing $ac_dest commands" >&6;}
21250   case $ac_dest in
21251     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21252   # Strip MF so we end up with the name of the file.
21253   mf=`echo "$mf" | sed -e 's/:.*$//'`
21254   # Check whether this is an Automake generated Makefile or not.
21255   # We used to match only the files named `Makefile.in', but
21256   # some people rename them; so instead we look at the file content.
21257   # Grep'ing the first line is not enough: some people post-process
21258   # each Makefile.in and add a new line on top of each file to say so.
21259   # So let's grep whole file.
21260   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21261     dirpart=`(dirname "$mf") 2>/dev/null ||
21262 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21263          X"$mf" : 'X\(//\)[^/]' \| \
21264          X"$mf" : 'X\(//\)$' \| \
21265          X"$mf" : 'X\(/\)' \| \
21266          .     : '\(.\)' 2>/dev/null ||
21267 echo X"$mf" |
21268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21270           /^X\(\/\/\)$/{ s//\1/; q; }
21271           /^X\(\/\).*/{ s//\1/; q; }
21272           s/.*/./; q'`
21273   else
21274     continue
21275   fi
21276   # Extract the definition of DEPDIR, am__include, and am__quote
21277   # from the Makefile without running `make'.
21278   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21279   test -z "$DEPDIR" && continue
21280   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21281   test -z "am__include" && continue
21282   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21283   # When using ansi2knr, U may be empty or an underscore; expand it
21284   U=`sed -n 's/^U = //p' < "$mf"`
21285   # Find all dependency output files, they are included files with
21286   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21287   # simplest approach to changing $(DEPDIR) to its actual value in the
21288   # expansion.
21289   for file in `sed -n "
21290     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21291        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21292     # Make sure the directory exists.
21293     test -f "$dirpart/$file" && continue
21294     fdir=`(dirname "$file") 2>/dev/null ||
21295 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21296          X"$file" : 'X\(//\)[^/]' \| \
21297          X"$file" : 'X\(//\)$' \| \
21298          X"$file" : 'X\(/\)' \| \
21299          .     : '\(.\)' 2>/dev/null ||
21300 echo X"$file" |
21301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21302           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21303           /^X\(\/\/\)$/{ s//\1/; q; }
21304           /^X\(\/\).*/{ s//\1/; q; }
21305           s/.*/./; q'`
21306     { if $as_mkdir_p; then
21307     mkdir -p $dirpart/$fdir
21308   else
21309     as_dir=$dirpart/$fdir
21310     as_dirs=
21311     while test ! -d "$as_dir"; do
21312       as_dirs="$as_dir $as_dirs"
21313       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21315          X"$as_dir" : 'X\(//\)[^/]' \| \
21316          X"$as_dir" : 'X\(//\)$' \| \
21317          X"$as_dir" : 'X\(/\)' \| \
21318          .     : '\(.\)' 2>/dev/null ||
21319 echo X"$as_dir" |
21320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21322           /^X\(\/\/\)$/{ s//\1/; q; }
21323           /^X\(\/\).*/{ s//\1/; q; }
21324           s/.*/./; q'`
21325     done
21326     test ! -n "$as_dirs" || mkdir $as_dirs
21327   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21328 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21329    { (exit 1); exit 1; }; }; }
21330
21331     # echo "creating $dirpart/$file"
21332     echo '# dummy' > "$dirpart/$file"
21333   done
21334 done
21335  ;;
21336   esac
21337 done
21338 _ACEOF
21339
21340 cat >>$CONFIG_STATUS <<\_ACEOF
21341
21342 { (exit 0); exit 0; }
21343 _ACEOF
21344 chmod +x $CONFIG_STATUS
21345 ac_clean_files=$ac_clean_files_save
21346
21347
21348 # configure is writing to config.log, and then calls config.status.
21349 # config.status does its own redirection, appending to config.log.
21350 # Unfortunately, on DOS this fails, as config.log is still kept open
21351 # by configure, so config.status won't be able to write to it; its
21352 # output is simply discarded.  So we exec the FD to /dev/null,
21353 # effectively closing config.log, so it can be properly (re)opened and
21354 # appended to by config.status.  When coming back to configure, we
21355 # need to make the FD available again.
21356 if test "$no_create" != yes; then
21357   ac_cs_success=:
21358   ac_config_status_args=
21359   test "$silent" = yes &&
21360     ac_config_status_args="$ac_config_status_args --quiet"
21361   exec 5>/dev/null
21362   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21363   exec 5>>config.log
21364   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21365   # would make configure fail if this is the last instruction.
21366   $ac_cs_success || { (exit 1); exit 1; }
21367 fi
21368