OSDN Git Service

initial import
[chasen-legacy/chasen.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
4 @%:@ 
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="README"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTVERSION ICONV_CFLAGS LIB@&t@OBJS RCPATH LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --disable-dependency-tracking  speeds up one-time build
1029   --enable-dependency-tracking   do not reject slow dependency extractors
1030   --enable-shared@<:@=PKGS@:>@ 
1031                           build shared libraries @<:@default=yes@:>@
1032   --enable-static@<:@=PKGS@:>@ 
1033                           build static libraries @<:@default=yes@:>@
1034   --enable-fast-install@<:@=PKGS@:>@ 
1035                           optimize for fast installation @<:@default=yes@:>@
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1042   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1043                           both@:>@
1044   --with-tags@<:@=TAGS@:>@ 
1045                           include additional configurations @<:@automatic@:>@
1046   --with-darts=DIR      specify a path for the header file of Darts
1047   --with-libiconv=DIR   use libiconv in DIR
1048
1049 Some influential environment variables:
1050   CC          C compiler command
1051   CFLAGS      C compiler flags
1052   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053               nonstandard directory <lib dir>
1054   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055               headers in a nonstandard directory <include dir>
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   CPP         C preprocessor
1059   CXXCPP      C++ preprocessor
1060   F77         Fortran 77 compiler command
1061   FFLAGS      Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070   # If there are subdirs, report their specific --help.
1071   ac_popdir=`pwd`
1072   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073     test -d $ac_dir || continue
1074     ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078   # A "../" for each directory in $ac_dir_suffix.
1079   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081   ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085   .)  # No --srcdir option.  We are building in place.
1086     ac_srcdir=.
1087     if test -z "$ac_top_builddir"; then
1088        ac_top_srcdir=.
1089     else
1090        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091     fi ;;
1092   [\\/]* | ?:[\\/]* )  # Absolute path.
1093     ac_srcdir=$srcdir$ac_dir_suffix;
1094     ac_top_srcdir=$srcdir ;;
1095   *) # Relative path.
1096     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105   case "$ac_dir" in
1106   .) ac_abs_builddir=`pwd`;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114   case ${ac_top_builddir}. in
1115   .) ac_abs_top_builddir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123   case $ac_srcdir in
1124   .) ac_abs_srcdir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132   case $ac_top_srcdir in
1133   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136   esac;;
1137 esac
1138
1139     cd $ac_dir
1140     # Check for guested configure; otherwise get Cygnus style configure.
1141     if test -f $ac_srcdir/configure.gnu; then
1142       echo
1143       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144     elif test -f $ac_srcdir/configure; then
1145       echo
1146       $SHELL $ac_srcdir/configure  --help=recursive
1147     elif test -f $ac_srcdir/configure.ac ||
1148            test -f $ac_srcdir/configure.in; then
1149       echo
1150       $ac_configure --help
1151     else
1152       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153     fi
1154     cd $ac_popdir
1155   done
1156 fi
1157
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160   cat <<\_ACEOF
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176   $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 @%:@@%:@ --------- @%:@@%:@
1182 @%:@@%:@ Platform. @%:@@%:@
1183 @%:@@%:@ --------- @%:@@%:@
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 @%:@@%:@ ----------- @%:@@%:@
1218 @%:@@%:@ Core tests. @%:@@%:@
1219 @%:@@%:@ ----------- @%:@@%:@
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1284
1285     cat <<\_ASBOX
1286 @%:@@%:@ ---------------- @%:@@%:@
1287 @%:@@%:@ Cache variables. @%:@@%:@
1288 @%:@@%:@ ---------------- @%:@@%:@
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1292 {
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 }
1306     echo
1307
1308     cat <<\_ASBOX
1309 @%:@@%:@ ----------------- @%:@@%:@
1310 @%:@@%:@ Output variables. @%:@@%:@
1311 @%:@@%:@ ----------------- @%:@@%:@
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1320
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 @%:@@%:@ ------------- @%:@@%:@
1324 @%:@@%:@ Output files. @%:@@%:@
1325 @%:@@%:@ ------------- @%:@@%:@
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1335
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 @%:@@%:@ ----------- @%:@@%:@
1339 @%:@@%:@ confdefs.h. @%:@@%:@
1340 @%:@@%:@ ----------- @%:@@%:@
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502 am__api_version="1.8"
1503 ac_aux_dir=
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505   if test -f $ac_dir/install-sh; then
1506     ac_aux_dir=$ac_dir
1507     ac_install_sh="$ac_aux_dir/install-sh -c"
1508     break
1509   elif test -f $ac_dir/install.sh; then
1510     ac_aux_dir=$ac_dir
1511     ac_install_sh="$ac_aux_dir/install.sh -c"
1512     break
1513   elif test -f $ac_dir/shtool; then
1514     ac_aux_dir=$ac_dir
1515     ac_install_sh="$ac_aux_dir/shtool install -c"
1516     break
1517   fi
1518 done
1519 if test -z "$ac_aux_dir"; then
1520   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522    { (exit 1); exit 1; }; }
1523 fi
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527
1528 # Find a good install program.  We prefer a C program (faster),
1529 # so one script is as good as another.  But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1534 # AIX /bin/install
1535 # AmigaOS /C/install, which installs bootblocks on floppy discs
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # OS/2's system install, which has a completely different semantic
1540 # ./install, which can be erroneously created by make from ./install.sh.
1541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1543 if test -z "$INSTALL"; then
1544 if test "${ac_cv_path_install+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   # Account for people who put trailing slashes in PATH elements.
1553 case $as_dir/ in
1554   ./ | .// | /cC/* | \
1555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1556   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557   /usr/ucb/* ) ;;
1558   *)
1559     # OSF1 and SCO ODT 3.0 have their own names for install.
1560     # Don't use installbsd from OSF since it installs stuff as root
1561     # by default.
1562     for ac_prog in ginstall scoinst install; do
1563       for ac_exec_ext in '' $ac_executable_extensions; do
1564         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1565           if test $ac_prog = install &&
1566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567             # AIX install.  It has an incompatible calling convention.
1568             :
1569           elif test $ac_prog = install &&
1570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571             # program-specific install script used by HP pwplus--don't use.
1572             :
1573           else
1574             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1575             break 3
1576           fi
1577         fi
1578       done
1579     done
1580     ;;
1581 esac
1582 done
1583
1584
1585 fi
1586   if test "${ac_cv_path_install+set}" = set; then
1587     INSTALL=$ac_cv_path_install
1588   else
1589     # As a last resort, use the slow shell script.  We don't cache a
1590     # path for INSTALL within a source directory, because that will
1591     # break other packages using the cache if that directory is
1592     # removed, or if the path is relative.
1593     INSTALL=$ac_install_sh
1594   fi
1595 fi
1596 echo "$as_me:$LINENO: result: $INSTALL" >&5
1597 echo "${ECHO_T}$INSTALL" >&6
1598
1599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1600 # It thinks the first close brace ends the variable substitution.
1601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602
1603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1604
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1606
1607 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1608 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 # Just in case
1610 sleep 1
1611 echo timestamp > conftest.file
1612 # Do `set' in a subshell so we don't clobber the current shell's
1613 # arguments.  Must try -L first in case configure is actually a
1614 # symlink; some systems play weird games with the mod time of symlinks
1615 # (eg FreeBSD returns the mod time of the symlink's containing
1616 # directory).
1617 if (
1618    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1619    if test "$*" = "X"; then
1620       # -L didn't work.
1621       set X `ls -t $srcdir/configure conftest.file`
1622    fi
1623    rm -f conftest.file
1624    if test "$*" != "X $srcdir/configure conftest.file" \
1625       && test "$*" != "X conftest.file $srcdir/configure"; then
1626
1627       # If neither matched, then we have a broken ls.  This can happen
1628       # if, for instance, CONFIG_SHELL is bash and it inherits a
1629       # broken ls alias from the environment.  This has actually
1630       # happened.  Such a system could not be considered "sane".
1631       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1632 alias in your environment" >&5
1633 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1634 alias in your environment" >&2;}
1635    { (exit 1); exit 1; }; }
1636    fi
1637
1638    test "$2" = conftest.file
1639    )
1640 then
1641    # Ok.
1642    :
1643 else
1644    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1645 Check your system clock" >&5
1646 echo "$as_me: error: newly created file is older than distributed files!
1647 Check your system clock" >&2;}
1648    { (exit 1); exit 1; }; }
1649 fi
1650 echo "$as_me:$LINENO: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652 test "$program_prefix" != NONE &&
1653   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $.  echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1661 _ACEOF
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663 rm conftest.sed
1664
1665 # expand $ac_aux_dir to an absolute path
1666 am_aux_dir=`cd $ac_aux_dir && pwd`
1667
1668 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1669 # Use eval to expand $SHELL
1670 if eval "$MISSING --run true"; then
1671   am_missing_run="$MISSING --run "
1672 else
1673   am_missing_run=
1674   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1675 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1676 fi
1677
1678 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1679   # Keeping the `.' argument allows $(mkdir_p) to be used without
1680   # argument.  Indeed, we sometimes output rules like
1681   #   $(mkdir_p) $(somedir)
1682   # where $(somedir) is conditionally defined.
1683   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1684   # expensive solution, as it forces Make to start a sub-shell.)
1685   mkdir_p='mkdir -p -- .'
1686 else
1687   # On NextStep and OpenStep, the `mkdir' command does not
1688   # recognize any option.  It will interpret all options as
1689   # directories to create, and then abort because `.' already
1690   # exists.
1691   for d in ./-p ./--version;
1692   do
1693     test -d $d && rmdir $d
1694   done
1695   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1696   if test -f "$ac_aux_dir/mkinstalldirs"; then
1697     mkdir_p='$(mkinstalldirs)'
1698   else
1699     mkdir_p='$(install_sh) -d'
1700   fi
1701 fi
1702
1703 for ac_prog in gawk mawk nawk awk
1704 do
1705   # Extract the first word of "$ac_prog", so it can be a program name with args.
1706 set dummy $ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_AWK+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   if test -n "$AWK"; then
1713   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   for ac_exec_ext in '' $ac_executable_extensions; do
1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722     ac_cv_prog_AWK="$ac_prog"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 fi
1730 fi
1731 AWK=$ac_cv_prog_AWK
1732 if test -n "$AWK"; then
1733   echo "$as_me:$LINENO: result: $AWK" >&5
1734 echo "${ECHO_T}$AWK" >&6
1735 else
1736   echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740   test -n "$AWK" && break
1741 done
1742
1743 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1744 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1746 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   cat >conftest.make <<\_ACEOF
1750 all:
1751         @echo 'ac_maketemp="$(MAKE)"'
1752 _ACEOF
1753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1754 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1755 if test -n "$ac_maketemp"; then
1756   eval ac_cv_prog_make_${ac_make}_set=yes
1757 else
1758   eval ac_cv_prog_make_${ac_make}_set=no
1759 fi
1760 rm -f conftest.make
1761 fi
1762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1763   echo "$as_me:$LINENO: result: yes" >&5
1764 echo "${ECHO_T}yes" >&6
1765   SET_MAKE=
1766 else
1767   echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769   SET_MAKE="MAKE=${MAKE-make}"
1770 fi
1771
1772 rm -rf .tst 2>/dev/null
1773 mkdir .tst 2>/dev/null
1774 if test -d .tst; then
1775   am__leading_dot=.
1776 else
1777   am__leading_dot=_
1778 fi
1779 rmdir .tst 2>/dev/null
1780
1781 # test to see if srcdir already configured
1782 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1783    test -f $srcdir/config.status; then
1784   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1785 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1786    { (exit 1); exit 1; }; }
1787 fi
1788
1789 # test whether we have cygpath
1790 if test -z "$CYGPATH_W"; then
1791   if (cygpath --version) >/dev/null 2>/dev/null; then
1792     CYGPATH_W='cygpath -w'
1793   else
1794     CYGPATH_W=echo
1795   fi
1796 fi
1797
1798
1799 # Define the identity of the package.
1800  PACKAGE=chasen
1801  VERSION=2.4.0-preview1
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 @%:@define PACKAGE "$PACKAGE"
1806 _ACEOF
1807
1808  
1809 cat >>confdefs.h <<_ACEOF
1810 @%:@define VERSION "$VERSION"
1811 _ACEOF
1812
1813 # Some tools Automake needs.
1814
1815 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1816
1817
1818 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1819
1820
1821 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1822
1823
1824 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1825
1826
1827 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1828
1829
1830 AMTAR=${AMTAR-"${am_missing_run}tar"}
1831
1832 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1833
1834 # Installed binaries are usually stripped using `strip' when the user
1835 # run `make install-strip'.  However `strip' might not be the right
1836 # tool to use in cross-compilation environments, therefore Automake
1837 # will honor the `STRIP' environment variable to overrule this program.
1838 if test "$cross_compiling" != no; then
1839   if test -n "$ac_tool_prefix"; then
1840   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}strip; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_STRIP+set}" = set; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   if test -n "$STRIP"; then
1848   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853   IFS=$as_save_IFS
1854   test -z "$as_dir" && as_dir=.
1855   for ac_exec_ext in '' $ac_executable_extensions; do
1856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859     break 2
1860   fi
1861 done
1862 done
1863
1864 fi
1865 fi
1866 STRIP=$ac_cv_prog_STRIP
1867 if test -n "$STRIP"; then
1868   echo "$as_me:$LINENO: result: $STRIP" >&5
1869 echo "${ECHO_T}$STRIP" >&6
1870 else
1871   echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875 fi
1876 if test -z "$ac_cv_prog_STRIP"; then
1877   ac_ct_STRIP=$STRIP
1878   # Extract the first word of "strip", so it can be a program name with args.
1879 set dummy strip; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$ac_ct_STRIP"; then
1886   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_ac_ct_STRIP="strip"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1903 fi
1904 fi
1905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1906 if test -n "$ac_ct_STRIP"; then
1907   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1908 echo "${ECHO_T}$ac_ct_STRIP" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914   STRIP=$ac_ct_STRIP
1915 else
1916   STRIP="$ac_cv_prog_STRIP"
1917 fi
1918
1919 fi
1920 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1921
1922 # We need awk for the "check" target.  The system "awk" is bad on
1923 # some platforms.
1924
1925
1926
1927           ac_config_headers="$ac_config_headers config.h"
1928
1929 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1930 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1931     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1932 if test "${enable_maintainer_mode+set}" = set; then
1933   enableval="$enable_maintainer_mode"
1934   USE_MAINTAINER_MODE=$enableval
1935 else
1936   USE_MAINTAINER_MODE=no
1937 fi; 
1938   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1939 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1940    
1941
1942 if test $USE_MAINTAINER_MODE = yes; then
1943   MAINTAINER_MODE_TRUE=
1944   MAINTAINER_MODE_FALSE='#'
1945 else
1946   MAINTAINER_MODE_TRUE='#'
1947   MAINTAINER_MODE_FALSE=
1948 fi
1949
1950   MAINT=$MAINTAINER_MODE_TRUE
1951   
1952
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$CC"; then
1968   ac_cv_prog_CC="$CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988   echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995 fi
1996 if test -z "$ac_cv_prog_CC"; then
1997   ac_ct_CC=$CC
1998   # Extract the first word of "gcc", so it can be a program name with args.
1999 set dummy gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$ac_ct_CC"; then
2006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     ac_cv_prog_ac_ct_CC="gcc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 fi
2023 fi
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6
2028 else
2029   echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2031 fi
2032
2033   CC=$ac_ct_CC
2034 else
2035   CC="$ac_cv_prog_CC"
2036 fi
2037
2038 if test -z "$CC"; then
2039   if test -n "$ac_tool_prefix"; then
2040   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}cc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$CC"; then
2048   ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_CC="${ac_tool_prefix}cc"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068   echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075 fi
2076 if test -z "$ac_cv_prog_CC"; then
2077   ac_ct_CC=$CC
2078   # Extract the first word of "cc", so it can be a program name with args.
2079 set dummy cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$ac_ct_CC"; then
2086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_ac_ct_CC="cc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102 fi
2103 fi
2104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105 if test -n "$ac_ct_CC"; then
2106   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2107 echo "${ECHO_T}$ac_ct_CC" >&6
2108 else
2109   echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2111 fi
2112
2113   CC=$ac_ct_CC
2114 else
2115   CC="$ac_cv_prog_CC"
2116 fi
2117
2118 fi
2119 if test -z "$CC"; then
2120   # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   if test -n "$CC"; then
2128   ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130   ac_prog_rejected=no
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_exec_ext in '' $ac_executable_extensions; do
2137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2139        ac_prog_rejected=yes
2140        continue
2141      fi
2142     ac_cv_prog_CC="cc"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148
2149 if test $ac_prog_rejected = yes; then
2150   # We found a bogon in the path, so make sure we never use it.
2151   set dummy $ac_cv_prog_CC
2152   shift
2153   if test $@%:@ != 0; then
2154     # We chose a different compiler from the bogus one.
2155     # However, it has the same basename, so the bogon will be chosen
2156     # first if we set CC to just the basename; use the full file name.
2157     shift
2158     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2159   fi
2160 fi
2161 fi
2162 fi
2163 CC=$ac_cv_prog_CC
2164 if test -n "$CC"; then
2165   echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6
2167 else
2168   echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172 fi
2173 if test -z "$CC"; then
2174   if test -n "$ac_tool_prefix"; then
2175   for ac_prog in cl
2176   do
2177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test -n "$CC"; then
2185   ac_cv_prog_CC="$CC" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190   IFS=$as_save_IFS
2191   test -z "$as_dir" && as_dir=.
2192   for ac_exec_ext in '' $ac_executable_extensions; do
2193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6
2207 else
2208   echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2210 fi
2211
2212     test -n "$CC" && break
2213   done
2214 fi
2215 if test -z "$CC"; then
2216   ac_ct_CC=$CC
2217   for ac_prog in cl
2218 do
2219   # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test -n "$ac_ct_CC"; then
2227   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236     ac_cv_prog_ac_ct_CC="$ac_prog"
2237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238     break 2
2239   fi
2240 done
2241 done
2242
2243 fi
2244 fi
2245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246 if test -n "$ac_ct_CC"; then
2247   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248 echo "${ECHO_T}$ac_ct_CC" >&6
2249 else
2250   echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2253
2254   test -n "$ac_ct_CC" && break
2255 done
2256
2257   CC=$ac_ct_CC
2258 fi
2259
2260 fi
2261
2262
2263 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: no acceptable C compiler found in \$PATH
2266 See \`config.log' for more details." >&2;}
2267    { (exit 1); exit 1; }; }
2268
2269 # Provide some information about the compiler.
2270 echo "$as_me:$LINENO:" \
2271      "checking for C compiler version" >&5
2272 ac_compiler=`set X $ac_compile; echo $2`
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2274   (eval $ac_compiler --version </dev/null >&5) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2279   (eval $ac_compiler -v </dev/null >&5) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2284   (eval $ac_compiler -V </dev/null >&5) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288
2289 cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 ac_clean_files_save=$ac_clean_files
2305 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306 # Try to create an executable without -o first, disregard a.out.
2307 # It will help us diagnose broken compilers, and finding out an intuition
2308 # of exeext.
2309 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2313   (eval $ac_link_default) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; then
2317   # Find the output, starting from the most likely.  This scheme is
2318 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2319 # resort.
2320
2321 # Be careful to initialize this variable, since it used to be cached.
2322 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2323 ac_cv_exeext=
2324 # b.out is created by i960 compilers.
2325 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2326 do
2327   test -f "$ac_file" || continue
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2330         ;;
2331     conftest.$ac_ext )
2332         # This is the source file.
2333         ;;
2334     [ab].out )
2335         # We found the default executable, but exeext='' is most
2336         # certainly right.
2337         break;;
2338     *.* )
2339         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340         # FIXME: I believe we export ac_cv_exeext for Libtool,
2341         # but it would be cool to find out if it's true.  Does anybody
2342         # maintain Libtool? --akim.
2343         export ac_cv_exeext
2344         break;;
2345     * )
2346         break;;
2347   esac
2348 done
2349 else
2350   echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: C compiler cannot create executables
2356 See \`config.log' for more details." >&2;}
2357    { (exit 77); exit 77; }; }
2358 fi
2359
2360 ac_exeext=$ac_cv_exeext
2361 echo "$as_me:$LINENO: result: $ac_file" >&5
2362 echo "${ECHO_T}$ac_file" >&6
2363
2364 # Check the compiler produces executables we can run.  If not, either
2365 # the compiler is broken, or we cross compile.
2366 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2367 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2368 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2369 # If not cross compiling, check that we can run a simple program.
2370 if test "$cross_compiling" != yes; then
2371   if { ac_try='./$ac_file'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377     cross_compiling=no
2378   else
2379     if test "$cross_compiling" = maybe; then
2380         cross_compiling=yes
2381     else
2382         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&2;}
2388    { (exit 1); exit 1; }; }
2389     fi
2390   fi
2391 fi
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394
2395 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2396 ac_clean_files=$ac_clean_files_save
2397 # Check the compiler produces executables we can run.  If not, either
2398 # the compiler is broken, or we cross compile.
2399 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402 echo "${ECHO_T}$cross_compiling" >&6
2403
2404 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407   (eval $ac_link) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; then
2411   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2413 # work properly (i.e., refer to `conftest.exe'), while it won't with
2414 # `rm'.
2415 for ac_file in conftest.exe conftest conftest.*; do
2416   test -f "$ac_file" || continue
2417   case $ac_file in
2418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2419     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2420           export ac_cv_exeext
2421           break;;
2422     * ) break;;
2423   esac
2424 done
2425 else
2426   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430    { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest$ac_cv_exeext
2434 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6
2436
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442 if test "${ac_cv_objext+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462   (eval $ac_compile) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; then
2466   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2469     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2470        break;;
2471   esac
2472 done
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2480 See \`config.log' for more details." >&2;}
2481    { (exit 1); exit 1; }; }
2482 fi
2483
2484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2485 fi
2486 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2487 echo "${ECHO_T}$ac_cv_objext" >&6
2488 OBJEXT=$ac_cv_objext
2489 ac_objext=$OBJEXT
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505 #ifndef __GNUC__
2506        choke me
2507 #endif
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag"
2523                          || test ! -s conftest.err'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_compiler_gnu=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_compiler_gnu=no
2541 fi
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544
2545 fi
2546 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2548 GCC=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CFLAGS=${CFLAGS+set}
2550 ac_save_CFLAGS=$CFLAGS
2551 CFLAGS="-g"
2552 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cc_g+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 int
2565 main ()
2566 {
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"
2582                          || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_prog_cc_g=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 ac_cv_prog_cc_g=no
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_stdc=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641      char **p;
2642      int i;
2643 {
2644   return p[i];
2645 }
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2647 {
2648   char *s;
2649   va_list v;
2650   va_start (v,p);
2651   s = g (p, va_arg (v,int));
2652   va_end (v);
2653   return s;
2654 }
2655
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657    function prototypes and stuff, but not '\xHH' hex character constants.
2658    These don't provoke an error unfortunately, instead are silently treated
2659    as 'x'.  The following induces an error, until -std1 is added to get
2660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661    array size at least.  It's necessary to write '\x00'==0 to get something
2662    that's true only with -std1.  */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665 int test (int i, double x);
2666 struct s1 {int (*f) (int a);};
2667 struct s2 {int (*f) (double a);};
2668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2669 int argc;
2670 char **argv;
2671 int
2672 main ()
2673 {
2674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 # Don't try gcc -ansi; that turns off useful extensions and
2680 # breaks some systems' header files.
2681 # AIX                   -qlanglvl=ansi
2682 # Ultrix and OSF/1      -std1
2683 # HP-UX 10.20 and later -Ae
2684 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2685 # SVR4                  -Xc -D__EXTENSIONS__
2686 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 do
2688   CC="$ac_save_CC $ac_arg"
2689   rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691   (eval $ac_compile) 2>conftest.er1
2692   ac_status=$?
2693   grep -v '^ *+' conftest.er1 >conftest.err
2694   rm -f conftest.er1
2695   cat conftest.err >&5
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); } &&
2698          { ac_try='test -z "$ac_c_werror_flag"
2699                          || test ! -s conftest.err'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   ac_cv_prog_cc_stdc=$ac_arg
2712 break
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 fi
2718 rm -f conftest.err conftest.$ac_objext 
2719 done
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2721 CC=$ac_save_CC
2722
2723 fi
2724
2725 case "x$ac_cv_prog_cc_stdc" in
2726   x|xno)
2727     echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2729   *)
2730     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732     CC="$CC $ac_cv_prog_cc_stdc" ;;
2733 esac
2734
2735 # Some people use a C++ compiler to compile C.  Since we use `exit',
2736 # in C++ we need to declare it.  In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 @%:@ifndef __cplusplus
2741   choke me
2742 @%:@endif
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   for ac_declaration in \
2767    '' \
2768    'extern "C" void std::exit (int) throw (); using std::exit;' \
2769    'extern "C" void std::exit (int); using std::exit;' \
2770    'extern "C" void exit (int) throw ();' \
2771    'extern "C" void exit (int);' \
2772    'void exit (int);'
2773 do
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 $ac_declaration
2781 @%:@include <stdlib.h>
2782 int
2783 main ()
2784 {
2785 exit (42);
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"
2800                          || test ! -s conftest.err'
2801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; } &&
2806          { ac_try='test -s conftest.$ac_objext'
2807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   :
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 continue
2818 fi
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 $ac_declaration
2827 int
2828 main ()
2829 {
2830 exit (42);
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"
2845                          || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   break
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 fi
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 done
2865 rm -f conftest*
2866 if test -n "$ac_declaration"; then
2867   echo '#ifdef __cplusplus' >>confdefs.h
2868   echo $ac_declaration      >>confdefs.h
2869   echo '#endif'             >>confdefs.h
2870 fi
2871
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 fi
2877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 DEPDIR="${am__leading_dot}deps"
2884
2885           ac_config_commands="$ac_config_commands depfiles"
2886
2887
2888 am_make=${MAKE-make}
2889 cat > confinc << 'END'
2890 am__doit:
2891         @echo done
2892 .PHONY: am__doit
2893 END
2894 # If we don't find an include directive, just comment out the code.
2895 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2896 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2897 am__include="#"
2898 am__quote=
2899 _am_result=none
2900 # First try GNU make style include.
2901 echo "include confinc" > confmf
2902 # We grep out `Entering directory' and `Leaving directory'
2903 # messages which can occur if `w' ends up in MAKEFLAGS.
2904 # In particular we don't look at `^make:' because GNU make might
2905 # be invoked under some other name (usually "gmake"), in which
2906 # case it prints its new name instead of `make'.
2907 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2908    am__include=include
2909    am__quote=
2910    _am_result=GNU
2911 fi
2912 # Now try BSD make style include.
2913 if test "$am__include" = "#"; then
2914    echo '.include "confinc"' > confmf
2915    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2916       am__include=.include
2917       am__quote="\""
2918       _am_result=BSD
2919    fi
2920 fi
2921
2922
2923 echo "$as_me:$LINENO: result: $_am_result" >&5
2924 echo "${ECHO_T}$_am_result" >&6
2925 rm -f confinc confmf
2926
2927 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2928 if test "${enable_dependency_tracking+set}" = set; then
2929   enableval="$enable_dependency_tracking"
2930   
2931 fi; 
2932 if test "x$enable_dependency_tracking" != xno; then
2933   am_depcomp="$ac_aux_dir/depcomp"
2934   AMDEPBACKSLASH='\'
2935 fi
2936  
2937
2938 if test "x$enable_dependency_tracking" != xno; then
2939   AMDEP_TRUE=
2940   AMDEP_FALSE='#'
2941 else
2942   AMDEP_TRUE='#'
2943   AMDEP_FALSE=
2944 fi
2945
2946
2947
2948
2949 depcc="$CC"   am_compiler_list=
2950
2951 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2952 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2957   # We make a subdir and do the tests there.  Otherwise we can end up
2958   # making bogus files that we don't know about and never remove.  For
2959   # instance it was reported that on HP-UX the gcc test will end up
2960   # making a dummy file named `D' -- because `-MD' means `put the output
2961   # in D'.
2962   mkdir conftest.dir
2963   # Copy depcomp to subdir because otherwise we won't find it if we're
2964   # using a relative directory.
2965   cp "$am_depcomp" conftest.dir
2966   cd conftest.dir
2967   # We will build objects and dependencies in a subdirectory because
2968   # it helps to detect inapplicable dependency modes.  For instance
2969   # both Tru64's cc and ICC support -MD to output dependencies as a
2970   # side effect of compilation, but ICC will put the dependencies in
2971   # the current directory while Tru64 will put them in the object
2972   # directory.
2973   mkdir sub
2974
2975   am_cv_CC_dependencies_compiler_type=none
2976   if test "$am_compiler_list" = ""; then
2977      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2978   fi
2979   for depmode in $am_compiler_list; do
2980     # Setup a source with many dependencies, because some compilers
2981     # like to wrap large dependency lists on column 80 (with \), and
2982     # we should not choose a depcomp mode which is confused by this.
2983     #
2984     # We need to recreate these files for each test, as the compiler may
2985     # overwrite some of them when testing with obscure command lines.
2986     # This happens at least with the AIX C compiler.
2987     : > sub/conftest.c
2988     for i in 1 2 3 4 5 6; do
2989       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2990       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2991       # Solaris 8's {/usr,}/bin/sh.
2992       touch sub/conftst$i.h
2993     done
2994     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995
2996     case $depmode in
2997     nosideeffect)
2998       # after this tag, mechanisms are not by side-effect, so they'll
2999       # only be used when explicitly requested
3000       if test "x$enable_dependency_tracking" = xyes; then
3001         continue
3002       else
3003         break
3004       fi
3005       ;;
3006     none) break ;;
3007     esac
3008     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3009     # mode.  It turns out that the SunPro C++ compiler does not properly
3010     # handle `-M -o', and we need to detect this.
3011     if depmode=$depmode \
3012        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3013        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3014        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3015          >/dev/null 2>conftest.err &&
3016        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3017        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3018        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3019       # icc doesn't choke on unknown options, it will just issue warnings
3020       # (even with -Werror).  So we grep stderr for any message
3021       # that says an option was ignored.
3022       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3023         am_cv_CC_dependencies_compiler_type=$depmode
3024         break
3025       fi
3026     fi
3027   done
3028
3029   cd ..
3030   rm -rf conftest.dir
3031 else
3032   am_cv_CC_dependencies_compiler_type=none
3033 fi
3034
3035 fi
3036 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3037 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3038 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3039
3040  
3041
3042 if 
3043   test "x$enable_dependency_tracking" != xno \
3044   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3045   am__fastdepCC_TRUE=
3046   am__fastdepCC_FALSE='#'
3047 else
3048   am__fastdepCC_TRUE='#'
3049   am__fastdepCC_FALSE=
3050 fi
3051
3052
3053 ac_ext=cc
3054 ac_cpp='$CXXCPP $CPPFLAGS'
3055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3058 if test -n "$ac_tool_prefix"; then
3059   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3060   do
3061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_CXX+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   if test -n "$CXX"; then
3069   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076   for ac_exec_ext in '' $ac_executable_extensions; do
3077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083 done
3084
3085 fi
3086 fi
3087 CXX=$ac_cv_prog_CXX
3088 if test -n "$CXX"; then
3089   echo "$as_me:$LINENO: result: $CXX" >&5
3090 echo "${ECHO_T}$CXX" >&6
3091 else
3092   echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096     test -n "$CXX" && break
3097   done
3098 fi
3099 if test -z "$CXX"; then
3100   ac_ct_CXX=$CXX
3101   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3102 do
3103   # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   if test -n "$ac_ct_CXX"; then
3111   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118   for ac_exec_ext in '' $ac_executable_extensions; do
3119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120     ac_cv_prog_ac_ct_CXX="$ac_prog"
3121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125 done
3126
3127 fi
3128 fi
3129 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3130 if test -n "$ac_ct_CXX"; then
3131   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3132 echo "${ECHO_T}$ac_ct_CXX" >&6
3133 else
3134   echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136 fi
3137
3138   test -n "$ac_ct_CXX" && break
3139 done
3140 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3141
3142   CXX=$ac_ct_CXX
3143 fi
3144
3145
3146 # Provide some information about the compiler.
3147 echo "$as_me:$LINENO:" \
3148      "checking for C++ compiler version" >&5
3149 ac_compiler=`set X $ac_compile; echo $2`
3150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3151   (eval $ac_compiler --version </dev/null >&5) 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }
3155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3156   (eval $ac_compiler -v </dev/null >&5) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }
3160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3161   (eval $ac_compiler -V </dev/null >&5) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }
3165
3166 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3168 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181 #ifndef __GNUC__
3182        choke me
3183 #endif
3184
3185   ;
3186   return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191   (eval $ac_compile) 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } &&
3198          { ac_try='test -z "$ac_cxx_werror_flag"
3199                          || test ! -s conftest.err'
3200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201   (eval $ac_try) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; } &&
3205          { ac_try='test -s conftest.$ac_objext'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   ac_compiler_gnu=yes
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 ac_compiler_gnu=no
3217 fi
3218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3220
3221 fi
3222 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3223 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3224 GXX=`test $ac_compiler_gnu = yes && echo yes`
3225 ac_test_CXXFLAGS=${CXXFLAGS+set}
3226 ac_save_CXXFLAGS=$CXXFLAGS
3227 CXXFLAGS="-g"
3228 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3229 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3230 if test "${ac_cv_prog_cxx_g+set}" = set; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250   (eval $ac_compile) 2>conftest.er1
3251   ac_status=$?
3252   grep -v '^ *+' conftest.er1 >conftest.err
3253   rm -f conftest.er1
3254   cat conftest.err >&5
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } &&
3257          { ac_try='test -z "$ac_cxx_werror_flag"
3258                          || test ! -s conftest.err'
3259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; } &&
3264          { ac_try='test -s conftest.$ac_objext'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; }; then
3270   ac_cv_prog_cxx_g=yes
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_cv_prog_cxx_g=no
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282   CXXFLAGS=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284   if test "$GXX" = yes; then
3285     CXXFLAGS="-g -O2"
3286   else
3287     CXXFLAGS="-g"
3288   fi
3289 else
3290   if test "$GXX" = yes; then
3291     CXXFLAGS="-O2"
3292   else
3293     CXXFLAGS=
3294   fi
3295 fi
3296 for ac_declaration in \
3297    '' \
3298    'extern "C" void std::exit (int) throw (); using std::exit;' \
3299    'extern "C" void std::exit (int); using std::exit;' \
3300    'extern "C" void exit (int) throw ();' \
3301    'extern "C" void exit (int);' \
3302    'void exit (int);'
3303 do
3304   cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 $ac_declaration
3311 @%:@include <stdlib.h>
3312 int
3313 main ()
3314 {
3315 exit (42);
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322   (eval $ac_compile) 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } &&
3329          { ac_try='test -z "$ac_cxx_werror_flag"
3330                          || test ! -s conftest.err'
3331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; } &&
3336          { ac_try='test -s conftest.$ac_objext'
3337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338   (eval $ac_try) 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }; }; then
3342   :
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 continue
3348 fi
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350   cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h.  */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h.  */
3356 $ac_declaration
3357 int
3358 main ()
3359 {
3360 exit (42);
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367   (eval $ac_compile) 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } &&
3374          { ac_try='test -z "$ac_cxx_werror_flag"
3375                          || test ! -s conftest.err'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; } &&
3381          { ac_try='test -s conftest.$ac_objext'
3382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383   (eval $ac_try) 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; }; then
3387   break
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 fi
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394 done
3395 rm -f conftest*
3396 if test -n "$ac_declaration"; then
3397   echo '#ifdef __cplusplus' >>confdefs.h
3398   echo $ac_declaration      >>confdefs.h
3399   echo '#endif'             >>confdefs.h
3400 fi
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407
3408 depcc="$CXX"  am_compiler_list=
3409
3410 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3412 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416   # We make a subdir and do the tests there.  Otherwise we can end up
3417   # making bogus files that we don't know about and never remove.  For
3418   # instance it was reported that on HP-UX the gcc test will end up
3419   # making a dummy file named `D' -- because `-MD' means `put the output
3420   # in D'.
3421   mkdir conftest.dir
3422   # Copy depcomp to subdir because otherwise we won't find it if we're
3423   # using a relative directory.
3424   cp "$am_depcomp" conftest.dir
3425   cd conftest.dir
3426   # We will build objects and dependencies in a subdirectory because
3427   # it helps to detect inapplicable dependency modes.  For instance
3428   # both Tru64's cc and ICC support -MD to output dependencies as a
3429   # side effect of compilation, but ICC will put the dependencies in
3430   # the current directory while Tru64 will put them in the object
3431   # directory.
3432   mkdir sub
3433
3434   am_cv_CXX_dependencies_compiler_type=none
3435   if test "$am_compiler_list" = ""; then
3436      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3437   fi
3438   for depmode in $am_compiler_list; do
3439     # Setup a source with many dependencies, because some compilers
3440     # like to wrap large dependency lists on column 80 (with \), and
3441     # we should not choose a depcomp mode which is confused by this.
3442     #
3443     # We need to recreate these files for each test, as the compiler may
3444     # overwrite some of them when testing with obscure command lines.
3445     # This happens at least with the AIX C compiler.
3446     : > sub/conftest.c
3447     for i in 1 2 3 4 5 6; do
3448       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450       # Solaris 8's {/usr,}/bin/sh.
3451       touch sub/conftst$i.h
3452     done
3453     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455     case $depmode in
3456     nosideeffect)
3457       # after this tag, mechanisms are not by side-effect, so they'll
3458       # only be used when explicitly requested
3459       if test "x$enable_dependency_tracking" = xyes; then
3460         continue
3461       else
3462         break
3463       fi
3464       ;;
3465     none) break ;;
3466     esac
3467     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468     # mode.  It turns out that the SunPro C++ compiler does not properly
3469     # handle `-M -o', and we need to detect this.
3470     if depmode=$depmode \
3471        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474          >/dev/null 2>conftest.err &&
3475        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3476        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3477        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3478       # icc doesn't choke on unknown options, it will just issue warnings
3479       # (even with -Werror).  So we grep stderr for any message
3480       # that says an option was ignored.
3481       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3482         am_cv_CXX_dependencies_compiler_type=$depmode
3483         break
3484       fi
3485     fi
3486   done
3487
3488   cd ..
3489   rm -rf conftest.dir
3490 else
3491   am_cv_CXX_dependencies_compiler_type=none
3492 fi
3493
3494 fi
3495 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3496 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3497 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3498
3499  
3500
3501 if 
3502   test "x$enable_dependency_tracking" != xno \
3503   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3504   am__fastdepCXX_TRUE=
3505   am__fastdepCXX_FALSE='#'
3506 else
3507   am__fastdepCXX_TRUE='#'
3508   am__fastdepCXX_FALSE=
3509 fi
3510
3511
3512 # Check whether --enable-shared or --disable-shared was given.
3513 if test "${enable_shared+set}" = set; then
3514   enableval="$enable_shared"
3515   p=${PACKAGE-default}
3516     case $enableval in
3517     yes) enable_shared=yes ;;
3518     no) enable_shared=no ;;
3519     *)
3520       enable_shared=no
3521       # Look at the argument we got.  We use all the common list separators.
3522       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3523       for pkg in $enableval; do
3524         IFS="$lt_save_ifs"
3525         if test "X$pkg" = "X$p"; then
3526           enable_shared=yes
3527         fi
3528       done
3529       IFS="$lt_save_ifs"
3530       ;;
3531     esac
3532 else
3533   enable_shared=yes
3534 fi; 
3535
3536 # Check whether --enable-static or --disable-static was given.
3537 if test "${enable_static+set}" = set; then
3538   enableval="$enable_static"
3539   p=${PACKAGE-default}
3540     case $enableval in
3541     yes) enable_static=yes ;;
3542     no) enable_static=no ;;
3543     *)
3544      enable_static=no
3545       # Look at the argument we got.  We use all the common list separators.
3546       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3547       for pkg in $enableval; do
3548         IFS="$lt_save_ifs"
3549         if test "X$pkg" = "X$p"; then
3550           enable_static=yes
3551         fi
3552       done
3553       IFS="$lt_save_ifs"
3554       ;;
3555     esac
3556 else
3557   enable_static=yes
3558 fi; 
3559
3560 # Check whether --enable-fast-install or --disable-fast-install was given.
3561 if test "${enable_fast_install+set}" = set; then
3562   enableval="$enable_fast_install"
3563   p=${PACKAGE-default}
3564     case $enableval in
3565     yes) enable_fast_install=yes ;;
3566     no) enable_fast_install=no ;;
3567     *)
3568       enable_fast_install=no
3569       # Look at the argument we got.  We use all the common list separators.
3570       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3571       for pkg in $enableval; do
3572         IFS="$lt_save_ifs"
3573         if test "X$pkg" = "X$p"; then
3574           enable_fast_install=yes
3575         fi
3576       done
3577       IFS="$lt_save_ifs"
3578       ;;
3579     esac
3580 else
3581   enable_fast_install=yes
3582 fi; 
3583
3584 # Make sure we can run config.sub.
3585 $ac_config_sub sun4 >/dev/null 2>&1 ||
3586   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3588    { (exit 1); exit 1; }; }
3589
3590 echo "$as_me:$LINENO: checking build system type" >&5
3591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3592 if test "${ac_cv_build+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   ac_cv_build_alias=$build_alias
3596 test -z "$ac_cv_build_alias" &&
3597   ac_cv_build_alias=`$ac_config_guess`
3598 test -z "$ac_cv_build_alias" &&
3599   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3601    { (exit 1); exit 1; }; }
3602 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3603   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3605    { (exit 1); exit 1; }; }
3606
3607 fi
3608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3609 echo "${ECHO_T}$ac_cv_build" >&6
3610 build=$ac_cv_build
3611 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3612 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3613 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3614
3615
3616 echo "$as_me:$LINENO: checking host system type" >&5
3617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3618 if test "${ac_cv_host+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   ac_cv_host_alias=$host_alias
3622 test -z "$ac_cv_host_alias" &&
3623   ac_cv_host_alias=$ac_cv_build_alias
3624 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3625   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3627    { (exit 1); exit 1; }; }
3628
3629 fi
3630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3631 echo "${ECHO_T}$ac_cv_host" >&6
3632 host=$ac_cv_host
3633 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3634 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3635 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3636
3637
3638 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3639 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3640 if test "${lt_cv_path_SED+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   # Loop through the user's path and test for sed and gsed.
3644 # Then use that list of sed's as ones to test for truncation.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650   for lt_ac_prog in sed gsed; do
3651     for ac_exec_ext in '' $ac_executable_extensions; do
3652       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3653         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3654       fi
3655     done
3656   done
3657 done
3658 lt_ac_max=0
3659 lt_ac_count=0
3660 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3661 # along with /bin/sed that truncates output.
3662 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3663   test ! -f $lt_ac_sed && break
3664   cat /dev/null > conftest.in
3665   lt_ac_count=0
3666   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3667   # Check for GNU sed and select it if it is found.
3668   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3669     lt_cv_path_SED=$lt_ac_sed
3670     break
3671   fi
3672   while true; do
3673     cat conftest.in conftest.in >conftest.tmp
3674     mv conftest.tmp conftest.in
3675     cp conftest.in conftest.nl
3676     echo >>conftest.nl
3677     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3678     cmp -s conftest.out conftest.nl || break
3679     # 10000 chars as input seems more than enough
3680     test $lt_ac_count -gt 10 && break
3681     lt_ac_count=`expr $lt_ac_count + 1`
3682     if test $lt_ac_count -gt $lt_ac_max; then
3683       lt_ac_max=$lt_ac_count
3684       lt_cv_path_SED=$lt_ac_sed
3685     fi
3686   done
3687 done
3688 SED=$lt_cv_path_SED
3689
3690 fi
3691
3692 echo "$as_me:$LINENO: result: $SED" >&5
3693 echo "${ECHO_T}$SED" >&6
3694
3695 echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3697 if test "${ac_cv_prog_egrep+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3701     then ac_cv_prog_egrep='grep -E'
3702     else ac_cv_prog_egrep='egrep'
3703     fi
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3706 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3707  EGREP=$ac_cv_prog_egrep
3708  
3709
3710
3711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3712 if test "${with_gnu_ld+set}" = set; then
3713   withval="$with_gnu_ld"
3714   test "$withval" = no || with_gnu_ld=yes
3715 else
3716   with_gnu_ld=no
3717 fi; 
3718 ac_prog=ld
3719 if test "$GCC" = yes; then
3720   # Check if gcc -print-prog-name=ld gives a path.
3721   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3722 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3723   case $host in
3724   *-*-mingw*)
3725     # gcc leaves a trailing carriage return which upsets mingw
3726     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3727   *)
3728     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3729   esac
3730   case $ac_prog in
3731     # Accept absolute paths.
3732     [\\/]* | ?:[\\/]*)
3733       re_direlt='/[^/][^/]*/\.\./'
3734       # Canonicalize the pathname of ld
3735       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3736       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3737         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3738       done
3739       test -z "$LD" && LD="$ac_prog"
3740       ;;
3741   "")
3742     # If it fails, then pretend we aren't using GCC.
3743     ac_prog=ld
3744     ;;
3745   *)
3746     # If it is relative, then search for the first ld in PATH.
3747     with_gnu_ld=unknown
3748     ;;
3749   esac
3750 elif test "$with_gnu_ld" = yes; then
3751   echo "$as_me:$LINENO: checking for GNU ld" >&5
3752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3753 else
3754   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3756 fi
3757 if test "${lt_cv_path_LD+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   if test -z "$LD"; then
3761   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762   for ac_dir in $PATH; do
3763     IFS="$lt_save_ifs"
3764     test -z "$ac_dir" && ac_dir=.
3765     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3766       lt_cv_path_LD="$ac_dir/$ac_prog"
3767       # Check to see if the program is GNU ld.  I'd rather use --version,
3768       # but apparently some GNU ld's only accept -v.
3769       # Break only if it was the GNU/non-GNU ld that we prefer.
3770       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3771       *GNU* | *'with BFD'*)
3772         test "$with_gnu_ld" != no && break
3773         ;;
3774       *)
3775         test "$with_gnu_ld" != yes && break
3776         ;;
3777       esac
3778     fi
3779   done
3780   IFS="$lt_save_ifs"
3781 else
3782   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3783 fi
3784 fi
3785
3786 LD="$lt_cv_path_LD"
3787 if test -n "$LD"; then
3788   echo "$as_me:$LINENO: result: $LD" >&5
3789 echo "${ECHO_T}$LD" >&6
3790 else
3791   echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793 fi
3794 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3795 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3796    { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3799 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3803 case `$LD -v 2>&1 </dev/null` in
3804 *GNU* | *'with BFD'*)
3805   lt_cv_prog_gnu_ld=yes
3806   ;;
3807 *)
3808   lt_cv_prog_gnu_ld=no
3809   ;;
3810 esac
3811 fi
3812 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3813 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3814 with_gnu_ld=$lt_cv_prog_gnu_ld
3815
3816
3817 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3818 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3819 if test "${lt_cv_ld_reload_flag+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   lt_cv_ld_reload_flag='-r'
3823 fi
3824 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3825 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3826 reload_flag=$lt_cv_ld_reload_flag
3827 case $reload_flag in
3828 "" | " "*) ;;
3829 *) reload_flag=" $reload_flag" ;;
3830 esac
3831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3832
3833 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3834 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3835 if test "${lt_cv_path_NM+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   if test -n "$NM"; then
3839   # Let the user override the test.
3840   lt_cv_path_NM="$NM"
3841 else
3842   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3843   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3844     IFS="$lt_save_ifs"
3845     test -z "$ac_dir" && ac_dir=.
3846     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3847     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3848       # Check to see if the nm accepts a BSD-compat flag.
3849       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3850       #   nm: unknown option "B" ignored
3851       # Tru64's nm complains that /dev/null is an invalid object file
3852       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3853       */dev/null* | *'Invalid file or object type'*)
3854         lt_cv_path_NM="$tmp_nm -B"
3855         break
3856         ;;
3857       *)
3858         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3859         */dev/null*)
3860           lt_cv_path_NM="$tmp_nm -p"
3861           break
3862           ;;
3863         *)
3864           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3865           continue # so that we can try to find one that supports BSD flags
3866           ;;
3867         esac
3868       esac
3869     fi
3870   done
3871   IFS="$lt_save_ifs"
3872   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3873 fi
3874 fi
3875 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3876 echo "${ECHO_T}$lt_cv_path_NM" >&6
3877 NM="$lt_cv_path_NM"
3878
3879 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3880 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3881 LN_S=$as_ln_s
3882 if test "$LN_S" = "ln -s"; then
3883   echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6
3885 else
3886   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3887 echo "${ECHO_T}no, using $LN_S" >&6
3888 fi
3889
3890 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3891 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3892 if test "${lt_cv_deplibs_check_method+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   lt_cv_file_magic_cmd='$MAGIC_CMD'
3896 lt_cv_file_magic_test_file=
3897 lt_cv_deplibs_check_method='unknown'
3898 # Need to set the preceding variable on all platforms that support
3899 # interlibrary dependencies.
3900 # 'none' -- dependencies not supported.
3901 # `unknown' -- same as none, but documents that we really don't know.
3902 # 'pass_all' -- all dependencies passed with no checks.
3903 # 'test_compile' -- check by making test program.
3904 # 'file_magic [[regex]]' -- check by looking for files in library path
3905 # which responds to the $file_magic_cmd with a given extended regex.
3906 # If you have `file' or equivalent on your system and you're not sure
3907 # whether `pass_all' will *always* work, you probably want this one.
3908
3909 case $host_os in
3910 aix4* | aix5*)
3911   lt_cv_deplibs_check_method=pass_all
3912   ;;
3913
3914 beos*)
3915   lt_cv_deplibs_check_method=pass_all
3916   ;;
3917
3918 bsdi4*)
3919   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3920   lt_cv_file_magic_cmd='/usr/bin/file -L'
3921   lt_cv_file_magic_test_file=/shlib/libc.so
3922   ;;
3923
3924 cygwin*)
3925   # func_win32_libid is a shell function defined in ltmain.sh
3926   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3927   lt_cv_file_magic_cmd='func_win32_libid'
3928   ;;
3929
3930 mingw* | pw32*)
3931   # Base MSYS/MinGW do not provide the 'file' command needed by
3932   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3933   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3934   lt_cv_file_magic_cmd='$OBJDUMP -f'
3935   ;;
3936
3937 darwin* | rhapsody*)
3938   lt_cv_deplibs_check_method=pass_all
3939   ;;
3940
3941 freebsd* | kfreebsd*-gnu)
3942   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3943     case $host_cpu in
3944     i*86 )
3945       # Not sure whether the presence of OpenBSD here was a mistake.
3946       # Let's accept both of them until this is cleared up.
3947       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3948       lt_cv_file_magic_cmd=/usr/bin/file
3949       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3950       ;;
3951     esac
3952   else
3953     lt_cv_deplibs_check_method=pass_all
3954   fi
3955   ;;
3956
3957 gnu*)
3958   lt_cv_deplibs_check_method=pass_all
3959   ;;
3960
3961 hpux10.20* | hpux11*)
3962   lt_cv_file_magic_cmd=/usr/bin/file
3963   case "$host_cpu" in
3964   ia64*)
3965     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3966     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3967     ;;
3968   hppa*64*)
3969     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]'
3970     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3971     ;;
3972   *)
3973     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3974     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3975     ;;
3976   esac
3977   ;;
3978
3979 irix5* | irix6* | nonstopux*)
3980   case $LD in
3981   *-32|*"-32 ") libmagic=32-bit;;
3982   *-n32|*"-n32 ") libmagic=N32;;
3983   *-64|*"-64 ") libmagic=64-bit;;
3984   *) libmagic=never-match;;
3985   esac
3986   lt_cv_deplibs_check_method=pass_all
3987   ;;
3988
3989 # This must be Linux ELF.
3990 linux*)
3991   case $host_cpu in
3992   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3993     lt_cv_deplibs_check_method=pass_all ;;
3994   *)
3995     # glibc up to 2.1.1 does not perform some relocations on ARM
3996     # this will be overridden with pass_all, but let us keep it just in case
3997     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3998   esac
3999   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4000   lt_cv_deplibs_check_method=pass_all
4001   ;;
4002
4003 netbsd*)
4004   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4005     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4006   else
4007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4008   fi
4009   ;;
4010
4011 newos6*)
4012   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4013   lt_cv_file_magic_cmd=/usr/bin/file
4014   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4015   ;;
4016
4017 nto-qnx*)
4018   lt_cv_deplibs_check_method=unknown
4019   ;;
4020
4021 openbsd*)
4022   lt_cv_file_magic_cmd=/usr/bin/file
4023   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4024   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4025     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4026   else
4027     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4028   fi
4029   ;;
4030
4031 osf3* | osf4* | osf5*)
4032   lt_cv_deplibs_check_method=pass_all
4033   ;;
4034
4035 sco3.2v5*)
4036   lt_cv_deplibs_check_method=pass_all
4037   ;;
4038
4039 solaris*)
4040   lt_cv_deplibs_check_method=pass_all
4041   ;;
4042
4043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4044   case $host_vendor in
4045   motorola)
4046     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]'
4047     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4048     ;;
4049   ncr)
4050     lt_cv_deplibs_check_method=pass_all
4051     ;;
4052   sequent)
4053     lt_cv_file_magic_cmd='/bin/file'
4054     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4055     ;;
4056   sni)
4057     lt_cv_file_magic_cmd='/bin/file'
4058     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4059     lt_cv_file_magic_test_file=/lib/libc.so
4060     ;;
4061   siemens)
4062     lt_cv_deplibs_check_method=pass_all
4063     ;;
4064   esac
4065   ;;
4066
4067 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4068   lt_cv_deplibs_check_method=pass_all
4069   ;;
4070 esac
4071
4072 fi
4073 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4074 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4075 file_magic_cmd=$lt_cv_file_magic_cmd
4076 deplibs_check_method=$lt_cv_deplibs_check_method
4077 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4078
4079
4080
4081
4082 # If no C compiler was specified, use CC.
4083 LTCC=${LTCC-"$CC"}
4084
4085 # Allow CC to be a program name with arguments.
4086 compiler=$CC
4087
4088
4089 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4090 if test "${enable_libtool_lock+set}" = set; then
4091   enableval="$enable_libtool_lock"
4092   
4093 fi; 
4094 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4095
4096 # Some flags need to be propagated to the compiler or linker for good
4097 # libtool support.
4098 case $host in
4099 ia64-*-hpux*)
4100   # Find out which ABI we are using.
4101   echo 'int i;' > conftest.$ac_ext
4102   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103   (eval $ac_compile) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; then
4107     case `/usr/bin/file conftest.$ac_objext` in
4108     *ELF-32*)
4109       HPUX_IA64_MODE="32"
4110       ;;
4111     *ELF-64*)
4112       HPUX_IA64_MODE="64"
4113       ;;
4114     esac
4115   fi
4116   rm -rf conftest*
4117   ;;
4118 *-*-irix6*)
4119   # Find out which ABI we are using.
4120   echo '#line __oline__ "configure"' > conftest.$ac_ext
4121   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122   (eval $ac_compile) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; then
4126    if test "$lt_cv_prog_gnu_ld" = yes; then
4127     case `/usr/bin/file conftest.$ac_objext` in
4128     *32-bit*)
4129       LD="${LD-ld} -melf32bsmip"
4130       ;;
4131     *N32*)
4132       LD="${LD-ld} -melf32bmipn32"
4133       ;;
4134     *64-bit*)
4135       LD="${LD-ld} -melf64bmip"
4136       ;;
4137     esac
4138    else
4139     case `/usr/bin/file conftest.$ac_objext` in
4140     *32-bit*)
4141       LD="${LD-ld} -32"
4142       ;;
4143     *N32*)
4144       LD="${LD-ld} -n32"
4145       ;;
4146     *64-bit*)
4147       LD="${LD-ld} -64"
4148       ;;
4149     esac
4150    fi
4151   fi
4152   rm -rf conftest*
4153   ;;
4154
4155 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4156   # Find out which ABI we are using.
4157   echo 'int i;' > conftest.$ac_ext
4158   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; then
4163     case "`/usr/bin/file conftest.o`" in
4164     *32-bit*)
4165       case $host in
4166         x86_64-*linux*)
4167           LD="${LD-ld} -m elf_i386"
4168           ;;
4169         ppc64-*linux*|powerpc64-*linux*)
4170           LD="${LD-ld} -m elf32ppclinux"
4171           ;;
4172         s390x-*linux*)
4173           LD="${LD-ld} -m elf_s390"
4174           ;;
4175         sparc64-*linux*)
4176           LD="${LD-ld} -m elf32_sparc"
4177           ;;
4178       esac
4179       ;;
4180     *64-bit*)
4181       case $host in
4182         x86_64-*linux*)
4183           LD="${LD-ld} -m elf_x86_64"
4184           ;;
4185         ppc*-*linux*|powerpc*-*linux*)
4186           LD="${LD-ld} -m elf64ppc"
4187           ;;
4188         s390*-*linux*)
4189           LD="${LD-ld} -m elf64_s390"
4190           ;;
4191         sparc*-*linux*)
4192           LD="${LD-ld} -m elf64_sparc"
4193           ;;
4194       esac
4195       ;;
4196     esac
4197   fi
4198   rm -rf conftest*
4199   ;;
4200
4201 *-*-sco3.2v5*)
4202   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4203   SAVE_CFLAGS="$CFLAGS"
4204   CFLAGS="$CFLAGS -belf"
4205   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4206 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4207 if test "${lt_cv_cc_needs_belf+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216      cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h.  */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h.  */
4222
4223 int
4224 main ()
4225 {
4226
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233   (eval $ac_link) 2>conftest.er1
4234   ac_status=$?
4235   grep -v '^ *+' conftest.er1 >conftest.err
4236   rm -f conftest.er1
4237   cat conftest.err >&5
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } &&
4240          { ac_try='test -z "$ac_c_werror_flag"
4241                          || test ! -s conftest.err'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; } &&
4247          { ac_try='test -s conftest$ac_exeext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   lt_cv_cc_needs_belf=yes
4254 else
4255   echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 lt_cv_cc_needs_belf=no
4259 fi
4260 rm -f conftest.err conftest.$ac_objext \
4261       conftest$ac_exeext conftest.$ac_ext
4262      ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 fi
4269 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4270 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4271   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4272     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4273     CFLAGS="$SAVE_CFLAGS"
4274   fi
4275   ;;
4276
4277 esac
4278
4279 need_locks="$enable_libtool_lock"
4280
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4289 # On Suns, sometimes $CPP names a directory.
4290 if test -n "$CPP" && test -d "$CPP"; then
4291   CPP=
4292 fi
4293 if test -z "$CPP"; then
4294   if test "${ac_cv_prog_CPP+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297       # Double quotes because CPP needs to be expanded
4298     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4299     do
4300       ac_preproc_ok=false
4301 for ac_c_preproc_warn_flag in '' yes
4302 do
4303   # Use a header file that comes with gcc, so configuring glibc
4304   # with a fresh cross-compiler works.
4305   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306   # <limits.h> exists even on freestanding compilers.
4307   # On the NeXT, cc -E runs the code through the compiler's parser,
4308   # not just through cpp. "Syntax error" is here to catch this case.
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 @%:@ifdef __STDC__
4316 @%:@ include <limits.h>
4317 @%:@else
4318 @%:@ include <assert.h>
4319 @%:@endif
4320                      Syntax error
4321 _ACEOF
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } >/dev/null; then
4330   if test -s conftest.err; then
4331     ac_cpp_err=$ac_c_preproc_warn_flag
4332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4333   else
4334     ac_cpp_err=
4335   fi
4336 else
4337   ac_cpp_err=yes
4338 fi
4339 if test -z "$ac_cpp_err"; then
4340   :
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345   # Broken: fails on valid input.
4346 continue
4347 fi
4348 rm -f conftest.err conftest.$ac_ext
4349
4350   # OK, works on sane cases.  Now check whether non-existent headers
4351   # can be detected and how.
4352   cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 @%:@include <ac_nonexistent.h>
4359 _ACEOF
4360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } >/dev/null; then
4368   if test -s conftest.err; then
4369     ac_cpp_err=$ac_c_preproc_warn_flag
4370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4371   else
4372     ac_cpp_err=
4373   fi
4374 else
4375   ac_cpp_err=yes
4376 fi
4377 if test -z "$ac_cpp_err"; then
4378   # Broken: success on invalid input.
4379 continue
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384   # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4387 fi
4388 rm -f conftest.err conftest.$ac_ext
4389
4390 done
4391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4392 rm -f conftest.err conftest.$ac_ext
4393 if $ac_preproc_ok; then
4394   break
4395 fi
4396
4397     done
4398     ac_cv_prog_CPP=$CPP
4399   
4400 fi
4401   CPP=$ac_cv_prog_CPP
4402 else
4403   ac_cv_prog_CPP=$CPP
4404 fi
4405 echo "$as_me:$LINENO: result: $CPP" >&5
4406 echo "${ECHO_T}$CPP" >&6
4407 ac_preproc_ok=false
4408 for ac_c_preproc_warn_flag in '' yes
4409 do
4410   # Use a header file that comes with gcc, so configuring glibc
4411   # with a fresh cross-compiler works.
4412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4413   # <limits.h> exists even on freestanding compilers.
4414   # On the NeXT, cc -E runs the code through the compiler's parser,
4415   # not just through cpp. "Syntax error" is here to catch this case.
4416   cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h.  */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h.  */
4422 @%:@ifdef __STDC__
4423 @%:@ include <limits.h>
4424 @%:@else
4425 @%:@ include <assert.h>
4426 @%:@endif
4427                      Syntax error
4428 _ACEOF
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } >/dev/null; then
4437   if test -s conftest.err; then
4438     ac_cpp_err=$ac_c_preproc_warn_flag
4439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440   else
4441     ac_cpp_err=
4442   fi
4443 else
4444   ac_cpp_err=yes
4445 fi
4446 if test -z "$ac_cpp_err"; then
4447   :
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452   # Broken: fails on valid input.
4453 continue
4454 fi
4455 rm -f conftest.err conftest.$ac_ext
4456
4457   # OK, works on sane cases.  Now check whether non-existent headers
4458   # can be detected and how.
4459   cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h.  */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h.  */
4465 @%:@include <ac_nonexistent.h>
4466 _ACEOF
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } >/dev/null; then
4475   if test -s conftest.err; then
4476     ac_cpp_err=$ac_c_preproc_warn_flag
4477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4478   else
4479     ac_cpp_err=
4480   fi
4481 else
4482   ac_cpp_err=yes
4483 fi
4484 if test -z "$ac_cpp_err"; then
4485   # Broken: success on invalid input.
4486 continue
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491   # Passes both tests.
4492 ac_preproc_ok=:
4493 break
4494 fi
4495 rm -f conftest.err conftest.$ac_ext
4496
4497 done
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then
4501   :
4502 else
4503   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4504 See \`config.log' for more details." >&5
4505 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details." >&2;}
4507    { (exit 1); exit 1; }; }
4508 fi
4509
4510 ac_ext=c
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515
4516
4517 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4519 if test "${ac_cv_header_stdc+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <stdlib.h>
4529 #include <stdarg.h>
4530 #include <string.h>
4531 #include <float.h>
4532
4533 int
4534 main ()
4535 {
4536
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543   (eval $ac_compile) 2>conftest.er1
4544   ac_status=$?
4545   grep -v '^ *+' conftest.er1 >conftest.err
4546   rm -f conftest.er1
4547   cat conftest.err >&5
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); } &&
4550          { ac_try='test -z "$ac_c_werror_flag"
4551                          || test ! -s conftest.err'
4552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; } &&
4557          { ac_try='test -s conftest.$ac_objext'
4558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559   (eval $ac_try) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; }; then
4563   ac_cv_header_stdc=yes
4564 else
4565   echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 ac_cv_header_stdc=no
4569 fi
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4571
4572 if test $ac_cv_header_stdc = yes; then
4573   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 #include <string.h>
4581
4582 _ACEOF
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584   $EGREP "memchr" >/dev/null 2>&1; then
4585   :
4586 else
4587   ac_cv_header_stdc=no
4588 fi
4589 rm -f conftest*
4590
4591 fi
4592
4593 if test $ac_cv_header_stdc = yes; then
4594   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4595   cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601 #include <stdlib.h>
4602
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605   $EGREP "free" >/dev/null 2>&1; then
4606   :
4607 else
4608   ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest*
4611
4612 fi
4613
4614 if test $ac_cv_header_stdc = yes; then
4615   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616   if test "$cross_compiling" = yes; then
4617   :
4618 else
4619   cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 #include <ctype.h>
4626 #if ((' ' & 0x0FF) == 0x020)
4627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4629 #else
4630 # define ISLOWER(c) \
4631                    (('a' <= (c) && (c) <= 'i') \
4632                      || ('j' <= (c) && (c) <= 'r') \
4633                      || ('s' <= (c) && (c) <= 'z'))
4634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4635 #endif
4636
4637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4638 int
4639 main ()
4640 {
4641   int i;
4642   for (i = 0; i < 256; i++)
4643     if (XOR (islower (i), ISLOWER (i))
4644         || toupper (i) != TOUPPER (i))
4645       exit(2);
4646   exit (0);
4647 }
4648 _ACEOF
4649 rm -f conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651   (eval $ac_link) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656   (eval $ac_try) 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; }; then
4660   :
4661 else
4662   echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ( exit $ac_status )
4667 ac_cv_header_stdc=no
4668 fi
4669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 fi
4672 fi
4673 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4675 if test $ac_cv_header_stdc = yes; then
4676   
4677 cat >>confdefs.h <<\_ACEOF
4678 @%:@define STDC_HEADERS 1
4679 _ACEOF
4680
4681 fi
4682
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694                   inttypes.h stdint.h unistd.h
4695 do
4696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h.  */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h.  */
4708 $ac_includes_default
4709
4710 @%:@include <$ac_header>
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714   (eval $ac_compile) 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } &&
4721          { ac_try='test -z "$ac_c_werror_flag"
4722                          || test ! -s conftest.err'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; } &&
4728          { ac_try='test -s conftest.$ac_objext'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; }; then
4734   eval "$as_ac_Header=yes"
4735 else
4736   echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 eval "$as_ac_Header=no"
4740 fi
4741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746   cat >>confdefs.h <<_ACEOF
4747 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748 _ACEOF
4749  
4750 fi
4751
4752 done
4753
4754
4755
4756 for ac_header in dlfcn.h
4757 do
4758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760   echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 fi
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 else
4768   # Is the header compilable?
4769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h.  */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h.  */
4777 $ac_includes_default
4778 @%:@include <$ac_header>
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782   (eval $ac_compile) 2>conftest.er1
4783   ac_status=$?
4784   grep -v '^ *+' conftest.er1 >conftest.err
4785   rm -f conftest.er1
4786   cat conftest.err >&5
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); } &&
4789          { ac_try='test -z "$ac_c_werror_flag"
4790                          || test ! -s conftest.err'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; } &&
4796          { ac_try='test -s conftest.$ac_objext'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; }; then
4802   ac_header_compiler=yes
4803 else
4804   echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 ac_header_compiler=no
4808 fi
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811 echo "${ECHO_T}$ac_header_compiler" >&6
4812
4813 # Is the header present?
4814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822 @%:@include <$ac_header>
4823 _ACEOF
4824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } >/dev/null; then
4832   if test -s conftest.err; then
4833     ac_cpp_err=$ac_c_preproc_warn_flag
4834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835   else
4836     ac_cpp_err=
4837   fi
4838 else
4839   ac_cpp_err=yes
4840 fi
4841 if test -z "$ac_cpp_err"; then
4842   ac_header_preproc=yes
4843 else
4844   echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847   ac_header_preproc=no
4848 fi
4849 rm -f conftest.err conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851 echo "${ECHO_T}$ac_header_preproc" >&6
4852
4853 # So?  What about this header?
4854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4855   yes:no: )
4856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4860     ac_header_preproc=yes
4861     ;;
4862   no:yes:* )
4863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4875     (
4876       cat <<\_ASBOX
4877 @%:@@%:@ ------------------------------------------ @%:@@%:@
4878 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
4879 @%:@@%:@ ------------------------------------------ @%:@@%:@
4880 _ASBOX
4881     ) |
4882       sed "s/^/$as_me: WARNING:     /" >&2
4883     ;;
4884 esac
4885 echo "$as_me:$LINENO: checking for $ac_header" >&5
4886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   eval "$as_ac_Header=\$ac_header_preproc"
4891 fi
4892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4894
4895 fi
4896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4897   cat >>confdefs.h <<_ACEOF
4898 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899 _ACEOF
4900  
4901 fi
4902
4903 done
4904
4905 ac_ext=cc
4906 ac_cpp='$CXXCPP $CPPFLAGS'
4907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4910 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4912 if test -z "$CXXCPP"; then
4913   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916       # Double quotes because CXXCPP needs to be expanded
4917     for CXXCPP in "$CXX -E" "/lib/cpp"
4918     do
4919       ac_preproc_ok=false
4920 for ac_cxx_preproc_warn_flag in '' yes
4921 do
4922   # Use a header file that comes with gcc, so configuring glibc
4923   # with a fresh cross-compiler works.
4924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925   # <limits.h> exists even on freestanding compilers.
4926   # On the NeXT, cc -E runs the code through the compiler's parser,
4927   # not just through cpp. "Syntax error" is here to catch this case.
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 @%:@ifdef __STDC__
4935 @%:@ include <limits.h>
4936 @%:@else
4937 @%:@ include <assert.h>
4938 @%:@endif
4939                      Syntax error
4940 _ACEOF
4941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } >/dev/null; then
4949   if test -s conftest.err; then
4950     ac_cpp_err=$ac_cxx_preproc_warn_flag
4951     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4952   else
4953     ac_cpp_err=
4954   fi
4955 else
4956   ac_cpp_err=yes
4957 fi
4958 if test -z "$ac_cpp_err"; then
4959   :
4960 else
4961   echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964   # Broken: fails on valid input.
4965 continue
4966 fi
4967 rm -f conftest.err conftest.$ac_ext
4968
4969   # OK, works on sane cases.  Now check whether non-existent headers
4970   # can be detected and how.
4971   cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 @%:@include <ac_nonexistent.h>
4978 _ACEOF
4979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981   ac_status=$?
4982   grep -v '^ *+' conftest.er1 >conftest.err
4983   rm -f conftest.er1
4984   cat conftest.err >&5
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } >/dev/null; then
4987   if test -s conftest.err; then
4988     ac_cpp_err=$ac_cxx_preproc_warn_flag
4989     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4990   else
4991     ac_cpp_err=
4992   fi
4993 else
4994   ac_cpp_err=yes
4995 fi
4996 if test -z "$ac_cpp_err"; then
4997   # Broken: success on invalid input.
4998 continue
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003   # Passes both tests.
5004 ac_preproc_ok=:
5005 break
5006 fi
5007 rm -f conftest.err conftest.$ac_ext
5008
5009 done
5010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011 rm -f conftest.err conftest.$ac_ext
5012 if $ac_preproc_ok; then
5013   break
5014 fi
5015
5016     done
5017     ac_cv_prog_CXXCPP=$CXXCPP
5018   
5019 fi
5020   CXXCPP=$ac_cv_prog_CXXCPP
5021 else
5022   ac_cv_prog_CXXCPP=$CXXCPP
5023 fi
5024 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5025 echo "${ECHO_T}$CXXCPP" >&6
5026 ac_preproc_ok=false
5027 for ac_cxx_preproc_warn_flag in '' yes
5028 do
5029   # Use a header file that comes with gcc, so configuring glibc
5030   # with a fresh cross-compiler works.
5031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032   # <limits.h> exists even on freestanding compilers.
5033   # On the NeXT, cc -E runs the code through the compiler's parser,
5034   # not just through cpp. "Syntax error" is here to catch this case.
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 @%:@ifdef __STDC__
5042 @%:@ include <limits.h>
5043 @%:@else
5044 @%:@ include <assert.h>
5045 @%:@endif
5046                      Syntax error
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } >/dev/null; then
5056   if test -s conftest.err; then
5057     ac_cpp_err=$ac_cxx_preproc_warn_flag
5058     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5059   else
5060     ac_cpp_err=
5061   fi
5062 else
5063   ac_cpp_err=yes
5064 fi
5065 if test -z "$ac_cpp_err"; then
5066   :
5067 else
5068   echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071   # Broken: fails on valid input.
5072 continue
5073 fi
5074 rm -f conftest.err conftest.$ac_ext
5075
5076   # OK, works on sane cases.  Now check whether non-existent headers
5077   # can be detected and how.
5078   cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 @%:@include <ac_nonexistent.h>
5085 _ACEOF
5086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } >/dev/null; then
5094   if test -s conftest.err; then
5095     ac_cpp_err=$ac_cxx_preproc_warn_flag
5096     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5097   else
5098     ac_cpp_err=
5099   fi
5100 else
5101   ac_cpp_err=yes
5102 fi
5103 if test -z "$ac_cpp_err"; then
5104   # Broken: success on invalid input.
5105 continue
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110   # Passes both tests.
5111 ac_preproc_ok=:
5112 break
5113 fi
5114 rm -f conftest.err conftest.$ac_ext
5115
5116 done
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then
5120   :
5121 else
5122   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5125 See \`config.log' for more details." >&2;}
5126    { (exit 1); exit 1; }; }
5127 fi
5128
5129 ac_ext=cc
5130 ac_cpp='$CXXCPP $CPPFLAGS'
5131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134
5135
5136 ac_ext=f
5137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5140 if test -n "$ac_tool_prefix"; then
5141   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5142   do
5143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147 if test "${ac_cv_prog_F77+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   if test -n "$F77"; then
5151   ac_cv_prog_F77="$F77" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156   IFS=$as_save_IFS
5157   test -z "$as_dir" && as_dir=.
5158   for ac_exec_ext in '' $ac_executable_extensions; do
5159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165 done
5166
5167 fi
5168 fi
5169 F77=$ac_cv_prog_F77
5170 if test -n "$F77"; then
5171   echo "$as_me:$LINENO: result: $F77" >&5
5172 echo "${ECHO_T}$F77" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178     test -n "$F77" && break
5179   done
5180 fi
5181 if test -z "$F77"; then
5182   ac_ct_F77=$F77
5183   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5184 do
5185   # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   if test -n "$ac_ct_F77"; then
5193   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_exec_ext in '' $ac_executable_extensions; do
5201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202     ac_cv_prog_ac_ct_F77="$ac_prog"
5203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207 done
5208
5209 fi
5210 fi
5211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5212 if test -n "$ac_ct_F77"; then
5213   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5214 echo "${ECHO_T}$ac_ct_F77" >&6
5215 else
5216   echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5218 fi
5219
5220   test -n "$ac_ct_F77" && break
5221 done
5222
5223   F77=$ac_ct_F77
5224 fi
5225
5226
5227 # Provide some information about the compiler.
5228 echo "$as_me:__oline__:" \
5229      "checking for Fortran 77 compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5232   (eval $ac_compiler --version </dev/null >&5) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5237   (eval $ac_compiler -v </dev/null >&5) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }
5241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5242   (eval $ac_compiler -V </dev/null >&5) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }
5246 rm -f a.out
5247
5248 # If we don't use `.F' as extension, the preprocessor is not run on the
5249 # input file.  (Note that this only needs to work for GNU compilers.)
5250 ac_save_ext=$ac_ext
5251 ac_ext=F
5252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   cat >conftest.$ac_ext <<_ACEOF
5258       program main
5259 #ifndef __GNUC__
5260        choke me
5261 #endif
5262
5263       end
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>conftest.er1
5268   ac_status=$?
5269   grep -v '^ *+' conftest.er1 >conftest.err
5270   rm -f conftest.er1
5271   cat conftest.err >&5
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } &&
5274          { ac_try='test -z "$ac_f77_werror_flag"
5275                          || test ! -s conftest.err'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; } &&
5281          { ac_try='test -s conftest.$ac_objext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   ac_compiler_gnu=yes
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 ac_compiler_gnu=no
5293 fi
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5296
5297 fi
5298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5300 ac_ext=$ac_save_ext
5301 ac_test_FFLAGS=${FFLAGS+set}
5302 ac_save_FFLAGS=$FFLAGS
5303 FFLAGS=
5304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5306 if test "${ac_cv_prog_f77_g+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   FFLAGS=-g
5310 cat >conftest.$ac_ext <<_ACEOF
5311       program main
5312
5313       end
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317   (eval $ac_compile) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } &&
5324          { ac_try='test -z "$ac_f77_werror_flag"
5325                          || test ! -s conftest.err'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; } &&
5331          { ac_try='test -s conftest.$ac_objext'
5332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333   (eval $ac_try) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; }; then
5337   ac_cv_prog_f77_g=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 ac_cv_prog_f77_g=no
5343 fi
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349 if test "$ac_test_FFLAGS" = set; then
5350   FFLAGS=$ac_save_FFLAGS
5351 elif test $ac_cv_prog_f77_g = yes; then
5352   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5353     FFLAGS="-g -O2"
5354   else
5355     FFLAGS="-g"
5356   fi
5357 else
5358   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5359     FFLAGS="-O2"
5360   else
5361     FFLAGS=
5362   fi
5363 fi
5364
5365 G77=`test $ac_compiler_gnu = yes && echo yes`
5366 ac_ext=c
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5371
5372
5373
5374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5375
5376 # find the maximum length of command line arguments
5377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382     i=0
5383   teststring="ABCD"
5384
5385   case $build_os in
5386   msdosdjgpp*)
5387     # On DJGPP, this test can blow up pretty badly due to problems in libc
5388     # (any single argument exceeding 2000 bytes causes a buffer overrun
5389     # during glob expansion).  Even if it were fixed, the result of this
5390     # check would be larger than it should be.
5391     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5392     ;;
5393
5394   gnu*)
5395     # Under GNU Hurd, this test is not required because there is
5396     # no limit to the length of command line arguments.
5397     # Libtool will interpret -1 as no limit whatsoever
5398     lt_cv_sys_max_cmd_len=-1;
5399     ;;
5400
5401   cygwin* | mingw*)
5402     # On Win9x/ME, this test blows up -- it succeeds, but takes
5403     # about 5 minutes as the teststring grows exponentially.
5404     # Worse, since 9x/ME are not pre-emptively multitasking,
5405     # you end up with a "frozen" computer, even though with patience
5406     # the test eventually succeeds (with a max line length of 256k).
5407     # Instead, let's just punt: use the minimum linelength reported by
5408     # all of the supported platforms: 8192 (on NT/2K/XP).
5409     lt_cv_sys_max_cmd_len=8192;
5410     ;;
5411
5412   amigaos*)
5413     # On AmigaOS with pdksh, this test takes hours, literally.
5414     # So we just punt and use a minimum line length of 8192.
5415     lt_cv_sys_max_cmd_len=8192;
5416     ;;
5417
5418  *)
5419     # If test is not a shell built-in, we'll probably end up computing a
5420     # maximum length that is only half of the actual maximum length, but
5421     # we can't tell.
5422     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5423                = "XX$teststring") >/dev/null 2>&1 &&
5424             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5425             lt_cv_sys_max_cmd_len=$new_result &&
5426             test $i != 17 # 1/2 MB should be enough
5427     do
5428       i=`expr $i + 1`
5429       teststring=$teststring$teststring
5430     done
5431     teststring=
5432     # Add a significant safety factor because C++ compilers can tack on massive
5433     # amounts of additional arguments before passing them to the linker.
5434     # It appears as though 1/2 is a usable value.
5435     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5436     ;;
5437   esac
5438
5439 fi
5440
5441 if test -n $lt_cv_sys_max_cmd_len ; then
5442   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5444 else
5445   echo "$as_me:$LINENO: result: none" >&5
5446 echo "${ECHO_T}none" >&6
5447 fi
5448
5449
5450
5451
5452 # Check for command to grab the raw symbol name followed by C symbol from nm.
5453 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5454 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5455 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458   
5459 # These are sane defaults that work on at least a few old systems.
5460 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5461
5462 # Character class describing NM global symbol codes.
5463 symcode='[BCDEGRST]'
5464
5465 # Regexp to match symbols that can be accessed directly from C.
5466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5467
5468 # Transform the above into a raw symbol and a C symbol.
5469 symxfrm='\1 \2\3 \3'
5470
5471 # Transform an extracted symbol line into a proper C declaration
5472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5473
5474 # Transform an extracted symbol line into symbol name and symbol address
5475 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'"
5476
5477 # Define system-specific variables.
5478 case $host_os in
5479 aix*)
5480   symcode='[BCDT]'
5481   ;;
5482 cygwin* | mingw* | pw32*)
5483   symcode='[ABCDGISTW]'
5484   ;;
5485 hpux*) # Its linker distinguishes data from code symbols
5486   if test "$host_cpu" = ia64; then
5487     symcode='[ABCDEGRST]'
5488   fi
5489   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5490   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'"
5491   ;;
5492 irix* | nonstopux*)
5493   symcode='[BCDEGRST]'
5494   ;;
5495 osf*)
5496   symcode='[BCDEGQRST]'
5497   ;;
5498 solaris* | sysv5*)
5499   symcode='[BDRT]'
5500   ;;
5501 sysv4)
5502   symcode='[DFNSTU]'
5503   ;;
5504 esac
5505
5506 # Handle CRLF in mingw tool chain
5507 opt_cr=
5508 case $build_os in
5509 mingw*)
5510   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5511   ;;
5512 esac
5513
5514 # If we're using GNU nm, then use its standard symbol codes.
5515 case `$NM -V 2>&1` in
5516 *GNU* | *'with BFD'*)
5517   symcode='[ABCDGIRSTW]' ;;
5518 esac
5519
5520 # Try without a prefix undercore, then with it.
5521 for ac_symprfx in "" "_"; do
5522
5523   # Write the raw and C identifiers.
5524   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5525
5526   # Check to see that the pipe works correctly.
5527   pipe_works=no
5528
5529   rm -f conftest*
5530   cat > conftest.$ac_ext <<EOF
5531 #ifdef __cplusplus
5532 extern "C" {
5533 #endif
5534 char nm_test_var;
5535 void nm_test_func(){}
5536 #ifdef __cplusplus
5537 }
5538 #endif
5539 int main(){nm_test_var='a';nm_test_func();return(0);}
5540 EOF
5541
5542   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543   (eval $ac_compile) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; then
5547     # Now try to grab the symbols.
5548     nlist=conftest.nm
5549     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5550   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } && test -s "$nlist"; then
5554       # Try sorting and uniquifying the output.
5555       if sort "$nlist" | uniq > "$nlist"T; then
5556         mv -f "$nlist"T "$nlist"
5557       else
5558         rm -f "$nlist"T
5559       fi
5560
5561       # Make sure that we snagged all the symbols we need.
5562       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5563         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5564           cat <<EOF > conftest.$ac_ext
5565 #ifdef __cplusplus
5566 extern "C" {
5567 #endif
5568
5569 EOF
5570           # Now generate the symbol file.
5571           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5572
5573           cat <<EOF >> conftest.$ac_ext
5574 #if defined (__STDC__) && __STDC__
5575 # define lt_ptr_t void *
5576 #else
5577 # define lt_ptr_t char *
5578 # define const
5579 #endif
5580
5581 /* The mapping between symbol names and symbols. */
5582 const struct {
5583   const char *name;
5584   lt_ptr_t address;
5585 }
5586 lt_preloaded_symbols[] =
5587 {
5588 EOF
5589           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5590           cat <<\EOF >> conftest.$ac_ext
5591   {0, (lt_ptr_t) 0}
5592 };
5593
5594 #ifdef __cplusplus
5595 }
5596 #endif
5597 EOF
5598           # Now try linking the two files.
5599           mv conftest.$ac_objext conftstm.$ac_objext
5600           lt_save_LIBS="$LIBS"
5601           lt_save_CFLAGS="$CFLAGS"
5602           LIBS="conftstm.$ac_objext"
5603           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5604           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605   (eval $ac_link) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5609             pipe_works=yes
5610           fi
5611           LIBS="$lt_save_LIBS"
5612           CFLAGS="$lt_save_CFLAGS"
5613         else
5614           echo "cannot find nm_test_func in $nlist" >&5
5615         fi
5616       else
5617         echo "cannot find nm_test_var in $nlist" >&5
5618       fi
5619     else
5620       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5621     fi
5622   else
5623     echo "$progname: failed program was:" >&5
5624     cat conftest.$ac_ext >&5
5625   fi
5626   rm -f conftest* conftst*
5627
5628   # Do not use the global_symbol_pipe unless it works.
5629   if test "$pipe_works" = yes; then
5630     break
5631   else
5632     lt_cv_sys_global_symbol_pipe=
5633   fi
5634 done
5635
5636 fi
5637
5638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5639   lt_cv_sys_global_symbol_to_cdecl=
5640 fi
5641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5642   echo "$as_me:$LINENO: result: failed" >&5
5643 echo "${ECHO_T}failed" >&6
5644 else
5645   echo "$as_me:$LINENO: result: ok" >&5
5646 echo "${ECHO_T}ok" >&6
5647 fi
5648
5649 echo "$as_me:$LINENO: checking for objdir" >&5
5650 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5651 if test "${lt_cv_objdir+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   rm -f .libs 2>/dev/null
5655 mkdir .libs 2>/dev/null
5656 if test -d .libs; then
5657   lt_cv_objdir=.libs
5658 else
5659   # MS-DOS does not allow filenames that begin with a dot.
5660   lt_cv_objdir=_libs
5661 fi
5662 rmdir .libs 2>/dev/null
5663 fi
5664 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5665 echo "${ECHO_T}$lt_cv_objdir" >&6
5666 objdir=$lt_cv_objdir
5667
5668
5669
5670
5671
5672 case $host_os in
5673 aix3*)
5674   # AIX sometimes has problems with the GCC collect2 program.  For some
5675   # reason, if we set the COLLECT_NAMES environment variable, the problems
5676   # vanish in a puff of smoke.
5677   if test "X${COLLECT_NAMES+set}" != Xset; then
5678     COLLECT_NAMES=
5679     export COLLECT_NAMES
5680   fi
5681   ;;
5682 esac
5683
5684 # Sed substitution that helps us do robust quoting.  It backslashifies
5685 # metacharacters that are still active within double-quoted strings.
5686 Xsed='sed -e s/^X//'
5687 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5688
5689 # Same as above, but do not quote variable references.
5690 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5691
5692 # Sed substitution to delay expansion of an escaped shell variable in a
5693 # double_quote_subst'ed string.
5694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5695
5696 # Sed substitution to avoid accidental globbing in evaled expressions
5697 no_glob_subst='s/\*/\\\*/g'
5698
5699 # Constants:
5700 rm="rm -f"
5701
5702 # Global variables:
5703 default_ofile=libtool
5704 can_build_shared=yes
5705
5706 # All known linkers require a `.a' archive for static linking (except M$VC,
5707 # which needs '.lib').
5708 libext=a
5709 ltmain="$ac_aux_dir/ltmain.sh"
5710 ofile="$default_ofile"
5711 with_gnu_ld="$lt_cv_prog_gnu_ld"
5712
5713 if test -n "$ac_tool_prefix"; then
5714   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}ar; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_AR+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   if test -n "$AR"; then
5722   ac_cv_prog_AR="$AR" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729   for ac_exec_ext in '' $ac_executable_extensions; do
5730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_AR="${ac_tool_prefix}ar"
5732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 AR=$ac_cv_prog_AR
5741 if test -n "$AR"; then
5742   echo "$as_me:$LINENO: result: $AR" >&5
5743 echo "${ECHO_T}$AR" >&6
5744 else
5745   echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749 fi
5750 if test -z "$ac_cv_prog_AR"; then
5751   ac_ct_AR=$AR
5752   # Extract the first word of "ar", so it can be a program name with args.
5753 set dummy ar; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -n "$ac_ct_AR"; then
5760   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_prog_ac_ct_AR="ar"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775
5776   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5777 fi
5778 fi
5779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780 if test -n "$ac_ct_AR"; then
5781   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782 echo "${ECHO_T}$ac_ct_AR" >&6
5783 else
5784   echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788   AR=$ac_ct_AR
5789 else
5790   AR="$ac_cv_prog_AR"
5791 fi
5792
5793 if test -n "$ac_tool_prefix"; then
5794   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_RANLIB+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$RANLIB"; then
5802   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817
5818 fi
5819 fi
5820 RANLIB=$ac_cv_prog_RANLIB
5821 if test -n "$RANLIB"; then
5822   echo "$as_me:$LINENO: result: $RANLIB" >&5
5823 echo "${ECHO_T}$RANLIB" >&6
5824 else
5825   echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5827 fi
5828
5829 fi
5830 if test -z "$ac_cv_prog_RANLIB"; then
5831   ac_ct_RANLIB=$RANLIB
5832   # Extract the first word of "ranlib", so it can be a program name with args.
5833 set dummy ranlib; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   if test -n "$ac_ct_RANLIB"; then
5840   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_ac_ct_RANLIB="ranlib"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855
5856   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5857 fi
5858 fi
5859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5860 if test -n "$ac_ct_RANLIB"; then
5861   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5862 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868   RANLIB=$ac_ct_RANLIB
5869 else
5870   RANLIB="$ac_cv_prog_RANLIB"
5871 fi
5872
5873 if test -n "$ac_tool_prefix"; then
5874   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}strip; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_STRIP+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$STRIP"; then
5882   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 STRIP=$ac_cv_prog_STRIP
5901 if test -n "$STRIP"; then
5902   echo "$as_me:$LINENO: result: $STRIP" >&5
5903 echo "${ECHO_T}$STRIP" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_STRIP"; then
5911   ac_ct_STRIP=$STRIP
5912   # Extract the first word of "strip", so it can be a program name with args.
5913 set dummy strip; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$ac_ct_STRIP"; then
5920   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_STRIP="strip"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5937 fi
5938 fi
5939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5940 if test -n "$ac_ct_STRIP"; then
5941   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5942 echo "${ECHO_T}$ac_ct_STRIP" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948   STRIP=$ac_ct_STRIP
5949 else
5950   STRIP="$ac_cv_prog_STRIP"
5951 fi
5952
5953
5954 old_CC="$CC"
5955 old_CFLAGS="$CFLAGS"
5956
5957 # Set sane defaults for various variables
5958 test -z "$AR" && AR=ar
5959 test -z "$AR_FLAGS" && AR_FLAGS=cru
5960 test -z "$AS" && AS=as
5961 test -z "$CC" && CC=cc
5962 test -z "$LTCC" && LTCC=$CC
5963 test -z "$DLLTOOL" && DLLTOOL=dlltool
5964 test -z "$LD" && LD=ld
5965 test -z "$LN_S" && LN_S="ln -s"
5966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5967 test -z "$NM" && NM=nm
5968 test -z "$SED" && SED=sed
5969 test -z "$OBJDUMP" && OBJDUMP=objdump
5970 test -z "$RANLIB" && RANLIB=:
5971 test -z "$STRIP" && STRIP=:
5972 test -z "$ac_objext" && ac_objext=o
5973
5974 # Determine commands to create old-style static archives.
5975 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5976 old_postinstall_cmds='chmod 644 $oldlib'
5977 old_postuninstall_cmds=
5978
5979 if test -n "$RANLIB"; then
5980   case $host_os in
5981   openbsd*)
5982     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5983     ;;
5984   *)
5985     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5986     ;;
5987   esac
5988   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5989 fi
5990
5991 # Only perform the check for file, if the check method requires it
5992 case $deplibs_check_method in
5993 file_magic*)
5994   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5995     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5996 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   case $MAGIC_CMD in
6001 [\\/*] |  ?:[\\/]*)
6002   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6003   ;;
6004 *)
6005   lt_save_MAGIC_CMD="$MAGIC_CMD"
6006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008   for ac_dir in $ac_dummy; do
6009     IFS="$lt_save_ifs"
6010     test -z "$ac_dir" && ac_dir=.
6011     if test -f $ac_dir/${ac_tool_prefix}file; then
6012       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6013       if test -n "$file_magic_test_file"; then
6014         case $deplibs_check_method in
6015         "file_magic "*)
6016           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019             $EGREP "$file_magic_regex" > /dev/null; then
6020             :
6021           else
6022             cat <<EOF 1>&2
6023
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such.  This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem.  Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6032
6033 EOF
6034           fi ;;
6035         esac
6036       fi
6037       break
6038     fi
6039   done
6040   IFS="$lt_save_ifs"
6041   MAGIC_CMD="$lt_save_MAGIC_CMD"
6042   ;;
6043 esac
6044 fi
6045
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6049 echo "${ECHO_T}$MAGIC_CMD" >&6
6050 else
6051   echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6053 fi
6054
6055 if test -z "$lt_cv_path_MAGIC_CMD"; then
6056   if test -n "$ac_tool_prefix"; then
6057     echo "$as_me:$LINENO: checking for file" >&5
6058 echo $ECHO_N "checking for file... $ECHO_C" >&6
6059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   case $MAGIC_CMD in
6063 [\\/*] |  ?:[\\/]*)
6064   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6065   ;;
6066 *)
6067   lt_save_MAGIC_CMD="$MAGIC_CMD"
6068   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6070   for ac_dir in $ac_dummy; do
6071     IFS="$lt_save_ifs"
6072     test -z "$ac_dir" && ac_dir=.
6073     if test -f $ac_dir/file; then
6074       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6075       if test -n "$file_magic_test_file"; then
6076         case $deplibs_check_method in
6077         "file_magic "*)
6078           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6079           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6081             $EGREP "$file_magic_regex" > /dev/null; then
6082             :
6083           else
6084             cat <<EOF 1>&2
6085
6086 *** Warning: the command libtool uses to detect shared libraries,
6087 *** $file_magic_cmd, produces output that libtool cannot recognize.
6088 *** The result is that libtool may fail to recognize shared libraries
6089 *** as such.  This will affect the creation of libtool libraries that
6090 *** depend on shared libraries, but programs linked with such libtool
6091 *** libraries will work regardless of this problem.  Nevertheless, you
6092 *** may want to report the problem to your system manager and/or to
6093 *** bug-libtool@gnu.org
6094
6095 EOF
6096           fi ;;
6097         esac
6098       fi
6099       break
6100     fi
6101   done
6102   IFS="$lt_save_ifs"
6103   MAGIC_CMD="$lt_save_MAGIC_CMD"
6104   ;;
6105 esac
6106 fi
6107
6108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6109 if test -n "$MAGIC_CMD"; then
6110   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6111 echo "${ECHO_T}$MAGIC_CMD" >&6
6112 else
6113   echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6115 fi
6116
6117   else
6118     MAGIC_CMD=:
6119   fi
6120 fi
6121
6122   fi
6123   ;;
6124 esac
6125
6126 enable_dlopen=no
6127 enable_win32_dll=no
6128
6129 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6130 if test "${enable_libtool_lock+set}" = set; then
6131   enableval="$enable_libtool_lock"
6132   
6133 fi; 
6134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6135
6136
6137 # Check whether --with-pic or --without-pic was given.
6138 if test "${with_pic+set}" = set; then
6139   withval="$with_pic"
6140   pic_mode="$withval"
6141 else
6142   pic_mode=default
6143 fi; 
6144 test -z "$pic_mode" && pic_mode=default
6145
6146 # Use C for the default configuration in the libtool script
6147 tagname=
6148 lt_save_CC="$CC"
6149 ac_ext=c
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154
6155
6156 # Source file extension for C test sources.
6157 ac_ext=c
6158
6159 # Object file extension for compiled C test sources.
6160 objext=o
6161 objext=$objext
6162
6163 # Code to be used in simple compile tests
6164 lt_simple_compile_test_code="int some_variable = 0;\n"
6165
6166 # Code to be used in simple link tests
6167 lt_simple_link_test_code='int main(){return(0);}\n'
6168
6169
6170 # If no C compiler was specified, use CC.
6171 LTCC=${LTCC-"$CC"}
6172
6173 # Allow CC to be a program name with arguments.
6174 compiler=$CC
6175
6176
6177 #
6178 # Check for any special shared library compilation flags.
6179 #
6180 lt_prog_cc_shlib=
6181 if test "$GCC" = no; then
6182   case $host_os in
6183   sco3.2v5*)
6184     lt_prog_cc_shlib='-belf'
6185     ;;
6186   esac
6187 fi
6188 if test -n "$lt_prog_cc_shlib"; then
6189   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6190 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6191   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6192   else
6193     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6194 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6195     lt_cv_prog_cc_can_build_shared=no
6196   fi
6197 fi
6198
6199
6200 #
6201 # Check to make sure the static flag actually works.
6202 #
6203 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6204 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6205 if test "${lt_prog_compiler_static_works+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   lt_prog_compiler_static_works=no
6209    save_LDFLAGS="$LDFLAGS"
6210    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6211    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6212    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6213      # The compiler can only warn and ignore the option if not recognized
6214      # So say no if there are warnings
6215      if test -s conftest.err; then
6216        # Append any errors to the config.log.
6217        cat conftest.err 1>&5
6218      else
6219        lt_prog_compiler_static_works=yes
6220      fi
6221    fi
6222    $rm conftest*
6223    LDFLAGS="$save_LDFLAGS"
6224
6225 fi
6226 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6227 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6228
6229 if test x"$lt_prog_compiler_static_works" = xyes; then
6230     :
6231 else
6232     lt_prog_compiler_static=
6233 fi
6234
6235
6236
6237 ## CAVEAT EMPTOR:
6238 ## There is no encapsulation within the following macros, do not change
6239 ## the running order or otherwise move them around unless you know exactly
6240 ## what you are doing...
6241
6242 lt_prog_compiler_no_builtin_flag=
6243
6244 if test "$GCC" = yes; then
6245   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6246
6247   
6248 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6249 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6250 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   lt_cv_prog_compiler_rtti_exceptions=no
6254   ac_outfile=conftest.$ac_objext
6255    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6256    lt_compiler_flag="-fno-rtti -fno-exceptions"
6257    # Insert the option either (1) after the last *FLAGS variable, or
6258    # (2) before a word containing "conftest.", or (3) at the end.
6259    # Note that $ac_compile itself does not contain backslashes and begins
6260    # with a dollar sign (not a hyphen), so the echo should work correctly.
6261    # The option is referenced via a variable to avoid confusing sed.
6262    lt_compile=`echo "$ac_compile" | $SED \
6263    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6264    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6265    -e 's:$: $lt_compiler_flag:'`
6266    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6267    (eval "$lt_compile" 2>conftest.err)
6268    ac_status=$?
6269    cat conftest.err >&5
6270    echo "$as_me:__oline__: \$? = $ac_status" >&5
6271    if (exit $ac_status) && test -s "$ac_outfile"; then
6272      # The compiler can only warn and ignore the option if not recognized
6273      # So say no if there are warnings
6274      if test ! -s conftest.err; then
6275        lt_cv_prog_compiler_rtti_exceptions=yes
6276      fi
6277    fi
6278    $rm conftest*
6279
6280 fi
6281 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6282 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6283
6284 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6285     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6286 else
6287     :
6288 fi
6289
6290 fi
6291
6292 lt_prog_compiler_wl=
6293 lt_prog_compiler_pic=
6294 lt_prog_compiler_static=
6295
6296 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6297 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6298  
6299   if test "$GCC" = yes; then
6300     lt_prog_compiler_wl='-Wl,'
6301     lt_prog_compiler_static='-static'
6302
6303     case $host_os in
6304       aix*)
6305       # All AIX code is PIC.
6306       if test "$host_cpu" = ia64; then
6307         # AIX 5 now supports IA64 processor
6308         lt_prog_compiler_static='-Bstatic'
6309       fi
6310       ;;
6311
6312     amigaos*)
6313       # FIXME: we need at least 68020 code to build shared libraries, but
6314       # adding the `-m68020' flag to GCC prevents building anything better,
6315       # like `-m68040'.
6316       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6317       ;;
6318
6319     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6320       # PIC is the default for these OSes.
6321       ;;
6322
6323     mingw* | pw32* | os2*)
6324       # This hack is so that the source file can tell whether it is being
6325       # built for inclusion in a dll (and should export symbols for example).
6326       lt_prog_compiler_pic='-DDLL_EXPORT'
6327       ;;
6328
6329     darwin* | rhapsody*)
6330       # PIC is the default on this platform
6331       # Common symbols not allowed in MH_DYLIB files
6332       lt_prog_compiler_pic='-fno-common'
6333       ;;
6334
6335     msdosdjgpp*)
6336       # Just because we use GCC doesn't mean we suddenly get shared libraries
6337       # on systems that don't support them.
6338       lt_prog_compiler_can_build_shared=no
6339       enable_shared=no
6340       ;;
6341
6342     sysv4*MP*)
6343       if test -d /usr/nec; then
6344         lt_prog_compiler_pic=-Kconform_pic
6345       fi
6346       ;;
6347
6348     hpux*)
6349       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6350       # not for PA HP-UX.
6351       case "$host_cpu" in
6352       hppa*64*|ia64*)
6353         # +Z the default
6354         ;;
6355       *)
6356         lt_prog_compiler_pic='-fPIC'
6357         ;;
6358       esac
6359       ;;
6360
6361     *)
6362       lt_prog_compiler_pic='-fPIC'
6363       ;;
6364     esac
6365   else
6366     # PORTME Check for flag to pass linker flags through the system compiler.
6367     case $host_os in
6368     aix*)
6369       lt_prog_compiler_wl='-Wl,'
6370       if test "$host_cpu" = ia64; then
6371         # AIX 5 now supports IA64 processor
6372         lt_prog_compiler_static='-Bstatic'
6373       else
6374         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6375       fi
6376       ;;
6377
6378     mingw* | pw32* | os2*)
6379       # This hack is so that the source file can tell whether it is being
6380       # built for inclusion in a dll (and should export symbols for example).
6381       lt_prog_compiler_pic='-DDLL_EXPORT'
6382       ;;
6383
6384     hpux9* | hpux10* | hpux11*)
6385       lt_prog_compiler_wl='-Wl,'
6386       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6387       # not for PA HP-UX.
6388       case "$host_cpu" in
6389       hppa*64*|ia64*)
6390         # +Z the default
6391         ;;
6392       *)
6393         lt_prog_compiler_pic='+Z'
6394         ;;
6395       esac
6396       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6397       lt_prog_compiler_static='${wl}-a ${wl}archive'
6398       ;;
6399
6400     irix5* | irix6* | nonstopux*)
6401       lt_prog_compiler_wl='-Wl,'
6402       # PIC (with -KPIC) is the default.
6403       lt_prog_compiler_static='-non_shared'
6404       ;;
6405
6406     newsos6)
6407       lt_prog_compiler_pic='-KPIC'
6408       lt_prog_compiler_static='-Bstatic'
6409       ;;
6410
6411     linux*)
6412       case $CC in
6413       icc* | ecc*)
6414         lt_prog_compiler_wl='-Wl,'
6415         lt_prog_compiler_pic='-KPIC'
6416         lt_prog_compiler_static='-static'
6417         ;;
6418       ccc*)
6419         lt_prog_compiler_wl='-Wl,'
6420         # All Alpha code is PIC.
6421         lt_prog_compiler_static='-non_shared'
6422         ;;
6423       esac
6424       ;;
6425
6426     osf3* | osf4* | osf5*)
6427       lt_prog_compiler_wl='-Wl,'
6428       # All OSF/1 code is PIC.
6429       lt_prog_compiler_static='-non_shared'
6430       ;;
6431
6432     sco3.2v5*)
6433       lt_prog_compiler_pic='-Kpic'
6434       lt_prog_compiler_static='-dn'
6435       ;;
6436
6437     solaris*)
6438       lt_prog_compiler_wl='-Wl,'
6439       lt_prog_compiler_pic='-KPIC'
6440       lt_prog_compiler_static='-Bstatic'
6441       ;;
6442
6443     sunos4*)
6444       lt_prog_compiler_wl='-Qoption ld '
6445       lt_prog_compiler_pic='-PIC'
6446       lt_prog_compiler_static='-Bstatic'
6447       ;;
6448
6449     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6450       lt_prog_compiler_wl='-Wl,'
6451       lt_prog_compiler_pic='-KPIC'
6452       lt_prog_compiler_static='-Bstatic'
6453       ;;
6454
6455     sysv4*MP*)
6456       if test -d /usr/nec ;then
6457         lt_prog_compiler_pic='-Kconform_pic'
6458         lt_prog_compiler_static='-Bstatic'
6459       fi
6460       ;;
6461
6462     uts4*)
6463       lt_prog_compiler_pic='-pic'
6464       lt_prog_compiler_static='-Bstatic'
6465       ;;
6466
6467     *)
6468       lt_prog_compiler_can_build_shared=no
6469       ;;
6470     esac
6471   fi
6472
6473 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6474 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6475
6476 #
6477 # Check to make sure the PIC flag actually works.
6478 #
6479 if test -n "$lt_prog_compiler_pic"; then
6480   
6481 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6482 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6483 if test "${lt_prog_compiler_pic_works+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   lt_prog_compiler_pic_works=no
6487   ac_outfile=conftest.$ac_objext
6488    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6489    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6490    # Insert the option either (1) after the last *FLAGS variable, or
6491    # (2) before a word containing "conftest.", or (3) at the end.
6492    # Note that $ac_compile itself does not contain backslashes and begins
6493    # with a dollar sign (not a hyphen), so the echo should work correctly.
6494    # The option is referenced via a variable to avoid confusing sed.
6495    lt_compile=`echo "$ac_compile" | $SED \
6496    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6498    -e 's:$: $lt_compiler_flag:'`
6499    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6500    (eval "$lt_compile" 2>conftest.err)
6501    ac_status=$?
6502    cat conftest.err >&5
6503    echo "$as_me:__oline__: \$? = $ac_status" >&5
6504    if (exit $ac_status) && test -s "$ac_outfile"; then
6505      # The compiler can only warn and ignore the option if not recognized
6506      # So say no if there are warnings
6507      if test ! -s conftest.err; then
6508        lt_prog_compiler_pic_works=yes
6509      fi
6510    fi
6511    $rm conftest*
6512
6513 fi
6514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6515 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6516
6517 if test x"$lt_prog_compiler_pic_works" = xyes; then
6518     case $lt_prog_compiler_pic in
6519      "" | " "*) ;;
6520      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6521      esac
6522 else
6523     lt_prog_compiler_pic=
6524      lt_prog_compiler_can_build_shared=no
6525 fi
6526
6527 fi
6528 case "$host_os" in
6529   # For platforms which do not support PIC, -DPIC is meaningless:
6530   *djgpp*)
6531     lt_prog_compiler_pic=
6532     ;;
6533   *)
6534     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6535     ;;
6536 esac
6537
6538 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   lt_cv_prog_compiler_c_o=no
6544    $rm -r conftest 2>/dev/null
6545    mkdir conftest
6546    cd conftest
6547    mkdir out
6548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6549
6550    lt_compiler_flag="-o out/conftest2.$ac_objext"
6551    # Insert the option either (1) after the last *FLAGS variable, or
6552    # (2) before a word containing "conftest.", or (3) at the end.
6553    # Note that $ac_compile itself does not contain backslashes and begins
6554    # with a dollar sign (not a hyphen), so the echo should work correctly.
6555    lt_compile=`echo "$ac_compile" | $SED \
6556    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6558    -e 's:$: $lt_compiler_flag:'`
6559    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6560    (eval "$lt_compile" 2>out/conftest.err)
6561    ac_status=$?
6562    cat out/conftest.err >&5
6563    echo "$as_me:__oline__: \$? = $ac_status" >&5
6564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6565    then
6566      # The compiler can only warn and ignore the option if not recognized
6567      # So say no if there are warnings
6568      if test ! -s out/conftest.err; then
6569        lt_cv_prog_compiler_c_o=yes
6570      fi
6571    fi
6572    chmod u+w .
6573    $rm conftest*
6574    # SGI C++ compiler will create directory out/ii_files/ for
6575    # template instantiation
6576    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6577    $rm out/* && rmdir out
6578    cd ..
6579    rmdir conftest
6580    $rm conftest*
6581
6582 fi
6583 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6584 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6585
6586
6587 hard_links="nottested"
6588 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6589   # do not overwrite the value of need_locks provided by the user
6590   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6591 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6592   hard_links=yes
6593   $rm conftest*
6594   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595   touch conftest.a
6596   ln conftest.a conftest.b 2>&5 || hard_links=no
6597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6598   echo "$as_me:$LINENO: result: $hard_links" >&5
6599 echo "${ECHO_T}$hard_links" >&6
6600   if test "$hard_links" = no; then
6601     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6602 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6603     need_locks=warn
6604   fi
6605 else
6606   need_locks=no
6607 fi
6608
6609 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6611
6612   runpath_var=
6613   allow_undefined_flag=
6614   enable_shared_with_static_runtimes=no
6615   archive_cmds=
6616   archive_expsym_cmds=
6617   old_archive_From_new_cmds=
6618   old_archive_from_expsyms_cmds=
6619   export_dynamic_flag_spec=
6620   whole_archive_flag_spec=
6621   thread_safe_flag_spec=
6622   hardcode_libdir_flag_spec=
6623   hardcode_libdir_flag_spec_ld=
6624   hardcode_libdir_separator=
6625   hardcode_direct=no
6626   hardcode_minus_L=no
6627   hardcode_shlibpath_var=unsupported
6628   link_all_deplibs=unknown
6629   hardcode_automatic=no
6630   module_cmds=
6631   module_expsym_cmds=
6632   always_export_symbols=no
6633   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6634   # include_expsyms should be a list of space-separated symbols to be *always*
6635   # included in the symbol list
6636   include_expsyms=
6637   # exclude_expsyms can be an extended regexp of symbols to exclude
6638   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6639   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6640   # as well as any symbol that contains `d'.
6641   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6642   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6643   # platforms (ab)use it in PIC code, but their linkers get confused if
6644   # the symbol is explicitly referenced.  Since portable code cannot
6645   # rely on this symbol name, it's probably fine to never include it in
6646   # preloaded symbol tables.
6647   extract_expsyms_cmds=
6648
6649   case $host_os in
6650   cygwin* | mingw* | pw32*)
6651     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6652     # When not using gcc, we currently assume that we are using
6653     # Microsoft Visual C++.
6654     if test "$GCC" != yes; then
6655       with_gnu_ld=no
6656     fi
6657     ;;
6658   openbsd*)
6659     with_gnu_ld=no
6660     ;;
6661   esac
6662
6663   ld_shlibs=yes
6664   if test "$with_gnu_ld" = yes; then
6665     # If archive_cmds runs LD, not CC, wlarc should be empty
6666     wlarc='${wl}'
6667
6668     # See if GNU ld supports shared libraries.
6669     case $host_os in
6670     aix3* | aix4* | aix5*)
6671       # On AIX/PPC, the GNU linker is very broken
6672       if test "$host_cpu" != ia64; then
6673         ld_shlibs=no
6674         cat <<EOF 1>&2
6675
6676 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6677 *** to be unable to reliably create shared libraries on AIX.
6678 *** Therefore, libtool is disabling shared libraries support.  If you
6679 *** really care for shared libraries, you may want to modify your PATH
6680 *** so that a non-GNU linker is found, and then restart.
6681
6682 EOF
6683       fi
6684       ;;
6685
6686     amigaos*)
6687       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)'
6688       hardcode_libdir_flag_spec='-L$libdir'
6689       hardcode_minus_L=yes
6690
6691       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6692       # that the semantics of dynamic libraries on AmigaOS, at least up
6693       # to version 4, is to share data among multiple programs linked
6694       # with the same dynamic library.  Since this doesn't match the
6695       # behavior of shared libraries on other platforms, we can't use
6696       # them.
6697       ld_shlibs=no
6698       ;;
6699
6700     beos*)
6701       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6702         allow_undefined_flag=unsupported
6703         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6704         # support --undefined.  This deserves some investigation.  FIXME
6705         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706       else
6707         ld_shlibs=no
6708       fi
6709       ;;
6710
6711     cygwin* | mingw* | pw32*)
6712       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6713       # as there is no search path for DLLs.
6714       hardcode_libdir_flag_spec='-L$libdir'
6715       allow_undefined_flag=unsupported
6716       always_export_symbols=no
6717       enable_shared_with_static_runtimes=yes
6718       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6719
6720       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6722         # If the export-symbols file already is a .def file (1st line
6723         # is EXPORTS), use it as is; otherwise, prepend...
6724         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6725           cp $export_symbols $output_objdir/$soname.def;
6726         else
6727           echo EXPORTS > $output_objdir/$soname.def;
6728           cat $export_symbols >> $output_objdir/$soname.def;
6729         fi~
6730         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6731       else
6732         ld_shlibs=no
6733       fi
6734       ;;
6735
6736     netbsd*)
6737       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6738         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6739         wlarc=
6740       else
6741         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743       fi
6744       ;;
6745
6746     solaris* | sysv5*)
6747       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6748         ld_shlibs=no
6749         cat <<EOF 1>&2
6750
6751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6752 *** create shared libraries on Solaris systems.  Therefore, libtool
6753 *** is disabling shared libraries support.  We urge you to upgrade GNU
6754 *** binutils to release 2.9.1 or newer.  Another option is to modify
6755 *** your PATH or compiler configuration so that the native linker is
6756 *** used, and then restart.
6757
6758 EOF
6759       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762       else
6763         ld_shlibs=no
6764       fi
6765       ;;
6766
6767     sunos4*)
6768       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6769       wlarc=
6770       hardcode_direct=yes
6771       hardcode_shlibpath_var=no
6772       ;;
6773
6774   linux*)
6775     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777         archive_cmds="$tmp_archive_cmds"
6778       supports_anon_versioning=no
6779       case `$LD -v 2>/dev/null` in
6780         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6781         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6782         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6783         *\ 2.11.*) ;; # other 2.11 versions
6784         *) supports_anon_versioning=yes ;;
6785       esac
6786       if test $supports_anon_versioning = yes; then
6787         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6789 $echo "local: *; };" >> $output_objdir/$libname.ver~
6790         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6791       else
6792         archive_expsym_cmds="$tmp_archive_cmds"
6793       fi
6794     else
6795       ld_shlibs=no
6796     fi
6797     ;;
6798
6799     *)
6800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6801         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6802         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6803       else
6804         ld_shlibs=no
6805       fi
6806       ;;
6807     esac
6808
6809     if test "$ld_shlibs" = yes; then
6810       runpath_var=LD_RUN_PATH
6811       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6812       export_dynamic_flag_spec='${wl}--export-dynamic'
6813       # ancient GNU ld didn't support --whole-archive et. al.
6814       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6815         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6816       else
6817         whole_archive_flag_spec=
6818       fi
6819     fi
6820   else
6821     # PORTME fill in a description of your system's linker (not GNU ld)
6822     case $host_os in
6823     aix3*)
6824       allow_undefined_flag=unsupported
6825       always_export_symbols=yes
6826       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'
6827       # Note: this linker hardcodes the directories in LIBPATH if there
6828       # are no directories specified by -L.
6829       hardcode_minus_L=yes
6830       if test "$GCC" = yes && test -z "$link_static_flag"; then
6831         # Neither direct hardcoding nor static linking is supported with a
6832         # broken collect2.
6833         hardcode_direct=unsupported
6834       fi
6835       ;;
6836
6837     aix4* | aix5*)
6838       if test "$host_cpu" = ia64; then
6839         # On IA64, the linker does run time linking by default, so we don't
6840         # have to do anything special.
6841         aix_use_runtimelinking=no
6842         exp_sym_flag='-Bexport'
6843         no_entry_flag=""
6844       else
6845         # If we're using GNU nm, then we don't want the "-C" option.
6846         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6847         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6848           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'
6849         else
6850           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'
6851         fi
6852         aix_use_runtimelinking=no
6853
6854         # Test if we are trying to use run time linking or normal
6855         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6856         # need to do runtime linking.
6857         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6858           for ld_flag in $LDFLAGS; do
6859           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6860             aix_use_runtimelinking=yes
6861             break
6862           fi
6863           done
6864         esac
6865
6866         exp_sym_flag='-bexport'
6867         no_entry_flag='-bnoentry'
6868       fi
6869
6870       # When large executables or shared objects are built, AIX ld can
6871       # have problems creating the table of contents.  If linking a library
6872       # or program results in "error TOC overflow" add -mminimal-toc to
6873       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6874       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6875
6876       archive_cmds=''
6877       hardcode_direct=yes
6878       hardcode_libdir_separator=':'
6879       link_all_deplibs=yes
6880
6881       if test "$GCC" = yes; then
6882         case $host_os in aix4.012|aix4.012.*)
6883         # We only want to do this on AIX 4.2 and lower, the check
6884         # below for broken collect2 doesn't work under 4.3+
6885           collect2name=`${CC} -print-prog-name=collect2`
6886           if test -f "$collect2name" && \
6887            strings "$collect2name" | grep resolve_lib_name >/dev/null
6888           then
6889           # We have reworked collect2
6890           hardcode_direct=yes
6891           else
6892           # We have old collect2
6893           hardcode_direct=unsupported
6894           # It fails to find uninstalled libraries when the uninstalled
6895           # path is not listed in the libpath.  Setting hardcode_minus_L
6896           # to unsupported forces relinking
6897           hardcode_minus_L=yes
6898           hardcode_libdir_flag_spec='-L$libdir'
6899           hardcode_libdir_separator=
6900           fi
6901         esac
6902         shared_flag='-shared'
6903       else
6904         # not using gcc
6905         if test "$host_cpu" = ia64; then
6906         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6907         # chokes on -Wl,-G. The following line is correct:
6908           shared_flag='-G'
6909         else
6910         if test "$aix_use_runtimelinking" = yes; then
6911             shared_flag='${wl}-G'
6912           else
6913             shared_flag='${wl}-bM:SRE'
6914         fi
6915         fi
6916       fi
6917
6918       # It seems that -bexpall does not export symbols beginning with
6919       # underscore (_), so it is better to generate a list of symbols to export.
6920       always_export_symbols=yes
6921       if test "$aix_use_runtimelinking" = yes; then
6922         # Warning - without using the other runtime loading flags (-brtl),
6923         # -berok will link without error, but may produce a broken library.
6924         allow_undefined_flag='-berok'
6925        # Determine the default libpath from the value encoded in an empty executable.
6926        cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h.  */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h.  */
6932
6933 int
6934 main ()
6935 {
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943   (eval $ac_link) 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } &&
6950          { ac_try='test -z "$ac_c_werror_flag"
6951                          || test ! -s conftest.err'
6952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953   (eval $ac_try) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }; } &&
6957          { ac_try='test -s conftest$ac_exeext'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; }; then
6963   
6964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6965 }'`
6966 # Check for a 64-bit object if we didn't find anything.
6967 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; }
6968 }'`; fi
6969 else
6970   echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 fi
6974 rm -f conftest.err conftest.$ac_objext \
6975       conftest$ac_exeext conftest.$ac_ext
6976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6977
6978        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6979         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"
6980        else
6981         if test "$host_cpu" = ia64; then
6982           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6983           allow_undefined_flag="-z nodefs"
6984           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"
6985         else
6986          # Determine the default libpath from the value encoded in an empty executable.
6987          cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993
6994 int
6995 main ()
6996 {
6997
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   
7025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7026 }'`
7027 # Check for a 64-bit object if we didn't find anything.
7028 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; }
7029 }'`; fi
7030 else
7031   echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 fi
7035 rm -f conftest.err conftest.$ac_objext \
7036       conftest$ac_exeext conftest.$ac_ext
7037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7038
7039          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7040           # Warning - without using the other run time loading flags,
7041           # -berok will link without error, but may produce a broken library.
7042           no_undefined_flag=' ${wl}-bernotok'
7043           allow_undefined_flag=' ${wl}-berok'
7044           # -bexpall does not export symbols beginning with underscore (_)
7045           always_export_symbols=yes
7046           # Exported symbols can be pulled into shared objects from archives
7047           whole_archive_flag_spec=' '
7048           archive_cmds_need_lc=yes
7049           # This is similar to how AIX traditionally builds it's shared libraries.
7050           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'
7051         fi
7052       fi
7053       ;;
7054
7055     amigaos*)
7056       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)'
7057       hardcode_libdir_flag_spec='-L$libdir'
7058       hardcode_minus_L=yes
7059       # see comment about different semantics on the GNU ld section
7060       ld_shlibs=no
7061       ;;
7062
7063     bsdi4*)
7064       export_dynamic_flag_spec=-rdynamic
7065       ;;
7066
7067     cygwin* | mingw* | pw32*)
7068       # When not using gcc, we currently assume that we are using
7069       # Microsoft Visual C++.
7070       # hardcode_libdir_flag_spec is actually meaningless, as there is
7071       # no search path for DLLs.
7072       hardcode_libdir_flag_spec=' '
7073       allow_undefined_flag=unsupported
7074       # Tell ltmain to make .lib files, not .a files.
7075       libext=lib
7076       # Tell ltmain to make .dll files, not .so files.
7077       shrext_cmds=".dll"
7078       # FIXME: Setting linknames here is a bad hack.
7079       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7080       # The linker will automatically build a .lib file if we build a DLL.
7081       old_archive_From_new_cmds='true'
7082       # FIXME: Should let the user specify the lib program.
7083       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7084       fix_srcfile_path='`cygpath -w "$srcfile"`'
7085       enable_shared_with_static_runtimes=yes
7086       ;;
7087
7088     darwin* | rhapsody*)
7089     if test "$GXX" = yes ; then
7090       archive_cmds_need_lc=no
7091       case "$host_os" in
7092       rhapsody* | darwin1.[012])
7093         allow_undefined_flag='-undefined suppress'
7094         ;;
7095       *) # Darwin 1.3 on
7096       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7097         allow_undefined_flag='-flat_namespace -undefined suppress'
7098       else
7099         case ${MACOSX_DEPLOYMENT_TARGET} in
7100           10.[012])
7101             allow_undefined_flag='-flat_namespace -undefined suppress'
7102             ;;
7103           10.*)
7104             allow_undefined_flag='-undefined dynamic_lookup'
7105             ;;
7106         esac
7107       fi
7108         ;;
7109       esac
7110         lt_int_apple_cc_single_mod=no
7111         output_verbose_link_cmd='echo'
7112         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7113           lt_int_apple_cc_single_mod=yes
7114         fi
7115         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7116           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7117         else
7118         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'
7119       fi
7120       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7121       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7122         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7123           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}'
7124         else
7125           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}'
7126         fi
7127           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}'
7128       hardcode_direct=no
7129       hardcode_automatic=yes
7130       hardcode_shlibpath_var=unsupported
7131       whole_archive_flag_spec='-all_load $convenience'
7132       link_all_deplibs=yes
7133     else
7134       ld_shlibs=no
7135     fi
7136       ;;
7137
7138     dgux*)
7139       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7140       hardcode_libdir_flag_spec='-L$libdir'
7141       hardcode_shlibpath_var=no
7142       ;;
7143
7144     freebsd1*)
7145       ld_shlibs=no
7146       ;;
7147
7148     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7149     # support.  Future versions do this automatically, but an explicit c++rt0.o
7150     # does not break anything, and helps significantly (at the cost of a little
7151     # extra space).
7152     freebsd2.2*)
7153       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7154       hardcode_libdir_flag_spec='-R$libdir'
7155       hardcode_direct=yes
7156       hardcode_shlibpath_var=no
7157       ;;
7158
7159     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7160     freebsd2*)
7161       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7162       hardcode_direct=yes
7163       hardcode_minus_L=yes
7164       hardcode_shlibpath_var=no
7165       ;;
7166
7167     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7168     freebsd* | kfreebsd*-gnu)
7169       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7170       hardcode_libdir_flag_spec='-R$libdir'
7171       hardcode_direct=yes
7172       hardcode_shlibpath_var=no
7173       ;;
7174
7175     hpux9*)
7176       if test "$GCC" = yes; then
7177         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'
7178       else
7179         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'
7180       fi
7181       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7182       hardcode_libdir_separator=:
7183       hardcode_direct=yes
7184
7185       # hardcode_minus_L: Not really in the search PATH,
7186       # but as the default location of the library.
7187       hardcode_minus_L=yes
7188       export_dynamic_flag_spec='${wl}-E'
7189       ;;
7190
7191     hpux10* | hpux11*)
7192       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7193         case "$host_cpu" in
7194         hppa*64*|ia64*)
7195           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7196           ;;
7197         *)
7198           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7199           ;;
7200         esac
7201       else
7202         case "$host_cpu" in
7203         hppa*64*|ia64*)
7204           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7205           ;;
7206         *)
7207           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7208           ;;
7209         esac
7210       fi
7211       if test "$with_gnu_ld" = no; then
7212         case "$host_cpu" in
7213         hppa*64*)
7214           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7215           hardcode_libdir_flag_spec_ld='+b $libdir'
7216           hardcode_libdir_separator=:
7217           hardcode_direct=no
7218           hardcode_shlibpath_var=no
7219           ;;
7220         ia64*)
7221           hardcode_libdir_flag_spec='-L$libdir'
7222           hardcode_direct=no
7223           hardcode_shlibpath_var=no
7224
7225           # hardcode_minus_L: Not really in the search PATH,
7226           # but as the default location of the library.
7227           hardcode_minus_L=yes
7228           ;;
7229         *)
7230           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7231           hardcode_libdir_separator=:
7232           hardcode_direct=yes
7233           export_dynamic_flag_spec='${wl}-E'
7234
7235           # hardcode_minus_L: Not really in the search PATH,
7236           # but as the default location of the library.
7237           hardcode_minus_L=yes
7238           ;;
7239         esac
7240       fi
7241       ;;
7242
7243     irix5* | irix6* | nonstopux*)
7244       if test "$GCC" = yes; then
7245         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'
7246       else
7247         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'
7248         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7249       fi
7250       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7251       hardcode_libdir_separator=:
7252       link_all_deplibs=yes
7253       ;;
7254
7255     netbsd*)
7256       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7257         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7258       else
7259         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7260       fi
7261       hardcode_libdir_flag_spec='-R$libdir'
7262       hardcode_direct=yes
7263       hardcode_shlibpath_var=no
7264       ;;
7265
7266     newsos6)
7267       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268       hardcode_direct=yes
7269       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270       hardcode_libdir_separator=:
7271       hardcode_shlibpath_var=no
7272       ;;
7273
7274     openbsd*)
7275       hardcode_direct=yes
7276       hardcode_shlibpath_var=no
7277       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7278         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7279         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7280         export_dynamic_flag_spec='${wl}-E'
7281       else
7282        case $host_os in
7283          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7284            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7285            hardcode_libdir_flag_spec='-R$libdir'
7286            ;;
7287          *)
7288            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7289            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7290            ;;
7291        esac
7292       fi
7293       ;;
7294
7295     os2*)
7296       hardcode_libdir_flag_spec='-L$libdir'
7297       hardcode_minus_L=yes
7298       allow_undefined_flag=unsupported
7299       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'
7300       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7301       ;;
7302
7303     osf3*)
7304       if test "$GCC" = yes; then
7305         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7306         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'
7307       else
7308         allow_undefined_flag=' -expect_unresolved \*'
7309         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'
7310       fi
7311       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7312       hardcode_libdir_separator=:
7313       ;;
7314
7315     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7316       if test "$GCC" = yes; then
7317         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7318         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'
7319         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320       else
7321         allow_undefined_flag=' -expect_unresolved \*'
7322         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'
7323         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7324         $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'
7325
7326         # Both c and cxx compiler support -rpath directly
7327         hardcode_libdir_flag_spec='-rpath $libdir'
7328       fi
7329       hardcode_libdir_separator=:
7330       ;;
7331
7332     sco3.2v5*)
7333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334       hardcode_shlibpath_var=no
7335       export_dynamic_flag_spec='${wl}-Bexport'
7336       runpath_var=LD_RUN_PATH
7337       hardcode_runpath_var=yes
7338       ;;
7339
7340     solaris*)
7341       no_undefined_flag=' -z text'
7342       if test "$GCC" = yes; then
7343         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7344         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7345           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7346       else
7347         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7349         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7350       fi
7351       hardcode_libdir_flag_spec='-R$libdir'
7352       hardcode_shlibpath_var=no
7353       case $host_os in
7354       solaris2.[0-5] | solaris2.[0-5].*) ;;
7355       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7356         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7357       esac
7358       link_all_deplibs=yes
7359       ;;
7360
7361     sunos4*)
7362       if test "x$host_vendor" = xsequent; then
7363         # Use $CC to link under sequent, because it throws in some extra .o
7364         # files that make .init and .fini sections work.
7365         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7366       else
7367         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7368       fi
7369       hardcode_libdir_flag_spec='-L$libdir'
7370       hardcode_direct=yes
7371       hardcode_minus_L=yes
7372       hardcode_shlibpath_var=no
7373       ;;
7374
7375     sysv4)
7376       case $host_vendor in
7377         sni)
7378           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379           hardcode_direct=yes # is this really true???
7380         ;;
7381         siemens)
7382           ## LD is ld it makes a PLAMLIB
7383           ## CC just makes a GrossModule.
7384           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7385           reload_cmds='$CC -r -o $output$reload_objs'
7386           hardcode_direct=no
7387         ;;
7388         motorola)
7389           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7390           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7391         ;;
7392       esac
7393       runpath_var='LD_RUN_PATH'
7394       hardcode_shlibpath_var=no
7395       ;;
7396
7397     sysv4.3*)
7398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399       hardcode_shlibpath_var=no
7400       export_dynamic_flag_spec='-Bexport'
7401       ;;
7402
7403     sysv4*MP*)
7404       if test -d /usr/nec; then
7405         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406         hardcode_shlibpath_var=no
7407         runpath_var=LD_RUN_PATH
7408         hardcode_runpath_var=yes
7409         ld_shlibs=yes
7410       fi
7411       ;;
7412
7413     sysv4.2uw2*)
7414       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7415       hardcode_direct=yes
7416       hardcode_minus_L=no
7417       hardcode_shlibpath_var=no
7418       hardcode_runpath_var=yes
7419       runpath_var=LD_RUN_PATH
7420       ;;
7421
7422    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7423       no_undefined_flag='${wl}-z ${wl}text'
7424       if test "$GCC" = yes; then
7425         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7426       else
7427         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7428       fi
7429       runpath_var='LD_RUN_PATH'
7430       hardcode_shlibpath_var=no
7431       ;;
7432
7433     sysv5*)
7434       no_undefined_flag=' -z text'
7435       # $CC -shared without GNU ld will not create a library from C++
7436       # object files and a static libstdc++, better avoid it by now
7437       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7439                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7440       hardcode_libdir_flag_spec=
7441       hardcode_shlibpath_var=no
7442       runpath_var='LD_RUN_PATH'
7443       ;;
7444
7445     uts4*)
7446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447       hardcode_libdir_flag_spec='-L$libdir'
7448       hardcode_shlibpath_var=no
7449       ;;
7450
7451     *)
7452       ld_shlibs=no
7453       ;;
7454     esac
7455   fi
7456
7457 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7458 echo "${ECHO_T}$ld_shlibs" >&6
7459 test "$ld_shlibs" = no && can_build_shared=no
7460
7461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7462 if test "$GCC" = yes; then
7463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7464 fi
7465
7466 #
7467 # Do we need to explicitly link libc?
7468 #
7469 case "x$archive_cmds_need_lc" in
7470 x|xyes)
7471   # Assume -lc should be added
7472   archive_cmds_need_lc=yes
7473
7474   if test "$enable_shared" = yes && test "$GCC" = yes; then
7475     case $archive_cmds in
7476     *'~'*)
7477       # FIXME: we may have to deal with multi-command sequences.
7478       ;;
7479     '$CC '*)
7480       # Test whether the compiler implicitly links with -lc since on some
7481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7482       # to ld, don't add -lc before -lgcc.
7483       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7485       $rm conftest*
7486       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7487
7488       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489   (eval $ac_compile) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); } 2>conftest.err; then
7493         soname=conftest
7494         lib=conftest
7495         libobjs=conftest.$ac_objext
7496         deplibs=
7497         wl=$lt_prog_compiler_wl
7498         compiler_flags=-v
7499         linker_flags=-v
7500         verstring=
7501         output_objdir=.
7502         libname=conftest
7503         lt_save_allow_undefined_flag=$allow_undefined_flag
7504         allow_undefined_flag=
7505         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7506   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); }
7510         then
7511           archive_cmds_need_lc=no
7512         else
7513           archive_cmds_need_lc=yes
7514         fi
7515         allow_undefined_flag=$lt_save_allow_undefined_flag
7516       else
7517         cat conftest.err 1>&5
7518       fi
7519       $rm conftest*
7520       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7521 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7522       ;;
7523     esac
7524   fi
7525   ;;
7526 esac
7527
7528 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7529 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7530 library_names_spec=
7531 libname_spec='lib$name'
7532 soname_spec=
7533 shrext_cmds=".so"
7534 postinstall_cmds=
7535 postuninstall_cmds=
7536 finish_cmds=
7537 finish_eval=
7538 shlibpath_var=
7539 shlibpath_overrides_runpath=unknown
7540 version_type=none
7541 dynamic_linker="$host_os ld.so"
7542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7543 if test "$GCC" = yes; then
7544   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7545   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7546     # if the path contains ";" then we assume it to be the separator
7547     # otherwise default to the standard path separator (i.e. ":") - it is
7548     # assumed that no part of a normal pathname contains ";" but that should
7549     # okay in the real world where ";" in dirpaths is itself problematic.
7550     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7551   else
7552     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7553   fi
7554 else
7555   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7556 fi
7557 need_lib_prefix=unknown
7558 hardcode_into_libs=no
7559
7560 # when you set need_version to no, make sure it does not cause -set_version
7561 # flags to be left without arguments
7562 need_version=unknown
7563
7564 case $host_os in
7565 aix3*)
7566   version_type=linux
7567   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7568   shlibpath_var=LIBPATH
7569
7570   # AIX 3 has no versioning support, so we append a major version to the name.
7571   soname_spec='${libname}${release}${shared_ext}$major'
7572   ;;
7573
7574 aix4* | aix5*)
7575   version_type=linux
7576   need_lib_prefix=no
7577   need_version=no
7578   hardcode_into_libs=yes
7579   if test "$host_cpu" = ia64; then
7580     # AIX 5 supports IA64
7581     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7582     shlibpath_var=LD_LIBRARY_PATH
7583   else
7584     # With GCC up to 2.95.x, collect2 would create an import file
7585     # for dependence libraries.  The import file would start with
7586     # the line `#! .'.  This would cause the generated library to
7587     # depend on `.', always an invalid library.  This was fixed in
7588     # development snapshots of GCC prior to 3.0.
7589     case $host_os in
7590       aix4 | aix4.[01] | aix4.[01].*)
7591       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7592            echo ' yes '
7593            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7594         :
7595       else
7596         can_build_shared=no
7597       fi
7598       ;;
7599     esac
7600     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7601     # soname into executable. Probably we can add versioning support to
7602     # collect2, so additional links can be useful in future.
7603     if test "$aix_use_runtimelinking" = yes; then
7604       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7605       # instead of lib<name>.a to let people know that these are not
7606       # typical AIX shared libraries.
7607       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7608     else
7609       # We preserve .a as extension for shared libraries through AIX4.2
7610       # and later when we are not doing run time linking.
7611       library_names_spec='${libname}${release}.a $libname.a'
7612       soname_spec='${libname}${release}${shared_ext}$major'
7613     fi
7614     shlibpath_var=LIBPATH
7615   fi
7616   ;;
7617
7618 amigaos*)
7619   library_names_spec='$libname.ixlibrary $libname.a'
7620   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7621   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'
7622   ;;
7623
7624 beos*)
7625   library_names_spec='${libname}${shared_ext}'
7626   dynamic_linker="$host_os ld.so"
7627   shlibpath_var=LIBRARY_PATH
7628   ;;
7629
7630 bsdi4*)
7631   version_type=linux
7632   need_version=no
7633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7634   soname_spec='${libname}${release}${shared_ext}$major'
7635   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7636   shlibpath_var=LD_LIBRARY_PATH
7637   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7638   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7639   # the default ld.so.conf also contains /usr/contrib/lib and
7640   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7641   # libtool to hard-code these into programs
7642   ;;
7643
7644 cygwin* | mingw* | pw32*)
7645   version_type=windows
7646   shrext_cmds=".dll"
7647   need_version=no
7648   need_lib_prefix=no
7649
7650   case $GCC,$host_os in
7651   yes,cygwin* | yes,mingw* | yes,pw32*)
7652     library_names_spec='$libname.dll.a'
7653     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7654     postinstall_cmds='base_file=`basename \${file}`~
7655       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7656       dldir=$destdir/`dirname \$dlpath`~
7657       test -d \$dldir || mkdir -p \$dldir~
7658       $install_prog $dir/$dlname \$dldir/$dlname'
7659     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7660       dlpath=$dir/\$dldll~
7661        $rm \$dlpath'
7662     shlibpath_overrides_runpath=yes
7663
7664     case $host_os in
7665     cygwin*)
7666       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7667       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7668       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7669       ;;
7670     mingw*)
7671       # MinGW DLLs use traditional 'lib' prefix
7672       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7673       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7674       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7675         # It is most probably a Windows format PATH printed by
7676         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7677         # path with ; separators, and with drive letters. We can handle the
7678         # drive letters (cygwin fileutils understands them), so leave them,
7679         # especially as we might pass files found there to a mingw objdump,
7680         # which wouldn't understand a cygwinified path. Ahh.
7681         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7682       else
7683         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7684       fi
7685       ;;
7686     pw32*)
7687       # pw32 DLLs use 'pw' prefix rather than 'lib'
7688       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7689       ;;
7690     esac
7691     ;;
7692
7693   *)
7694     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7695     ;;
7696   esac
7697   dynamic_linker='Win32 ld.exe'
7698   # FIXME: first we should search . and the directory the executable is in
7699   shlibpath_var=PATH
7700   ;;
7701
7702 darwin* | rhapsody*)
7703   dynamic_linker="$host_os dyld"
7704   version_type=darwin
7705   need_lib_prefix=no
7706   need_version=no
7707   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7708   soname_spec='${libname}${release}${major}$shared_ext'
7709   shlibpath_overrides_runpath=yes
7710   shlibpath_var=DYLD_LIBRARY_PATH
7711   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7712   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7713   if test "$GCC" = yes; then
7714     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"`
7715   else
7716     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7717   fi
7718   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7719   ;;
7720
7721 dgux*)
7722   version_type=linux
7723   need_lib_prefix=no
7724   need_version=no
7725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7726   soname_spec='${libname}${release}${shared_ext}$major'
7727   shlibpath_var=LD_LIBRARY_PATH
7728   ;;
7729
7730 freebsd1*)
7731   dynamic_linker=no
7732   ;;
7733
7734 kfreebsd*-gnu)
7735   version_type=linux
7736   need_lib_prefix=no
7737   need_version=no
7738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7739   soname_spec='${libname}${release}${shared_ext}$major'
7740   shlibpath_var=LD_LIBRARY_PATH
7741   shlibpath_overrides_runpath=no
7742   hardcode_into_libs=yes
7743   dynamic_linker='GNU ld.so'
7744   ;;
7745
7746 freebsd*)
7747   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7748   version_type=freebsd-$objformat
7749   case $version_type in
7750     freebsd-elf*)
7751       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7752       need_version=no
7753       need_lib_prefix=no
7754       ;;
7755     freebsd-*)
7756       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7757       need_version=yes
7758       ;;
7759   esac
7760   shlibpath_var=LD_LIBRARY_PATH
7761   case $host_os in
7762   freebsd2*)
7763     shlibpath_overrides_runpath=yes
7764     ;;
7765   freebsd3.01* | freebsdelf3.01*)
7766     shlibpath_overrides_runpath=yes
7767     hardcode_into_libs=yes
7768     ;;
7769   *) # from 3.2 on
7770     shlibpath_overrides_runpath=no
7771     hardcode_into_libs=yes
7772     ;;
7773   esac
7774   ;;
7775
7776 gnu*)
7777   version_type=linux
7778   need_lib_prefix=no
7779   need_version=no
7780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7781   soname_spec='${libname}${release}${shared_ext}$major'
7782   shlibpath_var=LD_LIBRARY_PATH
7783   hardcode_into_libs=yes
7784   ;;
7785
7786 hpux9* | hpux10* | hpux11*)
7787   # Give a soname corresponding to the major version so that dld.sl refuses to
7788   # link against other versions.
7789   version_type=sunos
7790   need_lib_prefix=no
7791   need_version=no
7792   case "$host_cpu" in
7793   ia64*)
7794     shrext_cmds='.so'
7795     hardcode_into_libs=yes
7796     dynamic_linker="$host_os dld.so"
7797     shlibpath_var=LD_LIBRARY_PATH
7798     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800     soname_spec='${libname}${release}${shared_ext}$major'
7801     if test "X$HPUX_IA64_MODE" = X32; then
7802       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7803     else
7804       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7805     fi
7806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7807     ;;
7808    hppa*64*)
7809      shrext_cmds='.sl'
7810      hardcode_into_libs=yes
7811      dynamic_linker="$host_os dld.sl"
7812      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7813      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7814      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815      soname_spec='${libname}${release}${shared_ext}$major'
7816      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7817      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7818      ;;
7819    *)
7820     shrext_cmds='.sl'
7821     dynamic_linker="$host_os dld.sl"
7822     shlibpath_var=SHLIB_PATH
7823     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825     soname_spec='${libname}${release}${shared_ext}$major'
7826     ;;
7827   esac
7828   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7829   postinstall_cmds='chmod 555 $lib'
7830   ;;
7831
7832 irix5* | irix6* | nonstopux*)
7833   case $host_os in
7834     nonstopux*) version_type=nonstopux ;;
7835     *)
7836         if test "$lt_cv_prog_gnu_ld" = yes; then
7837                 version_type=linux
7838         else
7839                 version_type=irix
7840         fi ;;
7841   esac
7842   need_lib_prefix=no
7843   need_version=no
7844   soname_spec='${libname}${release}${shared_ext}$major'
7845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7846   case $host_os in
7847   irix5* | nonstopux*)
7848     libsuff= shlibsuff=
7849     ;;
7850   *)
7851     case $LD in # libtool.m4 will add one of these switches to LD
7852     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7853       libsuff= shlibsuff= libmagic=32-bit;;
7854     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7855       libsuff=32 shlibsuff=N32 libmagic=N32;;
7856     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7857       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7858     *) libsuff= shlibsuff= libmagic=never-match;;
7859     esac
7860     ;;
7861   esac
7862   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7863   shlibpath_overrides_runpath=no
7864   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7865   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7866   hardcode_into_libs=yes
7867   ;;
7868
7869 # No shared lib support for Linux oldld, aout, or coff.
7870 linux*oldld* | linux*aout* | linux*coff*)
7871   dynamic_linker=no
7872   ;;
7873
7874 # This must be Linux ELF.
7875 linux*)
7876   version_type=linux
7877   need_lib_prefix=no
7878   need_version=no
7879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7880   soname_spec='${libname}${release}${shared_ext}$major'
7881   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7882   shlibpath_var=LD_LIBRARY_PATH
7883   shlibpath_overrides_runpath=no
7884   # This implies no fast_install, which is unacceptable.
7885   # Some rework will be needed to allow for fast_install
7886   # before this can be enabled.
7887   hardcode_into_libs=yes
7888
7889   # find out which ABI we are using
7890   libsuff=
7891   case "$host_cpu" in
7892   x86_64*|s390x*|powerpc64*)
7893     echo '#line __oline__ "configure"' > conftest.$ac_ext
7894     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; then
7899       case `/usr/bin/file conftest.$ac_objext` in
7900       *64-bit*)
7901         libsuff=64
7902         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7903         ;;
7904       esac
7905     fi
7906     rm -rf conftest*
7907     ;;
7908   esac
7909
7910   # Append ld.so.conf contents to the search path
7911   if test -f /etc/ld.so.conf; then
7912     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7913     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7914   fi
7915
7916   # We used to test for /lib/ld.so.1 and disable shared libraries on
7917   # powerpc, because MkLinux only supported shared libraries with the
7918   # GNU dynamic linker.  Since this was broken with cross compilers,
7919   # most powerpc-linux boxes support dynamic linking these days and
7920   # people can always --disable-shared, the test was removed, and we
7921   # assume the GNU/Linux dynamic linker is in use.
7922   dynamic_linker='GNU/Linux ld.so'
7923   ;;
7924
7925 knetbsd*-gnu)
7926   version_type=linux
7927   need_lib_prefix=no
7928   need_version=no
7929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7930   soname_spec='${libname}${release}${shared_ext}$major'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=no
7933   hardcode_into_libs=yes
7934   dynamic_linker='GNU ld.so'
7935   ;;
7936
7937 netbsd*)
7938   version_type=sunos
7939   need_lib_prefix=no
7940   need_version=no
7941   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7943     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7944     dynamic_linker='NetBSD (a.out) ld.so'
7945   else
7946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7947     soname_spec='${libname}${release}${shared_ext}$major'
7948     dynamic_linker='NetBSD ld.elf_so'
7949   fi
7950   shlibpath_var=LD_LIBRARY_PATH
7951   shlibpath_overrides_runpath=yes
7952   hardcode_into_libs=yes
7953   ;;
7954
7955 newsos6)
7956   version_type=linux
7957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958   shlibpath_var=LD_LIBRARY_PATH
7959   shlibpath_overrides_runpath=yes
7960   ;;
7961
7962 nto-qnx*)
7963   version_type=linux
7964   need_lib_prefix=no
7965   need_version=no
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   shlibpath_overrides_runpath=yes
7970   ;;
7971
7972 openbsd*)
7973   version_type=sunos
7974   need_lib_prefix=no
7975   need_version=yes
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7980     case $host_os in
7981       openbsd2.[89] | openbsd2.[89].*)
7982         shlibpath_overrides_runpath=no
7983         ;;
7984       *)
7985         shlibpath_overrides_runpath=yes
7986         ;;
7987       esac
7988   else
7989     shlibpath_overrides_runpath=yes
7990   fi
7991   ;;
7992
7993 os2*)
7994   libname_spec='$name'
7995   shrext_cmds=".dll"
7996   need_lib_prefix=no
7997   library_names_spec='$libname${shared_ext} $libname.a'
7998   dynamic_linker='OS/2 ld.exe'
7999   shlibpath_var=LIBPATH
8000   ;;
8001
8002 osf3* | osf4* | osf5*)
8003   version_type=osf
8004   need_lib_prefix=no
8005   need_version=no
8006   soname_spec='${libname}${release}${shared_ext}$major'
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008   shlibpath_var=LD_LIBRARY_PATH
8009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8011   ;;
8012
8013 sco3.2v5*)
8014   version_type=osf
8015   soname_spec='${libname}${release}${shared_ext}$major'
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   ;;
8019
8020 solaris*)
8021   version_type=linux
8022   need_lib_prefix=no
8023   need_version=no
8024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025   soname_spec='${libname}${release}${shared_ext}$major'
8026   shlibpath_var=LD_LIBRARY_PATH
8027   shlibpath_overrides_runpath=yes
8028   hardcode_into_libs=yes
8029   # ldd complains unless libraries are executable
8030   postinstall_cmds='chmod +x $lib'
8031   ;;
8032
8033 sunos4*)
8034   version_type=sunos
8035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8036   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8037   shlibpath_var=LD_LIBRARY_PATH
8038   shlibpath_overrides_runpath=yes
8039   if test "$with_gnu_ld" = yes; then
8040     need_lib_prefix=no
8041   fi
8042   need_version=yes
8043   ;;
8044
8045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8046   version_type=linux
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048   soname_spec='${libname}${release}${shared_ext}$major'
8049   shlibpath_var=LD_LIBRARY_PATH
8050   case $host_vendor in
8051     sni)
8052       shlibpath_overrides_runpath=no
8053       need_lib_prefix=no
8054       export_dynamic_flag_spec='${wl}-Blargedynsym'
8055       runpath_var=LD_RUN_PATH
8056       ;;
8057     siemens)
8058       need_lib_prefix=no
8059       ;;
8060     motorola)
8061       need_lib_prefix=no
8062       need_version=no
8063       shlibpath_overrides_runpath=no
8064       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8065       ;;
8066   esac
8067   ;;
8068
8069 sysv4*MP*)
8070   if test -d /usr/nec ;then
8071     version_type=linux
8072     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8073     soname_spec='$libname${shared_ext}.$major'
8074     shlibpath_var=LD_LIBRARY_PATH
8075   fi
8076   ;;
8077
8078 uts4*)
8079   version_type=linux
8080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081   soname_spec='${libname}${release}${shared_ext}$major'
8082   shlibpath_var=LD_LIBRARY_PATH
8083   ;;
8084
8085 *)
8086   dynamic_linker=no
8087   ;;
8088 esac
8089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8090 echo "${ECHO_T}$dynamic_linker" >&6
8091 test "$dynamic_linker" = no && can_build_shared=no
8092
8093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8095 hardcode_action=
8096 if test -n "$hardcode_libdir_flag_spec" || \
8097    test -n "$runpath_var " || \
8098    test "X$hardcode_automatic"="Xyes" ; then
8099
8100   # We can hardcode non-existant directories.
8101   if test "$hardcode_direct" != no &&
8102      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8103      # have to relink, otherwise we might link with an installed library
8104      # when we should be linking with a yet-to-be-installed one
8105      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8106      test "$hardcode_minus_L" != no; then
8107     # Linking always hardcodes the temporary library directory.
8108     hardcode_action=relink
8109   else
8110     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8111     hardcode_action=immediate
8112   fi
8113 else
8114   # We cannot hardcode anything, or else we can only hardcode existing
8115   # directories.
8116   hardcode_action=unsupported
8117 fi
8118 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8119 echo "${ECHO_T}$hardcode_action" >&6
8120
8121 if test "$hardcode_action" = relink; then
8122   # Fast installation is not supported
8123   enable_fast_install=no
8124 elif test "$shlibpath_overrides_runpath" = yes ||
8125      test "$enable_shared" = no; then
8126   # Fast installation is not necessary
8127   enable_fast_install=needless
8128 fi
8129
8130 striplib=
8131 old_striplib=
8132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8135   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8136   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8137   echo "$as_me:$LINENO: result: yes" >&5
8138 echo "${ECHO_T}yes" >&6
8139 else
8140 # FIXME - insert some real tests, host_os isn't really good enough
8141   case $host_os in
8142    darwin*)
8143        if test -n "$STRIP" ; then
8144          striplib="$STRIP -x"
8145          echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8147        else
8148   echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150 fi
8151        ;;
8152    *)
8153   echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6
8155     ;;
8156   esac
8157 fi
8158
8159 if test "x$enable_dlopen" != xyes; then
8160   enable_dlopen=unknown
8161   enable_dlopen_self=unknown
8162   enable_dlopen_self_static=unknown
8163 else
8164   lt_cv_dlopen=no
8165   lt_cv_dlopen_libs=
8166
8167   case $host_os in
8168   beos*)
8169     lt_cv_dlopen="load_add_on"
8170     lt_cv_dlopen_libs=
8171     lt_cv_dlopen_self=yes
8172     ;;
8173
8174   mingw* | pw32*)
8175     lt_cv_dlopen="LoadLibrary"
8176     lt_cv_dlopen_libs=
8177    ;;
8178
8179   cygwin*)
8180     lt_cv_dlopen="dlopen"
8181     lt_cv_dlopen_libs=
8182    ;;
8183
8184   darwin*)
8185   # if libdl is installed we need to link against it
8186     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8189   echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191   ac_check_lib_save_LIBS=$LIBS
8192 LIBS="-ldl  $LIBS"
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199
8200 /* Override any gcc2 internal prototype to avoid an error.  */
8201 #ifdef __cplusplus
8202 extern "C"
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205    builtin and then its argument prototype would still apply.  */
8206 char dlopen ();
8207 int
8208 main ()
8209 {
8210 dlopen ();
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag"
8225                          || test ! -s conftest.err'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; } &&
8231          { ac_try='test -s conftest$ac_exeext'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   ac_cv_lib_dl_dlopen=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_lib_dl_dlopen=no
8243 fi
8244 rm -f conftest.err conftest.$ac_objext \
8245       conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8247 fi
8248 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8250 if test $ac_cv_lib_dl_dlopen = yes; then
8251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8252 else
8253   
8254     lt_cv_dlopen="dyld"
8255     lt_cv_dlopen_libs=
8256     lt_cv_dlopen_self=yes
8257     
8258 fi
8259
8260    ;;
8261
8262   *)
8263     echo "$as_me:$LINENO: checking for shl_load" >&5
8264 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8265 if test "${ac_cv_func_shl_load+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8276 #define shl_load innocuous_shl_load
8277
8278 /* System header to define __stub macros and hopefully few prototypes,
8279     which can conflict with char shl_load (); below.
8280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8281     <limits.h> exists even on freestanding compilers.  */
8282
8283 #ifdef __STDC__
8284 # include <limits.h>
8285 #else
8286 # include <assert.h>
8287 #endif
8288
8289 #undef shl_load
8290
8291 /* Override any gcc2 internal prototype to avoid an error.  */
8292 #ifdef __cplusplus
8293 extern "C"
8294 {
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char shl_load ();
8299 /* The GNU C library defines this for functions which it implements
8300     to always fail with ENOSYS.  Some functions are actually named
8301     something starting with __ and the normal name is an alias.  */
8302 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8303 choke me
8304 #else
8305 char (*f) () = shl_load;
8306 #endif
8307 #ifdef __cplusplus
8308 }
8309 #endif
8310
8311 int
8312 main ()
8313 {
8314 return f != shl_load;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321   (eval $ac_link) 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag"
8329                          || test ! -s conftest.err'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; } &&
8335          { ac_try='test -s conftest$ac_exeext'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   ac_cv_func_shl_load=yes
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 ac_cv_func_shl_load=no
8347 fi
8348 rm -f conftest.err conftest.$ac_objext \
8349       conftest$ac_exeext conftest.$ac_ext
8350 fi
8351 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8352 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8353 if test $ac_cv_func_shl_load = yes; then
8354   lt_cv_dlopen="shl_load"
8355 else
8356   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8357 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   ac_check_lib_save_LIBS=$LIBS
8362 LIBS="-ldld  $LIBS"
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369
8370 /* Override any gcc2 internal prototype to avoid an error.  */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 /* We use char because int might match the return type of a gcc2
8375    builtin and then its argument prototype would still apply.  */
8376 char shl_load ();
8377 int
8378 main ()
8379 {
8380 shl_load ();
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387   (eval $ac_link) 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag"
8395                          || test ! -s conftest.err'
8396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397   (eval $ac_try) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; }; then
8407   ac_cv_lib_dld_shl_load=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_cv_lib_dld_shl_load=no
8413 fi
8414 rm -f conftest.err conftest.$ac_objext \
8415       conftest$ac_exeext conftest.$ac_ext
8416 LIBS=$ac_check_lib_save_LIBS
8417 fi
8418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8419 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8420 if test $ac_cv_lib_dld_shl_load = yes; then
8421   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8422 else
8423   echo "$as_me:$LINENO: checking for dlopen" >&5
8424 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8425 if test "${ac_cv_func_dlopen+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8436 #define dlopen innocuous_dlopen
8437
8438 /* System header to define __stub macros and hopefully few prototypes,
8439     which can conflict with char dlopen (); below.
8440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441     <limits.h> exists even on freestanding compilers.  */
8442
8443 #ifdef __STDC__
8444 # include <limits.h>
8445 #else
8446 # include <assert.h>
8447 #endif
8448
8449 #undef dlopen
8450
8451 /* Override any gcc2 internal prototype to avoid an error.  */
8452 #ifdef __cplusplus
8453 extern "C"
8454 {
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457    builtin and then its argument prototype would still apply.  */
8458 char dlopen ();
8459 /* The GNU C library defines this for functions which it implements
8460     to always fail with ENOSYS.  Some functions are actually named
8461     something starting with __ and the normal name is an alias.  */
8462 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8463 choke me
8464 #else
8465 char (*f) () = dlopen;
8466 #endif
8467 #ifdef __cplusplus
8468 }
8469 #endif
8470
8471 int
8472 main ()
8473 {
8474 return f != dlopen;
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481   (eval $ac_link) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -z "$ac_c_werror_flag"
8489                          || test ! -s conftest.err'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_func_dlopen=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_func_dlopen=no
8507 fi
8508 rm -f conftest.err conftest.$ac_objext \
8509       conftest$ac_exeext conftest.$ac_ext
8510 fi
8511 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8512 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8513 if test $ac_cv_func_dlopen = yes; then
8514   lt_cv_dlopen="dlopen"
8515 else
8516   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8517 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-ldl  $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529
8530 /* Override any gcc2 internal prototype to avoid an error.  */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 /* We use char because int might match the return type of a gcc2
8535    builtin and then its argument prototype would still apply.  */
8536 char dlopen ();
8537 int
8538 main ()
8539 {
8540 dlopen ();
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547   (eval $ac_link) 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag"
8555                          || test ! -s conftest.err'
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); }; } &&
8561          { ac_try='test -s conftest$ac_exeext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_cv_lib_dl_dlopen=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_lib_dl_dlopen=no
8573 fi
8574 rm -f conftest.err conftest.$ac_objext \
8575       conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8577 fi
8578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8580 if test $ac_cv_lib_dl_dlopen = yes; then
8581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8582 else
8583   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8584 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8585 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   ac_check_lib_save_LIBS=$LIBS
8589 LIBS="-lsvld  $LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 /* Override any gcc2 internal prototype to avoid an error.  */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 /* We use char because int might match the return type of a gcc2
8602    builtin and then its argument prototype would still apply.  */
8603 char dlopen ();
8604 int
8605 main ()
8606 {
8607 dlopen ();
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614   (eval $ac_link) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"
8622                          || test ! -s conftest.err'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest$ac_exeext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_lib_svld_dlopen=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_cv_lib_svld_dlopen=no
8640 fi
8641 rm -f conftest.err conftest.$ac_objext \
8642       conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8644 fi
8645 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8646 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8647 if test $ac_cv_lib_svld_dlopen = yes; then
8648   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8649 else
8650   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8651 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8652 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655   ac_check_lib_save_LIBS=$LIBS
8656 LIBS="-ldld  $LIBS"
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h.  */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h.  */
8663
8664 /* Override any gcc2 internal prototype to avoid an error.  */
8665 #ifdef __cplusplus
8666 extern "C"
8667 #endif
8668 /* We use char because int might match the return type of a gcc2
8669    builtin and then its argument prototype would still apply.  */
8670 char dld_link ();
8671 int
8672 main ()
8673 {
8674 dld_link ();
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681   (eval $ac_link) 2>conftest.er1
8682   ac_status=$?
8683   grep -v '^ *+' conftest.er1 >conftest.err
8684   rm -f conftest.er1
8685   cat conftest.err >&5
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } &&
8688          { ac_try='test -z "$ac_c_werror_flag"
8689                          || test ! -s conftest.err'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest$ac_exeext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   ac_cv_lib_dld_dld_link=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 ac_cv_lib_dld_dld_link=no
8707 fi
8708 rm -f conftest.err conftest.$ac_objext \
8709       conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8711 fi
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8714 if test $ac_cv_lib_dld_dld_link = yes; then
8715   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8716 fi
8717
8718               
8719 fi
8720
8721             
8722 fi
8723
8724           
8725 fi
8726
8727         
8728 fi
8729
8730       
8731 fi
8732
8733     ;;
8734   esac
8735
8736   if test "x$lt_cv_dlopen" != xno; then
8737     enable_dlopen=yes
8738   else
8739     enable_dlopen=no
8740   fi
8741
8742   case $lt_cv_dlopen in
8743   dlopen)
8744     save_CPPFLAGS="$CPPFLAGS"
8745     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8746
8747     save_LDFLAGS="$LDFLAGS"
8748     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8749
8750     save_LIBS="$LIBS"
8751     LIBS="$lt_cv_dlopen_libs $LIBS"
8752
8753     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8754 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8755 if test "${lt_cv_dlopen_self+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758           if test "$cross_compiling" = yes; then :
8759   lt_cv_dlopen_self=cross
8760 else
8761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8762   lt_status=$lt_dlunknown
8763   cat > conftest.$ac_ext <<EOF
8764 #line __oline__ "configure"
8765 #include "confdefs.h"
8766
8767 #if HAVE_DLFCN_H
8768 #include <dlfcn.h>
8769 #endif
8770
8771 #include <stdio.h>
8772
8773 #ifdef RTLD_GLOBAL
8774 #  define LT_DLGLOBAL           RTLD_GLOBAL
8775 #else
8776 #  ifdef DL_GLOBAL
8777 #    define LT_DLGLOBAL         DL_GLOBAL
8778 #  else
8779 #    define LT_DLGLOBAL         0
8780 #  endif
8781 #endif
8782
8783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8784    find out it does not work in some platform. */
8785 #ifndef LT_DLLAZY_OR_NOW
8786 #  ifdef RTLD_LAZY
8787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8788 #  else
8789 #    ifdef DL_LAZY
8790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8791 #    else
8792 #      ifdef RTLD_NOW
8793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8794 #      else
8795 #        ifdef DL_NOW
8796 #          define LT_DLLAZY_OR_NOW      DL_NOW
8797 #        else
8798 #          define LT_DLLAZY_OR_NOW      0
8799 #        endif
8800 #      endif
8801 #    endif
8802 #  endif
8803 #endif
8804
8805 #ifdef __cplusplus
8806 extern "C" void exit (int);
8807 #endif
8808
8809 void fnord() { int i=42;}
8810 int main ()
8811 {
8812   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8813   int status = $lt_dlunknown;
8814
8815   if (self)
8816     {
8817       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8818       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8819       /* dlclose (self); */
8820     }
8821
8822     exit (status);
8823 }
8824 EOF
8825   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826   (eval $ac_link) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8830     (./conftest; exit; ) 2>/dev/null
8831     lt_status=$?
8832     case x$lt_status in
8833       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8834       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8835       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8836     esac
8837   else :
8838     # compilation failed
8839     lt_cv_dlopen_self=no
8840   fi
8841 fi
8842 rm -fr conftest*
8843
8844     
8845 fi
8846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8847 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8848
8849     if test "x$lt_cv_dlopen_self" = xyes; then
8850       LDFLAGS="$LDFLAGS $link_static_flag"
8851       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8852 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8853 if test "${lt_cv_dlopen_self_static+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856           if test "$cross_compiling" = yes; then :
8857   lt_cv_dlopen_self_static=cross
8858 else
8859   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8860   lt_status=$lt_dlunknown
8861   cat > conftest.$ac_ext <<EOF
8862 #line __oline__ "configure"
8863 #include "confdefs.h"
8864
8865 #if HAVE_DLFCN_H
8866 #include <dlfcn.h>
8867 #endif
8868
8869 #include <stdio.h>
8870
8871 #ifdef RTLD_GLOBAL
8872 #  define LT_DLGLOBAL           RTLD_GLOBAL
8873 #else
8874 #  ifdef DL_GLOBAL
8875 #    define LT_DLGLOBAL         DL_GLOBAL
8876 #  else
8877 #    define LT_DLGLOBAL         0
8878 #  endif
8879 #endif
8880
8881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8882    find out it does not work in some platform. */
8883 #ifndef LT_DLLAZY_OR_NOW
8884 #  ifdef RTLD_LAZY
8885 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8886 #  else
8887 #    ifdef DL_LAZY
8888 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8889 #    else
8890 #      ifdef RTLD_NOW
8891 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8892 #      else
8893 #        ifdef DL_NOW
8894 #          define LT_DLLAZY_OR_NOW      DL_NOW
8895 #        else
8896 #          define LT_DLLAZY_OR_NOW      0
8897 #        endif
8898 #      endif
8899 #    endif
8900 #  endif
8901 #endif
8902
8903 #ifdef __cplusplus
8904 extern "C" void exit (int);
8905 #endif
8906
8907 void fnord() { int i=42;}
8908 int main ()
8909 {
8910   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8911   int status = $lt_dlunknown;
8912
8913   if (self)
8914     {
8915       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8916       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8917       /* dlclose (self); */
8918     }
8919
8920     exit (status);
8921 }
8922 EOF
8923   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924   (eval $ac_link) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8928     (./conftest; exit; ) 2>/dev/null
8929     lt_status=$?
8930     case x$lt_status in
8931       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8932       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8933       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8934     esac
8935   else :
8936     # compilation failed
8937     lt_cv_dlopen_self_static=no
8938   fi
8939 fi
8940 rm -fr conftest*
8941
8942       
8943 fi
8944 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8946     fi
8947
8948     CPPFLAGS="$save_CPPFLAGS"
8949     LDFLAGS="$save_LDFLAGS"
8950     LIBS="$save_LIBS"
8951     ;;
8952   esac
8953
8954   case $lt_cv_dlopen_self in
8955   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8956   *) enable_dlopen_self=unknown ;;
8957   esac
8958
8959   case $lt_cv_dlopen_self_static in
8960   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8961   *) enable_dlopen_self_static=unknown ;;
8962   esac
8963 fi
8964
8965
8966 # Report which librarie types wil actually be built
8967 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8969 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8970 echo "${ECHO_T}$can_build_shared" >&6
8971
8972 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8974 test "$can_build_shared" = "no" && enable_shared=no
8975
8976 # On AIX, shared libraries and static libraries use the same namespace, and
8977 # are all built from PIC.
8978 case "$host_os" in
8979 aix3*)
8980   test "$enable_shared" = yes && enable_static=no
8981   if test -n "$RANLIB"; then
8982     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8983     postinstall_cmds='$RANLIB $lib'
8984   fi
8985   ;;
8986
8987 aix4* | aix5*)
8988   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8989     test "$enable_shared" = yes && enable_static=no
8990   fi
8991   ;;
8992   darwin* | rhapsody*)
8993   if test "$GCC" = yes; then
8994     archive_cmds_need_lc=no
8995     case "$host_os" in
8996     rhapsody* | darwin1.[012])
8997       allow_undefined_flag='-undefined suppress'
8998       ;;
8999     *) # Darwin 1.3 on
9000       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9001         allow_undefined_flag='-flat_namespace -undefined suppress'
9002       else
9003         case ${MACOSX_DEPLOYMENT_TARGET} in
9004           10.[012])
9005             allow_undefined_flag='-flat_namespace -undefined suppress'
9006             ;;
9007           10.*)
9008             allow_undefined_flag='-undefined dynamic_lookup'
9009             ;;
9010         esac
9011       fi
9012       ;;
9013     esac
9014     output_verbose_link_cmd='echo'
9015     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9016     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9017     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9018     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}'
9019     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}'
9020     hardcode_direct=no
9021     hardcode_automatic=yes
9022     hardcode_shlibpath_var=unsupported
9023     whole_archive_flag_spec='-all_load $convenience'
9024     link_all_deplibs=yes
9025   else
9026     ld_shlibs=no
9027   fi
9028     ;;
9029 esac
9030 echo "$as_me:$LINENO: result: $enable_shared" >&5
9031 echo "${ECHO_T}$enable_shared" >&6
9032
9033 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9034 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9035 # Make sure either enable_shared or enable_static is yes.
9036 test "$enable_shared" = yes || enable_static=yes
9037 echo "$as_me:$LINENO: result: $enable_static" >&5
9038 echo "${ECHO_T}$enable_static" >&6
9039
9040 # The else clause should only fire when bootstrapping the
9041 # libtool distribution, otherwise you forgot to ship ltmain.sh
9042 # with your package, and you will get complaints that there are
9043 # no rules to generate ltmain.sh.
9044 if test -f "$ltmain"; then
9045   # See if we are running on zsh, and set the options which allow our commands through
9046   # without removal of \ escapes.
9047   if test -n "${ZSH_VERSION+set}" ; then
9048     setopt NO_GLOB_SUBST
9049   fi
9050   # Now quote all the things that may contain metacharacters while being
9051   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9052   # variables and quote the copies for generation of the libtool script.
9053   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9054     SED SHELL STRIP \
9055     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9056     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9057     deplibs_check_method reload_flag reload_cmds need_locks \
9058     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9059     lt_cv_sys_global_symbol_to_c_name_address \
9060     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9061     old_postinstall_cmds old_postuninstall_cmds \
9062     compiler \
9063     CC \
9064     LD \
9065     lt_prog_compiler_wl \
9066     lt_prog_compiler_pic \
9067     lt_prog_compiler_static \
9068     lt_prog_compiler_no_builtin_flag \
9069     export_dynamic_flag_spec \
9070     thread_safe_flag_spec \
9071     whole_archive_flag_spec \
9072     enable_shared_with_static_runtimes \
9073     old_archive_cmds \
9074     old_archive_from_new_cmds \
9075     predep_objects \
9076     postdep_objects \
9077     predeps \
9078     postdeps \
9079     compiler_lib_search_path \
9080     archive_cmds \
9081     archive_expsym_cmds \
9082     postinstall_cmds \
9083     postuninstall_cmds \
9084     old_archive_from_expsyms_cmds \
9085     allow_undefined_flag \
9086     no_undefined_flag \
9087     export_symbols_cmds \
9088     hardcode_libdir_flag_spec \
9089     hardcode_libdir_flag_spec_ld \
9090     hardcode_libdir_separator \
9091     hardcode_automatic \
9092     module_cmds \
9093     module_expsym_cmds \
9094     lt_cv_prog_compiler_c_o \
9095     exclude_expsyms \
9096     include_expsyms; do
9097
9098     case $var in
9099     old_archive_cmds | \
9100     old_archive_from_new_cmds | \
9101     archive_cmds | \
9102     archive_expsym_cmds | \
9103     module_cmds | \
9104     module_expsym_cmds | \
9105     old_archive_from_expsyms_cmds | \
9106     export_symbols_cmds | \
9107     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9108     postinstall_cmds | postuninstall_cmds | \
9109     old_postinstall_cmds | old_postuninstall_cmds | \
9110     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9111       # Double-quote double-evaled strings.
9112       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9113       ;;
9114     *)
9115       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9116       ;;
9117     esac
9118   done
9119
9120   case $lt_echo in
9121   *'\$0 --fallback-echo"')
9122     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9123     ;;
9124   esac
9125
9126 cfgfile="${ofile}T"
9127   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9128   $rm -f "$cfgfile"
9129   { echo "$as_me:$LINENO: creating $ofile" >&5
9130 echo "$as_me: creating $ofile" >&6;}
9131
9132   cat <<__EOF__ >> "$cfgfile"
9133 #! $SHELL
9134
9135 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9136 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9138 #
9139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9140 # Free Software Foundation, Inc.
9141 #
9142 # This file is part of GNU Libtool:
9143 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9144 #
9145 # This program is free software; you can redistribute it and/or modify
9146 # it under the terms of the GNU General Public License as published by
9147 # the Free Software Foundation; either version 2 of the License, or
9148 # (at your option) any later version.
9149 #
9150 # This program is distributed in the hope that it will be useful, but
9151 # WITHOUT ANY WARRANTY; without even the implied warranty of
9152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9153 # General Public License for more details.
9154 #
9155 # You should have received a copy of the GNU General Public License
9156 # along with this program; if not, write to the Free Software
9157 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9158 #
9159 # As a special exception to the GNU General Public License, if you
9160 # distribute this file as part of a program that contains a
9161 # configuration script generated by Autoconf, you may include it under
9162 # the same distribution terms that you use for the rest of that program.
9163
9164 # A sed program that does not truncate output.
9165 SED=$lt_SED
9166
9167 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9168 Xsed="$SED -e s/^X//"
9169
9170 # The HP-UX ksh and POSIX shell print the target directory to stdout
9171 # if CDPATH is set.
9172 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9173
9174 # The names of the tagged configurations supported by this script.
9175 available_tags=
9176
9177 # ### BEGIN LIBTOOL CONFIG
9178
9179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9180
9181 # Shell to use when invoking shell scripts.
9182 SHELL=$lt_SHELL
9183
9184 # Whether or not to build shared libraries.
9185 build_libtool_libs=$enable_shared
9186
9187 # Whether or not to build static libraries.
9188 build_old_libs=$enable_static
9189
9190 # Whether or not to add -lc for building shared libraries.
9191 build_libtool_need_lc=$archive_cmds_need_lc
9192
9193 # Whether or not to disallow shared libs when runtime libs are static
9194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9195
9196 # Whether or not to optimize for fast installation.
9197 fast_install=$enable_fast_install
9198
9199 # The host system.
9200 host_alias=$host_alias
9201 host=$host
9202
9203 # An echo program that does not interpret backslashes.
9204 echo=$lt_echo
9205
9206 # The archiver.
9207 AR=$lt_AR
9208 AR_FLAGS=$lt_AR_FLAGS
9209
9210 # A C compiler.
9211 LTCC=$lt_LTCC
9212
9213 # A language-specific compiler.
9214 CC=$lt_compiler
9215
9216 # Is the compiler the GNU C compiler?
9217 with_gcc=$GCC
9218
9219 # An ERE matcher.
9220 EGREP=$lt_EGREP
9221
9222 # The linker used to build libraries.
9223 LD=$lt_LD
9224
9225 # Whether we need hard or soft links.
9226 LN_S=$lt_LN_S
9227
9228 # A BSD-compatible nm program.
9229 NM=$lt_NM
9230
9231 # A symbol stripping program
9232 STRIP=$lt_STRIP
9233
9234 # Used to examine libraries when file_magic_cmd begins "file"
9235 MAGIC_CMD=$MAGIC_CMD
9236
9237 # Used on cygwin: DLL creation program.
9238 DLLTOOL="$DLLTOOL"
9239
9240 # Used on cygwin: object dumper.
9241 OBJDUMP="$OBJDUMP"
9242
9243 # Used on cygwin: assembler.
9244 AS="$AS"
9245
9246 # The name of the directory that contains temporary libtool files.
9247 objdir=$objdir
9248
9249 # How to create reloadable object files.
9250 reload_flag=$lt_reload_flag
9251 reload_cmds=$lt_reload_cmds
9252
9253 # How to pass a linker flag through the compiler.
9254 wl=$lt_lt_prog_compiler_wl
9255
9256 # Object file suffix (normally "o").
9257 objext="$ac_objext"
9258
9259 # Old archive suffix (normally "a").
9260 libext="$libext"
9261
9262 # Shared library suffix (normally ".so").
9263 shrext_cmds='$shrext_cmds'
9264
9265 # Executable file suffix (normally "").
9266 exeext="$exeext"
9267
9268 # Additional compiler flags for building library objects.
9269 pic_flag=$lt_lt_prog_compiler_pic
9270 pic_mode=$pic_mode
9271
9272 # What is the maximum length of a command?
9273 max_cmd_len=$lt_cv_sys_max_cmd_len
9274
9275 # Does compiler simultaneously support -c and -o options?
9276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9277
9278 # Must we lock files when doing compilation ?
9279 need_locks=$lt_need_locks
9280
9281 # Do we need the lib prefix for modules?
9282 need_lib_prefix=$need_lib_prefix
9283
9284 # Do we need a version for libraries?
9285 need_version=$need_version
9286
9287 # Whether dlopen is supported.
9288 dlopen_support=$enable_dlopen
9289
9290 # Whether dlopen of programs is supported.
9291 dlopen_self=$enable_dlopen_self
9292
9293 # Whether dlopen of statically linked programs is supported.
9294 dlopen_self_static=$enable_dlopen_self_static
9295
9296 # Compiler flag to prevent dynamic linking.
9297 link_static_flag=$lt_lt_prog_compiler_static
9298
9299 # Compiler flag to turn off builtin functions.
9300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9301
9302 # Compiler flag to allow reflexive dlopens.
9303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9304
9305 # Compiler flag to generate shared objects directly from archives.
9306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9307
9308 # Compiler flag to generate thread-safe objects.
9309 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9310
9311 # Library versioning type.
9312 version_type=$version_type
9313
9314 # Format of library name prefix.
9315 libname_spec=$lt_libname_spec
9316
9317 # List of archive names.  First name is the real one, the rest are links.
9318 # The last name is the one that the linker finds with -lNAME.
9319 library_names_spec=$lt_library_names_spec
9320
9321 # The coded name of the library, if different from the real name.
9322 soname_spec=$lt_soname_spec
9323
9324 # Commands used to build and install an old-style archive.
9325 RANLIB=$lt_RANLIB
9326 old_archive_cmds=$lt_old_archive_cmds
9327 old_postinstall_cmds=$lt_old_postinstall_cmds
9328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9329
9330 # Create an old-style archive from a shared archive.
9331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9332
9333 # Create a temporary old-style archive to link instead of a shared archive.
9334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9335
9336 # Commands used to build and install a shared archive.
9337 archive_cmds=$lt_archive_cmds
9338 archive_expsym_cmds=$lt_archive_expsym_cmds
9339 postinstall_cmds=$lt_postinstall_cmds
9340 postuninstall_cmds=$lt_postuninstall_cmds
9341
9342 # Commands used to build a loadable module (assumed same as above if empty)
9343 module_cmds=$lt_module_cmds
9344 module_expsym_cmds=$lt_module_expsym_cmds
9345
9346 # Commands to strip libraries.
9347 old_striplib=$lt_old_striplib
9348 striplib=$lt_striplib
9349
9350 # Dependencies to place before the objects being linked to create a
9351 # shared library.
9352 predep_objects=$lt_predep_objects
9353
9354 # Dependencies to place after the objects being linked to create a
9355 # shared library.
9356 postdep_objects=$lt_postdep_objects
9357
9358 # Dependencies to place before the objects being linked to create a
9359 # shared library.
9360 predeps=$lt_predeps
9361
9362 # Dependencies to place after the objects being linked to create a
9363 # shared library.
9364 postdeps=$lt_postdeps
9365
9366 # The library search path used internally by the compiler when linking
9367 # a shared library.
9368 compiler_lib_search_path=$lt_compiler_lib_search_path
9369
9370 # Method to check whether dependent libraries are shared objects.
9371 deplibs_check_method=$lt_deplibs_check_method
9372
9373 # Command to use when deplibs_check_method == file_magic.
9374 file_magic_cmd=$lt_file_magic_cmd
9375
9376 # Flag that allows shared libraries with undefined symbols to be built.
9377 allow_undefined_flag=$lt_allow_undefined_flag
9378
9379 # Flag that forces no undefined symbols.
9380 no_undefined_flag=$lt_no_undefined_flag
9381
9382 # Commands used to finish a libtool library installation in a directory.
9383 finish_cmds=$lt_finish_cmds
9384
9385 # Same as above, but a single script fragment to be evaled but not shown.
9386 finish_eval=$lt_finish_eval
9387
9388 # Take the output of nm and produce a listing of raw symbols and C names.
9389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9390
9391 # Transform the output of nm in a proper C declaration
9392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9393
9394 # Transform the output of nm in a C name address pair
9395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9396
9397 # This is the shared library runtime path variable.
9398 runpath_var=$runpath_var
9399
9400 # This is the shared library path variable.
9401 shlibpath_var=$shlibpath_var
9402
9403 # Is shlibpath searched before the hard-coded library search path?
9404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9405
9406 # How to hardcode a shared library path into an executable.
9407 hardcode_action=$hardcode_action
9408
9409 # Whether we should hardcode library paths into libraries.
9410 hardcode_into_libs=$hardcode_into_libs
9411
9412 # Flag to hardcode \$libdir into a binary during linking.
9413 # This must work even if \$libdir does not exist.
9414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9415
9416 # If ld is used when linking, flag to hardcode \$libdir into
9417 # a binary during linking. This must work even if \$libdir does
9418 # not exist.
9419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9420
9421 # Whether we need a single -rpath flag with a separated argument.
9422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9423
9424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9425 # resulting binary.
9426 hardcode_direct=$hardcode_direct
9427
9428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9429 # resulting binary.
9430 hardcode_minus_L=$hardcode_minus_L
9431
9432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9433 # the resulting binary.
9434 hardcode_shlibpath_var=$hardcode_shlibpath_var
9435
9436 # Set to yes if building a shared library automatically hardcodes DIR into the library
9437 # and all subsequent libraries and executables linked against it.
9438 hardcode_automatic=$hardcode_automatic
9439
9440 # Variables whose values should be saved in libtool wrapper scripts and
9441 # restored at relink time.
9442 variables_saved_for_relink="$variables_saved_for_relink"
9443
9444 # Whether libtool must link a program against all its dependency libraries.
9445 link_all_deplibs=$link_all_deplibs
9446
9447 # Compile-time system search path for libraries
9448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9449
9450 # Run-time system search path for libraries
9451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9452
9453 # Fix the shell variable \$srcfile for the compiler.
9454 fix_srcfile_path="$fix_srcfile_path"
9455
9456 # Set to yes if exported symbols are required.
9457 always_export_symbols=$always_export_symbols
9458
9459 # The commands to list exported symbols.
9460 export_symbols_cmds=$lt_export_symbols_cmds
9461
9462 # The commands to extract the exported symbol list from a shared archive.
9463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9464
9465 # Symbols that should not be listed in the preloaded symbols.
9466 exclude_expsyms=$lt_exclude_expsyms
9467
9468 # Symbols that must always be exported.
9469 include_expsyms=$lt_include_expsyms
9470
9471 # ### END LIBTOOL CONFIG
9472
9473 __EOF__
9474
9475
9476   case $host_os in
9477   aix3*)
9478     cat <<\EOF >> "$cfgfile"
9479
9480 # AIX sometimes has problems with the GCC collect2 program.  For some
9481 # reason, if we set the COLLECT_NAMES environment variable, the problems
9482 # vanish in a puff of smoke.
9483 if test "X${COLLECT_NAMES+set}" != Xset; then
9484   COLLECT_NAMES=
9485   export COLLECT_NAMES
9486 fi
9487 EOF
9488     ;;
9489   esac
9490
9491   # We use sed instead of cat because bash on DJGPP gets confused if
9492   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9493   # text mode, it properly converts lines to CR/LF.  This bash problem
9494   # is reportedly fixed, but why not run on old versions too?
9495   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9496
9497   mv -f "$cfgfile" "$ofile" || \
9498     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9499   chmod +x "$ofile"
9500
9501 else
9502   # If there is no Makefile yet, we rely on a make rule to execute
9503   # `config.status --recheck' to rerun these tests and create the
9504   # libtool script then.
9505   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9506   if test -f "$ltmain_in"; then
9507     test -f Makefile && make "$ltmain"
9508   fi
9509 fi
9510
9511
9512 ac_ext=c
9513 ac_cpp='$CPP $CPPFLAGS'
9514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9517
9518 CC="$lt_save_CC"
9519
9520
9521 # Check whether --with-tags or --without-tags was given.
9522 if test "${with_tags+set}" = set; then
9523   withval="$with_tags"
9524   tagnames="$withval"
9525 fi; 
9526
9527 if test -f "$ltmain" && test -n "$tagnames"; then
9528   if test ! -f "${ofile}"; then
9529     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9530 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9531   fi
9532
9533   if test -z "$LTCC"; then
9534     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9535     if test -z "$LTCC"; then
9536       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9537 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9538     else
9539       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9540 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9541     fi
9542   fi
9543
9544   # Extract list of available tagged configurations in $ofile.
9545   # Note that this assumes the entire list is on one line.
9546   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9547
9548   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549   for tagname in $tagnames; do
9550     IFS="$lt_save_ifs"
9551     # Check whether tagname contains only valid characters
9552     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9553     "") ;;
9554     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9556    { (exit 1); exit 1; }; }
9557         ;;
9558     esac
9559
9560     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9561     then
9562       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9564    { (exit 1); exit 1; }; }
9565     fi
9566
9567     # Update the list of available tags.
9568     if test -n "$tagname"; then
9569       echo appending configuration tag \"$tagname\" to $ofile
9570
9571       case $tagname in
9572       CXX)
9573         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9574           ac_ext=cc
9575 ac_cpp='$CXXCPP $CPPFLAGS'
9576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9579
9580
9581
9582
9583 archive_cmds_need_lc_CXX=no
9584 allow_undefined_flag_CXX=
9585 always_export_symbols_CXX=no
9586 archive_expsym_cmds_CXX=
9587 export_dynamic_flag_spec_CXX=
9588 hardcode_direct_CXX=no
9589 hardcode_libdir_flag_spec_CXX=
9590 hardcode_libdir_flag_spec_ld_CXX=
9591 hardcode_libdir_separator_CXX=
9592 hardcode_minus_L_CXX=no
9593 hardcode_automatic_CXX=no
9594 module_cmds_CXX=
9595 module_expsym_cmds_CXX=
9596 link_all_deplibs_CXX=unknown
9597 old_archive_cmds_CXX=$old_archive_cmds
9598 no_undefined_flag_CXX=
9599 whole_archive_flag_spec_CXX=
9600 enable_shared_with_static_runtimes_CXX=no
9601
9602 # Dependencies to place before and after the object being linked:
9603 predep_objects_CXX=
9604 postdep_objects_CXX=
9605 predeps_CXX=
9606 postdeps_CXX=
9607 compiler_lib_search_path_CXX=
9608
9609 # Source file extension for C++ test sources.
9610 ac_ext=cc
9611
9612 # Object file extension for compiled C++ test sources.
9613 objext=o
9614 objext_CXX=$objext
9615
9616 # Code to be used in simple compile tests
9617 lt_simple_compile_test_code="int some_variable = 0;\n"
9618
9619 # Code to be used in simple link tests
9620 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9621
9622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9623
9624 # If no C compiler was specified, use CC.
9625 LTCC=${LTCC-"$CC"}
9626
9627 # Allow CC to be a program name with arguments.
9628 compiler=$CC
9629
9630
9631 # Allow CC to be a program name with arguments.
9632 lt_save_CC=$CC
9633 lt_save_LD=$LD
9634 lt_save_GCC=$GCC
9635 GCC=$GXX
9636 lt_save_with_gnu_ld=$with_gnu_ld
9637 lt_save_path_LD=$lt_cv_path_LD
9638 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9639   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9640 else
9641   unset lt_cv_prog_gnu_ld
9642 fi
9643 if test -n "${lt_cv_path_LDCXX+set}"; then
9644   lt_cv_path_LD=$lt_cv_path_LDCXX
9645 else
9646   unset lt_cv_path_LD
9647 fi
9648 test -z "${LDCXX+set}" || LD=$LDCXX
9649 CC=${CXX-"c++"}
9650 compiler=$CC
9651 compiler_CXX=$CC
9652 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9653
9654 # We don't want -fno-exception wen compiling C++ code, so set the
9655 # no_builtin_flag separately
9656 if test "$GXX" = yes; then
9657   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9658 else
9659   lt_prog_compiler_no_builtin_flag_CXX=
9660 fi
9661
9662 if test "$GXX" = yes; then
9663   # Set up default GNU C++ configuration
9664
9665   
9666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9667 if test "${with_gnu_ld+set}" = set; then
9668   withval="$with_gnu_ld"
9669   test "$withval" = no || with_gnu_ld=yes
9670 else
9671   with_gnu_ld=no
9672 fi; 
9673 ac_prog=ld
9674 if test "$GCC" = yes; then
9675   # Check if gcc -print-prog-name=ld gives a path.
9676   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9677 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9678   case $host in
9679   *-*-mingw*)
9680     # gcc leaves a trailing carriage return which upsets mingw
9681     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9682   *)
9683     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9684   esac
9685   case $ac_prog in
9686     # Accept absolute paths.
9687     [\\/]* | ?:[\\/]*)
9688       re_direlt='/[^/][^/]*/\.\./'
9689       # Canonicalize the pathname of ld
9690       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9691       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9692         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9693       done
9694       test -z "$LD" && LD="$ac_prog"
9695       ;;
9696   "")
9697     # If it fails, then pretend we aren't using GCC.
9698     ac_prog=ld
9699     ;;
9700   *)
9701     # If it is relative, then search for the first ld in PATH.
9702     with_gnu_ld=unknown
9703     ;;
9704   esac
9705 elif test "$with_gnu_ld" = yes; then
9706   echo "$as_me:$LINENO: checking for GNU ld" >&5
9707 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9708 else
9709   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9710 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9711 fi
9712 if test "${lt_cv_path_LD+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   if test -z "$LD"; then
9716   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9717   for ac_dir in $PATH; do
9718     IFS="$lt_save_ifs"
9719     test -z "$ac_dir" && ac_dir=.
9720     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9721       lt_cv_path_LD="$ac_dir/$ac_prog"
9722       # Check to see if the program is GNU ld.  I'd rather use --version,
9723       # but apparently some GNU ld's only accept -v.
9724       # Break only if it was the GNU/non-GNU ld that we prefer.
9725       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9726       *GNU* | *'with BFD'*)
9727         test "$with_gnu_ld" != no && break
9728         ;;
9729       *)
9730         test "$with_gnu_ld" != yes && break
9731         ;;
9732       esac
9733     fi
9734   done
9735   IFS="$lt_save_ifs"
9736 else
9737   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9738 fi
9739 fi
9740
9741 LD="$lt_cv_path_LD"
9742 if test -n "$LD"; then
9743   echo "$as_me:$LINENO: result: $LD" >&5
9744 echo "${ECHO_T}$LD" >&6
9745 else
9746   echo "$as_me:$LINENO: result: no" >&5
9747 echo "${ECHO_T}no" >&6
9748 fi
9749 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9750 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9751    { (exit 1); exit 1; }; }
9752 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9753 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9754 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9758 case `$LD -v 2>&1 </dev/null` in
9759 *GNU* | *'with BFD'*)
9760   lt_cv_prog_gnu_ld=yes
9761   ;;
9762 *)
9763   lt_cv_prog_gnu_ld=no
9764   ;;
9765 esac
9766 fi
9767 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9768 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9769 with_gnu_ld=$lt_cv_prog_gnu_ld
9770
9771
9772
9773   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9774   # archiving commands below assume that GNU ld is being used.
9775   if test "$with_gnu_ld" = yes; then
9776     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777     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'
9778
9779     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9780     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9781
9782     # If archive_cmds runs LD, not CC, wlarc should be empty
9783     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9784     #     investigate it a little bit more. (MM)
9785     wlarc='${wl}'
9786
9787     # ancient GNU ld didn't support --whole-archive et. al.
9788     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9789         grep 'no-whole-archive' > /dev/null; then
9790       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9791     else
9792       whole_archive_flag_spec_CXX=
9793     fi
9794   else
9795     with_gnu_ld=no
9796     wlarc=
9797
9798     # A generic and very simple default shared library creation
9799     # command for GNU C++ for the case where it uses the native
9800     # linker, instead of GNU ld.  If possible, this setting should
9801     # overridden to take advantage of the native linker features on
9802     # the platform it is being used on.
9803     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9804   fi
9805
9806   # Commands to make compiler produce verbose output that lists
9807   # what "hidden" libraries, object files and flags are used when
9808   # linking a shared library.
9809   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9810
9811 else
9812   GXX=no
9813   with_gnu_ld=no
9814   wlarc=
9815 fi
9816
9817 # PORTME: fill in a description of your system's C++ link characteristics
9818 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9820 ld_shlibs_CXX=yes
9821 case $host_os in
9822   aix3*)
9823     # FIXME: insert proper C++ library support
9824     ld_shlibs_CXX=no
9825     ;;
9826   aix4* | aix5*)
9827     if test "$host_cpu" = ia64; then
9828       # On IA64, the linker does run time linking by default, so we don't
9829       # have to do anything special.
9830       aix_use_runtimelinking=no
9831       exp_sym_flag='-Bexport'
9832       no_entry_flag=""
9833     else
9834       aix_use_runtimelinking=no
9835
9836       # Test if we are trying to use run time linking or normal
9837       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9838       # need to do runtime linking.
9839       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9840         for ld_flag in $LDFLAGS; do
9841           case $ld_flag in
9842           *-brtl*)
9843             aix_use_runtimelinking=yes
9844             break
9845             ;;
9846           esac
9847         done
9848       esac
9849
9850       exp_sym_flag='-bexport'
9851       no_entry_flag='-bnoentry'
9852     fi
9853
9854     # When large executables or shared objects are built, AIX ld can
9855     # have problems creating the table of contents.  If linking a library
9856     # or program results in "error TOC overflow" add -mminimal-toc to
9857     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9858     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9859
9860     archive_cmds_CXX=''
9861     hardcode_direct_CXX=yes
9862     hardcode_libdir_separator_CXX=':'
9863     link_all_deplibs_CXX=yes
9864
9865     if test "$GXX" = yes; then
9866       case $host_os in aix4.012|aix4.012.*)
9867       # We only want to do this on AIX 4.2 and lower, the check
9868       # below for broken collect2 doesn't work under 4.3+
9869         collect2name=`${CC} -print-prog-name=collect2`
9870         if test -f "$collect2name" && \
9871            strings "$collect2name" | grep resolve_lib_name >/dev/null
9872         then
9873           # We have reworked collect2
9874           hardcode_direct_CXX=yes
9875         else
9876           # We have old collect2
9877           hardcode_direct_CXX=unsupported
9878           # It fails to find uninstalled libraries when the uninstalled
9879           # path is not listed in the libpath.  Setting hardcode_minus_L
9880           # to unsupported forces relinking
9881           hardcode_minus_L_CXX=yes
9882           hardcode_libdir_flag_spec_CXX='-L$libdir'
9883           hardcode_libdir_separator_CXX=
9884         fi
9885       esac
9886       shared_flag='-shared'
9887     else
9888       # not using gcc
9889       if test "$host_cpu" = ia64; then
9890         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9891         # chokes on -Wl,-G. The following line is correct:
9892         shared_flag='-G'
9893       else
9894         if test "$aix_use_runtimelinking" = yes; then
9895           shared_flag='${wl}-G'
9896         else
9897           shared_flag='${wl}-bM:SRE'
9898         fi
9899       fi
9900     fi
9901
9902     # It seems that -bexpall does not export symbols beginning with
9903     # underscore (_), so it is better to generate a list of symbols to export.
9904     always_export_symbols_CXX=yes
9905     if test "$aix_use_runtimelinking" = yes; then
9906       # Warning - without using the other runtime loading flags (-brtl),
9907       # -berok will link without error, but may produce a broken library.
9908       allow_undefined_flag_CXX='-berok'
9909       # Determine the default libpath from the value encoded in an empty executable.
9910       cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 int
9918 main ()
9919 {
9920
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927   (eval $ac_link) 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } &&
9934          { ac_try='test -z "$ac_cxx_werror_flag"
9935                          || test ! -s conftest.err'
9936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937   (eval $ac_try) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; } &&
9941          { ac_try='test -s conftest$ac_exeext'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   
9948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9949 }'`
9950 # Check for a 64-bit object if we didn't find anything.
9951 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; }
9952 }'`; fi
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 fi
9958 rm -f conftest.err conftest.$ac_objext \
9959       conftest$ac_exeext conftest.$ac_ext
9960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961
9962       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9963
9964       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"
9965      else
9966       if test "$host_cpu" = ia64; then
9967         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9968         allow_undefined_flag_CXX="-z nodefs"
9969         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"
9970       else
9971         # Determine the default libpath from the value encoded in an empty executable.
9972         cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h.  */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h.  */
9978
9979 int
9980 main ()
9981 {
9982
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989   (eval $ac_link) 2>conftest.er1
9990   ac_status=$?
9991   grep -v '^ *+' conftest.er1 >conftest.err
9992   rm -f conftest.er1
9993   cat conftest.err >&5
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } &&
9996          { ac_try='test -z "$ac_cxx_werror_flag"
9997                          || test ! -s conftest.err'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; } &&
10003          { ac_try='test -s conftest$ac_exeext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   
10010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10011 }'`
10012 # Check for a 64-bit object if we didn't find anything.
10013 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; }
10014 }'`; fi
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 fi
10020 rm -f conftest.err conftest.$ac_objext \
10021       conftest$ac_exeext conftest.$ac_ext
10022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10023
10024         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10025         # Warning - without using the other run time loading flags,
10026         # -berok will link without error, but may produce a broken library.
10027         no_undefined_flag_CXX=' ${wl}-bernotok'
10028         allow_undefined_flag_CXX=' ${wl}-berok'
10029         # -bexpall does not export symbols beginning with underscore (_)
10030         always_export_symbols_CXX=yes
10031         # Exported symbols can be pulled into shared objects from archives
10032         whole_archive_flag_spec_CXX=' '
10033         archive_cmds_need_lc_CXX=yes
10034         # This is similar to how AIX traditionally builds it's shared libraries.
10035         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'
10036       fi
10037     fi
10038     ;;
10039   chorus*)
10040     case $cc_basename in
10041       *)
10042         # FIXME: insert proper C++ library support
10043         ld_shlibs_CXX=no
10044         ;;
10045     esac
10046     ;;
10047
10048   cygwin* | mingw* | pw32*)
10049     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10050     # as there is no search path for DLLs.
10051     hardcode_libdir_flag_spec_CXX='-L$libdir'
10052     allow_undefined_flag_CXX=unsupported
10053     always_export_symbols_CXX=no
10054     enable_shared_with_static_runtimes_CXX=yes
10055
10056     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10057       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'
10058       # If the export-symbols file already is a .def file (1st line
10059       # is EXPORTS), use it as is; otherwise, prepend...
10060       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10061         cp $export_symbols $output_objdir/$soname.def;
10062       else
10063         echo EXPORTS > $output_objdir/$soname.def;
10064         cat $export_symbols >> $output_objdir/$soname.def;
10065       fi~
10066       $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'
10067     else
10068       ld_shlibs_CXX=no
10069     fi
10070   ;;
10071
10072   darwin* | rhapsody*)
10073   if test "$GXX" = yes; then
10074     archive_cmds_need_lc_CXX=no
10075     case "$host_os" in
10076     rhapsody* | darwin1.[012])
10077       allow_undefined_flag_CXX='-undefined suppress'
10078       ;;
10079     *) # Darwin 1.3 on
10080       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10081         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10082       else
10083         case ${MACOSX_DEPLOYMENT_TARGET} in
10084           10.[012])
10085             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10086             ;;
10087           10.*)
10088             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10089             ;;
10090         esac
10091       fi
10092       ;;
10093     esac
10094     lt_int_apple_cc_single_mod=no
10095     output_verbose_link_cmd='echo'
10096     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10097       lt_int_apple_cc_single_mod=yes
10098     fi
10099     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10100       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10101     else
10102       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'
10103     fi
10104     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10105
10106     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10107     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10108       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}'
10109     else
10110       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}'
10111     fi
10112     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}'
10113     hardcode_direct_CXX=no
10114     hardcode_automatic_CXX=yes
10115     hardcode_shlibpath_var_CXX=unsupported
10116     whole_archive_flag_spec_CXX='-all_load $convenience'
10117     link_all_deplibs_CXX=yes
10118   else
10119     ld_shlibs_CXX=no
10120   fi
10121     ;;
10122
10123   dgux*)
10124     case $cc_basename in
10125       ec++)
10126         # FIXME: insert proper C++ library support
10127         ld_shlibs_CXX=no
10128         ;;
10129       ghcx)
10130         # Green Hills C++ Compiler
10131         # FIXME: insert proper C++ library support
10132         ld_shlibs_CXX=no
10133         ;;
10134       *)
10135         # FIXME: insert proper C++ library support
10136         ld_shlibs_CXX=no
10137         ;;
10138     esac
10139     ;;
10140   freebsd12*)
10141     # C++ shared libraries reported to be fairly broken before switch to ELF
10142     ld_shlibs_CXX=no
10143     ;;
10144   freebsd-elf*)
10145     archive_cmds_need_lc_CXX=no
10146     ;;
10147   freebsd* | kfreebsd*-gnu)
10148     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10149     # conventions
10150     ld_shlibs_CXX=yes
10151     ;;
10152   gnu*)
10153     ;;
10154   hpux9*)
10155     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10156     hardcode_libdir_separator_CXX=:
10157     export_dynamic_flag_spec_CXX='${wl}-E'
10158     hardcode_direct_CXX=yes
10159     hardcode_minus_L_CXX=yes # Not in the search PATH,
10160                                 # but as the default
10161                                 # location of the library.
10162
10163     case $cc_basename in
10164     CC)
10165       # FIXME: insert proper C++ library support
10166       ld_shlibs_CXX=no
10167       ;;
10168     aCC)
10169       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'
10170       # Commands to make compiler produce verbose output that lists
10171       # what "hidden" libraries, object files and flags are used when
10172       # linking a shared library.
10173       #
10174       # There doesn't appear to be a way to prevent this compiler from
10175       # explicitly linking system object files so we need to strip them
10176       # from the output so that they don't get included in the library
10177       # dependencies.
10178       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'
10179       ;;
10180     *)
10181       if test "$GXX" = yes; then
10182         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'
10183       else
10184         # FIXME: insert proper C++ library support
10185         ld_shlibs_CXX=no
10186       fi
10187       ;;
10188     esac
10189     ;;
10190   hpux10*|hpux11*)
10191     if test $with_gnu_ld = no; then
10192       case "$host_cpu" in
10193       hppa*64*)
10194         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10195         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10196         hardcode_libdir_separator_CXX=:
10197         ;;
10198       ia64*)
10199         hardcode_libdir_flag_spec_CXX='-L$libdir'
10200         ;;
10201       *)
10202         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10203         hardcode_libdir_separator_CXX=:
10204         export_dynamic_flag_spec_CXX='${wl}-E'
10205         ;;
10206       esac
10207     fi
10208     case "$host_cpu" in
10209     hppa*64*)
10210       hardcode_direct_CXX=no
10211       hardcode_shlibpath_var_CXX=no
10212       ;;
10213     ia64*)
10214       hardcode_direct_CXX=no
10215       hardcode_shlibpath_var_CXX=no
10216       hardcode_minus_L_CXX=yes # Not in the search PATH,
10217                                               # but as the default
10218                                               # location of the library.
10219       ;;
10220     *)
10221       hardcode_direct_CXX=yes
10222       hardcode_minus_L_CXX=yes # Not in the search PATH,
10223                                               # but as the default
10224                                               # location of the library.
10225       ;;
10226     esac
10227
10228     case $cc_basename in
10229       CC)
10230         # FIXME: insert proper C++ library support
10231         ld_shlibs_CXX=no
10232         ;;
10233       aCC)
10234         case "$host_cpu" in
10235         hppa*64*|ia64*)
10236           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10237           ;;
10238         *)
10239           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10240           ;;
10241         esac
10242         # Commands to make compiler produce verbose output that lists
10243         # what "hidden" libraries, object files and flags are used when
10244         # linking a shared library.
10245         #
10246         # There doesn't appear to be a way to prevent this compiler from
10247         # explicitly linking system object files so we need to strip them
10248         # from the output so that they don't get included in the library
10249         # dependencies.
10250         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'
10251         ;;
10252       *)
10253         if test "$GXX" = yes; then
10254           if test $with_gnu_ld = no; then
10255             case "$host_cpu" in
10256             ia64*|hppa*64*)
10257               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10258               ;;
10259             *)
10260               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'
10261               ;;
10262             esac
10263           fi
10264         else
10265           # FIXME: insert proper C++ library support
10266           ld_shlibs_CXX=no
10267         fi
10268         ;;
10269     esac
10270     ;;
10271   irix5* | irix6*)
10272     case $cc_basename in
10273       CC)
10274         # SGI C++
10275         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'
10276
10277         # Archives containing C++ object files must be created using
10278         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10279         # necessary to make sure instantiated templates are included
10280         # in the archive.
10281         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10282         ;;
10283       *)
10284         if test "$GXX" = yes; then
10285           if test "$with_gnu_ld" = no; then
10286             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'
10287           else
10288             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'
10289           fi
10290         fi
10291         link_all_deplibs_CXX=yes
10292         ;;
10293     esac
10294     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10295     hardcode_libdir_separator_CXX=:
10296     ;;
10297   linux*)
10298     case $cc_basename in
10299       KCC)
10300         # Kuck and Associates, Inc. (KAI) C++ Compiler
10301
10302         # KCC will only create a shared library if the output file
10303         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10304         # to its proper name (with version) after linking.
10305         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'
10306         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'
10307         # Commands to make compiler produce verbose output that lists
10308         # what "hidden" libraries, object files and flags are used when
10309         # linking a shared library.
10310         #
10311         # There doesn't appear to be a way to prevent this compiler from
10312         # explicitly linking system object files so we need to strip them
10313         # from the output so that they don't get included in the library
10314         # dependencies.
10315         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'
10316
10317         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10318         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10319
10320         # Archives containing C++ object files must be created using
10321         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10322         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10323         ;;
10324       icpc)
10325         # Intel C++
10326         with_gnu_ld=yes
10327         archive_cmds_need_lc_CXX=no
10328         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10329         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'
10330         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10331         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10332         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10333         ;;
10334       cxx)
10335         # Compaq C++
10336         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337         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'
10338
10339         runpath_var=LD_RUN_PATH
10340         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10341         hardcode_libdir_separator_CXX=:
10342
10343         # Commands to make compiler produce verbose output that lists
10344         # what "hidden" libraries, object files and flags are used when
10345         # linking a shared library.
10346         #
10347         # There doesn't appear to be a way to prevent this compiler from
10348         # explicitly linking system object files so we need to strip them
10349         # from the output so that they don't get included in the library
10350         # dependencies.
10351         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'
10352         ;;
10353     esac
10354     ;;
10355   lynxos*)
10356     # FIXME: insert proper C++ library support
10357     ld_shlibs_CXX=no
10358     ;;
10359   m88k*)
10360     # FIXME: insert proper C++ library support
10361     ld_shlibs_CXX=no
10362     ;;
10363   mvs*)
10364     case $cc_basename in
10365       cxx)
10366         # FIXME: insert proper C++ library support
10367         ld_shlibs_CXX=no
10368         ;;
10369       *)
10370         # FIXME: insert proper C++ library support
10371         ld_shlibs_CXX=no
10372         ;;
10373     esac
10374     ;;
10375   netbsd*)
10376     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10377       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10378       wlarc=
10379       hardcode_libdir_flag_spec_CXX='-R$libdir'
10380       hardcode_direct_CXX=yes
10381       hardcode_shlibpath_var_CXX=no
10382     fi
10383     # Workaround some broken pre-1.5 toolchains
10384     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10385     ;;
10386   osf3*)
10387     case $cc_basename in
10388       KCC)
10389         # Kuck and Associates, Inc. (KAI) C++ Compiler
10390
10391         # KCC will only create a shared library if the output file
10392         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10393         # to its proper name (with version) after linking.
10394         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'
10395
10396         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10397         hardcode_libdir_separator_CXX=:
10398
10399         # Archives containing C++ object files must be created using
10400         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10401         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10402
10403         ;;
10404       RCC)
10405         # Rational C++ 2.4.1
10406         # FIXME: insert proper C++ library support
10407         ld_shlibs_CXX=no
10408         ;;
10409       cxx)
10410         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10411         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'
10412
10413         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10414         hardcode_libdir_separator_CXX=:
10415
10416         # Commands to make compiler produce verbose output that lists
10417         # what "hidden" libraries, object files and flags are used when
10418         # linking a shared library.
10419         #
10420         # There doesn't appear to be a way to prevent this compiler from
10421         # explicitly linking system object files so we need to strip them
10422         # from the output so that they don't get included in the library
10423         # dependencies.
10424         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'
10425         ;;
10426       *)
10427         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10428           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10429           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'
10430
10431           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10432           hardcode_libdir_separator_CXX=:
10433
10434           # Commands to make compiler produce verbose output that lists
10435           # what "hidden" libraries, object files and flags are used when
10436           # linking a shared library.
10437           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10438
10439         else
10440           # FIXME: insert proper C++ library support
10441           ld_shlibs_CXX=no
10442         fi
10443         ;;
10444     esac
10445     ;;
10446   osf4* | osf5*)
10447     case $cc_basename in
10448       KCC)
10449         # Kuck and Associates, Inc. (KAI) C++ Compiler
10450
10451         # KCC will only create a shared library if the output file
10452         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10453         # to its proper name (with version) after linking.
10454         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'
10455
10456         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10457         hardcode_libdir_separator_CXX=:
10458
10459         # Archives containing C++ object files must be created using
10460         # the KAI C++ compiler.
10461         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10462         ;;
10463       RCC)
10464         # Rational C++ 2.4.1
10465         # FIXME: insert proper C++ library support
10466         ld_shlibs_CXX=no
10467         ;;
10468       cxx)
10469         allow_undefined_flag_CXX=' -expect_unresolved \*'
10470         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'
10471         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10472           echo "-hidden">> $lib.exp~
10473           $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~
10474           $rm $lib.exp'
10475
10476         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10477         hardcode_libdir_separator_CXX=:
10478
10479         # Commands to make compiler produce verbose output that lists
10480         # what "hidden" libraries, object files and flags are used when
10481         # linking a shared library.
10482         #
10483         # There doesn't appear to be a way to prevent this compiler from
10484         # explicitly linking system object files so we need to strip them
10485         # from the output so that they don't get included in the library
10486         # dependencies.
10487         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'
10488         ;;
10489       *)
10490         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10491           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10492          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'
10493
10494           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10495           hardcode_libdir_separator_CXX=:
10496
10497           # Commands to make compiler produce verbose output that lists
10498           # what "hidden" libraries, object files and flags are used when
10499           # linking a shared library.
10500           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10501
10502         else
10503           # FIXME: insert proper C++ library support
10504           ld_shlibs_CXX=no
10505         fi
10506         ;;
10507     esac
10508     ;;
10509   psos*)
10510     # FIXME: insert proper C++ library support
10511     ld_shlibs_CXX=no
10512     ;;
10513   sco*)
10514     archive_cmds_need_lc_CXX=no
10515     case $cc_basename in
10516       CC)
10517         # FIXME: insert proper C++ library support
10518         ld_shlibs_CXX=no
10519         ;;
10520       *)
10521         # FIXME: insert proper C++ library support
10522         ld_shlibs_CXX=no
10523         ;;
10524     esac
10525     ;;
10526   sunos4*)
10527     case $cc_basename in
10528       CC)
10529         # Sun C++ 4.x
10530         # FIXME: insert proper C++ library support
10531         ld_shlibs_CXX=no
10532         ;;
10533       lcc)
10534         # Lucid
10535         # FIXME: insert proper C++ library support
10536         ld_shlibs_CXX=no
10537         ;;
10538       *)
10539         # FIXME: insert proper C++ library support
10540         ld_shlibs_CXX=no
10541         ;;
10542     esac
10543     ;;
10544   solaris*)
10545     case $cc_basename in
10546       CC)
10547         # Sun C++ 4.2, 5.x and Centerline C++
10548         no_undefined_flag_CXX=' -zdefs'
10549         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10550         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10551         $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'
10552
10553         hardcode_libdir_flag_spec_CXX='-R$libdir'
10554         hardcode_shlibpath_var_CXX=no
10555         case $host_os in
10556           solaris2.0-5 | solaris2.0-5.*) ;;
10557           *)
10558             # The C++ compiler is used as linker so we must use $wl
10559             # flag to pass the commands to the underlying system
10560             # linker.
10561             # Supported since Solaris 2.6 (maybe 2.5.1?)
10562             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10563             ;;
10564         esac
10565         link_all_deplibs_CXX=yes
10566
10567         # Commands to make compiler produce verbose output that lists
10568         # what "hidden" libraries, object files and flags are used when
10569         # linking a shared library.
10570         #
10571         # There doesn't appear to be a way to prevent this compiler from
10572         # explicitly linking system object files so we need to strip them
10573         # from the output so that they don't get included in the library
10574         # dependencies.
10575         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'
10576
10577         # Archives containing C++ object files must be created using
10578         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10579         # necessary to make sure instantiated templates are included
10580         # in the archive.
10581         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10582         ;;
10583       gcx)
10584         # Green Hills C++ Compiler
10585         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10586
10587         # The C++ compiler must be used to create the archive.
10588         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10589         ;;
10590       *)
10591         # GNU C++ compiler with Solaris linker
10592         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10593           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10594           if $CC --version | grep -v '^2\.7' > /dev/null; then
10595             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10596             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10597                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10598
10599             # Commands to make compiler produce verbose output that lists
10600             # what "hidden" libraries, object files and flags are used when
10601             # linking a shared library.
10602             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10603           else
10604             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10605             # platform.
10606             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10607             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10608                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10609
10610             # Commands to make compiler produce verbose output that lists
10611             # what "hidden" libraries, object files and flags are used when
10612             # linking a shared library.
10613             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10614           fi
10615
10616           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10617         fi
10618         ;;
10619     esac
10620     ;;
10621   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10622     archive_cmds_need_lc_CXX=no
10623     ;;
10624   tandem*)
10625     case $cc_basename in
10626       NCC)
10627         # NonStop-UX NCC 3.20
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     ;;
10637   vxworks*)
10638     # FIXME: insert proper C++ library support
10639     ld_shlibs_CXX=no
10640     ;;
10641   *)
10642     # FIXME: insert proper C++ library support
10643     ld_shlibs_CXX=no
10644     ;;
10645 esac
10646 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10647 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10648 test "$ld_shlibs_CXX" = no && can_build_shared=no
10649
10650 GCC_CXX="$GXX"
10651 LD_CXX="$LD"
10652
10653 ## CAVEAT EMPTOR:
10654 ## There is no encapsulation within the following macros, do not change
10655 ## the running order or otherwise move them around unless you know exactly
10656 ## what you are doing...
10657
10658 cat > conftest.$ac_ext <<EOF
10659 class Foo
10660 {
10661 public:
10662   Foo (void) { a = 0; }
10663 private:
10664   int a;
10665 };
10666 EOF
10667
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669   (eval $ac_compile) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; then
10673   # Parse the compiler output and extract the necessary
10674   # objects, libraries and library flags.
10675
10676   # Sentinel used to keep track of whether or not we are before
10677   # the conftest object file.
10678   pre_test_object_deps_done=no
10679
10680   # The `*' in the case matches for architectures that use `case' in
10681   # $output_verbose_cmd can trigger glob expansion during the loop
10682   # eval without this substitution.
10683   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10684
10685   for p in `eval $output_verbose_link_cmd`; do
10686     case $p in
10687
10688     -L* | -R* | -l*)
10689        # Some compilers place space between "-{L,R}" and the path.
10690        # Remove the space.
10691        if test $p = "-L" \
10692           || test $p = "-R"; then
10693          prev=$p
10694          continue
10695        else
10696          prev=
10697        fi
10698
10699        if test "$pre_test_object_deps_done" = no; then
10700          case $p in
10701          -L* | -R*)
10702            # Internal compiler library paths should come after those
10703            # provided the user.  The postdeps already come after the
10704            # user supplied libs so there is no need to process them.
10705            if test -z "$compiler_lib_search_path_CXX"; then
10706              compiler_lib_search_path_CXX="${prev}${p}"
10707            else
10708              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10709            fi
10710            ;;
10711          # The "-l" case would never come before the object being
10712          # linked, so don't bother handling this case.
10713          esac
10714        else
10715          if test -z "$postdeps_CXX"; then
10716            postdeps_CXX="${prev}${p}"
10717          else
10718            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10719          fi
10720        fi
10721        ;;
10722
10723     *.$objext)
10724        # This assumes that the test object file only shows up
10725        # once in the compiler output.
10726        if test "$p" = "conftest.$objext"; then
10727          pre_test_object_deps_done=yes
10728          continue
10729        fi
10730
10731        if test "$pre_test_object_deps_done" = no; then
10732          if test -z "$predep_objects_CXX"; then
10733            predep_objects_CXX="$p"
10734          else
10735            predep_objects_CXX="$predep_objects_CXX $p"
10736          fi
10737        else
10738          if test -z "$postdep_objects_CXX"; then
10739            postdep_objects_CXX="$p"
10740          else
10741            postdep_objects_CXX="$postdep_objects_CXX $p"
10742          fi
10743        fi
10744        ;;
10745
10746     *) ;; # Ignore the rest.
10747
10748     esac
10749   done
10750
10751   # Clean up.
10752   rm -f a.out a.exe
10753 else
10754   echo "libtool.m4: error: problem compiling CXX test program"
10755 fi
10756
10757 $rm -f confest.$objext
10758
10759 case " $postdeps_CXX " in
10760 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10761 esac
10762
10763 lt_prog_compiler_wl_CXX=
10764 lt_prog_compiler_pic_CXX=
10765 lt_prog_compiler_static_CXX=
10766
10767 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10769  
10770   # C++ specific cases for pic, static, wl, etc.
10771   if test "$GXX" = yes; then
10772     lt_prog_compiler_wl_CXX='-Wl,'
10773     lt_prog_compiler_static_CXX='-static'
10774
10775     case $host_os in
10776     aix*)
10777       # All AIX code is PIC.
10778       if test "$host_cpu" = ia64; then
10779         # AIX 5 now supports IA64 processor
10780         lt_prog_compiler_static_CXX='-Bstatic'
10781       fi
10782       ;;
10783     amigaos*)
10784       # FIXME: we need at least 68020 code to build shared libraries, but
10785       # adding the `-m68020' flag to GCC prevents building anything better,
10786       # like `-m68040'.
10787       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10788       ;;
10789     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10790       # PIC is the default for these OSes.
10791       ;;
10792     mingw* | os2* | pw32*)
10793       # This hack is so that the source file can tell whether it is being
10794       # built for inclusion in a dll (and should export symbols for example).
10795       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10796       ;;
10797     darwin* | rhapsody*)
10798       # PIC is the default on this platform
10799       # Common symbols not allowed in MH_DYLIB files
10800       lt_prog_compiler_pic_CXX='-fno-common'
10801       ;;
10802     *djgpp*)
10803       # DJGPP does not support shared libraries at all
10804       lt_prog_compiler_pic_CXX=
10805       ;;
10806     sysv4*MP*)
10807       if test -d /usr/nec; then
10808         lt_prog_compiler_pic_CXX=-Kconform_pic
10809       fi
10810       ;;
10811     hpux*)
10812       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10813       # not for PA HP-UX.
10814       case "$host_cpu" in
10815       hppa*64*|ia64*)
10816         ;;
10817       *)
10818         lt_prog_compiler_pic_CXX='-fPIC'
10819         ;;
10820       esac
10821       ;;
10822     *)
10823       lt_prog_compiler_pic_CXX='-fPIC'
10824       ;;
10825     esac
10826   else
10827     case $host_os in
10828       aix4* | aix5*)
10829         # All AIX code is PIC.
10830         if test "$host_cpu" = ia64; then
10831           # AIX 5 now supports IA64 processor
10832           lt_prog_compiler_static_CXX='-Bstatic'
10833         else
10834           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10835         fi
10836         ;;
10837       chorus*)
10838         case $cc_basename in
10839         cxch68)
10840           # Green Hills C++ Compiler
10841           # _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"
10842           ;;
10843         esac
10844         ;;
10845       dgux*)
10846         case $cc_basename in
10847           ec++)
10848             lt_prog_compiler_pic_CXX='-KPIC'
10849             ;;
10850           ghcx)
10851             # Green Hills C++ Compiler
10852             lt_prog_compiler_pic_CXX='-pic'
10853             ;;
10854           *)
10855             ;;
10856         esac
10857         ;;
10858       freebsd* | kfreebsd*-gnu)
10859         # FreeBSD uses GNU C++
10860         ;;
10861       hpux9* | hpux10* | hpux11*)
10862         case $cc_basename in
10863           CC)
10864             lt_prog_compiler_wl_CXX='-Wl,'
10865             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10866             if test "$host_cpu" != ia64; then
10867               lt_prog_compiler_pic_CXX='+Z'
10868             fi
10869             ;;
10870           aCC)
10871             lt_prog_compiler_wl_CXX='-Wl,'
10872             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10873             case "$host_cpu" in
10874             hppa*64*|ia64*)
10875               # +Z the default
10876               ;;
10877             *)
10878               lt_prog_compiler_pic_CXX='+Z'
10879               ;;
10880             esac
10881             ;;
10882           *)
10883             ;;
10884         esac
10885         ;;
10886       irix5* | irix6* | nonstopux*)
10887         case $cc_basename in
10888           CC)
10889             lt_prog_compiler_wl_CXX='-Wl,'
10890             lt_prog_compiler_static_CXX='-non_shared'
10891             # CC pic flag -KPIC is the default.
10892             ;;
10893           *)
10894             ;;
10895         esac
10896         ;;
10897       linux*)
10898         case $cc_basename in
10899           KCC)
10900             # KAI C++ Compiler
10901             lt_prog_compiler_wl_CXX='--backend -Wl,'
10902             lt_prog_compiler_pic_CXX='-fPIC'
10903             ;;
10904           icpc)
10905             # Intel C++
10906             lt_prog_compiler_wl_CXX='-Wl,'
10907             lt_prog_compiler_pic_CXX='-KPIC'
10908             lt_prog_compiler_static_CXX='-static'
10909             ;;
10910           cxx)
10911             # Compaq C++
10912             # Make sure the PIC flag is empty.  It appears that all Alpha
10913             # Linux and Compaq Tru64 Unix objects are PIC.
10914             lt_prog_compiler_pic_CXX=
10915             lt_prog_compiler_static_CXX='-non_shared'
10916             ;;
10917           *)
10918             ;;
10919         esac
10920         ;;
10921       lynxos*)
10922         ;;
10923       m88k*)
10924         ;;
10925       mvs*)
10926         case $cc_basename in
10927           cxx)
10928             lt_prog_compiler_pic_CXX='-W c,exportall'
10929             ;;
10930           *)
10931             ;;
10932         esac
10933         ;;
10934       netbsd*)
10935         ;;
10936       osf3* | osf4* | osf5*)
10937         case $cc_basename in
10938           KCC)
10939             lt_prog_compiler_wl_CXX='--backend -Wl,'
10940             ;;
10941           RCC)
10942             # Rational C++ 2.4.1
10943             lt_prog_compiler_pic_CXX='-pic'
10944             ;;
10945           cxx)
10946             # Digital/Compaq C++
10947             lt_prog_compiler_wl_CXX='-Wl,'
10948             # Make sure the PIC flag is empty.  It appears that all Alpha
10949             # Linux and Compaq Tru64 Unix objects are PIC.
10950             lt_prog_compiler_pic_CXX=
10951             lt_prog_compiler_static_CXX='-non_shared'
10952             ;;
10953           *)
10954             ;;
10955         esac
10956         ;;
10957       psos*)
10958         ;;
10959       sco*)
10960         case $cc_basename in
10961           CC)
10962             lt_prog_compiler_pic_CXX='-fPIC'
10963             ;;
10964           *)
10965             ;;
10966         esac
10967         ;;
10968       solaris*)
10969         case $cc_basename in
10970           CC)
10971             # Sun C++ 4.2, 5.x and Centerline C++
10972             lt_prog_compiler_pic_CXX='-KPIC'
10973             lt_prog_compiler_static_CXX='-Bstatic'
10974             lt_prog_compiler_wl_CXX='-Qoption ld '
10975             ;;
10976           gcx)
10977             # Green Hills C++ Compiler
10978             lt_prog_compiler_pic_CXX='-PIC'
10979             ;;
10980           *)
10981             ;;
10982         esac
10983         ;;
10984       sunos4*)
10985         case $cc_basename in
10986           CC)
10987             # Sun C++ 4.x
10988             lt_prog_compiler_pic_CXX='-pic'
10989             lt_prog_compiler_static_CXX='-Bstatic'
10990             ;;
10991           lcc)
10992             # Lucid
10993             lt_prog_compiler_pic_CXX='-pic'
10994             ;;
10995           *)
10996             ;;
10997         esac
10998         ;;
10999       tandem*)
11000         case $cc_basename in
11001           NCC)
11002             # NonStop-UX NCC 3.20
11003             lt_prog_compiler_pic_CXX='-KPIC'
11004             ;;
11005           *)
11006             ;;
11007         esac
11008         ;;
11009       unixware*)
11010         ;;
11011       vxworks*)
11012         ;;
11013       *)
11014         lt_prog_compiler_can_build_shared_CXX=no
11015         ;;
11016     esac
11017   fi
11018
11019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11020 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11021
11022 #
11023 # Check to make sure the PIC flag actually works.
11024 #
11025 if test -n "$lt_prog_compiler_pic_CXX"; then
11026   
11027 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11028 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11029 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   lt_prog_compiler_pic_works_CXX=no
11033   ac_outfile=conftest.$ac_objext
11034    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11035    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11036    # Insert the option either (1) after the last *FLAGS variable, or
11037    # (2) before a word containing "conftest.", or (3) at the end.
11038    # Note that $ac_compile itself does not contain backslashes and begins
11039    # with a dollar sign (not a hyphen), so the echo should work correctly.
11040    # The option is referenced via a variable to avoid confusing sed.
11041    lt_compile=`echo "$ac_compile" | $SED \
11042    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11044    -e 's:$: $lt_compiler_flag:'`
11045    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11046    (eval "$lt_compile" 2>conftest.err)
11047    ac_status=$?
11048    cat conftest.err >&5
11049    echo "$as_me:__oline__: \$? = $ac_status" >&5
11050    if (exit $ac_status) && test -s "$ac_outfile"; then
11051      # The compiler can only warn and ignore the option if not recognized
11052      # So say no if there are warnings
11053      if test ! -s conftest.err; then
11054        lt_prog_compiler_pic_works_CXX=yes
11055      fi
11056    fi
11057    $rm conftest*
11058
11059 fi
11060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11061 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11062
11063 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11064     case $lt_prog_compiler_pic_CXX in
11065      "" | " "*) ;;
11066      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11067      esac
11068 else
11069     lt_prog_compiler_pic_CXX=
11070      lt_prog_compiler_can_build_shared_CXX=no
11071 fi
11072
11073 fi
11074 case "$host_os" in
11075   # For platforms which do not support PIC, -DPIC is meaningless:
11076   *djgpp*)
11077     lt_prog_compiler_pic_CXX=
11078     ;;
11079   *)
11080     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11081     ;;
11082 esac
11083
11084 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11086 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   lt_cv_prog_compiler_c_o_CXX=no
11090    $rm -r conftest 2>/dev/null
11091    mkdir conftest
11092    cd conftest
11093    mkdir out
11094    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11095
11096    lt_compiler_flag="-o out/conftest2.$ac_objext"
11097    # Insert the option either (1) after the last *FLAGS variable, or
11098    # (2) before a word containing "conftest.", or (3) at the end.
11099    # Note that $ac_compile itself does not contain backslashes and begins
11100    # with a dollar sign (not a hyphen), so the echo should work correctly.
11101    lt_compile=`echo "$ac_compile" | $SED \
11102    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11104    -e 's:$: $lt_compiler_flag:'`
11105    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11106    (eval "$lt_compile" 2>out/conftest.err)
11107    ac_status=$?
11108    cat out/conftest.err >&5
11109    echo "$as_me:__oline__: \$? = $ac_status" >&5
11110    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11111    then
11112      # The compiler can only warn and ignore the option if not recognized
11113      # So say no if there are warnings
11114      if test ! -s out/conftest.err; then
11115        lt_cv_prog_compiler_c_o_CXX=yes
11116      fi
11117    fi
11118    chmod u+w .
11119    $rm conftest*
11120    # SGI C++ compiler will create directory out/ii_files/ for
11121    # template instantiation
11122    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11123    $rm out/* && rmdir out
11124    cd ..
11125    rmdir conftest
11126    $rm conftest*
11127
11128 fi
11129 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11130 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11131
11132
11133 hard_links="nottested"
11134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11135   # do not overwrite the value of need_locks provided by the user
11136   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11137 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11138   hard_links=yes
11139   $rm conftest*
11140   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11141   touch conftest.a
11142   ln conftest.a conftest.b 2>&5 || hard_links=no
11143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11144   echo "$as_me:$LINENO: result: $hard_links" >&5
11145 echo "${ECHO_T}$hard_links" >&6
11146   if test "$hard_links" = no; then
11147     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11148 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11149     need_locks=warn
11150   fi
11151 else
11152   need_locks=no
11153 fi
11154
11155 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11156 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11157
11158   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11159   case $host_os in
11160   aix4* | aix5*)
11161     # If we're using GNU nm, then we don't want the "-C" option.
11162     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11163     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11164       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'
11165     else
11166       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'
11167     fi
11168     ;;
11169   pw32*)
11170     export_symbols_cmds_CXX="$ltdll_cmds"
11171   ;;
11172   cygwin* | mingw*)
11173     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11174   ;;
11175   *)
11176     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11177   ;;
11178   esac
11179
11180 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11181 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11182 test "$ld_shlibs_CXX" = no && can_build_shared=no
11183
11184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11185 if test "$GCC" = yes; then
11186   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11187 fi
11188
11189 #
11190 # Do we need to explicitly link libc?
11191 #
11192 case "x$archive_cmds_need_lc_CXX" in
11193 x|xyes)
11194   # Assume -lc should be added
11195   archive_cmds_need_lc_CXX=yes
11196
11197   if test "$enable_shared" = yes && test "$GCC" = yes; then
11198     case $archive_cmds_CXX in
11199     *'~'*)
11200       # FIXME: we may have to deal with multi-command sequences.
11201       ;;
11202     '$CC '*)
11203       # Test whether the compiler implicitly links with -lc since on some
11204       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11205       # to ld, don't add -lc before -lgcc.
11206       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11207 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11208       $rm conftest*
11209       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11210
11211       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212   (eval $ac_compile) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } 2>conftest.err; then
11216         soname=conftest
11217         lib=conftest
11218         libobjs=conftest.$ac_objext
11219         deplibs=
11220         wl=$lt_prog_compiler_wl_CXX
11221         compiler_flags=-v
11222         linker_flags=-v
11223         verstring=
11224         output_objdir=.
11225         libname=conftest
11226         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11227         allow_undefined_flag_CXX=
11228         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11229   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }
11233         then
11234           archive_cmds_need_lc_CXX=no
11235         else
11236           archive_cmds_need_lc_CXX=yes
11237         fi
11238         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11239       else
11240         cat conftest.err 1>&5
11241       fi
11242       $rm conftest*
11243       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11244 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11245       ;;
11246     esac
11247   fi
11248   ;;
11249 esac
11250
11251 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11253 library_names_spec=
11254 libname_spec='lib$name'
11255 soname_spec=
11256 shrext_cmds=".so"
11257 postinstall_cmds=
11258 postuninstall_cmds=
11259 finish_cmds=
11260 finish_eval=
11261 shlibpath_var=
11262 shlibpath_overrides_runpath=unknown
11263 version_type=none
11264 dynamic_linker="$host_os ld.so"
11265 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11266 if test "$GCC" = yes; then
11267   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11268   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11269     # if the path contains ";" then we assume it to be the separator
11270     # otherwise default to the standard path separator (i.e. ":") - it is
11271     # assumed that no part of a normal pathname contains ";" but that should
11272     # okay in the real world where ";" in dirpaths is itself problematic.
11273     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11274   else
11275     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11276   fi
11277 else
11278   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11279 fi
11280 need_lib_prefix=unknown
11281 hardcode_into_libs=no
11282
11283 # when you set need_version to no, make sure it does not cause -set_version
11284 # flags to be left without arguments
11285 need_version=unknown
11286
11287 case $host_os in
11288 aix3*)
11289   version_type=linux
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11291   shlibpath_var=LIBPATH
11292
11293   # AIX 3 has no versioning support, so we append a major version to the name.
11294   soname_spec='${libname}${release}${shared_ext}$major'
11295   ;;
11296
11297 aix4* | aix5*)
11298   version_type=linux
11299   need_lib_prefix=no
11300   need_version=no
11301   hardcode_into_libs=yes
11302   if test "$host_cpu" = ia64; then
11303     # AIX 5 supports IA64
11304     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11305     shlibpath_var=LD_LIBRARY_PATH
11306   else
11307     # With GCC up to 2.95.x, collect2 would create an import file
11308     # for dependence libraries.  The import file would start with
11309     # the line `#! .'.  This would cause the generated library to
11310     # depend on `.', always an invalid library.  This was fixed in
11311     # development snapshots of GCC prior to 3.0.
11312     case $host_os in
11313       aix4 | aix4.[01] | aix4.[01].*)
11314       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11315            echo ' yes '
11316            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11317         :
11318       else
11319         can_build_shared=no
11320       fi
11321       ;;
11322     esac
11323     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11324     # soname into executable. Probably we can add versioning support to
11325     # collect2, so additional links can be useful in future.
11326     if test "$aix_use_runtimelinking" = yes; then
11327       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11328       # instead of lib<name>.a to let people know that these are not
11329       # typical AIX shared libraries.
11330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331     else
11332       # We preserve .a as extension for shared libraries through AIX4.2
11333       # and later when we are not doing run time linking.
11334       library_names_spec='${libname}${release}.a $libname.a'
11335       soname_spec='${libname}${release}${shared_ext}$major'
11336     fi
11337     shlibpath_var=LIBPATH
11338   fi
11339   ;;
11340
11341 amigaos*)
11342   library_names_spec='$libname.ixlibrary $libname.a'
11343   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11344   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'
11345   ;;
11346
11347 beos*)
11348   library_names_spec='${libname}${shared_ext}'
11349   dynamic_linker="$host_os ld.so"
11350   shlibpath_var=LIBRARY_PATH
11351   ;;
11352
11353 bsdi4*)
11354   version_type=linux
11355   need_version=no
11356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357   soname_spec='${libname}${release}${shared_ext}$major'
11358   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11359   shlibpath_var=LD_LIBRARY_PATH
11360   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11361   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11362   # the default ld.so.conf also contains /usr/contrib/lib and
11363   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11364   # libtool to hard-code these into programs
11365   ;;
11366
11367 cygwin* | mingw* | pw32*)
11368   version_type=windows
11369   shrext_cmds=".dll"
11370   need_version=no
11371   need_lib_prefix=no
11372
11373   case $GCC,$host_os in
11374   yes,cygwin* | yes,mingw* | yes,pw32*)
11375     library_names_spec='$libname.dll.a'
11376     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11377     postinstall_cmds='base_file=`basename \${file}`~
11378       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11379       dldir=$destdir/`dirname \$dlpath`~
11380       test -d \$dldir || mkdir -p \$dldir~
11381       $install_prog $dir/$dlname \$dldir/$dlname'
11382     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11383       dlpath=$dir/\$dldll~
11384        $rm \$dlpath'
11385     shlibpath_overrides_runpath=yes
11386
11387     case $host_os in
11388     cygwin*)
11389       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11390       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11391       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11392       ;;
11393     mingw*)
11394       # MinGW DLLs use traditional 'lib' prefix
11395       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11396       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11397       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11398         # It is most probably a Windows format PATH printed by
11399         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11400         # path with ; separators, and with drive letters. We can handle the
11401         # drive letters (cygwin fileutils understands them), so leave them,
11402         # especially as we might pass files found there to a mingw objdump,
11403         # which wouldn't understand a cygwinified path. Ahh.
11404         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11405       else
11406         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11407       fi
11408       ;;
11409     pw32*)
11410       # pw32 DLLs use 'pw' prefix rather than 'lib'
11411       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11412       ;;
11413     esac
11414     ;;
11415
11416   *)
11417     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11418     ;;
11419   esac
11420   dynamic_linker='Win32 ld.exe'
11421   # FIXME: first we should search . and the directory the executable is in
11422   shlibpath_var=PATH
11423   ;;
11424
11425 darwin* | rhapsody*)
11426   dynamic_linker="$host_os dyld"
11427   version_type=darwin
11428   need_lib_prefix=no
11429   need_version=no
11430   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11431   soname_spec='${libname}${release}${major}$shared_ext'
11432   shlibpath_overrides_runpath=yes
11433   shlibpath_var=DYLD_LIBRARY_PATH
11434   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11435   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11436   if test "$GCC" = yes; then
11437     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"`
11438   else
11439     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11440   fi
11441   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11442   ;;
11443
11444 dgux*)
11445   version_type=linux
11446   need_lib_prefix=no
11447   need_version=no
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11449   soname_spec='${libname}${release}${shared_ext}$major'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   ;;
11452
11453 freebsd1*)
11454   dynamic_linker=no
11455   ;;
11456
11457 kfreebsd*-gnu)
11458   version_type=linux
11459   need_lib_prefix=no
11460   need_version=no
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462   soname_spec='${libname}${release}${shared_ext}$major'
11463   shlibpath_var=LD_LIBRARY_PATH
11464   shlibpath_overrides_runpath=no
11465   hardcode_into_libs=yes
11466   dynamic_linker='GNU ld.so'
11467   ;;
11468
11469 freebsd*)
11470   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11471   version_type=freebsd-$objformat
11472   case $version_type in
11473     freebsd-elf*)
11474       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11475       need_version=no
11476       need_lib_prefix=no
11477       ;;
11478     freebsd-*)
11479       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11480       need_version=yes
11481       ;;
11482   esac
11483   shlibpath_var=LD_LIBRARY_PATH
11484   case $host_os in
11485   freebsd2*)
11486     shlibpath_overrides_runpath=yes
11487     ;;
11488   freebsd3.01* | freebsdelf3.01*)
11489     shlibpath_overrides_runpath=yes
11490     hardcode_into_libs=yes
11491     ;;
11492   *) # from 3.2 on
11493     shlibpath_overrides_runpath=no
11494     hardcode_into_libs=yes
11495     ;;
11496   esac
11497   ;;
11498
11499 gnu*)
11500   version_type=linux
11501   need_lib_prefix=no
11502   need_version=no
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   shlibpath_var=LD_LIBRARY_PATH
11506   hardcode_into_libs=yes
11507   ;;
11508
11509 hpux9* | hpux10* | hpux11*)
11510   # Give a soname corresponding to the major version so that dld.sl refuses to
11511   # link against other versions.
11512   version_type=sunos
11513   need_lib_prefix=no
11514   need_version=no
11515   case "$host_cpu" in
11516   ia64*)
11517     shrext_cmds='.so'
11518     hardcode_into_libs=yes
11519     dynamic_linker="$host_os dld.so"
11520     shlibpath_var=LD_LIBRARY_PATH
11521     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523     soname_spec='${libname}${release}${shared_ext}$major'
11524     if test "X$HPUX_IA64_MODE" = X32; then
11525       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11526     else
11527       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11528     fi
11529     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11530     ;;
11531    hppa*64*)
11532      shrext_cmds='.sl'
11533      hardcode_into_libs=yes
11534      dynamic_linker="$host_os dld.sl"
11535      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11536      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538      soname_spec='${libname}${release}${shared_ext}$major'
11539      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11540      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11541      ;;
11542    *)
11543     shrext_cmds='.sl'
11544     dynamic_linker="$host_os dld.sl"
11545     shlibpath_var=SHLIB_PATH
11546     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548     soname_spec='${libname}${release}${shared_ext}$major'
11549     ;;
11550   esac
11551   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11552   postinstall_cmds='chmod 555 $lib'
11553   ;;
11554
11555 irix5* | irix6* | nonstopux*)
11556   case $host_os in
11557     nonstopux*) version_type=nonstopux ;;
11558     *)
11559         if test "$lt_cv_prog_gnu_ld" = yes; then
11560                 version_type=linux
11561         else
11562                 version_type=irix
11563         fi ;;
11564   esac
11565   need_lib_prefix=no
11566   need_version=no
11567   soname_spec='${libname}${release}${shared_ext}$major'
11568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11569   case $host_os in
11570   irix5* | nonstopux*)
11571     libsuff= shlibsuff=
11572     ;;
11573   *)
11574     case $LD in # libtool.m4 will add one of these switches to LD
11575     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11576       libsuff= shlibsuff= libmagic=32-bit;;
11577     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11578       libsuff=32 shlibsuff=N32 libmagic=N32;;
11579     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11580       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11581     *) libsuff= shlibsuff= libmagic=never-match;;
11582     esac
11583     ;;
11584   esac
11585   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11586   shlibpath_overrides_runpath=no
11587   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11588   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11589   hardcode_into_libs=yes
11590   ;;
11591
11592 # No shared lib support for Linux oldld, aout, or coff.
11593 linux*oldld* | linux*aout* | linux*coff*)
11594   dynamic_linker=no
11595   ;;
11596
11597 # This must be Linux ELF.
11598 linux*)
11599   version_type=linux
11600   need_lib_prefix=no
11601   need_version=no
11602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603   soname_spec='${libname}${release}${shared_ext}$major'
11604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   shlibpath_overrides_runpath=no
11607   # This implies no fast_install, which is unacceptable.
11608   # Some rework will be needed to allow for fast_install
11609   # before this can be enabled.
11610   hardcode_into_libs=yes
11611
11612   # find out which ABI we are using
11613   libsuff=
11614   case "$host_cpu" in
11615   x86_64*|s390x*|powerpc64*)
11616     echo '#line __oline__ "configure"' > conftest.$ac_ext
11617     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618   (eval $ac_compile) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; then
11622       case `/usr/bin/file conftest.$ac_objext` in
11623       *64-bit*)
11624         libsuff=64
11625         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11626         ;;
11627       esac
11628     fi
11629     rm -rf conftest*
11630     ;;
11631   esac
11632
11633   # Append ld.so.conf contents to the search path
11634   if test -f /etc/ld.so.conf; then
11635     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11636     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11637   fi
11638
11639   # We used to test for /lib/ld.so.1 and disable shared libraries on
11640   # powerpc, because MkLinux only supported shared libraries with the
11641   # GNU dynamic linker.  Since this was broken with cross compilers,
11642   # most powerpc-linux boxes support dynamic linking these days and
11643   # people can always --disable-shared, the test was removed, and we
11644   # assume the GNU/Linux dynamic linker is in use.
11645   dynamic_linker='GNU/Linux ld.so'
11646   ;;
11647
11648 knetbsd*-gnu)
11649   version_type=linux
11650   need_lib_prefix=no
11651   need_version=no
11652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653   soname_spec='${libname}${release}${shared_ext}$major'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   shlibpath_overrides_runpath=no
11656   hardcode_into_libs=yes
11657   dynamic_linker='GNU ld.so'
11658   ;;
11659
11660 netbsd*)
11661   version_type=sunos
11662   need_lib_prefix=no
11663   need_version=no
11664   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11666     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667     dynamic_linker='NetBSD (a.out) ld.so'
11668   else
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     dynamic_linker='NetBSD ld.elf_so'
11672   fi
11673   shlibpath_var=LD_LIBRARY_PATH
11674   shlibpath_overrides_runpath=yes
11675   hardcode_into_libs=yes
11676   ;;
11677
11678 newsos6)
11679   version_type=linux
11680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681   shlibpath_var=LD_LIBRARY_PATH
11682   shlibpath_overrides_runpath=yes
11683   ;;
11684
11685 nto-qnx*)
11686   version_type=linux
11687   need_lib_prefix=no
11688   need_version=no
11689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690   soname_spec='${libname}${release}${shared_ext}$major'
11691   shlibpath_var=LD_LIBRARY_PATH
11692   shlibpath_overrides_runpath=yes
11693   ;;
11694
11695 openbsd*)
11696   version_type=sunos
11697   need_lib_prefix=no
11698   need_version=yes
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11700   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703     case $host_os in
11704       openbsd2.[89] | openbsd2.[89].*)
11705         shlibpath_overrides_runpath=no
11706         ;;
11707       *)
11708         shlibpath_overrides_runpath=yes
11709         ;;
11710       esac
11711   else
11712     shlibpath_overrides_runpath=yes
11713   fi
11714   ;;
11715
11716 os2*)
11717   libname_spec='$name'
11718   shrext_cmds=".dll"
11719   need_lib_prefix=no
11720   library_names_spec='$libname${shared_ext} $libname.a'
11721   dynamic_linker='OS/2 ld.exe'
11722   shlibpath_var=LIBPATH
11723   ;;
11724
11725 osf3* | osf4* | osf5*)
11726   version_type=osf
11727   need_lib_prefix=no
11728   need_version=no
11729   soname_spec='${libname}${release}${shared_ext}$major'
11730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731   shlibpath_var=LD_LIBRARY_PATH
11732   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11733   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11734   ;;
11735
11736 sco3.2v5*)
11737   version_type=osf
11738   soname_spec='${libname}${release}${shared_ext}$major'
11739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   ;;
11742
11743 solaris*)
11744   version_type=linux
11745   need_lib_prefix=no
11746   need_version=no
11747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748   soname_spec='${libname}${release}${shared_ext}$major'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   shlibpath_overrides_runpath=yes
11751   hardcode_into_libs=yes
11752   # ldd complains unless libraries are executable
11753   postinstall_cmds='chmod +x $lib'
11754   ;;
11755
11756 sunos4*)
11757   version_type=sunos
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   shlibpath_overrides_runpath=yes
11762   if test "$with_gnu_ld" = yes; then
11763     need_lib_prefix=no
11764   fi
11765   need_version=yes
11766   ;;
11767
11768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11769   version_type=linux
11770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771   soname_spec='${libname}${release}${shared_ext}$major'
11772   shlibpath_var=LD_LIBRARY_PATH
11773   case $host_vendor in
11774     sni)
11775       shlibpath_overrides_runpath=no
11776       need_lib_prefix=no
11777       export_dynamic_flag_spec='${wl}-Blargedynsym'
11778       runpath_var=LD_RUN_PATH
11779       ;;
11780     siemens)
11781       need_lib_prefix=no
11782       ;;
11783     motorola)
11784       need_lib_prefix=no
11785       need_version=no
11786       shlibpath_overrides_runpath=no
11787       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11788       ;;
11789   esac
11790   ;;
11791
11792 sysv4*MP*)
11793   if test -d /usr/nec ;then
11794     version_type=linux
11795     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11796     soname_spec='$libname${shared_ext}.$major'
11797     shlibpath_var=LD_LIBRARY_PATH
11798   fi
11799   ;;
11800
11801 uts4*)
11802   version_type=linux
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   soname_spec='${libname}${release}${shared_ext}$major'
11805   shlibpath_var=LD_LIBRARY_PATH
11806   ;;
11807
11808 *)
11809   dynamic_linker=no
11810   ;;
11811 esac
11812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11813 echo "${ECHO_T}$dynamic_linker" >&6
11814 test "$dynamic_linker" = no && can_build_shared=no
11815
11816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11818 hardcode_action_CXX=
11819 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11820    test -n "$runpath_var CXX" || \
11821    test "X$hardcode_automatic_CXX"="Xyes" ; then
11822
11823   # We can hardcode non-existant directories.
11824   if test "$hardcode_direct_CXX" != no &&
11825      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11826      # have to relink, otherwise we might link with an installed library
11827      # when we should be linking with a yet-to-be-installed one
11828      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11829      test "$hardcode_minus_L_CXX" != no; then
11830     # Linking always hardcodes the temporary library directory.
11831     hardcode_action_CXX=relink
11832   else
11833     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11834     hardcode_action_CXX=immediate
11835   fi
11836 else
11837   # We cannot hardcode anything, or else we can only hardcode existing
11838   # directories.
11839   hardcode_action_CXX=unsupported
11840 fi
11841 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11842 echo "${ECHO_T}$hardcode_action_CXX" >&6
11843
11844 if test "$hardcode_action_CXX" = relink; then
11845   # Fast installation is not supported
11846   enable_fast_install=no
11847 elif test "$shlibpath_overrides_runpath" = yes ||
11848      test "$enable_shared" = no; then
11849   # Fast installation is not necessary
11850   enable_fast_install=needless
11851 fi
11852
11853 striplib=
11854 old_striplib=
11855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11858   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11859   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11860   echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11862 else
11863 # FIXME - insert some real tests, host_os isn't really good enough
11864   case $host_os in
11865    darwin*)
11866        if test -n "$STRIP" ; then
11867          striplib="$STRIP -x"
11868          echo "$as_me:$LINENO: result: yes" >&5
11869 echo "${ECHO_T}yes" >&6
11870        else
11871   echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 fi
11874        ;;
11875    *)
11876   echo "$as_me:$LINENO: result: no" >&5
11877 echo "${ECHO_T}no" >&6
11878     ;;
11879   esac
11880 fi
11881
11882 if test "x$enable_dlopen" != xyes; then
11883   enable_dlopen=unknown
11884   enable_dlopen_self=unknown
11885   enable_dlopen_self_static=unknown
11886 else
11887   lt_cv_dlopen=no
11888   lt_cv_dlopen_libs=
11889
11890   case $host_os in
11891   beos*)
11892     lt_cv_dlopen="load_add_on"
11893     lt_cv_dlopen_libs=
11894     lt_cv_dlopen_self=yes
11895     ;;
11896
11897   mingw* | pw32*)
11898     lt_cv_dlopen="LoadLibrary"
11899     lt_cv_dlopen_libs=
11900    ;;
11901
11902   cygwin*)
11903     lt_cv_dlopen="dlopen"
11904     lt_cv_dlopen_libs=
11905    ;;
11906
11907   darwin*)
11908   # if libdl is installed we need to link against it
11909     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-ldl  $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922
11923 /* Override any gcc2 internal prototype to avoid an error.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 /* We use char because int might match the return type of a gcc2
11928    builtin and then its argument prototype would still apply.  */
11929 char dlopen ();
11930 int
11931 main ()
11932 {
11933 dlopen ();
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940   (eval $ac_link) 2>conftest.er1
11941   ac_status=$?
11942   grep -v '^ *+' conftest.er1 >conftest.err
11943   rm -f conftest.er1
11944   cat conftest.err >&5
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -z "$ac_cxx_werror_flag"
11948                          || test ! -s conftest.err'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_lib_dl_dlopen=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_lib_dl_dlopen=no
11966 fi
11967 rm -f conftest.err conftest.$ac_objext \
11968       conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11973 if test $ac_cv_lib_dl_dlopen = yes; then
11974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11975 else
11976   
11977     lt_cv_dlopen="dyld"
11978     lt_cv_dlopen_libs=
11979     lt_cv_dlopen_self=yes
11980     
11981 fi
11982
11983    ;;
11984
11985   *)
11986     echo "$as_me:$LINENO: checking for shl_load" >&5
11987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11988 if test "${ac_cv_func_shl_load+set}" = set; then
11989   echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991   cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h.  */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h.  */
11997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11999 #define shl_load innocuous_shl_load
12000
12001 /* System header to define __stub macros and hopefully few prototypes,
12002     which can conflict with char shl_load (); below.
12003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004     <limits.h> exists even on freestanding compilers.  */
12005
12006 #ifdef __STDC__
12007 # include <limits.h>
12008 #else
12009 # include <assert.h>
12010 #endif
12011
12012 #undef shl_load
12013
12014 /* Override any gcc2 internal prototype to avoid an error.  */
12015 #ifdef __cplusplus
12016 extern "C"
12017 {
12018 #endif
12019 /* We use char because int might match the return type of a gcc2
12020    builtin and then its argument prototype would still apply.  */
12021 char shl_load ();
12022 /* The GNU C library defines this for functions which it implements
12023     to always fail with ENOSYS.  Some functions are actually named
12024     something starting with __ and the normal name is an alias.  */
12025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12026 choke me
12027 #else
12028 char (*f) () = shl_load;
12029 #endif
12030 #ifdef __cplusplus
12031 }
12032 #endif
12033
12034 int
12035 main ()
12036 {
12037 return f != shl_load;
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044   (eval $ac_link) 2>conftest.er1
12045   ac_status=$?
12046   grep -v '^ *+' conftest.er1 >conftest.err
12047   rm -f conftest.er1
12048   cat conftest.err >&5
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } &&
12051          { ac_try='test -z "$ac_cxx_werror_flag"
12052                          || test ! -s conftest.err'
12053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054   (eval $ac_try) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); }; } &&
12058          { ac_try='test -s conftest$ac_exeext'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   ac_cv_func_shl_load=yes
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_func_shl_load=no
12070 fi
12071 rm -f conftest.err conftest.$ac_objext \
12072       conftest$ac_exeext conftest.$ac_ext
12073 fi
12074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12076 if test $ac_cv_func_shl_load = yes; then
12077   lt_cv_dlopen="shl_load"
12078 else
12079   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-ldld  $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092
12093 /* Override any gcc2 internal prototype to avoid an error.  */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098    builtin and then its argument prototype would still apply.  */
12099 char shl_load ();
12100 int
12101 main ()
12102 {
12103 shl_load ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110   (eval $ac_link) 2>conftest.er1
12111   ac_status=$?
12112   grep -v '^ *+' conftest.er1 >conftest.err
12113   rm -f conftest.er1
12114   cat conftest.err >&5
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } &&
12117          { ac_try='test -z "$ac_cxx_werror_flag"
12118                          || test ! -s conftest.err'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; } &&
12124          { ac_try='test -s conftest$ac_exeext'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   ac_cv_lib_dld_shl_load=yes
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 ac_cv_lib_dld_shl_load=no
12136 fi
12137 rm -f conftest.err conftest.$ac_objext \
12138       conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12140 fi
12141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12143 if test $ac_cv_lib_dld_shl_load = yes; then
12144   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12145 else
12146   echo "$as_me:$LINENO: checking for dlopen" >&5
12147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12148 if test "${ac_cv_func_dlopen+set}" = set; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12159 #define dlopen innocuous_dlopen
12160
12161 /* System header to define __stub macros and hopefully few prototypes,
12162     which can conflict with char dlopen (); below.
12163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164     <limits.h> exists even on freestanding compilers.  */
12165
12166 #ifdef __STDC__
12167 # include <limits.h>
12168 #else
12169 # include <assert.h>
12170 #endif
12171
12172 #undef dlopen
12173
12174 /* Override any gcc2 internal prototype to avoid an error.  */
12175 #ifdef __cplusplus
12176 extern "C"
12177 {
12178 #endif
12179 /* We use char because int might match the return type of a gcc2
12180    builtin and then its argument prototype would still apply.  */
12181 char dlopen ();
12182 /* The GNU C library defines this for functions which it implements
12183     to always fail with ENOSYS.  Some functions are actually named
12184     something starting with __ and the normal name is an alias.  */
12185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12186 choke me
12187 #else
12188 char (*f) () = dlopen;
12189 #endif
12190 #ifdef __cplusplus
12191 }
12192 #endif
12193
12194 int
12195 main ()
12196 {
12197 return f != dlopen;
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204   (eval $ac_link) 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_cxx_werror_flag"
12212                          || test ! -s conftest.err'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; } &&
12218          { ac_try='test -s conftest$ac_exeext'
12219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220   (eval $ac_try) 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_func_dlopen=yes
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_cv_func_dlopen=no
12230 fi
12231 rm -f conftest.err conftest.$ac_objext \
12232       conftest$ac_exeext conftest.$ac_ext
12233 fi
12234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12236 if test $ac_cv_func_dlopen = yes; then
12237   lt_cv_dlopen="dlopen"
12238 else
12239   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-ldl  $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252
12253 /* Override any gcc2 internal prototype to avoid an error.  */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 /* We use char because int might match the return type of a gcc2
12258    builtin and then its argument prototype would still apply.  */
12259 char dlopen ();
12260 int
12261 main ()
12262 {
12263 dlopen ();
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270   (eval $ac_link) 2>conftest.er1
12271   ac_status=$?
12272   grep -v '^ *+' conftest.er1 >conftest.err
12273   rm -f conftest.er1
12274   cat conftest.err >&5
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); } &&
12277          { ac_try='test -z "$ac_cxx_werror_flag"
12278                          || test ! -s conftest.err'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; } &&
12284          { ac_try='test -s conftest$ac_exeext'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; }; then
12290   ac_cv_lib_dl_dlopen=yes
12291 else
12292   echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_cv_lib_dl_dlopen=no
12296 fi
12297 rm -f conftest.err conftest.$ac_objext \
12298       conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12300 fi
12301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12303 if test $ac_cv_lib_dl_dlopen = yes; then
12304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12305 else
12306   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-lsvld  $LIBS"
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319
12320 /* Override any gcc2 internal prototype to avoid an error.  */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 /* We use char because int might match the return type of a gcc2
12325    builtin and then its argument prototype would still apply.  */
12326 char dlopen ();
12327 int
12328 main ()
12329 {
12330 dlopen ();
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337   (eval $ac_link) 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -z "$ac_cxx_werror_flag"
12345                          || test ! -s conftest.err'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; } &&
12351          { ac_try='test -s conftest$ac_exeext'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   ac_cv_lib_svld_dlopen=yes
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_cv_lib_svld_dlopen=no
12363 fi
12364 rm -f conftest.err conftest.$ac_objext \
12365       conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12370 if test $ac_cv_lib_svld_dlopen = yes; then
12371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372 else
12373   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-ldld  $LIBS"
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h.  */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h.  */
12386
12387 /* Override any gcc2 internal prototype to avoid an error.  */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 /* We use char because int might match the return type of a gcc2
12392    builtin and then its argument prototype would still apply.  */
12393 char dld_link ();
12394 int
12395 main ()
12396 {
12397 dld_link ();
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404   (eval $ac_link) 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -z "$ac_cxx_werror_flag"
12412                          || test ! -s conftest.err'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; } &&
12418          { ac_try='test -s conftest$ac_exeext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_cv_lib_dld_dld_link=yes
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_cv_lib_dld_dld_link=no
12430 fi
12431 rm -f conftest.err conftest.$ac_objext \
12432       conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12434 fi
12435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12437 if test $ac_cv_lib_dld_dld_link = yes; then
12438   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12439 fi
12440
12441               
12442 fi
12443
12444             
12445 fi
12446
12447           
12448 fi
12449
12450         
12451 fi
12452
12453       
12454 fi
12455
12456     ;;
12457   esac
12458
12459   if test "x$lt_cv_dlopen" != xno; then
12460     enable_dlopen=yes
12461   else
12462     enable_dlopen=no
12463   fi
12464
12465   case $lt_cv_dlopen in
12466   dlopen)
12467     save_CPPFLAGS="$CPPFLAGS"
12468     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12469
12470     save_LDFLAGS="$LDFLAGS"
12471     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12472
12473     save_LIBS="$LIBS"
12474     LIBS="$lt_cv_dlopen_libs $LIBS"
12475
12476     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12478 if test "${lt_cv_dlopen_self+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481           if test "$cross_compiling" = yes; then :
12482   lt_cv_dlopen_self=cross
12483 else
12484   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12485   lt_status=$lt_dlunknown
12486   cat > conftest.$ac_ext <<EOF
12487 #line __oline__ "configure"
12488 #include "confdefs.h"
12489
12490 #if HAVE_DLFCN_H
12491 #include <dlfcn.h>
12492 #endif
12493
12494 #include <stdio.h>
12495
12496 #ifdef RTLD_GLOBAL
12497 #  define LT_DLGLOBAL           RTLD_GLOBAL
12498 #else
12499 #  ifdef DL_GLOBAL
12500 #    define LT_DLGLOBAL         DL_GLOBAL
12501 #  else
12502 #    define LT_DLGLOBAL         0
12503 #  endif
12504 #endif
12505
12506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12507    find out it does not work in some platform. */
12508 #ifndef LT_DLLAZY_OR_NOW
12509 #  ifdef RTLD_LAZY
12510 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12511 #  else
12512 #    ifdef DL_LAZY
12513 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12514 #    else
12515 #      ifdef RTLD_NOW
12516 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12517 #      else
12518 #        ifdef DL_NOW
12519 #          define LT_DLLAZY_OR_NOW      DL_NOW
12520 #        else
12521 #          define LT_DLLAZY_OR_NOW      0
12522 #        endif
12523 #      endif
12524 #    endif
12525 #  endif
12526 #endif
12527
12528 #ifdef __cplusplus
12529 extern "C" void exit (int);
12530 #endif
12531
12532 void fnord() { int i=42;}
12533 int main ()
12534 {
12535   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12536   int status = $lt_dlunknown;
12537
12538   if (self)
12539     {
12540       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12541       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12542       /* dlclose (self); */
12543     }
12544
12545     exit (status);
12546 }
12547 EOF
12548   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549   (eval $ac_link) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12553     (./conftest; exit; ) 2>/dev/null
12554     lt_status=$?
12555     case x$lt_status in
12556       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12557       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12558       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12559     esac
12560   else :
12561     # compilation failed
12562     lt_cv_dlopen_self=no
12563   fi
12564 fi
12565 rm -fr conftest*
12566
12567     
12568 fi
12569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12571
12572     if test "x$lt_cv_dlopen_self" = xyes; then
12573       LDFLAGS="$LDFLAGS $link_static_flag"
12574       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12576 if test "${lt_cv_dlopen_self_static+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579           if test "$cross_compiling" = yes; then :
12580   lt_cv_dlopen_self_static=cross
12581 else
12582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12583   lt_status=$lt_dlunknown
12584   cat > conftest.$ac_ext <<EOF
12585 #line __oline__ "configure"
12586 #include "confdefs.h"
12587
12588 #if HAVE_DLFCN_H
12589 #include <dlfcn.h>
12590 #endif
12591
12592 #include <stdio.h>
12593
12594 #ifdef RTLD_GLOBAL
12595 #  define LT_DLGLOBAL           RTLD_GLOBAL
12596 #else
12597 #  ifdef DL_GLOBAL
12598 #    define LT_DLGLOBAL         DL_GLOBAL
12599 #  else
12600 #    define LT_DLGLOBAL         0
12601 #  endif
12602 #endif
12603
12604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12605    find out it does not work in some platform. */
12606 #ifndef LT_DLLAZY_OR_NOW
12607 #  ifdef RTLD_LAZY
12608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12609 #  else
12610 #    ifdef DL_LAZY
12611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12612 #    else
12613 #      ifdef RTLD_NOW
12614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12615 #      else
12616 #        ifdef DL_NOW
12617 #          define LT_DLLAZY_OR_NOW      DL_NOW
12618 #        else
12619 #          define LT_DLLAZY_OR_NOW      0
12620 #        endif
12621 #      endif
12622 #    endif
12623 #  endif
12624 #endif
12625
12626 #ifdef __cplusplus
12627 extern "C" void exit (int);
12628 #endif
12629
12630 void fnord() { int i=42;}
12631 int main ()
12632 {
12633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12634   int status = $lt_dlunknown;
12635
12636   if (self)
12637     {
12638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12639       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12640       /* dlclose (self); */
12641     }
12642
12643     exit (status);
12644 }
12645 EOF
12646   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647   (eval $ac_link) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12651     (./conftest; exit; ) 2>/dev/null
12652     lt_status=$?
12653     case x$lt_status in
12654       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12655       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12656       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12657     esac
12658   else :
12659     # compilation failed
12660     lt_cv_dlopen_self_static=no
12661   fi
12662 fi
12663 rm -fr conftest*
12664
12665       
12666 fi
12667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12669     fi
12670
12671     CPPFLAGS="$save_CPPFLAGS"
12672     LDFLAGS="$save_LDFLAGS"
12673     LIBS="$save_LIBS"
12674     ;;
12675   esac
12676
12677   case $lt_cv_dlopen_self in
12678   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12679   *) enable_dlopen_self=unknown ;;
12680   esac
12681
12682   case $lt_cv_dlopen_self_static in
12683   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12684   *) enable_dlopen_self_static=unknown ;;
12685   esac
12686 fi
12687
12688
12689 # The else clause should only fire when bootstrapping the
12690 # libtool distribution, otherwise you forgot to ship ltmain.sh
12691 # with your package, and you will get complaints that there are
12692 # no rules to generate ltmain.sh.
12693 if test -f "$ltmain"; then
12694   # See if we are running on zsh, and set the options which allow our commands through
12695   # without removal of \ escapes.
12696   if test -n "${ZSH_VERSION+set}" ; then
12697     setopt NO_GLOB_SUBST
12698   fi
12699   # Now quote all the things that may contain metacharacters while being
12700   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12701   # variables and quote the copies for generation of the libtool script.
12702   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12703     SED SHELL STRIP \
12704     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12705     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12706     deplibs_check_method reload_flag reload_cmds need_locks \
12707     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12708     lt_cv_sys_global_symbol_to_c_name_address \
12709     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12710     old_postinstall_cmds old_postuninstall_cmds \
12711     compiler_CXX \
12712     CC_CXX \
12713     LD_CXX \
12714     lt_prog_compiler_wl_CXX \
12715     lt_prog_compiler_pic_CXX \
12716     lt_prog_compiler_static_CXX \
12717     lt_prog_compiler_no_builtin_flag_CXX \
12718     export_dynamic_flag_spec_CXX \
12719     thread_safe_flag_spec_CXX \
12720     whole_archive_flag_spec_CXX \
12721     enable_shared_with_static_runtimes_CXX \
12722     old_archive_cmds_CXX \
12723     old_archive_from_new_cmds_CXX \
12724     predep_objects_CXX \
12725     postdep_objects_CXX \
12726     predeps_CXX \
12727     postdeps_CXX \
12728     compiler_lib_search_path_CXX \
12729     archive_cmds_CXX \
12730     archive_expsym_cmds_CXX \
12731     postinstall_cmds_CXX \
12732     postuninstall_cmds_CXX \
12733     old_archive_from_expsyms_cmds_CXX \
12734     allow_undefined_flag_CXX \
12735     no_undefined_flag_CXX \
12736     export_symbols_cmds_CXX \
12737     hardcode_libdir_flag_spec_CXX \
12738     hardcode_libdir_flag_spec_ld_CXX \
12739     hardcode_libdir_separator_CXX \
12740     hardcode_automatic_CXX \
12741     module_cmds_CXX \
12742     module_expsym_cmds_CXX \
12743     lt_cv_prog_compiler_c_o_CXX \
12744     exclude_expsyms_CXX \
12745     include_expsyms_CXX; do
12746
12747     case $var in
12748     old_archive_cmds_CXX | \
12749     old_archive_from_new_cmds_CXX | \
12750     archive_cmds_CXX | \
12751     archive_expsym_cmds_CXX | \
12752     module_cmds_CXX | \
12753     module_expsym_cmds_CXX | \
12754     old_archive_from_expsyms_cmds_CXX | \
12755     export_symbols_cmds_CXX | \
12756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12757     postinstall_cmds | postuninstall_cmds | \
12758     old_postinstall_cmds | old_postuninstall_cmds | \
12759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12760       # Double-quote double-evaled strings.
12761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12762       ;;
12763     *)
12764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12765       ;;
12766     esac
12767   done
12768
12769   case $lt_echo in
12770   *'\$0 --fallback-echo"')
12771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12772     ;;
12773   esac
12774
12775 cfgfile="$ofile"
12776
12777   cat <<__EOF__ >> "$cfgfile"
12778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12779
12780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12781
12782 # Shell to use when invoking shell scripts.
12783 SHELL=$lt_SHELL
12784
12785 # Whether or not to build shared libraries.
12786 build_libtool_libs=$enable_shared
12787
12788 # Whether or not to build static libraries.
12789 build_old_libs=$enable_static
12790
12791 # Whether or not to add -lc for building shared libraries.
12792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12793
12794 # Whether or not to disallow shared libs when runtime libs are static
12795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12796
12797 # Whether or not to optimize for fast installation.
12798 fast_install=$enable_fast_install
12799
12800 # The host system.
12801 host_alias=$host_alias
12802 host=$host
12803
12804 # An echo program that does not interpret backslashes.
12805 echo=$lt_echo
12806
12807 # The archiver.
12808 AR=$lt_AR
12809 AR_FLAGS=$lt_AR_FLAGS
12810
12811 # A C compiler.
12812 LTCC=$lt_LTCC
12813
12814 # A language-specific compiler.
12815 CC=$lt_compiler_CXX
12816
12817 # Is the compiler the GNU C compiler?
12818 with_gcc=$GCC_CXX
12819
12820 # An ERE matcher.
12821 EGREP=$lt_EGREP
12822
12823 # The linker used to build libraries.
12824 LD=$lt_LD_CXX
12825
12826 # Whether we need hard or soft links.
12827 LN_S=$lt_LN_S
12828
12829 # A BSD-compatible nm program.
12830 NM=$lt_NM
12831
12832 # A symbol stripping program
12833 STRIP=$lt_STRIP
12834
12835 # Used to examine libraries when file_magic_cmd begins "file"
12836 MAGIC_CMD=$MAGIC_CMD
12837
12838 # Used on cygwin: DLL creation program.
12839 DLLTOOL="$DLLTOOL"
12840
12841 # Used on cygwin: object dumper.
12842 OBJDUMP="$OBJDUMP"
12843
12844 # Used on cygwin: assembler.
12845 AS="$AS"
12846
12847 # The name of the directory that contains temporary libtool files.
12848 objdir=$objdir
12849
12850 # How to create reloadable object files.
12851 reload_flag=$lt_reload_flag
12852 reload_cmds=$lt_reload_cmds
12853
12854 # How to pass a linker flag through the compiler.
12855 wl=$lt_lt_prog_compiler_wl_CXX
12856
12857 # Object file suffix (normally "o").
12858 objext="$ac_objext"
12859
12860 # Old archive suffix (normally "a").
12861 libext="$libext"
12862
12863 # Shared library suffix (normally ".so").
12864 shrext_cmds='$shrext_cmds'
12865
12866 # Executable file suffix (normally "").
12867 exeext="$exeext"
12868
12869 # Additional compiler flags for building library objects.
12870 pic_flag=$lt_lt_prog_compiler_pic_CXX
12871 pic_mode=$pic_mode
12872
12873 # What is the maximum length of a command?
12874 max_cmd_len=$lt_cv_sys_max_cmd_len
12875
12876 # Does compiler simultaneously support -c and -o options?
12877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12878
12879 # Must we lock files when doing compilation ?
12880 need_locks=$lt_need_locks
12881
12882 # Do we need the lib prefix for modules?
12883 need_lib_prefix=$need_lib_prefix
12884
12885 # Do we need a version for libraries?
12886 need_version=$need_version
12887
12888 # Whether dlopen is supported.
12889 dlopen_support=$enable_dlopen
12890
12891 # Whether dlopen of programs is supported.
12892 dlopen_self=$enable_dlopen_self
12893
12894 # Whether dlopen of statically linked programs is supported.
12895 dlopen_self_static=$enable_dlopen_self_static
12896
12897 # Compiler flag to prevent dynamic linking.
12898 link_static_flag=$lt_lt_prog_compiler_static_CXX
12899
12900 # Compiler flag to turn off builtin functions.
12901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12902
12903 # Compiler flag to allow reflexive dlopens.
12904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12905
12906 # Compiler flag to generate shared objects directly from archives.
12907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12908
12909 # Compiler flag to generate thread-safe objects.
12910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12911
12912 # Library versioning type.
12913 version_type=$version_type
12914
12915 # Format of library name prefix.
12916 libname_spec=$lt_libname_spec
12917
12918 # List of archive names.  First name is the real one, the rest are links.
12919 # The last name is the one that the linker finds with -lNAME.
12920 library_names_spec=$lt_library_names_spec
12921
12922 # The coded name of the library, if different from the real name.
12923 soname_spec=$lt_soname_spec
12924
12925 # Commands used to build and install an old-style archive.
12926 RANLIB=$lt_RANLIB
12927 old_archive_cmds=$lt_old_archive_cmds_CXX
12928 old_postinstall_cmds=$lt_old_postinstall_cmds
12929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12930
12931 # Create an old-style archive from a shared archive.
12932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12933
12934 # Create a temporary old-style archive to link instead of a shared archive.
12935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12936
12937 # Commands used to build and install a shared archive.
12938 archive_cmds=$lt_archive_cmds_CXX
12939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12940 postinstall_cmds=$lt_postinstall_cmds
12941 postuninstall_cmds=$lt_postuninstall_cmds
12942
12943 # Commands used to build a loadable module (assumed same as above if empty)
12944 module_cmds=$lt_module_cmds_CXX
12945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12946
12947 # Commands to strip libraries.
12948 old_striplib=$lt_old_striplib
12949 striplib=$lt_striplib
12950
12951 # Dependencies to place before the objects being linked to create a
12952 # shared library.
12953 predep_objects=$lt_predep_objects_CXX
12954
12955 # Dependencies to place after the objects being linked to create a
12956 # shared library.
12957 postdep_objects=$lt_postdep_objects_CXX
12958
12959 # Dependencies to place before the objects being linked to create a
12960 # shared library.
12961 predeps=$lt_predeps_CXX
12962
12963 # Dependencies to place after the objects being linked to create a
12964 # shared library.
12965 postdeps=$lt_postdeps_CXX
12966
12967 # The library search path used internally by the compiler when linking
12968 # a shared library.
12969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12970
12971 # Method to check whether dependent libraries are shared objects.
12972 deplibs_check_method=$lt_deplibs_check_method
12973
12974 # Command to use when deplibs_check_method == file_magic.
12975 file_magic_cmd=$lt_file_magic_cmd
12976
12977 # Flag that allows shared libraries with undefined symbols to be built.
12978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12979
12980 # Flag that forces no undefined symbols.
12981 no_undefined_flag=$lt_no_undefined_flag_CXX
12982
12983 # Commands used to finish a libtool library installation in a directory.
12984 finish_cmds=$lt_finish_cmds
12985
12986 # Same as above, but a single script fragment to be evaled but not shown.
12987 finish_eval=$lt_finish_eval
12988
12989 # Take the output of nm and produce a listing of raw symbols and C names.
12990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12991
12992 # Transform the output of nm in a proper C declaration
12993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12994
12995 # Transform the output of nm in a C name address pair
12996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12997
12998 # This is the shared library runtime path variable.
12999 runpath_var=$runpath_var
13000
13001 # This is the shared library path variable.
13002 shlibpath_var=$shlibpath_var
13003
13004 # Is shlibpath searched before the hard-coded library search path?
13005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13006
13007 # How to hardcode a shared library path into an executable.
13008 hardcode_action=$hardcode_action_CXX
13009
13010 # Whether we should hardcode library paths into libraries.
13011 hardcode_into_libs=$hardcode_into_libs
13012
13013 # Flag to hardcode \$libdir into a binary during linking.
13014 # This must work even if \$libdir does not exist.
13015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13016
13017 # If ld is used when linking, flag to hardcode \$libdir into
13018 # a binary during linking. This must work even if \$libdir does
13019 # not exist.
13020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13021
13022 # Whether we need a single -rpath flag with a separated argument.
13023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13024
13025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13026 # resulting binary.
13027 hardcode_direct=$hardcode_direct_CXX
13028
13029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13030 # resulting binary.
13031 hardcode_minus_L=$hardcode_minus_L_CXX
13032
13033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13034 # the resulting binary.
13035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13036
13037 # Set to yes if building a shared library automatically hardcodes DIR into the library
13038 # and all subsequent libraries and executables linked against it.
13039 hardcode_automatic=$hardcode_automatic_CXX
13040
13041 # Variables whose values should be saved in libtool wrapper scripts and
13042 # restored at relink time.
13043 variables_saved_for_relink="$variables_saved_for_relink"
13044
13045 # Whether libtool must link a program against all its dependency libraries.
13046 link_all_deplibs=$link_all_deplibs_CXX
13047
13048 # Compile-time system search path for libraries
13049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13050
13051 # Run-time system search path for libraries
13052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13053
13054 # Fix the shell variable \$srcfile for the compiler.
13055 fix_srcfile_path="$fix_srcfile_path_CXX"
13056
13057 # Set to yes if exported symbols are required.
13058 always_export_symbols=$always_export_symbols_CXX
13059
13060 # The commands to list exported symbols.
13061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13062
13063 # The commands to extract the exported symbol list from a shared archive.
13064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13065
13066 # Symbols that should not be listed in the preloaded symbols.
13067 exclude_expsyms=$lt_exclude_expsyms_CXX
13068
13069 # Symbols that must always be exported.
13070 include_expsyms=$lt_include_expsyms_CXX
13071
13072 # ### END LIBTOOL TAG CONFIG: $tagname
13073
13074 __EOF__
13075
13076
13077 else
13078   # If there is no Makefile yet, we rely on a make rule to execute
13079   # `config.status --recheck' to rerun these tests and create the
13080   # libtool script then.
13081   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13082   if test -f "$ltmain_in"; then
13083     test -f Makefile && make "$ltmain"
13084   fi
13085 fi
13086
13087
13088 ac_ext=c
13089 ac_cpp='$CPP $CPPFLAGS'
13090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13093
13094 CC=$lt_save_CC
13095 LDCXX=$LD
13096 LD=$lt_save_LD
13097 GCC=$lt_save_GCC
13098 with_gnu_ldcxx=$with_gnu_ld
13099 with_gnu_ld=$lt_save_with_gnu_ld
13100 lt_cv_path_LDCXX=$lt_cv_path_LD
13101 lt_cv_path_LD=$lt_save_path_LD
13102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13104
13105         else
13106           tagname=""
13107         fi
13108         ;;
13109
13110       F77)
13111         if test -n "$F77" && test "X$F77" != "Xno"; then
13112           
13113 ac_ext=f
13114 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13115 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13117
13118
13119 archive_cmds_need_lc_F77=no
13120 allow_undefined_flag_F77=
13121 always_export_symbols_F77=no
13122 archive_expsym_cmds_F77=
13123 export_dynamic_flag_spec_F77=
13124 hardcode_direct_F77=no
13125 hardcode_libdir_flag_spec_F77=
13126 hardcode_libdir_flag_spec_ld_F77=
13127 hardcode_libdir_separator_F77=
13128 hardcode_minus_L_F77=no
13129 hardcode_automatic_F77=no
13130 module_cmds_F77=
13131 module_expsym_cmds_F77=
13132 link_all_deplibs_F77=unknown
13133 old_archive_cmds_F77=$old_archive_cmds
13134 no_undefined_flag_F77=
13135 whole_archive_flag_spec_F77=
13136 enable_shared_with_static_runtimes_F77=no
13137
13138 # Source file extension for f77 test sources.
13139 ac_ext=f
13140
13141 # Object file extension for compiled f77 test sources.
13142 objext=o
13143 objext_F77=$objext
13144
13145 # Code to be used in simple compile tests
13146 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13147
13148 # Code to be used in simple link tests
13149 lt_simple_link_test_code="      program t\n      end\n"
13150
13151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152
13153 # If no C compiler was specified, use CC.
13154 LTCC=${LTCC-"$CC"}
13155
13156 # Allow CC to be a program name with arguments.
13157 compiler=$CC
13158
13159
13160 # Allow CC to be a program name with arguments.
13161 lt_save_CC="$CC"
13162 CC=${F77-"f77"}
13163 compiler=$CC
13164 compiler_F77=$CC
13165 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13166
13167 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13168 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13169 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13170 echo "${ECHO_T}$can_build_shared" >&6
13171
13172 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13173 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13174 test "$can_build_shared" = "no" && enable_shared=no
13175
13176 # On AIX, shared libraries and static libraries use the same namespace, and
13177 # are all built from PIC.
13178 case "$host_os" in
13179 aix3*)
13180   test "$enable_shared" = yes && enable_static=no
13181   if test -n "$RANLIB"; then
13182     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13183     postinstall_cmds='$RANLIB $lib'
13184   fi
13185   ;;
13186 aix4* | aix5*)
13187   test "$enable_shared" = yes && enable_static=no
13188   ;;
13189 esac
13190 echo "$as_me:$LINENO: result: $enable_shared" >&5
13191 echo "${ECHO_T}$enable_shared" >&6
13192
13193 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13195 # Make sure either enable_shared or enable_static is yes.
13196 test "$enable_shared" = yes || enable_static=yes
13197 echo "$as_me:$LINENO: result: $enable_static" >&5
13198 echo "${ECHO_T}$enable_static" >&6
13199
13200 test "$ld_shlibs_F77" = no && can_build_shared=no
13201
13202 GCC_F77="$G77"
13203 LD_F77="$LD"
13204
13205 lt_prog_compiler_wl_F77=
13206 lt_prog_compiler_pic_F77=
13207 lt_prog_compiler_static_F77=
13208
13209 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13210 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13211  
13212   if test "$GCC" = yes; then
13213     lt_prog_compiler_wl_F77='-Wl,'
13214     lt_prog_compiler_static_F77='-static'
13215
13216     case $host_os in
13217       aix*)
13218       # All AIX code is PIC.
13219       if test "$host_cpu" = ia64; then
13220         # AIX 5 now supports IA64 processor
13221         lt_prog_compiler_static_F77='-Bstatic'
13222       fi
13223       ;;
13224
13225     amigaos*)
13226       # FIXME: we need at least 68020 code to build shared libraries, but
13227       # adding the `-m68020' flag to GCC prevents building anything better,
13228       # like `-m68040'.
13229       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13230       ;;
13231
13232     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233       # PIC is the default for these OSes.
13234       ;;
13235
13236     mingw* | pw32* | os2*)
13237       # This hack is so that the source file can tell whether it is being
13238       # built for inclusion in a dll (and should export symbols for example).
13239       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13240       ;;
13241
13242     darwin* | rhapsody*)
13243       # PIC is the default on this platform
13244       # Common symbols not allowed in MH_DYLIB files
13245       lt_prog_compiler_pic_F77='-fno-common'
13246       ;;
13247
13248     msdosdjgpp*)
13249       # Just because we use GCC doesn't mean we suddenly get shared libraries
13250       # on systems that don't support them.
13251       lt_prog_compiler_can_build_shared_F77=no
13252       enable_shared=no
13253       ;;
13254
13255     sysv4*MP*)
13256       if test -d /usr/nec; then
13257         lt_prog_compiler_pic_F77=-Kconform_pic
13258       fi
13259       ;;
13260
13261     hpux*)
13262       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13263       # not for PA HP-UX.
13264       case "$host_cpu" in
13265       hppa*64*|ia64*)
13266         # +Z the default
13267         ;;
13268       *)
13269         lt_prog_compiler_pic_F77='-fPIC'
13270         ;;
13271       esac
13272       ;;
13273
13274     *)
13275       lt_prog_compiler_pic_F77='-fPIC'
13276       ;;
13277     esac
13278   else
13279     # PORTME Check for flag to pass linker flags through the system compiler.
13280     case $host_os in
13281     aix*)
13282       lt_prog_compiler_wl_F77='-Wl,'
13283       if test "$host_cpu" = ia64; then
13284         # AIX 5 now supports IA64 processor
13285         lt_prog_compiler_static_F77='-Bstatic'
13286       else
13287         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13288       fi
13289       ;;
13290
13291     mingw* | pw32* | os2*)
13292       # This hack is so that the source file can tell whether it is being
13293       # built for inclusion in a dll (and should export symbols for example).
13294       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13295       ;;
13296
13297     hpux9* | hpux10* | hpux11*)
13298       lt_prog_compiler_wl_F77='-Wl,'
13299       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13300       # not for PA HP-UX.
13301       case "$host_cpu" in
13302       hppa*64*|ia64*)
13303         # +Z the default
13304         ;;
13305       *)
13306         lt_prog_compiler_pic_F77='+Z'
13307         ;;
13308       esac
13309       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13310       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13311       ;;
13312
13313     irix5* | irix6* | nonstopux*)
13314       lt_prog_compiler_wl_F77='-Wl,'
13315       # PIC (with -KPIC) is the default.
13316       lt_prog_compiler_static_F77='-non_shared'
13317       ;;
13318
13319     newsos6)
13320       lt_prog_compiler_pic_F77='-KPIC'
13321       lt_prog_compiler_static_F77='-Bstatic'
13322       ;;
13323
13324     linux*)
13325       case $CC in
13326       icc* | ecc*)
13327         lt_prog_compiler_wl_F77='-Wl,'
13328         lt_prog_compiler_pic_F77='-KPIC'
13329         lt_prog_compiler_static_F77='-static'
13330         ;;
13331       ccc*)
13332         lt_prog_compiler_wl_F77='-Wl,'
13333         # All Alpha code is PIC.
13334         lt_prog_compiler_static_F77='-non_shared'
13335         ;;
13336       esac
13337       ;;
13338
13339     osf3* | osf4* | osf5*)
13340       lt_prog_compiler_wl_F77='-Wl,'
13341       # All OSF/1 code is PIC.
13342       lt_prog_compiler_static_F77='-non_shared'
13343       ;;
13344
13345     sco3.2v5*)
13346       lt_prog_compiler_pic_F77='-Kpic'
13347       lt_prog_compiler_static_F77='-dn'
13348       ;;
13349
13350     solaris*)
13351       lt_prog_compiler_wl_F77='-Wl,'
13352       lt_prog_compiler_pic_F77='-KPIC'
13353       lt_prog_compiler_static_F77='-Bstatic'
13354       ;;
13355
13356     sunos4*)
13357       lt_prog_compiler_wl_F77='-Qoption ld '
13358       lt_prog_compiler_pic_F77='-PIC'
13359       lt_prog_compiler_static_F77='-Bstatic'
13360       ;;
13361
13362     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13363       lt_prog_compiler_wl_F77='-Wl,'
13364       lt_prog_compiler_pic_F77='-KPIC'
13365       lt_prog_compiler_static_F77='-Bstatic'
13366       ;;
13367
13368     sysv4*MP*)
13369       if test -d /usr/nec ;then
13370         lt_prog_compiler_pic_F77='-Kconform_pic'
13371         lt_prog_compiler_static_F77='-Bstatic'
13372       fi
13373       ;;
13374
13375     uts4*)
13376       lt_prog_compiler_pic_F77='-pic'
13377       lt_prog_compiler_static_F77='-Bstatic'
13378       ;;
13379
13380     *)
13381       lt_prog_compiler_can_build_shared_F77=no
13382       ;;
13383     esac
13384   fi
13385
13386 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13387 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13388
13389 #
13390 # Check to make sure the PIC flag actually works.
13391 #
13392 if test -n "$lt_prog_compiler_pic_F77"; then
13393   
13394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13396 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   lt_prog_compiler_pic_works_F77=no
13400   ac_outfile=conftest.$ac_objext
13401    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13402    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13403    # Insert the option either (1) after the last *FLAGS variable, or
13404    # (2) before a word containing "conftest.", or (3) at the end.
13405    # Note that $ac_compile itself does not contain backslashes and begins
13406    # with a dollar sign (not a hyphen), so the echo should work correctly.
13407    # The option is referenced via a variable to avoid confusing sed.
13408    lt_compile=`echo "$ac_compile" | $SED \
13409    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13411    -e 's:$: $lt_compiler_flag:'`
13412    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13413    (eval "$lt_compile" 2>conftest.err)
13414    ac_status=$?
13415    cat conftest.err >&5
13416    echo "$as_me:__oline__: \$? = $ac_status" >&5
13417    if (exit $ac_status) && test -s "$ac_outfile"; then
13418      # The compiler can only warn and ignore the option if not recognized
13419      # So say no if there are warnings
13420      if test ! -s conftest.err; then
13421        lt_prog_compiler_pic_works_F77=yes
13422      fi
13423    fi
13424    $rm conftest*
13425
13426 fi
13427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13428 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13429
13430 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13431     case $lt_prog_compiler_pic_F77 in
13432      "" | " "*) ;;
13433      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13434      esac
13435 else
13436     lt_prog_compiler_pic_F77=
13437      lt_prog_compiler_can_build_shared_F77=no
13438 fi
13439
13440 fi
13441 case "$host_os" in
13442   # For platforms which do not support PIC, -DPIC is meaningless:
13443   *djgpp*)
13444     lt_prog_compiler_pic_F77=
13445     ;;
13446   *)
13447     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13448     ;;
13449 esac
13450
13451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13453 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   lt_cv_prog_compiler_c_o_F77=no
13457    $rm -r conftest 2>/dev/null
13458    mkdir conftest
13459    cd conftest
13460    mkdir out
13461    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13462
13463    lt_compiler_flag="-o out/conftest2.$ac_objext"
13464    # Insert the option either (1) after the last *FLAGS variable, or
13465    # (2) before a word containing "conftest.", or (3) at the end.
13466    # Note that $ac_compile itself does not contain backslashes and begins
13467    # with a dollar sign (not a hyphen), so the echo should work correctly.
13468    lt_compile=`echo "$ac_compile" | $SED \
13469    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13470    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13471    -e 's:$: $lt_compiler_flag:'`
13472    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13473    (eval "$lt_compile" 2>out/conftest.err)
13474    ac_status=$?
13475    cat out/conftest.err >&5
13476    echo "$as_me:__oline__: \$? = $ac_status" >&5
13477    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13478    then
13479      # The compiler can only warn and ignore the option if not recognized
13480      # So say no if there are warnings
13481      if test ! -s out/conftest.err; then
13482        lt_cv_prog_compiler_c_o_F77=yes
13483      fi
13484    fi
13485    chmod u+w .
13486    $rm conftest*
13487    # SGI C++ compiler will create directory out/ii_files/ for
13488    # template instantiation
13489    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13490    $rm out/* && rmdir out
13491    cd ..
13492    rmdir conftest
13493    $rm conftest*
13494
13495 fi
13496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13497 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13498
13499
13500 hard_links="nottested"
13501 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13502   # do not overwrite the value of need_locks provided by the user
13503   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13505   hard_links=yes
13506   $rm conftest*
13507   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13508   touch conftest.a
13509   ln conftest.a conftest.b 2>&5 || hard_links=no
13510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13511   echo "$as_me:$LINENO: result: $hard_links" >&5
13512 echo "${ECHO_T}$hard_links" >&6
13513   if test "$hard_links" = no; then
13514     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13516     need_locks=warn
13517   fi
13518 else
13519   need_locks=no
13520 fi
13521
13522 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13523 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13524
13525   runpath_var=
13526   allow_undefined_flag_F77=
13527   enable_shared_with_static_runtimes_F77=no
13528   archive_cmds_F77=
13529   archive_expsym_cmds_F77=
13530   old_archive_From_new_cmds_F77=
13531   old_archive_from_expsyms_cmds_F77=
13532   export_dynamic_flag_spec_F77=
13533   whole_archive_flag_spec_F77=
13534   thread_safe_flag_spec_F77=
13535   hardcode_libdir_flag_spec_F77=
13536   hardcode_libdir_flag_spec_ld_F77=
13537   hardcode_libdir_separator_F77=
13538   hardcode_direct_F77=no
13539   hardcode_minus_L_F77=no
13540   hardcode_shlibpath_var_F77=unsupported
13541   link_all_deplibs_F77=unknown
13542   hardcode_automatic_F77=no
13543   module_cmds_F77=
13544   module_expsym_cmds_F77=
13545   always_export_symbols_F77=no
13546   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13547   # include_expsyms should be a list of space-separated symbols to be *always*
13548   # included in the symbol list
13549   include_expsyms_F77=
13550   # exclude_expsyms can be an extended regexp of symbols to exclude
13551   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13552   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13553   # as well as any symbol that contains `d'.
13554   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13555   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13556   # platforms (ab)use it in PIC code, but their linkers get confused if
13557   # the symbol is explicitly referenced.  Since portable code cannot
13558   # rely on this symbol name, it's probably fine to never include it in
13559   # preloaded symbol tables.
13560   extract_expsyms_cmds=
13561
13562   case $host_os in
13563   cygwin* | mingw* | pw32*)
13564     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13565     # When not using gcc, we currently assume that we are using
13566     # Microsoft Visual C++.
13567     if test "$GCC" != yes; then
13568       with_gnu_ld=no
13569     fi
13570     ;;
13571   openbsd*)
13572     with_gnu_ld=no
13573     ;;
13574   esac
13575
13576   ld_shlibs_F77=yes
13577   if test "$with_gnu_ld" = yes; then
13578     # If archive_cmds runs LD, not CC, wlarc should be empty
13579     wlarc='${wl}'
13580
13581     # See if GNU ld supports shared libraries.
13582     case $host_os in
13583     aix3* | aix4* | aix5*)
13584       # On AIX/PPC, the GNU linker is very broken
13585       if test "$host_cpu" != ia64; then
13586         ld_shlibs_F77=no
13587         cat <<EOF 1>&2
13588
13589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13590 *** to be unable to reliably create shared libraries on AIX.
13591 *** Therefore, libtool is disabling shared libraries support.  If you
13592 *** really care for shared libraries, you may want to modify your PATH
13593 *** so that a non-GNU linker is found, and then restart.
13594
13595 EOF
13596       fi
13597       ;;
13598
13599     amigaos*)
13600       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)'
13601       hardcode_libdir_flag_spec_F77='-L$libdir'
13602       hardcode_minus_L_F77=yes
13603
13604       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13605       # that the semantics of dynamic libraries on AmigaOS, at least up
13606       # to version 4, is to share data among multiple programs linked
13607       # with the same dynamic library.  Since this doesn't match the
13608       # behavior of shared libraries on other platforms, we can't use
13609       # them.
13610       ld_shlibs_F77=no
13611       ;;
13612
13613     beos*)
13614       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615         allow_undefined_flag_F77=unsupported
13616         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13617         # support --undefined.  This deserves some investigation.  FIXME
13618         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619       else
13620         ld_shlibs_F77=no
13621       fi
13622       ;;
13623
13624     cygwin* | mingw* | pw32*)
13625       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13626       # as there is no search path for DLLs.
13627       hardcode_libdir_flag_spec_F77='-L$libdir'
13628       allow_undefined_flag_F77=unsupported
13629       always_export_symbols_F77=no
13630       enable_shared_with_static_runtimes_F77=yes
13631       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13632
13633       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13634         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13635         # If the export-symbols file already is a .def file (1st line
13636         # is EXPORTS), use it as is; otherwise, prepend...
13637         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638           cp $export_symbols $output_objdir/$soname.def;
13639         else
13640           echo EXPORTS > $output_objdir/$soname.def;
13641           cat $export_symbols >> $output_objdir/$soname.def;
13642         fi~
13643         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13644       else
13645         ld_shlibs=no
13646       fi
13647       ;;
13648
13649     netbsd*)
13650       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13651         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13652         wlarc=
13653       else
13654         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13655         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13656       fi
13657       ;;
13658
13659     solaris* | sysv5*)
13660       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13661         ld_shlibs_F77=no
13662         cat <<EOF 1>&2
13663
13664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13665 *** create shared libraries on Solaris systems.  Therefore, libtool
13666 *** is disabling shared libraries support.  We urge you to upgrade GNU
13667 *** binutils to release 2.9.1 or newer.  Another option is to modify
13668 *** your PATH or compiler configuration so that the native linker is
13669 *** used, and then restart.
13670
13671 EOF
13672       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13675       else
13676         ld_shlibs_F77=no
13677       fi
13678       ;;
13679
13680     sunos4*)
13681       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13682       wlarc=
13683       hardcode_direct_F77=yes
13684       hardcode_shlibpath_var_F77=no
13685       ;;
13686
13687   linux*)
13688     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13689         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690         archive_cmds_F77="$tmp_archive_cmds"
13691       supports_anon_versioning=no
13692       case `$LD -v 2>/dev/null` in
13693         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13694         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13695         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13696         *\ 2.11.*) ;; # other 2.11 versions
13697         *) supports_anon_versioning=yes ;;
13698       esac
13699       if test $supports_anon_versioning = yes; then
13700         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13702 $echo "local: *; };" >> $output_objdir/$libname.ver~
13703         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13704       else
13705         archive_expsym_cmds_F77="$tmp_archive_cmds"
13706       fi
13707     else
13708       ld_shlibs_F77=no
13709     fi
13710     ;;
13711
13712     *)
13713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13714         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13716       else
13717         ld_shlibs_F77=no
13718       fi
13719       ;;
13720     esac
13721
13722     if test "$ld_shlibs_F77" = yes; then
13723       runpath_var=LD_RUN_PATH
13724       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13725       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13726       # ancient GNU ld didn't support --whole-archive et. al.
13727       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13728         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729       else
13730         whole_archive_flag_spec_F77=
13731       fi
13732     fi
13733   else
13734     # PORTME fill in a description of your system's linker (not GNU ld)
13735     case $host_os in
13736     aix3*)
13737       allow_undefined_flag_F77=unsupported
13738       always_export_symbols_F77=yes
13739       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'
13740       # Note: this linker hardcodes the directories in LIBPATH if there
13741       # are no directories specified by -L.
13742       hardcode_minus_L_F77=yes
13743       if test "$GCC" = yes && test -z "$link_static_flag"; then
13744         # Neither direct hardcoding nor static linking is supported with a
13745         # broken collect2.
13746         hardcode_direct_F77=unsupported
13747       fi
13748       ;;
13749
13750     aix4* | aix5*)
13751       if test "$host_cpu" = ia64; then
13752         # On IA64, the linker does run time linking by default, so we don't
13753         # have to do anything special.
13754         aix_use_runtimelinking=no
13755         exp_sym_flag='-Bexport'
13756         no_entry_flag=""
13757       else
13758         # If we're using GNU nm, then we don't want the "-C" option.
13759         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13760         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13761           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'
13762         else
13763           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'
13764         fi
13765         aix_use_runtimelinking=no
13766
13767         # Test if we are trying to use run time linking or normal
13768         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13769         # need to do runtime linking.
13770         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13771           for ld_flag in $LDFLAGS; do
13772           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13773             aix_use_runtimelinking=yes
13774             break
13775           fi
13776           done
13777         esac
13778
13779         exp_sym_flag='-bexport'
13780         no_entry_flag='-bnoentry'
13781       fi
13782
13783       # When large executables or shared objects are built, AIX ld can
13784       # have problems creating the table of contents.  If linking a library
13785       # or program results in "error TOC overflow" add -mminimal-toc to
13786       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13787       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13788
13789       archive_cmds_F77=''
13790       hardcode_direct_F77=yes
13791       hardcode_libdir_separator_F77=':'
13792       link_all_deplibs_F77=yes
13793
13794       if test "$GCC" = yes; then
13795         case $host_os in aix4.012|aix4.012.*)
13796         # We only want to do this on AIX 4.2 and lower, the check
13797         # below for broken collect2 doesn't work under 4.3+
13798           collect2name=`${CC} -print-prog-name=collect2`
13799           if test -f "$collect2name" && \
13800            strings "$collect2name" | grep resolve_lib_name >/dev/null
13801           then
13802           # We have reworked collect2
13803           hardcode_direct_F77=yes
13804           else
13805           # We have old collect2
13806           hardcode_direct_F77=unsupported
13807           # It fails to find uninstalled libraries when the uninstalled
13808           # path is not listed in the libpath.  Setting hardcode_minus_L
13809           # to unsupported forces relinking
13810           hardcode_minus_L_F77=yes
13811           hardcode_libdir_flag_spec_F77='-L$libdir'
13812           hardcode_libdir_separator_F77=
13813           fi
13814         esac
13815         shared_flag='-shared'
13816       else
13817         # not using gcc
13818         if test "$host_cpu" = ia64; then
13819         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820         # chokes on -Wl,-G. The following line is correct:
13821           shared_flag='-G'
13822         else
13823         if test "$aix_use_runtimelinking" = yes; then
13824             shared_flag='${wl}-G'
13825           else
13826             shared_flag='${wl}-bM:SRE'
13827         fi
13828         fi
13829       fi
13830
13831       # It seems that -bexpall does not export symbols beginning with
13832       # underscore (_), so it is better to generate a list of symbols to export.
13833       always_export_symbols_F77=yes
13834       if test "$aix_use_runtimelinking" = yes; then
13835         # Warning - without using the other runtime loading flags (-brtl),
13836         # -berok will link without error, but may produce a broken library.
13837         allow_undefined_flag_F77='-berok'
13838        # Determine the default libpath from the value encoded in an empty executable.
13839        cat >conftest.$ac_ext <<_ACEOF
13840       program main
13841
13842       end
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846   (eval $ac_link) 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_f77_werror_flag"
13854                          || test ! -s conftest.err'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; } &&
13860          { ac_try='test -s conftest$ac_exeext'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866   
13867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13868 }'`
13869 # Check for a 64-bit object if we didn't find anything.
13870 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; }
13871 }'`; fi
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 fi
13877 rm -f conftest.err conftest.$ac_objext \
13878       conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880
13881        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882         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"
13883        else
13884         if test "$host_cpu" = ia64; then
13885           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13886           allow_undefined_flag_F77="-z nodefs"
13887           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"
13888         else
13889          # Determine the default libpath from the value encoded in an empty executable.
13890          cat >conftest.$ac_ext <<_ACEOF
13891       program main
13892
13893       end
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897   (eval $ac_link) 2>conftest.er1
13898   ac_status=$?
13899   grep -v '^ *+' conftest.er1 >conftest.err
13900   rm -f conftest.er1
13901   cat conftest.err >&5
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } &&
13904          { ac_try='test -z "$ac_f77_werror_flag"
13905                          || test ! -s conftest.err'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; } &&
13911          { ac_try='test -s conftest$ac_exeext'
13912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913   (eval $ac_try) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; }; then
13917   
13918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13919 }'`
13920 # Check for a 64-bit object if we didn't find anything.
13921 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; }
13922 }'`; fi
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 fi
13928 rm -f conftest.err conftest.$ac_objext \
13929       conftest$ac_exeext conftest.$ac_ext
13930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13931
13932          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13933           # Warning - without using the other run time loading flags,
13934           # -berok will link without error, but may produce a broken library.
13935           no_undefined_flag_F77=' ${wl}-bernotok'
13936           allow_undefined_flag_F77=' ${wl}-berok'
13937           # -bexpall does not export symbols beginning with underscore (_)
13938           always_export_symbols_F77=yes
13939           # Exported symbols can be pulled into shared objects from archives
13940           whole_archive_flag_spec_F77=' '
13941           archive_cmds_need_lc_F77=yes
13942           # This is similar to how AIX traditionally builds it's shared libraries.
13943           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'
13944         fi
13945       fi
13946       ;;
13947
13948     amigaos*)
13949       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)'
13950       hardcode_libdir_flag_spec_F77='-L$libdir'
13951       hardcode_minus_L_F77=yes
13952       # see comment about different semantics on the GNU ld section
13953       ld_shlibs_F77=no
13954       ;;
13955
13956     bsdi4*)
13957       export_dynamic_flag_spec_F77=-rdynamic
13958       ;;
13959
13960     cygwin* | mingw* | pw32*)
13961       # When not using gcc, we currently assume that we are using
13962       # Microsoft Visual C++.
13963       # hardcode_libdir_flag_spec is actually meaningless, as there is
13964       # no search path for DLLs.
13965       hardcode_libdir_flag_spec_F77=' '
13966       allow_undefined_flag_F77=unsupported
13967       # Tell ltmain to make .lib files, not .a files.
13968       libext=lib
13969       # Tell ltmain to make .dll files, not .so files.
13970       shrext_cmds=".dll"
13971       # FIXME: Setting linknames here is a bad hack.
13972       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13973       # The linker will automatically build a .lib file if we build a DLL.
13974       old_archive_From_new_cmds_F77='true'
13975       # FIXME: Should let the user specify the lib program.
13976       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13977       fix_srcfile_path='`cygpath -w "$srcfile"`'
13978       enable_shared_with_static_runtimes_F77=yes
13979       ;;
13980
13981     darwin* | rhapsody*)
13982     if test "$GXX" = yes ; then
13983       archive_cmds_need_lc_F77=no
13984       case "$host_os" in
13985       rhapsody* | darwin1.[012])
13986         allow_undefined_flag_F77='-undefined suppress'
13987         ;;
13988       *) # Darwin 1.3 on
13989       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13990         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13991       else
13992         case ${MACOSX_DEPLOYMENT_TARGET} in
13993           10.[012])
13994             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13995             ;;
13996           10.*)
13997             allow_undefined_flag_F77='-undefined dynamic_lookup'
13998             ;;
13999         esac
14000       fi
14001         ;;
14002       esac
14003         lt_int_apple_cc_single_mod=no
14004         output_verbose_link_cmd='echo'
14005         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14006           lt_int_apple_cc_single_mod=yes
14007         fi
14008         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14009           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14010         else
14011         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'
14012       fi
14013       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14014       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14015         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14016           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}'
14017         else
14018           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}'
14019         fi
14020           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}'
14021       hardcode_direct_F77=no
14022       hardcode_automatic_F77=yes
14023       hardcode_shlibpath_var_F77=unsupported
14024       whole_archive_flag_spec_F77='-all_load $convenience'
14025       link_all_deplibs_F77=yes
14026     else
14027       ld_shlibs_F77=no
14028     fi
14029       ;;
14030
14031     dgux*)
14032       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14033       hardcode_libdir_flag_spec_F77='-L$libdir'
14034       hardcode_shlibpath_var_F77=no
14035       ;;
14036
14037     freebsd1*)
14038       ld_shlibs_F77=no
14039       ;;
14040
14041     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14042     # support.  Future versions do this automatically, but an explicit c++rt0.o
14043     # does not break anything, and helps significantly (at the cost of a little
14044     # extra space).
14045     freebsd2.2*)
14046       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14047       hardcode_libdir_flag_spec_F77='-R$libdir'
14048       hardcode_direct_F77=yes
14049       hardcode_shlibpath_var_F77=no
14050       ;;
14051
14052     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14053     freebsd2*)
14054       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14055       hardcode_direct_F77=yes
14056       hardcode_minus_L_F77=yes
14057       hardcode_shlibpath_var_F77=no
14058       ;;
14059
14060     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14061     freebsd* | kfreebsd*-gnu)
14062       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14063       hardcode_libdir_flag_spec_F77='-R$libdir'
14064       hardcode_direct_F77=yes
14065       hardcode_shlibpath_var_F77=no
14066       ;;
14067
14068     hpux9*)
14069       if test "$GCC" = yes; then
14070         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'
14071       else
14072         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'
14073       fi
14074       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14075       hardcode_libdir_separator_F77=:
14076       hardcode_direct_F77=yes
14077
14078       # hardcode_minus_L: Not really in the search PATH,
14079       # but as the default location of the library.
14080       hardcode_minus_L_F77=yes
14081       export_dynamic_flag_spec_F77='${wl}-E'
14082       ;;
14083
14084     hpux10* | hpux11*)
14085       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14086         case "$host_cpu" in
14087         hppa*64*|ia64*)
14088           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089           ;;
14090         *)
14091           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14092           ;;
14093         esac
14094       else
14095         case "$host_cpu" in
14096         hppa*64*|ia64*)
14097           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14098           ;;
14099         *)
14100           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14101           ;;
14102         esac
14103       fi
14104       if test "$with_gnu_ld" = no; then
14105         case "$host_cpu" in
14106         hppa*64*)
14107           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14109           hardcode_libdir_separator_F77=:
14110           hardcode_direct_F77=no
14111           hardcode_shlibpath_var_F77=no
14112           ;;
14113         ia64*)
14114           hardcode_libdir_flag_spec_F77='-L$libdir'
14115           hardcode_direct_F77=no
14116           hardcode_shlibpath_var_F77=no
14117
14118           # hardcode_minus_L: Not really in the search PATH,
14119           # but as the default location of the library.
14120           hardcode_minus_L_F77=yes
14121           ;;
14122         *)
14123           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124           hardcode_libdir_separator_F77=:
14125           hardcode_direct_F77=yes
14126           export_dynamic_flag_spec_F77='${wl}-E'
14127
14128           # hardcode_minus_L: Not really in the search PATH,
14129           # but as the default location of the library.
14130           hardcode_minus_L_F77=yes
14131           ;;
14132         esac
14133       fi
14134       ;;
14135
14136     irix5* | irix6* | nonstopux*)
14137       if test "$GCC" = yes; then
14138         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'
14139       else
14140         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'
14141         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14142       fi
14143       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14144       hardcode_libdir_separator_F77=:
14145       link_all_deplibs_F77=yes
14146       ;;
14147
14148     netbsd*)
14149       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14150         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14151       else
14152         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14153       fi
14154       hardcode_libdir_flag_spec_F77='-R$libdir'
14155       hardcode_direct_F77=yes
14156       hardcode_shlibpath_var_F77=no
14157       ;;
14158
14159     newsos6)
14160       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14161       hardcode_direct_F77=yes
14162       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14163       hardcode_libdir_separator_F77=:
14164       hardcode_shlibpath_var_F77=no
14165       ;;
14166
14167     openbsd*)
14168       hardcode_direct_F77=yes
14169       hardcode_shlibpath_var_F77=no
14170       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14171         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14172         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173         export_dynamic_flag_spec_F77='${wl}-E'
14174       else
14175        case $host_os in
14176          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14177            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14178            hardcode_libdir_flag_spec_F77='-R$libdir'
14179            ;;
14180          *)
14181            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14182            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14183            ;;
14184        esac
14185       fi
14186       ;;
14187
14188     os2*)
14189       hardcode_libdir_flag_spec_F77='-L$libdir'
14190       hardcode_minus_L_F77=yes
14191       allow_undefined_flag_F77=unsupported
14192       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'
14193       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14194       ;;
14195
14196     osf3*)
14197       if test "$GCC" = yes; then
14198         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14199         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'
14200       else
14201         allow_undefined_flag_F77=' -expect_unresolved \*'
14202         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'
14203       fi
14204       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14205       hardcode_libdir_separator_F77=:
14206       ;;
14207
14208     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14209       if test "$GCC" = yes; then
14210         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211         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'
14212         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14213       else
14214         allow_undefined_flag_F77=' -expect_unresolved \*'
14215         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'
14216         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~
14217         $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'
14218
14219         # Both c and cxx compiler support -rpath directly
14220         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14221       fi
14222       hardcode_libdir_separator_F77=:
14223       ;;
14224
14225     sco3.2v5*)
14226       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227       hardcode_shlibpath_var_F77=no
14228       export_dynamic_flag_spec_F77='${wl}-Bexport'
14229       runpath_var=LD_RUN_PATH
14230       hardcode_runpath_var=yes
14231       ;;
14232
14233     solaris*)
14234       no_undefined_flag_F77=' -z text'
14235       if test "$GCC" = yes; then
14236         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14238           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14239       else
14240         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14242         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14243       fi
14244       hardcode_libdir_flag_spec_F77='-R$libdir'
14245       hardcode_shlibpath_var_F77=no
14246       case $host_os in
14247       solaris2.[0-5] | solaris2.[0-5].*) ;;
14248       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14249         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14250       esac
14251       link_all_deplibs_F77=yes
14252       ;;
14253
14254     sunos4*)
14255       if test "x$host_vendor" = xsequent; then
14256         # Use $CC to link under sequent, because it throws in some extra .o
14257         # files that make .init and .fini sections work.
14258         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14259       else
14260         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14261       fi
14262       hardcode_libdir_flag_spec_F77='-L$libdir'
14263       hardcode_direct_F77=yes
14264       hardcode_minus_L_F77=yes
14265       hardcode_shlibpath_var_F77=no
14266       ;;
14267
14268     sysv4)
14269       case $host_vendor in
14270         sni)
14271           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272           hardcode_direct_F77=yes # is this really true???
14273         ;;
14274         siemens)
14275           ## LD is ld it makes a PLAMLIB
14276           ## CC just makes a GrossModule.
14277           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14278           reload_cmds_F77='$CC -r -o $output$reload_objs'
14279           hardcode_direct_F77=no
14280         ;;
14281         motorola)
14282           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14284         ;;
14285       esac
14286       runpath_var='LD_RUN_PATH'
14287       hardcode_shlibpath_var_F77=no
14288       ;;
14289
14290     sysv4.3*)
14291       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292       hardcode_shlibpath_var_F77=no
14293       export_dynamic_flag_spec_F77='-Bexport'
14294       ;;
14295
14296     sysv4*MP*)
14297       if test -d /usr/nec; then
14298         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299         hardcode_shlibpath_var_F77=no
14300         runpath_var=LD_RUN_PATH
14301         hardcode_runpath_var=yes
14302         ld_shlibs_F77=yes
14303       fi
14304       ;;
14305
14306     sysv4.2uw2*)
14307       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14308       hardcode_direct_F77=yes
14309       hardcode_minus_L_F77=no
14310       hardcode_shlibpath_var_F77=no
14311       hardcode_runpath_var=yes
14312       runpath_var=LD_RUN_PATH
14313       ;;
14314
14315    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14316       no_undefined_flag_F77='${wl}-z ${wl}text'
14317       if test "$GCC" = yes; then
14318         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319       else
14320         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321       fi
14322       runpath_var='LD_RUN_PATH'
14323       hardcode_shlibpath_var_F77=no
14324       ;;
14325
14326     sysv5*)
14327       no_undefined_flag_F77=' -z text'
14328       # $CC -shared without GNU ld will not create a library from C++
14329       # object files and a static libstdc++, better avoid it by now
14330       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14332                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14333       hardcode_libdir_flag_spec_F77=
14334       hardcode_shlibpath_var_F77=no
14335       runpath_var='LD_RUN_PATH'
14336       ;;
14337
14338     uts4*)
14339       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340       hardcode_libdir_flag_spec_F77='-L$libdir'
14341       hardcode_shlibpath_var_F77=no
14342       ;;
14343
14344     *)
14345       ld_shlibs_F77=no
14346       ;;
14347     esac
14348   fi
14349
14350 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14351 echo "${ECHO_T}$ld_shlibs_F77" >&6
14352 test "$ld_shlibs_F77" = no && can_build_shared=no
14353
14354 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14355 if test "$GCC" = yes; then
14356   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14357 fi
14358
14359 #
14360 # Do we need to explicitly link libc?
14361 #
14362 case "x$archive_cmds_need_lc_F77" in
14363 x|xyes)
14364   # Assume -lc should be added
14365   archive_cmds_need_lc_F77=yes
14366
14367   if test "$enable_shared" = yes && test "$GCC" = yes; then
14368     case $archive_cmds_F77 in
14369     *'~'*)
14370       # FIXME: we may have to deal with multi-command sequences.
14371       ;;
14372     '$CC '*)
14373       # Test whether the compiler implicitly links with -lc since on some
14374       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14375       # to ld, don't add -lc before -lgcc.
14376       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14377 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14378       $rm conftest*
14379       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14380
14381       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382   (eval $ac_compile) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } 2>conftest.err; then
14386         soname=conftest
14387         lib=conftest
14388         libobjs=conftest.$ac_objext
14389         deplibs=
14390         wl=$lt_prog_compiler_wl_F77
14391         compiler_flags=-v
14392         linker_flags=-v
14393         verstring=
14394         output_objdir=.
14395         libname=conftest
14396         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14397         allow_undefined_flag_F77=
14398         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14399   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }
14403         then
14404           archive_cmds_need_lc_F77=no
14405         else
14406           archive_cmds_need_lc_F77=yes
14407         fi
14408         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14409       else
14410         cat conftest.err 1>&5
14411       fi
14412       $rm conftest*
14413       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14414 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14415       ;;
14416     esac
14417   fi
14418   ;;
14419 esac
14420
14421 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14423 library_names_spec=
14424 libname_spec='lib$name'
14425 soname_spec=
14426 shrext_cmds=".so"
14427 postinstall_cmds=
14428 postuninstall_cmds=
14429 finish_cmds=
14430 finish_eval=
14431 shlibpath_var=
14432 shlibpath_overrides_runpath=unknown
14433 version_type=none
14434 dynamic_linker="$host_os ld.so"
14435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436 if test "$GCC" = yes; then
14437   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14439     # if the path contains ";" then we assume it to be the separator
14440     # otherwise default to the standard path separator (i.e. ":") - it is
14441     # assumed that no part of a normal pathname contains ";" but that should
14442     # okay in the real world where ";" in dirpaths is itself problematic.
14443     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14444   else
14445     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14446   fi
14447 else
14448   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14449 fi
14450 need_lib_prefix=unknown
14451 hardcode_into_libs=no
14452
14453 # when you set need_version to no, make sure it does not cause -set_version
14454 # flags to be left without arguments
14455 need_version=unknown
14456
14457 case $host_os in
14458 aix3*)
14459   version_type=linux
14460   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14461   shlibpath_var=LIBPATH
14462
14463   # AIX 3 has no versioning support, so we append a major version to the name.
14464   soname_spec='${libname}${release}${shared_ext}$major'
14465   ;;
14466
14467 aix4* | aix5*)
14468   version_type=linux
14469   need_lib_prefix=no
14470   need_version=no
14471   hardcode_into_libs=yes
14472   if test "$host_cpu" = ia64; then
14473     # AIX 5 supports IA64
14474     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14475     shlibpath_var=LD_LIBRARY_PATH
14476   else
14477     # With GCC up to 2.95.x, collect2 would create an import file
14478     # for dependence libraries.  The import file would start with
14479     # the line `#! .'.  This would cause the generated library to
14480     # depend on `.', always an invalid library.  This was fixed in
14481     # development snapshots of GCC prior to 3.0.
14482     case $host_os in
14483       aix4 | aix4.[01] | aix4.[01].*)
14484       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14485            echo ' yes '
14486            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14487         :
14488       else
14489         can_build_shared=no
14490       fi
14491       ;;
14492     esac
14493     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14494     # soname into executable. Probably we can add versioning support to
14495     # collect2, so additional links can be useful in future.
14496     if test "$aix_use_runtimelinking" = yes; then
14497       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14498       # instead of lib<name>.a to let people know that these are not
14499       # typical AIX shared libraries.
14500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501     else
14502       # We preserve .a as extension for shared libraries through AIX4.2
14503       # and later when we are not doing run time linking.
14504       library_names_spec='${libname}${release}.a $libname.a'
14505       soname_spec='${libname}${release}${shared_ext}$major'
14506     fi
14507     shlibpath_var=LIBPATH
14508   fi
14509   ;;
14510
14511 amigaos*)
14512   library_names_spec='$libname.ixlibrary $libname.a'
14513   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514   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'
14515   ;;
14516
14517 beos*)
14518   library_names_spec='${libname}${shared_ext}'
14519   dynamic_linker="$host_os ld.so"
14520   shlibpath_var=LIBRARY_PATH
14521   ;;
14522
14523 bsdi4*)
14524   version_type=linux
14525   need_version=no
14526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527   soname_spec='${libname}${release}${shared_ext}$major'
14528   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529   shlibpath_var=LD_LIBRARY_PATH
14530   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532   # the default ld.so.conf also contains /usr/contrib/lib and
14533   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534   # libtool to hard-code these into programs
14535   ;;
14536
14537 cygwin* | mingw* | pw32*)
14538   version_type=windows
14539   shrext_cmds=".dll"
14540   need_version=no
14541   need_lib_prefix=no
14542
14543   case $GCC,$host_os in
14544   yes,cygwin* | yes,mingw* | yes,pw32*)
14545     library_names_spec='$libname.dll.a'
14546     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14547     postinstall_cmds='base_file=`basename \${file}`~
14548       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14549       dldir=$destdir/`dirname \$dlpath`~
14550       test -d \$dldir || mkdir -p \$dldir~
14551       $install_prog $dir/$dlname \$dldir/$dlname'
14552     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14553       dlpath=$dir/\$dldll~
14554        $rm \$dlpath'
14555     shlibpath_overrides_runpath=yes
14556
14557     case $host_os in
14558     cygwin*)
14559       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14560       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14562       ;;
14563     mingw*)
14564       # MinGW DLLs use traditional 'lib' prefix
14565       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14568         # It is most probably a Windows format PATH printed by
14569         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14570         # path with ; separators, and with drive letters. We can handle the
14571         # drive letters (cygwin fileutils understands them), so leave them,
14572         # especially as we might pass files found there to a mingw objdump,
14573         # which wouldn't understand a cygwinified path. Ahh.
14574         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14575       else
14576         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14577       fi
14578       ;;
14579     pw32*)
14580       # pw32 DLLs use 'pw' prefix rather than 'lib'
14581       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14582       ;;
14583     esac
14584     ;;
14585
14586   *)
14587     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14588     ;;
14589   esac
14590   dynamic_linker='Win32 ld.exe'
14591   # FIXME: first we should search . and the directory the executable is in
14592   shlibpath_var=PATH
14593   ;;
14594
14595 darwin* | rhapsody*)
14596   dynamic_linker="$host_os dyld"
14597   version_type=darwin
14598   need_lib_prefix=no
14599   need_version=no
14600   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14601   soname_spec='${libname}${release}${major}$shared_ext'
14602   shlibpath_overrides_runpath=yes
14603   shlibpath_var=DYLD_LIBRARY_PATH
14604   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14605   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14606   if test "$GCC" = yes; then
14607     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"`
14608   else
14609     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14610   fi
14611   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14612   ;;
14613
14614 dgux*)
14615   version_type=linux
14616   need_lib_prefix=no
14617   need_version=no
14618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14619   soname_spec='${libname}${release}${shared_ext}$major'
14620   shlibpath_var=LD_LIBRARY_PATH
14621   ;;
14622
14623 freebsd1*)
14624   dynamic_linker=no
14625   ;;
14626
14627 kfreebsd*-gnu)
14628   version_type=linux
14629   need_lib_prefix=no
14630   need_version=no
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632   soname_spec='${libname}${release}${shared_ext}$major'
14633   shlibpath_var=LD_LIBRARY_PATH
14634   shlibpath_overrides_runpath=no
14635   hardcode_into_libs=yes
14636   dynamic_linker='GNU ld.so'
14637   ;;
14638
14639 freebsd*)
14640   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14641   version_type=freebsd-$objformat
14642   case $version_type in
14643     freebsd-elf*)
14644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14645       need_version=no
14646       need_lib_prefix=no
14647       ;;
14648     freebsd-*)
14649       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14650       need_version=yes
14651       ;;
14652   esac
14653   shlibpath_var=LD_LIBRARY_PATH
14654   case $host_os in
14655   freebsd2*)
14656     shlibpath_overrides_runpath=yes
14657     ;;
14658   freebsd3.01* | freebsdelf3.01*)
14659     shlibpath_overrides_runpath=yes
14660     hardcode_into_libs=yes
14661     ;;
14662   *) # from 3.2 on
14663     shlibpath_overrides_runpath=no
14664     hardcode_into_libs=yes
14665     ;;
14666   esac
14667   ;;
14668
14669 gnu*)
14670   version_type=linux
14671   need_lib_prefix=no
14672   need_version=no
14673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674   soname_spec='${libname}${release}${shared_ext}$major'
14675   shlibpath_var=LD_LIBRARY_PATH
14676   hardcode_into_libs=yes
14677   ;;
14678
14679 hpux9* | hpux10* | hpux11*)
14680   # Give a soname corresponding to the major version so that dld.sl refuses to
14681   # link against other versions.
14682   version_type=sunos
14683   need_lib_prefix=no
14684   need_version=no
14685   case "$host_cpu" in
14686   ia64*)
14687     shrext_cmds='.so'
14688     hardcode_into_libs=yes
14689     dynamic_linker="$host_os dld.so"
14690     shlibpath_var=LD_LIBRARY_PATH
14691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693     soname_spec='${libname}${release}${shared_ext}$major'
14694     if test "X$HPUX_IA64_MODE" = X32; then
14695       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14696     else
14697       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14698     fi
14699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14700     ;;
14701    hppa*64*)
14702      shrext_cmds='.sl'
14703      hardcode_into_libs=yes
14704      dynamic_linker="$host_os dld.sl"
14705      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14706      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708      soname_spec='${libname}${release}${shared_ext}$major'
14709      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14710      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14711      ;;
14712    *)
14713     shrext_cmds='.sl'
14714     dynamic_linker="$host_os dld.sl"
14715     shlibpath_var=SHLIB_PATH
14716     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718     soname_spec='${libname}${release}${shared_ext}$major'
14719     ;;
14720   esac
14721   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14722   postinstall_cmds='chmod 555 $lib'
14723   ;;
14724
14725 irix5* | irix6* | nonstopux*)
14726   case $host_os in
14727     nonstopux*) version_type=nonstopux ;;
14728     *)
14729         if test "$lt_cv_prog_gnu_ld" = yes; then
14730                 version_type=linux
14731         else
14732                 version_type=irix
14733         fi ;;
14734   esac
14735   need_lib_prefix=no
14736   need_version=no
14737   soname_spec='${libname}${release}${shared_ext}$major'
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14739   case $host_os in
14740   irix5* | nonstopux*)
14741     libsuff= shlibsuff=
14742     ;;
14743   *)
14744     case $LD in # libtool.m4 will add one of these switches to LD
14745     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14746       libsuff= shlibsuff= libmagic=32-bit;;
14747     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14748       libsuff=32 shlibsuff=N32 libmagic=N32;;
14749     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14750       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14751     *) libsuff= shlibsuff= libmagic=never-match;;
14752     esac
14753     ;;
14754   esac
14755   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14756   shlibpath_overrides_runpath=no
14757   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14758   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14759   hardcode_into_libs=yes
14760   ;;
14761
14762 # No shared lib support for Linux oldld, aout, or coff.
14763 linux*oldld* | linux*aout* | linux*coff*)
14764   dynamic_linker=no
14765   ;;
14766
14767 # This must be Linux ELF.
14768 linux*)
14769   version_type=linux
14770   need_lib_prefix=no
14771   need_version=no
14772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773   soname_spec='${libname}${release}${shared_ext}$major'
14774   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14775   shlibpath_var=LD_LIBRARY_PATH
14776   shlibpath_overrides_runpath=no
14777   # This implies no fast_install, which is unacceptable.
14778   # Some rework will be needed to allow for fast_install
14779   # before this can be enabled.
14780   hardcode_into_libs=yes
14781
14782   # find out which ABI we are using
14783   libsuff=
14784   case "$host_cpu" in
14785   x86_64*|s390x*|powerpc64*)
14786     echo '#line __oline__ "configure"' > conftest.$ac_ext
14787     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788   (eval $ac_compile) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; then
14792       case `/usr/bin/file conftest.$ac_objext` in
14793       *64-bit*)
14794         libsuff=64
14795         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14796         ;;
14797       esac
14798     fi
14799     rm -rf conftest*
14800     ;;
14801   esac
14802
14803   # Append ld.so.conf contents to the search path
14804   if test -f /etc/ld.so.conf; then
14805     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14806     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14807   fi
14808
14809   # We used to test for /lib/ld.so.1 and disable shared libraries on
14810   # powerpc, because MkLinux only supported shared libraries with the
14811   # GNU dynamic linker.  Since this was broken with cross compilers,
14812   # most powerpc-linux boxes support dynamic linking these days and
14813   # people can always --disable-shared, the test was removed, and we
14814   # assume the GNU/Linux dynamic linker is in use.
14815   dynamic_linker='GNU/Linux ld.so'
14816   ;;
14817
14818 knetbsd*-gnu)
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=no
14826   hardcode_into_libs=yes
14827   dynamic_linker='GNU ld.so'
14828   ;;
14829
14830 netbsd*)
14831   version_type=sunos
14832   need_lib_prefix=no
14833   need_version=no
14834   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14836     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14837     dynamic_linker='NetBSD (a.out) ld.so'
14838   else
14839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14840     soname_spec='${libname}${release}${shared_ext}$major'
14841     dynamic_linker='NetBSD ld.elf_so'
14842   fi
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=yes
14845   hardcode_into_libs=yes
14846   ;;
14847
14848 newsos6)
14849   version_type=linux
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851   shlibpath_var=LD_LIBRARY_PATH
14852   shlibpath_overrides_runpath=yes
14853   ;;
14854
14855 nto-qnx*)
14856   version_type=linux
14857   need_lib_prefix=no
14858   need_version=no
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860   soname_spec='${libname}${release}${shared_ext}$major'
14861   shlibpath_var=LD_LIBRARY_PATH
14862   shlibpath_overrides_runpath=yes
14863   ;;
14864
14865 openbsd*)
14866   version_type=sunos
14867   need_lib_prefix=no
14868   need_version=yes
14869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14870   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14871   shlibpath_var=LD_LIBRARY_PATH
14872   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14873     case $host_os in
14874       openbsd2.[89] | openbsd2.[89].*)
14875         shlibpath_overrides_runpath=no
14876         ;;
14877       *)
14878         shlibpath_overrides_runpath=yes
14879         ;;
14880       esac
14881   else
14882     shlibpath_overrides_runpath=yes
14883   fi
14884   ;;
14885
14886 os2*)
14887   libname_spec='$name'
14888   shrext_cmds=".dll"
14889   need_lib_prefix=no
14890   library_names_spec='$libname${shared_ext} $libname.a'
14891   dynamic_linker='OS/2 ld.exe'
14892   shlibpath_var=LIBPATH
14893   ;;
14894
14895 osf3* | osf4* | osf5*)
14896   version_type=osf
14897   need_lib_prefix=no
14898   need_version=no
14899   soname_spec='${libname}${release}${shared_ext}$major'
14900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14903   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14904   ;;
14905
14906 sco3.2v5*)
14907   version_type=osf
14908   soname_spec='${libname}${release}${shared_ext}$major'
14909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910   shlibpath_var=LD_LIBRARY_PATH
14911   ;;
14912
14913 solaris*)
14914   version_type=linux
14915   need_lib_prefix=no
14916   need_version=no
14917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918   soname_spec='${libname}${release}${shared_ext}$major'
14919   shlibpath_var=LD_LIBRARY_PATH
14920   shlibpath_overrides_runpath=yes
14921   hardcode_into_libs=yes
14922   # ldd complains unless libraries are executable
14923   postinstall_cmds='chmod +x $lib'
14924   ;;
14925
14926 sunos4*)
14927   version_type=sunos
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14929   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14930   shlibpath_var=LD_LIBRARY_PATH
14931   shlibpath_overrides_runpath=yes
14932   if test "$with_gnu_ld" = yes; then
14933     need_lib_prefix=no
14934   fi
14935   need_version=yes
14936   ;;
14937
14938 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14939   version_type=linux
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941   soname_spec='${libname}${release}${shared_ext}$major'
14942   shlibpath_var=LD_LIBRARY_PATH
14943   case $host_vendor in
14944     sni)
14945       shlibpath_overrides_runpath=no
14946       need_lib_prefix=no
14947       export_dynamic_flag_spec='${wl}-Blargedynsym'
14948       runpath_var=LD_RUN_PATH
14949       ;;
14950     siemens)
14951       need_lib_prefix=no
14952       ;;
14953     motorola)
14954       need_lib_prefix=no
14955       need_version=no
14956       shlibpath_overrides_runpath=no
14957       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14958       ;;
14959   esac
14960   ;;
14961
14962 sysv4*MP*)
14963   if test -d /usr/nec ;then
14964     version_type=linux
14965     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14966     soname_spec='$libname${shared_ext}.$major'
14967     shlibpath_var=LD_LIBRARY_PATH
14968   fi
14969   ;;
14970
14971 uts4*)
14972   version_type=linux
14973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974   soname_spec='${libname}${release}${shared_ext}$major'
14975   shlibpath_var=LD_LIBRARY_PATH
14976   ;;
14977
14978 *)
14979   dynamic_linker=no
14980   ;;
14981 esac
14982 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14983 echo "${ECHO_T}$dynamic_linker" >&6
14984 test "$dynamic_linker" = no && can_build_shared=no
14985
14986 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14987 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14988 hardcode_action_F77=
14989 if test -n "$hardcode_libdir_flag_spec_F77" || \
14990    test -n "$runpath_var F77" || \
14991    test "X$hardcode_automatic_F77"="Xyes" ; then
14992
14993   # We can hardcode non-existant directories.
14994   if test "$hardcode_direct_F77" != no &&
14995      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14996      # have to relink, otherwise we might link with an installed library
14997      # when we should be linking with a yet-to-be-installed one
14998      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14999      test "$hardcode_minus_L_F77" != no; then
15000     # Linking always hardcodes the temporary library directory.
15001     hardcode_action_F77=relink
15002   else
15003     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15004     hardcode_action_F77=immediate
15005   fi
15006 else
15007   # We cannot hardcode anything, or else we can only hardcode existing
15008   # directories.
15009   hardcode_action_F77=unsupported
15010 fi
15011 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15012 echo "${ECHO_T}$hardcode_action_F77" >&6
15013
15014 if test "$hardcode_action_F77" = relink; then
15015   # Fast installation is not supported
15016   enable_fast_install=no
15017 elif test "$shlibpath_overrides_runpath" = yes ||
15018      test "$enable_shared" = no; then
15019   # Fast installation is not necessary
15020   enable_fast_install=needless
15021 fi
15022
15023 striplib=
15024 old_striplib=
15025 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15026 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15027 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15028   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15029   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15030   echo "$as_me:$LINENO: result: yes" >&5
15031 echo "${ECHO_T}yes" >&6
15032 else
15033 # FIXME - insert some real tests, host_os isn't really good enough
15034   case $host_os in
15035    darwin*)
15036        if test -n "$STRIP" ; then
15037          striplib="$STRIP -x"
15038          echo "$as_me:$LINENO: result: yes" >&5
15039 echo "${ECHO_T}yes" >&6
15040        else
15041   echo "$as_me:$LINENO: result: no" >&5
15042 echo "${ECHO_T}no" >&6
15043 fi
15044        ;;
15045    *)
15046   echo "$as_me:$LINENO: result: no" >&5
15047 echo "${ECHO_T}no" >&6
15048     ;;
15049   esac
15050 fi
15051
15052
15053
15054 # The else clause should only fire when bootstrapping the
15055 # libtool distribution, otherwise you forgot to ship ltmain.sh
15056 # with your package, and you will get complaints that there are
15057 # no rules to generate ltmain.sh.
15058 if test -f "$ltmain"; then
15059   # See if we are running on zsh, and set the options which allow our commands through
15060   # without removal of \ escapes.
15061   if test -n "${ZSH_VERSION+set}" ; then
15062     setopt NO_GLOB_SUBST
15063   fi
15064   # Now quote all the things that may contain metacharacters while being
15065   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15066   # variables and quote the copies for generation of the libtool script.
15067   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15068     SED SHELL STRIP \
15069     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15070     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15071     deplibs_check_method reload_flag reload_cmds need_locks \
15072     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15073     lt_cv_sys_global_symbol_to_c_name_address \
15074     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15075     old_postinstall_cmds old_postuninstall_cmds \
15076     compiler_F77 \
15077     CC_F77 \
15078     LD_F77 \
15079     lt_prog_compiler_wl_F77 \
15080     lt_prog_compiler_pic_F77 \
15081     lt_prog_compiler_static_F77 \
15082     lt_prog_compiler_no_builtin_flag_F77 \
15083     export_dynamic_flag_spec_F77 \
15084     thread_safe_flag_spec_F77 \
15085     whole_archive_flag_spec_F77 \
15086     enable_shared_with_static_runtimes_F77 \
15087     old_archive_cmds_F77 \
15088     old_archive_from_new_cmds_F77 \
15089     predep_objects_F77 \
15090     postdep_objects_F77 \
15091     predeps_F77 \
15092     postdeps_F77 \
15093     compiler_lib_search_path_F77 \
15094     archive_cmds_F77 \
15095     archive_expsym_cmds_F77 \
15096     postinstall_cmds_F77 \
15097     postuninstall_cmds_F77 \
15098     old_archive_from_expsyms_cmds_F77 \
15099     allow_undefined_flag_F77 \
15100     no_undefined_flag_F77 \
15101     export_symbols_cmds_F77 \
15102     hardcode_libdir_flag_spec_F77 \
15103     hardcode_libdir_flag_spec_ld_F77 \
15104     hardcode_libdir_separator_F77 \
15105     hardcode_automatic_F77 \
15106     module_cmds_F77 \
15107     module_expsym_cmds_F77 \
15108     lt_cv_prog_compiler_c_o_F77 \
15109     exclude_expsyms_F77 \
15110     include_expsyms_F77; do
15111
15112     case $var in
15113     old_archive_cmds_F77 | \
15114     old_archive_from_new_cmds_F77 | \
15115     archive_cmds_F77 | \
15116     archive_expsym_cmds_F77 | \
15117     module_cmds_F77 | \
15118     module_expsym_cmds_F77 | \
15119     old_archive_from_expsyms_cmds_F77 | \
15120     export_symbols_cmds_F77 | \
15121     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15122     postinstall_cmds | postuninstall_cmds | \
15123     old_postinstall_cmds | old_postuninstall_cmds | \
15124     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15125       # Double-quote double-evaled strings.
15126       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15127       ;;
15128     *)
15129       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15130       ;;
15131     esac
15132   done
15133
15134   case $lt_echo in
15135   *'\$0 --fallback-echo"')
15136     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15137     ;;
15138   esac
15139
15140 cfgfile="$ofile"
15141
15142   cat <<__EOF__ >> "$cfgfile"
15143 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15144
15145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15146
15147 # Shell to use when invoking shell scripts.
15148 SHELL=$lt_SHELL
15149
15150 # Whether or not to build shared libraries.
15151 build_libtool_libs=$enable_shared
15152
15153 # Whether or not to build static libraries.
15154 build_old_libs=$enable_static
15155
15156 # Whether or not to add -lc for building shared libraries.
15157 build_libtool_need_lc=$archive_cmds_need_lc_F77
15158
15159 # Whether or not to disallow shared libs when runtime libs are static
15160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15161
15162 # Whether or not to optimize for fast installation.
15163 fast_install=$enable_fast_install
15164
15165 # The host system.
15166 host_alias=$host_alias
15167 host=$host
15168
15169 # An echo program that does not interpret backslashes.
15170 echo=$lt_echo
15171
15172 # The archiver.
15173 AR=$lt_AR
15174 AR_FLAGS=$lt_AR_FLAGS
15175
15176 # A C compiler.
15177 LTCC=$lt_LTCC
15178
15179 # A language-specific compiler.
15180 CC=$lt_compiler_F77
15181
15182 # Is the compiler the GNU C compiler?
15183 with_gcc=$GCC_F77
15184
15185 # An ERE matcher.
15186 EGREP=$lt_EGREP
15187
15188 # The linker used to build libraries.
15189 LD=$lt_LD_F77
15190
15191 # Whether we need hard or soft links.
15192 LN_S=$lt_LN_S
15193
15194 # A BSD-compatible nm program.
15195 NM=$lt_NM
15196
15197 # A symbol stripping program
15198 STRIP=$lt_STRIP
15199
15200 # Used to examine libraries when file_magic_cmd begins "file"
15201 MAGIC_CMD=$MAGIC_CMD
15202
15203 # Used on cygwin: DLL creation program.
15204 DLLTOOL="$DLLTOOL"
15205
15206 # Used on cygwin: object dumper.
15207 OBJDUMP="$OBJDUMP"
15208
15209 # Used on cygwin: assembler.
15210 AS="$AS"
15211
15212 # The name of the directory that contains temporary libtool files.
15213 objdir=$objdir
15214
15215 # How to create reloadable object files.
15216 reload_flag=$lt_reload_flag
15217 reload_cmds=$lt_reload_cmds
15218
15219 # How to pass a linker flag through the compiler.
15220 wl=$lt_lt_prog_compiler_wl_F77
15221
15222 # Object file suffix (normally "o").
15223 objext="$ac_objext"
15224
15225 # Old archive suffix (normally "a").
15226 libext="$libext"
15227
15228 # Shared library suffix (normally ".so").
15229 shrext_cmds='$shrext_cmds'
15230
15231 # Executable file suffix (normally "").
15232 exeext="$exeext"
15233
15234 # Additional compiler flags for building library objects.
15235 pic_flag=$lt_lt_prog_compiler_pic_F77
15236 pic_mode=$pic_mode
15237
15238 # What is the maximum length of a command?
15239 max_cmd_len=$lt_cv_sys_max_cmd_len
15240
15241 # Does compiler simultaneously support -c and -o options?
15242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15243
15244 # Must we lock files when doing compilation ?
15245 need_locks=$lt_need_locks
15246
15247 # Do we need the lib prefix for modules?
15248 need_lib_prefix=$need_lib_prefix
15249
15250 # Do we need a version for libraries?
15251 need_version=$need_version
15252
15253 # Whether dlopen is supported.
15254 dlopen_support=$enable_dlopen
15255
15256 # Whether dlopen of programs is supported.
15257 dlopen_self=$enable_dlopen_self
15258
15259 # Whether dlopen of statically linked programs is supported.
15260 dlopen_self_static=$enable_dlopen_self_static
15261
15262 # Compiler flag to prevent dynamic linking.
15263 link_static_flag=$lt_lt_prog_compiler_static_F77
15264
15265 # Compiler flag to turn off builtin functions.
15266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15267
15268 # Compiler flag to allow reflexive dlopens.
15269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15270
15271 # Compiler flag to generate shared objects directly from archives.
15272 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15273
15274 # Compiler flag to generate thread-safe objects.
15275 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15276
15277 # Library versioning type.
15278 version_type=$version_type
15279
15280 # Format of library name prefix.
15281 libname_spec=$lt_libname_spec
15282
15283 # List of archive names.  First name is the real one, the rest are links.
15284 # The last name is the one that the linker finds with -lNAME.
15285 library_names_spec=$lt_library_names_spec
15286
15287 # The coded name of the library, if different from the real name.
15288 soname_spec=$lt_soname_spec
15289
15290 # Commands used to build and install an old-style archive.
15291 RANLIB=$lt_RANLIB
15292 old_archive_cmds=$lt_old_archive_cmds_F77
15293 old_postinstall_cmds=$lt_old_postinstall_cmds
15294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15295
15296 # Create an old-style archive from a shared archive.
15297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15298
15299 # Create a temporary old-style archive to link instead of a shared archive.
15300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15301
15302 # Commands used to build and install a shared archive.
15303 archive_cmds=$lt_archive_cmds_F77
15304 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15305 postinstall_cmds=$lt_postinstall_cmds
15306 postuninstall_cmds=$lt_postuninstall_cmds
15307
15308 # Commands used to build a loadable module (assumed same as above if empty)
15309 module_cmds=$lt_module_cmds_F77
15310 module_expsym_cmds=$lt_module_expsym_cmds_F77
15311
15312 # Commands to strip libraries.
15313 old_striplib=$lt_old_striplib
15314 striplib=$lt_striplib
15315
15316 # Dependencies to place before the objects being linked to create a
15317 # shared library.
15318 predep_objects=$lt_predep_objects_F77
15319
15320 # Dependencies to place after the objects being linked to create a
15321 # shared library.
15322 postdep_objects=$lt_postdep_objects_F77
15323
15324 # Dependencies to place before the objects being linked to create a
15325 # shared library.
15326 predeps=$lt_predeps_F77
15327
15328 # Dependencies to place after the objects being linked to create a
15329 # shared library.
15330 postdeps=$lt_postdeps_F77
15331
15332 # The library search path used internally by the compiler when linking
15333 # a shared library.
15334 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15335
15336 # Method to check whether dependent libraries are shared objects.
15337 deplibs_check_method=$lt_deplibs_check_method
15338
15339 # Command to use when deplibs_check_method == file_magic.
15340 file_magic_cmd=$lt_file_magic_cmd
15341
15342 # Flag that allows shared libraries with undefined symbols to be built.
15343 allow_undefined_flag=$lt_allow_undefined_flag_F77
15344
15345 # Flag that forces no undefined symbols.
15346 no_undefined_flag=$lt_no_undefined_flag_F77
15347
15348 # Commands used to finish a libtool library installation in a directory.
15349 finish_cmds=$lt_finish_cmds
15350
15351 # Same as above, but a single script fragment to be evaled but not shown.
15352 finish_eval=$lt_finish_eval
15353
15354 # Take the output of nm and produce a listing of raw symbols and C names.
15355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15356
15357 # Transform the output of nm in a proper C declaration
15358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15359
15360 # Transform the output of nm in a C name address pair
15361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15362
15363 # This is the shared library runtime path variable.
15364 runpath_var=$runpath_var
15365
15366 # This is the shared library path variable.
15367 shlibpath_var=$shlibpath_var
15368
15369 # Is shlibpath searched before the hard-coded library search path?
15370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15371
15372 # How to hardcode a shared library path into an executable.
15373 hardcode_action=$hardcode_action_F77
15374
15375 # Whether we should hardcode library paths into libraries.
15376 hardcode_into_libs=$hardcode_into_libs
15377
15378 # Flag to hardcode \$libdir into a binary during linking.
15379 # This must work even if \$libdir does not exist.
15380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15381
15382 # If ld is used when linking, flag to hardcode \$libdir into
15383 # a binary during linking. This must work even if \$libdir does
15384 # not exist.
15385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15386
15387 # Whether we need a single -rpath flag with a separated argument.
15388 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15389
15390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15391 # resulting binary.
15392 hardcode_direct=$hardcode_direct_F77
15393
15394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15395 # resulting binary.
15396 hardcode_minus_L=$hardcode_minus_L_F77
15397
15398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15399 # the resulting binary.
15400 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15401
15402 # Set to yes if building a shared library automatically hardcodes DIR into the library
15403 # and all subsequent libraries and executables linked against it.
15404 hardcode_automatic=$hardcode_automatic_F77
15405
15406 # Variables whose values should be saved in libtool wrapper scripts and
15407 # restored at relink time.
15408 variables_saved_for_relink="$variables_saved_for_relink"
15409
15410 # Whether libtool must link a program against all its dependency libraries.
15411 link_all_deplibs=$link_all_deplibs_F77
15412
15413 # Compile-time system search path for libraries
15414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15415
15416 # Run-time system search path for libraries
15417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15418
15419 # Fix the shell variable \$srcfile for the compiler.
15420 fix_srcfile_path="$fix_srcfile_path_F77"
15421
15422 # Set to yes if exported symbols are required.
15423 always_export_symbols=$always_export_symbols_F77
15424
15425 # The commands to list exported symbols.
15426 export_symbols_cmds=$lt_export_symbols_cmds_F77
15427
15428 # The commands to extract the exported symbol list from a shared archive.
15429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15430
15431 # Symbols that should not be listed in the preloaded symbols.
15432 exclude_expsyms=$lt_exclude_expsyms_F77
15433
15434 # Symbols that must always be exported.
15435 include_expsyms=$lt_include_expsyms_F77
15436
15437 # ### END LIBTOOL TAG CONFIG: $tagname
15438
15439 __EOF__
15440
15441
15442 else
15443   # If there is no Makefile yet, we rely on a make rule to execute
15444   # `config.status --recheck' to rerun these tests and create the
15445   # libtool script then.
15446   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15447   if test -f "$ltmain_in"; then
15448     test -f Makefile && make "$ltmain"
15449   fi
15450 fi
15451
15452
15453 ac_ext=c
15454 ac_cpp='$CPP $CPPFLAGS'
15455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15458
15459 CC="$lt_save_CC"
15460
15461         else
15462           tagname=""
15463         fi
15464         ;;
15465
15466       GCJ)
15467         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15468           
15469
15470
15471 # Source file extension for Java test sources.
15472 ac_ext=java
15473
15474 # Object file extension for compiled Java test sources.
15475 objext=o
15476 objext_GCJ=$objext
15477
15478 # Code to be used in simple compile tests
15479 lt_simple_compile_test_code="class foo {}\n"
15480
15481 # Code to be used in simple link tests
15482 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15483
15484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15485
15486 # If no C compiler was specified, use CC.
15487 LTCC=${LTCC-"$CC"}
15488
15489 # Allow CC to be a program name with arguments.
15490 compiler=$CC
15491
15492
15493 # Allow CC to be a program name with arguments.
15494 lt_save_CC="$CC"
15495 CC=${GCJ-"gcj"}
15496 compiler=$CC
15497 compiler_GCJ=$CC
15498
15499 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15500 archive_cmds_need_lc_GCJ=no
15501
15502 ## CAVEAT EMPTOR:
15503 ## There is no encapsulation within the following macros, do not change
15504 ## the running order or otherwise move them around unless you know exactly
15505 ## what you are doing...
15506
15507 lt_prog_compiler_no_builtin_flag_GCJ=
15508
15509 if test "$GCC" = yes; then
15510   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15511
15512   
15513 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15514 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15515 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15516   echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518   lt_cv_prog_compiler_rtti_exceptions=no
15519   ac_outfile=conftest.$ac_objext
15520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15521    lt_compiler_flag="-fno-rtti -fno-exceptions"
15522    # Insert the option either (1) after the last *FLAGS variable, or
15523    # (2) before a word containing "conftest.", or (3) at the end.
15524    # Note that $ac_compile itself does not contain backslashes and begins
15525    # with a dollar sign (not a hyphen), so the echo should work correctly.
15526    # The option is referenced via a variable to avoid confusing sed.
15527    lt_compile=`echo "$ac_compile" | $SED \
15528    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15530    -e 's:$: $lt_compiler_flag:'`
15531    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15532    (eval "$lt_compile" 2>conftest.err)
15533    ac_status=$?
15534    cat conftest.err >&5
15535    echo "$as_me:__oline__: \$? = $ac_status" >&5
15536    if (exit $ac_status) && test -s "$ac_outfile"; then
15537      # The compiler can only warn and ignore the option if not recognized
15538      # So say no if there are warnings
15539      if test ! -s conftest.err; then
15540        lt_cv_prog_compiler_rtti_exceptions=yes
15541      fi
15542    fi
15543    $rm conftest*
15544
15545 fi
15546 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15547 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15548
15549 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15550     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15551 else
15552     :
15553 fi
15554
15555 fi
15556
15557 lt_prog_compiler_wl_GCJ=
15558 lt_prog_compiler_pic_GCJ=
15559 lt_prog_compiler_static_GCJ=
15560
15561 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15562 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15563  
15564   if test "$GCC" = yes; then
15565     lt_prog_compiler_wl_GCJ='-Wl,'
15566     lt_prog_compiler_static_GCJ='-static'
15567
15568     case $host_os in
15569       aix*)
15570       # All AIX code is PIC.
15571       if test "$host_cpu" = ia64; then
15572         # AIX 5 now supports IA64 processor
15573         lt_prog_compiler_static_GCJ='-Bstatic'
15574       fi
15575       ;;
15576
15577     amigaos*)
15578       # FIXME: we need at least 68020 code to build shared libraries, but
15579       # adding the `-m68020' flag to GCC prevents building anything better,
15580       # like `-m68040'.
15581       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15582       ;;
15583
15584     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15585       # PIC is the default for these OSes.
15586       ;;
15587
15588     mingw* | pw32* | os2*)
15589       # This hack is so that the source file can tell whether it is being
15590       # built for inclusion in a dll (and should export symbols for example).
15591       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15592       ;;
15593
15594     darwin* | rhapsody*)
15595       # PIC is the default on this platform
15596       # Common symbols not allowed in MH_DYLIB files
15597       lt_prog_compiler_pic_GCJ='-fno-common'
15598       ;;
15599
15600     msdosdjgpp*)
15601       # Just because we use GCC doesn't mean we suddenly get shared libraries
15602       # on systems that don't support them.
15603       lt_prog_compiler_can_build_shared_GCJ=no
15604       enable_shared=no
15605       ;;
15606
15607     sysv4*MP*)
15608       if test -d /usr/nec; then
15609         lt_prog_compiler_pic_GCJ=-Kconform_pic
15610       fi
15611       ;;
15612
15613     hpux*)
15614       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615       # not for PA HP-UX.
15616       case "$host_cpu" in
15617       hppa*64*|ia64*)
15618         # +Z the default
15619         ;;
15620       *)
15621         lt_prog_compiler_pic_GCJ='-fPIC'
15622         ;;
15623       esac
15624       ;;
15625
15626     *)
15627       lt_prog_compiler_pic_GCJ='-fPIC'
15628       ;;
15629     esac
15630   else
15631     # PORTME Check for flag to pass linker flags through the system compiler.
15632     case $host_os in
15633     aix*)
15634       lt_prog_compiler_wl_GCJ='-Wl,'
15635       if test "$host_cpu" = ia64; then
15636         # AIX 5 now supports IA64 processor
15637         lt_prog_compiler_static_GCJ='-Bstatic'
15638       else
15639         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15640       fi
15641       ;;
15642
15643     mingw* | pw32* | os2*)
15644       # This hack is so that the source file can tell whether it is being
15645       # built for inclusion in a dll (and should export symbols for example).
15646       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15647       ;;
15648
15649     hpux9* | hpux10* | hpux11*)
15650       lt_prog_compiler_wl_GCJ='-Wl,'
15651       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15652       # not for PA HP-UX.
15653       case "$host_cpu" in
15654       hppa*64*|ia64*)
15655         # +Z the default
15656         ;;
15657       *)
15658         lt_prog_compiler_pic_GCJ='+Z'
15659         ;;
15660       esac
15661       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15662       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15663       ;;
15664
15665     irix5* | irix6* | nonstopux*)
15666       lt_prog_compiler_wl_GCJ='-Wl,'
15667       # PIC (with -KPIC) is the default.
15668       lt_prog_compiler_static_GCJ='-non_shared'
15669       ;;
15670
15671     newsos6)
15672       lt_prog_compiler_pic_GCJ='-KPIC'
15673       lt_prog_compiler_static_GCJ='-Bstatic'
15674       ;;
15675
15676     linux*)
15677       case $CC in
15678       icc* | ecc*)
15679         lt_prog_compiler_wl_GCJ='-Wl,'
15680         lt_prog_compiler_pic_GCJ='-KPIC'
15681         lt_prog_compiler_static_GCJ='-static'
15682         ;;
15683       ccc*)
15684         lt_prog_compiler_wl_GCJ='-Wl,'
15685         # All Alpha code is PIC.
15686         lt_prog_compiler_static_GCJ='-non_shared'
15687         ;;
15688       esac
15689       ;;
15690
15691     osf3* | osf4* | osf5*)
15692       lt_prog_compiler_wl_GCJ='-Wl,'
15693       # All OSF/1 code is PIC.
15694       lt_prog_compiler_static_GCJ='-non_shared'
15695       ;;
15696
15697     sco3.2v5*)
15698       lt_prog_compiler_pic_GCJ='-Kpic'
15699       lt_prog_compiler_static_GCJ='-dn'
15700       ;;
15701
15702     solaris*)
15703       lt_prog_compiler_wl_GCJ='-Wl,'
15704       lt_prog_compiler_pic_GCJ='-KPIC'
15705       lt_prog_compiler_static_GCJ='-Bstatic'
15706       ;;
15707
15708     sunos4*)
15709       lt_prog_compiler_wl_GCJ='-Qoption ld '
15710       lt_prog_compiler_pic_GCJ='-PIC'
15711       lt_prog_compiler_static_GCJ='-Bstatic'
15712       ;;
15713
15714     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15715       lt_prog_compiler_wl_GCJ='-Wl,'
15716       lt_prog_compiler_pic_GCJ='-KPIC'
15717       lt_prog_compiler_static_GCJ='-Bstatic'
15718       ;;
15719
15720     sysv4*MP*)
15721       if test -d /usr/nec ;then
15722         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15723         lt_prog_compiler_static_GCJ='-Bstatic'
15724       fi
15725       ;;
15726
15727     uts4*)
15728       lt_prog_compiler_pic_GCJ='-pic'
15729       lt_prog_compiler_static_GCJ='-Bstatic'
15730       ;;
15731
15732     *)
15733       lt_prog_compiler_can_build_shared_GCJ=no
15734       ;;
15735     esac
15736   fi
15737
15738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15739 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15740
15741 #
15742 # Check to make sure the PIC flag actually works.
15743 #
15744 if test -n "$lt_prog_compiler_pic_GCJ"; then
15745   
15746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15748 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   lt_prog_compiler_pic_works_GCJ=no
15752   ac_outfile=conftest.$ac_objext
15753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15754    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15755    # Insert the option either (1) after the last *FLAGS variable, or
15756    # (2) before a word containing "conftest.", or (3) at the end.
15757    # Note that $ac_compile itself does not contain backslashes and begins
15758    # with a dollar sign (not a hyphen), so the echo should work correctly.
15759    # The option is referenced via a variable to avoid confusing sed.
15760    lt_compile=`echo "$ac_compile" | $SED \
15761    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15763    -e 's:$: $lt_compiler_flag:'`
15764    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15765    (eval "$lt_compile" 2>conftest.err)
15766    ac_status=$?
15767    cat conftest.err >&5
15768    echo "$as_me:__oline__: \$? = $ac_status" >&5
15769    if (exit $ac_status) && test -s "$ac_outfile"; then
15770      # The compiler can only warn and ignore the option if not recognized
15771      # So say no if there are warnings
15772      if test ! -s conftest.err; then
15773        lt_prog_compiler_pic_works_GCJ=yes
15774      fi
15775    fi
15776    $rm conftest*
15777
15778 fi
15779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15780 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15781
15782 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15783     case $lt_prog_compiler_pic_GCJ in
15784      "" | " "*) ;;
15785      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15786      esac
15787 else
15788     lt_prog_compiler_pic_GCJ=
15789      lt_prog_compiler_can_build_shared_GCJ=no
15790 fi
15791
15792 fi
15793 case "$host_os" in
15794   # For platforms which do not support PIC, -DPIC is meaningless:
15795   *djgpp*)
15796     lt_prog_compiler_pic_GCJ=
15797     ;;
15798   *)
15799     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15800     ;;
15801 esac
15802
15803 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15805 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15806   echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808   lt_cv_prog_compiler_c_o_GCJ=no
15809    $rm -r conftest 2>/dev/null
15810    mkdir conftest
15811    cd conftest
15812    mkdir out
15813    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15814
15815    lt_compiler_flag="-o out/conftest2.$ac_objext"
15816    # Insert the option either (1) after the last *FLAGS variable, or
15817    # (2) before a word containing "conftest.", or (3) at the end.
15818    # Note that $ac_compile itself does not contain backslashes and begins
15819    # with a dollar sign (not a hyphen), so the echo should work correctly.
15820    lt_compile=`echo "$ac_compile" | $SED \
15821    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15823    -e 's:$: $lt_compiler_flag:'`
15824    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15825    (eval "$lt_compile" 2>out/conftest.err)
15826    ac_status=$?
15827    cat out/conftest.err >&5
15828    echo "$as_me:__oline__: \$? = $ac_status" >&5
15829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15830    then
15831      # The compiler can only warn and ignore the option if not recognized
15832      # So say no if there are warnings
15833      if test ! -s out/conftest.err; then
15834        lt_cv_prog_compiler_c_o_GCJ=yes
15835      fi
15836    fi
15837    chmod u+w .
15838    $rm conftest*
15839    # SGI C++ compiler will create directory out/ii_files/ for
15840    # template instantiation
15841    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15842    $rm out/* && rmdir out
15843    cd ..
15844    rmdir conftest
15845    $rm conftest*
15846
15847 fi
15848 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15850
15851
15852 hard_links="nottested"
15853 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15854   # do not overwrite the value of need_locks provided by the user
15855   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15857   hard_links=yes
15858   $rm conftest*
15859   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15860   touch conftest.a
15861   ln conftest.a conftest.b 2>&5 || hard_links=no
15862   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15863   echo "$as_me:$LINENO: result: $hard_links" >&5
15864 echo "${ECHO_T}$hard_links" >&6
15865   if test "$hard_links" = no; then
15866     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15868     need_locks=warn
15869   fi
15870 else
15871   need_locks=no
15872 fi
15873
15874 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15875 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15876
15877   runpath_var=
15878   allow_undefined_flag_GCJ=
15879   enable_shared_with_static_runtimes_GCJ=no
15880   archive_cmds_GCJ=
15881   archive_expsym_cmds_GCJ=
15882   old_archive_From_new_cmds_GCJ=
15883   old_archive_from_expsyms_cmds_GCJ=
15884   export_dynamic_flag_spec_GCJ=
15885   whole_archive_flag_spec_GCJ=
15886   thread_safe_flag_spec_GCJ=
15887   hardcode_libdir_flag_spec_GCJ=
15888   hardcode_libdir_flag_spec_ld_GCJ=
15889   hardcode_libdir_separator_GCJ=
15890   hardcode_direct_GCJ=no
15891   hardcode_minus_L_GCJ=no
15892   hardcode_shlibpath_var_GCJ=unsupported
15893   link_all_deplibs_GCJ=unknown
15894   hardcode_automatic_GCJ=no
15895   module_cmds_GCJ=
15896   module_expsym_cmds_GCJ=
15897   always_export_symbols_GCJ=no
15898   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15899   # include_expsyms should be a list of space-separated symbols to be *always*
15900   # included in the symbol list
15901   include_expsyms_GCJ=
15902   # exclude_expsyms can be an extended regexp of symbols to exclude
15903   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15904   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15905   # as well as any symbol that contains `d'.
15906   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15907   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15908   # platforms (ab)use it in PIC code, but their linkers get confused if
15909   # the symbol is explicitly referenced.  Since portable code cannot
15910   # rely on this symbol name, it's probably fine to never include it in
15911   # preloaded symbol tables.
15912   extract_expsyms_cmds=
15913
15914   case $host_os in
15915   cygwin* | mingw* | pw32*)
15916     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15917     # When not using gcc, we currently assume that we are using
15918     # Microsoft Visual C++.
15919     if test "$GCC" != yes; then
15920       with_gnu_ld=no
15921     fi
15922     ;;
15923   openbsd*)
15924     with_gnu_ld=no
15925     ;;
15926   esac
15927
15928   ld_shlibs_GCJ=yes
15929   if test "$with_gnu_ld" = yes; then
15930     # If archive_cmds runs LD, not CC, wlarc should be empty
15931     wlarc='${wl}'
15932
15933     # See if GNU ld supports shared libraries.
15934     case $host_os in
15935     aix3* | aix4* | aix5*)
15936       # On AIX/PPC, the GNU linker is very broken
15937       if test "$host_cpu" != ia64; then
15938         ld_shlibs_GCJ=no
15939         cat <<EOF 1>&2
15940
15941 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15942 *** to be unable to reliably create shared libraries on AIX.
15943 *** Therefore, libtool is disabling shared libraries support.  If you
15944 *** really care for shared libraries, you may want to modify your PATH
15945 *** so that a non-GNU linker is found, and then restart.
15946
15947 EOF
15948       fi
15949       ;;
15950
15951     amigaos*)
15952       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)'
15953       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15954       hardcode_minus_L_GCJ=yes
15955
15956       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15957       # that the semantics of dynamic libraries on AmigaOS, at least up
15958       # to version 4, is to share data among multiple programs linked
15959       # with the same dynamic library.  Since this doesn't match the
15960       # behavior of shared libraries on other platforms, we can't use
15961       # them.
15962       ld_shlibs_GCJ=no
15963       ;;
15964
15965     beos*)
15966       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15967         allow_undefined_flag_GCJ=unsupported
15968         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15969         # support --undefined.  This deserves some investigation.  FIXME
15970         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15971       else
15972         ld_shlibs_GCJ=no
15973       fi
15974       ;;
15975
15976     cygwin* | mingw* | pw32*)
15977       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15978       # as there is no search path for DLLs.
15979       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15980       allow_undefined_flag_GCJ=unsupported
15981       always_export_symbols_GCJ=no
15982       enable_shared_with_static_runtimes_GCJ=yes
15983       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15984
15985       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15986         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15987         # If the export-symbols file already is a .def file (1st line
15988         # is EXPORTS), use it as is; otherwise, prepend...
15989         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15990           cp $export_symbols $output_objdir/$soname.def;
15991         else
15992           echo EXPORTS > $output_objdir/$soname.def;
15993           cat $export_symbols >> $output_objdir/$soname.def;
15994         fi~
15995         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15996       else
15997         ld_shlibs=no
15998       fi
15999       ;;
16000
16001     netbsd*)
16002       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16003         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16004         wlarc=
16005       else
16006         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16007         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16008       fi
16009       ;;
16010
16011     solaris* | sysv5*)
16012       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16013         ld_shlibs_GCJ=no
16014         cat <<EOF 1>&2
16015
16016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16017 *** create shared libraries on Solaris systems.  Therefore, libtool
16018 *** is disabling shared libraries support.  We urge you to upgrade GNU
16019 *** binutils to release 2.9.1 or newer.  Another option is to modify
16020 *** your PATH or compiler configuration so that the native linker is
16021 *** used, and then restart.
16022
16023 EOF
16024       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16027       else
16028         ld_shlibs_GCJ=no
16029       fi
16030       ;;
16031
16032     sunos4*)
16033       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16034       wlarc=
16035       hardcode_direct_GCJ=yes
16036       hardcode_shlibpath_var_GCJ=no
16037       ;;
16038
16039   linux*)
16040     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16041         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042         archive_cmds_GCJ="$tmp_archive_cmds"
16043       supports_anon_versioning=no
16044       case `$LD -v 2>/dev/null` in
16045         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16046         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16047         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16048         *\ 2.11.*) ;; # other 2.11 versions
16049         *) supports_anon_versioning=yes ;;
16050       esac
16051       if test $supports_anon_versioning = yes; then
16052         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16054 $echo "local: *; };" >> $output_objdir/$libname.ver~
16055         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16056       else
16057         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16058       fi
16059     else
16060       ld_shlibs_GCJ=no
16061     fi
16062     ;;
16063
16064     *)
16065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068       else
16069         ld_shlibs_GCJ=no
16070       fi
16071       ;;
16072     esac
16073
16074     if test "$ld_shlibs_GCJ" = yes; then
16075       runpath_var=LD_RUN_PATH
16076       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16077       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16078       # ancient GNU ld didn't support --whole-archive et. al.
16079       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16080         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16081       else
16082         whole_archive_flag_spec_GCJ=
16083       fi
16084     fi
16085   else
16086     # PORTME fill in a description of your system's linker (not GNU ld)
16087     case $host_os in
16088     aix3*)
16089       allow_undefined_flag_GCJ=unsupported
16090       always_export_symbols_GCJ=yes
16091       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'
16092       # Note: this linker hardcodes the directories in LIBPATH if there
16093       # are no directories specified by -L.
16094       hardcode_minus_L_GCJ=yes
16095       if test "$GCC" = yes && test -z "$link_static_flag"; then
16096         # Neither direct hardcoding nor static linking is supported with a
16097         # broken collect2.
16098         hardcode_direct_GCJ=unsupported
16099       fi
16100       ;;
16101
16102     aix4* | aix5*)
16103       if test "$host_cpu" = ia64; then
16104         # On IA64, the linker does run time linking by default, so we don't
16105         # have to do anything special.
16106         aix_use_runtimelinking=no
16107         exp_sym_flag='-Bexport'
16108         no_entry_flag=""
16109       else
16110         # If we're using GNU nm, then we don't want the "-C" option.
16111         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16112         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16113           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'
16114         else
16115           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'
16116         fi
16117         aix_use_runtimelinking=no
16118
16119         # Test if we are trying to use run time linking or normal
16120         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16121         # need to do runtime linking.
16122         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16123           for ld_flag in $LDFLAGS; do
16124           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16125             aix_use_runtimelinking=yes
16126             break
16127           fi
16128           done
16129         esac
16130
16131         exp_sym_flag='-bexport'
16132         no_entry_flag='-bnoentry'
16133       fi
16134
16135       # When large executables or shared objects are built, AIX ld can
16136       # have problems creating the table of contents.  If linking a library
16137       # or program results in "error TOC overflow" add -mminimal-toc to
16138       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16139       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16140
16141       archive_cmds_GCJ=''
16142       hardcode_direct_GCJ=yes
16143       hardcode_libdir_separator_GCJ=':'
16144       link_all_deplibs_GCJ=yes
16145
16146       if test "$GCC" = yes; then
16147         case $host_os in aix4.012|aix4.012.*)
16148         # We only want to do this on AIX 4.2 and lower, the check
16149         # below for broken collect2 doesn't work under 4.3+
16150           collect2name=`${CC} -print-prog-name=collect2`
16151           if test -f "$collect2name" && \
16152            strings "$collect2name" | grep resolve_lib_name >/dev/null
16153           then
16154           # We have reworked collect2
16155           hardcode_direct_GCJ=yes
16156           else
16157           # We have old collect2
16158           hardcode_direct_GCJ=unsupported
16159           # It fails to find uninstalled libraries when the uninstalled
16160           # path is not listed in the libpath.  Setting hardcode_minus_L
16161           # to unsupported forces relinking
16162           hardcode_minus_L_GCJ=yes
16163           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164           hardcode_libdir_separator_GCJ=
16165           fi
16166         esac
16167         shared_flag='-shared'
16168       else
16169         # not using gcc
16170         if test "$host_cpu" = ia64; then
16171         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16172         # chokes on -Wl,-G. The following line is correct:
16173           shared_flag='-G'
16174         else
16175         if test "$aix_use_runtimelinking" = yes; then
16176             shared_flag='${wl}-G'
16177           else
16178             shared_flag='${wl}-bM:SRE'
16179         fi
16180         fi
16181       fi
16182
16183       # It seems that -bexpall does not export symbols beginning with
16184       # underscore (_), so it is better to generate a list of symbols to export.
16185       always_export_symbols_GCJ=yes
16186       if test "$aix_use_runtimelinking" = yes; then
16187         # Warning - without using the other runtime loading flags (-brtl),
16188         # -berok will link without error, but may produce a broken library.
16189         allow_undefined_flag_GCJ='-berok'
16190        # Determine the default libpath from the value encoded in an empty executable.
16191        cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197
16198 int
16199 main ()
16200 {
16201
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208   (eval $ac_link) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag"
16216                          || test ! -s conftest.err'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest$ac_exeext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228   
16229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16230 }'`
16231 # Check for a 64-bit object if we didn't find anything.
16232 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; }
16233 }'`; fi
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 fi
16239 rm -f conftest.err conftest.$ac_objext \
16240       conftest$ac_exeext conftest.$ac_ext
16241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16242
16243        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16244         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"
16245        else
16246         if test "$host_cpu" = ia64; then
16247           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16248           allow_undefined_flag_GCJ="-z nodefs"
16249           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"
16250         else
16251          # Determine the default libpath from the value encoded in an empty executable.
16252          cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h.  */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h.  */
16258
16259 int
16260 main ()
16261 {
16262
16263   ;
16264   return 0;
16265 }
16266 _ACEOF
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16269   (eval $ac_link) 2>conftest.er1
16270   ac_status=$?
16271   grep -v '^ *+' conftest.er1 >conftest.err
16272   rm -f conftest.er1
16273   cat conftest.err >&5
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); } &&
16276          { ac_try='test -z "$ac_c_werror_flag"
16277                          || test ! -s conftest.err'
16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279   (eval $ac_try) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; } &&
16283          { ac_try='test -s conftest$ac_exeext'
16284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285   (eval $ac_try) 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; }; then
16289   
16290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16291 }'`
16292 # Check for a 64-bit object if we didn't find anything.
16293 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; }
16294 }'`; fi
16295 else
16296   echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299 fi
16300 rm -f conftest.err conftest.$ac_objext \
16301       conftest$ac_exeext conftest.$ac_ext
16302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16303
16304          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16305           # Warning - without using the other run time loading flags,
16306           # -berok will link without error, but may produce a broken library.
16307           no_undefined_flag_GCJ=' ${wl}-bernotok'
16308           allow_undefined_flag_GCJ=' ${wl}-berok'
16309           # -bexpall does not export symbols beginning with underscore (_)
16310           always_export_symbols_GCJ=yes
16311           # Exported symbols can be pulled into shared objects from archives
16312           whole_archive_flag_spec_GCJ=' '
16313           archive_cmds_need_lc_GCJ=yes
16314           # This is similar to how AIX traditionally builds it's shared libraries.
16315           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'
16316         fi
16317       fi
16318       ;;
16319
16320     amigaos*)
16321       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)'
16322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323       hardcode_minus_L_GCJ=yes
16324       # see comment about different semantics on the GNU ld section
16325       ld_shlibs_GCJ=no
16326       ;;
16327
16328     bsdi4*)
16329       export_dynamic_flag_spec_GCJ=-rdynamic
16330       ;;
16331
16332     cygwin* | mingw* | pw32*)
16333       # When not using gcc, we currently assume that we are using
16334       # Microsoft Visual C++.
16335       # hardcode_libdir_flag_spec is actually meaningless, as there is
16336       # no search path for DLLs.
16337       hardcode_libdir_flag_spec_GCJ=' '
16338       allow_undefined_flag_GCJ=unsupported
16339       # Tell ltmain to make .lib files, not .a files.
16340       libext=lib
16341       # Tell ltmain to make .dll files, not .so files.
16342       shrext_cmds=".dll"
16343       # FIXME: Setting linknames here is a bad hack.
16344       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16345       # The linker will automatically build a .lib file if we build a DLL.
16346       old_archive_From_new_cmds_GCJ='true'
16347       # FIXME: Should let the user specify the lib program.
16348       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16349       fix_srcfile_path='`cygpath -w "$srcfile"`'
16350       enable_shared_with_static_runtimes_GCJ=yes
16351       ;;
16352
16353     darwin* | rhapsody*)
16354     if test "$GXX" = yes ; then
16355       archive_cmds_need_lc_GCJ=no
16356       case "$host_os" in
16357       rhapsody* | darwin1.[012])
16358         allow_undefined_flag_GCJ='-undefined suppress'
16359         ;;
16360       *) # Darwin 1.3 on
16361       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16362         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16363       else
16364         case ${MACOSX_DEPLOYMENT_TARGET} in
16365           10.[012])
16366             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16367             ;;
16368           10.*)
16369             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16370             ;;
16371         esac
16372       fi
16373         ;;
16374       esac
16375         lt_int_apple_cc_single_mod=no
16376         output_verbose_link_cmd='echo'
16377         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16378           lt_int_apple_cc_single_mod=yes
16379         fi
16380         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16381           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16382         else
16383         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'
16384       fi
16385       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16386       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16387         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16388           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}'
16389         else
16390           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}'
16391         fi
16392           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}'
16393       hardcode_direct_GCJ=no
16394       hardcode_automatic_GCJ=yes
16395       hardcode_shlibpath_var_GCJ=unsupported
16396       whole_archive_flag_spec_GCJ='-all_load $convenience'
16397       link_all_deplibs_GCJ=yes
16398     else
16399       ld_shlibs_GCJ=no
16400     fi
16401       ;;
16402
16403     dgux*)
16404       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16406       hardcode_shlibpath_var_GCJ=no
16407       ;;
16408
16409     freebsd1*)
16410       ld_shlibs_GCJ=no
16411       ;;
16412
16413     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16414     # support.  Future versions do this automatically, but an explicit c++rt0.o
16415     # does not break anything, and helps significantly (at the cost of a little
16416     # extra space).
16417     freebsd2.2*)
16418       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16419       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16420       hardcode_direct_GCJ=yes
16421       hardcode_shlibpath_var_GCJ=no
16422       ;;
16423
16424     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16425     freebsd2*)
16426       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16427       hardcode_direct_GCJ=yes
16428       hardcode_minus_L_GCJ=yes
16429       hardcode_shlibpath_var_GCJ=no
16430       ;;
16431
16432     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16433     freebsd* | kfreebsd*-gnu)
16434       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16435       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16436       hardcode_direct_GCJ=yes
16437       hardcode_shlibpath_var_GCJ=no
16438       ;;
16439
16440     hpux9*)
16441       if test "$GCC" = yes; then
16442         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'
16443       else
16444         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'
16445       fi
16446       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16447       hardcode_libdir_separator_GCJ=:
16448       hardcode_direct_GCJ=yes
16449
16450       # hardcode_minus_L: Not really in the search PATH,
16451       # but as the default location of the library.
16452       hardcode_minus_L_GCJ=yes
16453       export_dynamic_flag_spec_GCJ='${wl}-E'
16454       ;;
16455
16456     hpux10* | hpux11*)
16457       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16458         case "$host_cpu" in
16459         hppa*64*|ia64*)
16460           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16461           ;;
16462         *)
16463           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16464           ;;
16465         esac
16466       else
16467         case "$host_cpu" in
16468         hppa*64*|ia64*)
16469           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16470           ;;
16471         *)
16472           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16473           ;;
16474         esac
16475       fi
16476       if test "$with_gnu_ld" = no; then
16477         case "$host_cpu" in
16478         hppa*64*)
16479           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16480           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16481           hardcode_libdir_separator_GCJ=:
16482           hardcode_direct_GCJ=no
16483           hardcode_shlibpath_var_GCJ=no
16484           ;;
16485         ia64*)
16486           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16487           hardcode_direct_GCJ=no
16488           hardcode_shlibpath_var_GCJ=no
16489
16490           # hardcode_minus_L: Not really in the search PATH,
16491           # but as the default location of the library.
16492           hardcode_minus_L_GCJ=yes
16493           ;;
16494         *)
16495           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16496           hardcode_libdir_separator_GCJ=:
16497           hardcode_direct_GCJ=yes
16498           export_dynamic_flag_spec_GCJ='${wl}-E'
16499
16500           # hardcode_minus_L: Not really in the search PATH,
16501           # but as the default location of the library.
16502           hardcode_minus_L_GCJ=yes
16503           ;;
16504         esac
16505       fi
16506       ;;
16507
16508     irix5* | irix6* | nonstopux*)
16509       if test "$GCC" = yes; then
16510         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'
16511       else
16512         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'
16513         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16514       fi
16515       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16516       hardcode_libdir_separator_GCJ=:
16517       link_all_deplibs_GCJ=yes
16518       ;;
16519
16520     netbsd*)
16521       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16522         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16523       else
16524         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16525       fi
16526       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16527       hardcode_direct_GCJ=yes
16528       hardcode_shlibpath_var_GCJ=no
16529       ;;
16530
16531     newsos6)
16532       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533       hardcode_direct_GCJ=yes
16534       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16535       hardcode_libdir_separator_GCJ=:
16536       hardcode_shlibpath_var_GCJ=no
16537       ;;
16538
16539     openbsd*)
16540       hardcode_direct_GCJ=yes
16541       hardcode_shlibpath_var_GCJ=no
16542       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16543         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16544         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16545         export_dynamic_flag_spec_GCJ='${wl}-E'
16546       else
16547        case $host_os in
16548          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16549            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16550            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16551            ;;
16552          *)
16553            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16554            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16555            ;;
16556        esac
16557       fi
16558       ;;
16559
16560     os2*)
16561       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16562       hardcode_minus_L_GCJ=yes
16563       allow_undefined_flag_GCJ=unsupported
16564       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'
16565       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16566       ;;
16567
16568     osf3*)
16569       if test "$GCC" = yes; then
16570         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16571         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'
16572       else
16573         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16574         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'
16575       fi
16576       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16577       hardcode_libdir_separator_GCJ=:
16578       ;;
16579
16580     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16581       if test "$GCC" = yes; then
16582         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16583         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'
16584         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16585       else
16586         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16587         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'
16588         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~
16589         $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'
16590
16591         # Both c and cxx compiler support -rpath directly
16592         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16593       fi
16594       hardcode_libdir_separator_GCJ=:
16595       ;;
16596
16597     sco3.2v5*)
16598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599       hardcode_shlibpath_var_GCJ=no
16600       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16601       runpath_var=LD_RUN_PATH
16602       hardcode_runpath_var=yes
16603       ;;
16604
16605     solaris*)
16606       no_undefined_flag_GCJ=' -z text'
16607       if test "$GCC" = yes; then
16608         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16610           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16611       else
16612         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16614         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16615       fi
16616       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16617       hardcode_shlibpath_var_GCJ=no
16618       case $host_os in
16619       solaris2.[0-5] | solaris2.[0-5].*) ;;
16620       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16621         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16622       esac
16623       link_all_deplibs_GCJ=yes
16624       ;;
16625
16626     sunos4*)
16627       if test "x$host_vendor" = xsequent; then
16628         # Use $CC to link under sequent, because it throws in some extra .o
16629         # files that make .init and .fini sections work.
16630         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16631       else
16632         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16633       fi
16634       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635       hardcode_direct_GCJ=yes
16636       hardcode_minus_L_GCJ=yes
16637       hardcode_shlibpath_var_GCJ=no
16638       ;;
16639
16640     sysv4)
16641       case $host_vendor in
16642         sni)
16643           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644           hardcode_direct_GCJ=yes # is this really true???
16645         ;;
16646         siemens)
16647           ## LD is ld it makes a PLAMLIB
16648           ## CC just makes a GrossModule.
16649           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16650           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16651           hardcode_direct_GCJ=no
16652         ;;
16653         motorola)
16654           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16656         ;;
16657       esac
16658       runpath_var='LD_RUN_PATH'
16659       hardcode_shlibpath_var_GCJ=no
16660       ;;
16661
16662     sysv4.3*)
16663       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664       hardcode_shlibpath_var_GCJ=no
16665       export_dynamic_flag_spec_GCJ='-Bexport'
16666       ;;
16667
16668     sysv4*MP*)
16669       if test -d /usr/nec; then
16670         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671         hardcode_shlibpath_var_GCJ=no
16672         runpath_var=LD_RUN_PATH
16673         hardcode_runpath_var=yes
16674         ld_shlibs_GCJ=yes
16675       fi
16676       ;;
16677
16678     sysv4.2uw2*)
16679       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16680       hardcode_direct_GCJ=yes
16681       hardcode_minus_L_GCJ=no
16682       hardcode_shlibpath_var_GCJ=no
16683       hardcode_runpath_var=yes
16684       runpath_var=LD_RUN_PATH
16685       ;;
16686
16687    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16688       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16689       if test "$GCC" = yes; then
16690         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691       else
16692         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16693       fi
16694       runpath_var='LD_RUN_PATH'
16695       hardcode_shlibpath_var_GCJ=no
16696       ;;
16697
16698     sysv5*)
16699       no_undefined_flag_GCJ=' -z text'
16700       # $CC -shared without GNU ld will not create a library from C++
16701       # object files and a static libstdc++, better avoid it by now
16702       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16704                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16705       hardcode_libdir_flag_spec_GCJ=
16706       hardcode_shlibpath_var_GCJ=no
16707       runpath_var='LD_RUN_PATH'
16708       ;;
16709
16710     uts4*)
16711       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16713       hardcode_shlibpath_var_GCJ=no
16714       ;;
16715
16716     *)
16717       ld_shlibs_GCJ=no
16718       ;;
16719     esac
16720   fi
16721
16722 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16723 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16724 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16725
16726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16727 if test "$GCC" = yes; then
16728   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16729 fi
16730
16731 #
16732 # Do we need to explicitly link libc?
16733 #
16734 case "x$archive_cmds_need_lc_GCJ" in
16735 x|xyes)
16736   # Assume -lc should be added
16737   archive_cmds_need_lc_GCJ=yes
16738
16739   if test "$enable_shared" = yes && test "$GCC" = yes; then
16740     case $archive_cmds_GCJ in
16741     *'~'*)
16742       # FIXME: we may have to deal with multi-command sequences.
16743       ;;
16744     '$CC '*)
16745       # Test whether the compiler implicitly links with -lc since on some
16746       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16747       # to ld, don't add -lc before -lgcc.
16748       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16749 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16750       $rm conftest*
16751       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16752
16753       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754   (eval $ac_compile) 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } 2>conftest.err; then
16758         soname=conftest
16759         lib=conftest
16760         libobjs=conftest.$ac_objext
16761         deplibs=
16762         wl=$lt_prog_compiler_wl_GCJ
16763         compiler_flags=-v
16764         linker_flags=-v
16765         verstring=
16766         output_objdir=.
16767         libname=conftest
16768         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16769         allow_undefined_flag_GCJ=
16770         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16771   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }
16775         then
16776           archive_cmds_need_lc_GCJ=no
16777         else
16778           archive_cmds_need_lc_GCJ=yes
16779         fi
16780         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16781       else
16782         cat conftest.err 1>&5
16783       fi
16784       $rm conftest*
16785       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16786 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16787       ;;
16788     esac
16789   fi
16790   ;;
16791 esac
16792
16793 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16794 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16795 library_names_spec=
16796 libname_spec='lib$name'
16797 soname_spec=
16798 shrext_cmds=".so"
16799 postinstall_cmds=
16800 postuninstall_cmds=
16801 finish_cmds=
16802 finish_eval=
16803 shlibpath_var=
16804 shlibpath_overrides_runpath=unknown
16805 version_type=none
16806 dynamic_linker="$host_os ld.so"
16807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16808 if test "$GCC" = yes; then
16809   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16810   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16811     # if the path contains ";" then we assume it to be the separator
16812     # otherwise default to the standard path separator (i.e. ":") - it is
16813     # assumed that no part of a normal pathname contains ";" but that should
16814     # okay in the real world where ";" in dirpaths is itself problematic.
16815     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16816   else
16817     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16818   fi
16819 else
16820   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16821 fi
16822 need_lib_prefix=unknown
16823 hardcode_into_libs=no
16824
16825 # when you set need_version to no, make sure it does not cause -set_version
16826 # flags to be left without arguments
16827 need_version=unknown
16828
16829 case $host_os in
16830 aix3*)
16831   version_type=linux
16832   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16833   shlibpath_var=LIBPATH
16834
16835   # AIX 3 has no versioning support, so we append a major version to the name.
16836   soname_spec='${libname}${release}${shared_ext}$major'
16837   ;;
16838
16839 aix4* | aix5*)
16840   version_type=linux
16841   need_lib_prefix=no
16842   need_version=no
16843   hardcode_into_libs=yes
16844   if test "$host_cpu" = ia64; then
16845     # AIX 5 supports IA64
16846     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16847     shlibpath_var=LD_LIBRARY_PATH
16848   else
16849     # With GCC up to 2.95.x, collect2 would create an import file
16850     # for dependence libraries.  The import file would start with
16851     # the line `#! .'.  This would cause the generated library to
16852     # depend on `.', always an invalid library.  This was fixed in
16853     # development snapshots of GCC prior to 3.0.
16854     case $host_os in
16855       aix4 | aix4.[01] | aix4.[01].*)
16856       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16857            echo ' yes '
16858            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16859         :
16860       else
16861         can_build_shared=no
16862       fi
16863       ;;
16864     esac
16865     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16866     # soname into executable. Probably we can add versioning support to
16867     # collect2, so additional links can be useful in future.
16868     if test "$aix_use_runtimelinking" = yes; then
16869       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16870       # instead of lib<name>.a to let people know that these are not
16871       # typical AIX shared libraries.
16872       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873     else
16874       # We preserve .a as extension for shared libraries through AIX4.2
16875       # and later when we are not doing run time linking.
16876       library_names_spec='${libname}${release}.a $libname.a'
16877       soname_spec='${libname}${release}${shared_ext}$major'
16878     fi
16879     shlibpath_var=LIBPATH
16880   fi
16881   ;;
16882
16883 amigaos*)
16884   library_names_spec='$libname.ixlibrary $libname.a'
16885   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16886   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'
16887   ;;
16888
16889 beos*)
16890   library_names_spec='${libname}${shared_ext}'
16891   dynamic_linker="$host_os ld.so"
16892   shlibpath_var=LIBRARY_PATH
16893   ;;
16894
16895 bsdi4*)
16896   version_type=linux
16897   need_version=no
16898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899   soname_spec='${libname}${release}${shared_ext}$major'
16900   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16901   shlibpath_var=LD_LIBRARY_PATH
16902   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16903   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16904   # the default ld.so.conf also contains /usr/contrib/lib and
16905   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16906   # libtool to hard-code these into programs
16907   ;;
16908
16909 cygwin* | mingw* | pw32*)
16910   version_type=windows
16911   shrext_cmds=".dll"
16912   need_version=no
16913   need_lib_prefix=no
16914
16915   case $GCC,$host_os in
16916   yes,cygwin* | yes,mingw* | yes,pw32*)
16917     library_names_spec='$libname.dll.a'
16918     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16919     postinstall_cmds='base_file=`basename \${file}`~
16920       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16921       dldir=$destdir/`dirname \$dlpath`~
16922       test -d \$dldir || mkdir -p \$dldir~
16923       $install_prog $dir/$dlname \$dldir/$dlname'
16924     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16925       dlpath=$dir/\$dldll~
16926        $rm \$dlpath'
16927     shlibpath_overrides_runpath=yes
16928
16929     case $host_os in
16930     cygwin*)
16931       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16932       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16933       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16934       ;;
16935     mingw*)
16936       # MinGW DLLs use traditional 'lib' prefix
16937       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16938       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16939       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16940         # It is most probably a Windows format PATH printed by
16941         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16942         # path with ; separators, and with drive letters. We can handle the
16943         # drive letters (cygwin fileutils understands them), so leave them,
16944         # especially as we might pass files found there to a mingw objdump,
16945         # which wouldn't understand a cygwinified path. Ahh.
16946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16947       else
16948         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16949       fi
16950       ;;
16951     pw32*)
16952       # pw32 DLLs use 'pw' prefix rather than 'lib'
16953       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16954       ;;
16955     esac
16956     ;;
16957
16958   *)
16959     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16960     ;;
16961   esac
16962   dynamic_linker='Win32 ld.exe'
16963   # FIXME: first we should search . and the directory the executable is in
16964   shlibpath_var=PATH
16965   ;;
16966
16967 darwin* | rhapsody*)
16968   dynamic_linker="$host_os dyld"
16969   version_type=darwin
16970   need_lib_prefix=no
16971   need_version=no
16972   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16973   soname_spec='${libname}${release}${major}$shared_ext'
16974   shlibpath_overrides_runpath=yes
16975   shlibpath_var=DYLD_LIBRARY_PATH
16976   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16977   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16978   if test "$GCC" = yes; then
16979     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"`
16980   else
16981     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16982   fi
16983   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16984   ;;
16985
16986 dgux*)
16987   version_type=linux
16988   need_lib_prefix=no
16989   need_version=no
16990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16991   soname_spec='${libname}${release}${shared_ext}$major'
16992   shlibpath_var=LD_LIBRARY_PATH
16993   ;;
16994
16995 freebsd1*)
16996   dynamic_linker=no
16997   ;;
16998
16999 kfreebsd*-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   shlibpath_overrides_runpath=no
17007   hardcode_into_libs=yes
17008   dynamic_linker='GNU ld.so'
17009   ;;
17010
17011 freebsd*)
17012   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17013   version_type=freebsd-$objformat
17014   case $version_type in
17015     freebsd-elf*)
17016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17017       need_version=no
17018       need_lib_prefix=no
17019       ;;
17020     freebsd-*)
17021       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17022       need_version=yes
17023       ;;
17024   esac
17025   shlibpath_var=LD_LIBRARY_PATH
17026   case $host_os in
17027   freebsd2*)
17028     shlibpath_overrides_runpath=yes
17029     ;;
17030   freebsd3.01* | freebsdelf3.01*)
17031     shlibpath_overrides_runpath=yes
17032     hardcode_into_libs=yes
17033     ;;
17034   *) # from 3.2 on
17035     shlibpath_overrides_runpath=no
17036     hardcode_into_libs=yes
17037     ;;
17038   esac
17039   ;;
17040
17041 gnu*)
17042   version_type=linux
17043   need_lib_prefix=no
17044   need_version=no
17045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17046   soname_spec='${libname}${release}${shared_ext}$major'
17047   shlibpath_var=LD_LIBRARY_PATH
17048   hardcode_into_libs=yes
17049   ;;
17050
17051 hpux9* | hpux10* | hpux11*)
17052   # Give a soname corresponding to the major version so that dld.sl refuses to
17053   # link against other versions.
17054   version_type=sunos
17055   need_lib_prefix=no
17056   need_version=no
17057   case "$host_cpu" in
17058   ia64*)
17059     shrext_cmds='.so'
17060     hardcode_into_libs=yes
17061     dynamic_linker="$host_os dld.so"
17062     shlibpath_var=LD_LIBRARY_PATH
17063     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065     soname_spec='${libname}${release}${shared_ext}$major'
17066     if test "X$HPUX_IA64_MODE" = X32; then
17067       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17068     else
17069       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17070     fi
17071     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17072     ;;
17073    hppa*64*)
17074      shrext_cmds='.sl'
17075      hardcode_into_libs=yes
17076      dynamic_linker="$host_os dld.sl"
17077      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17078      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17079      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080      soname_spec='${libname}${release}${shared_ext}$major'
17081      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17082      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17083      ;;
17084    *)
17085     shrext_cmds='.sl'
17086     dynamic_linker="$host_os dld.sl"
17087     shlibpath_var=SHLIB_PATH
17088     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090     soname_spec='${libname}${release}${shared_ext}$major'
17091     ;;
17092   esac
17093   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17094   postinstall_cmds='chmod 555 $lib'
17095   ;;
17096
17097 irix5* | irix6* | nonstopux*)
17098   case $host_os in
17099     nonstopux*) version_type=nonstopux ;;
17100     *)
17101         if test "$lt_cv_prog_gnu_ld" = yes; then
17102                 version_type=linux
17103         else
17104                 version_type=irix
17105         fi ;;
17106   esac
17107   need_lib_prefix=no
17108   need_version=no
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17111   case $host_os in
17112   irix5* | nonstopux*)
17113     libsuff= shlibsuff=
17114     ;;
17115   *)
17116     case $LD in # libtool.m4 will add one of these switches to LD
17117     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17118       libsuff= shlibsuff= libmagic=32-bit;;
17119     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17120       libsuff=32 shlibsuff=N32 libmagic=N32;;
17121     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17122       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17123     *) libsuff= shlibsuff= libmagic=never-match;;
17124     esac
17125     ;;
17126   esac
17127   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17128   shlibpath_overrides_runpath=no
17129   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17130   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17131   hardcode_into_libs=yes
17132   ;;
17133
17134 # No shared lib support for Linux oldld, aout, or coff.
17135 linux*oldld* | linux*aout* | linux*coff*)
17136   dynamic_linker=no
17137   ;;
17138
17139 # This must be Linux ELF.
17140 linux*)
17141   version_type=linux
17142   need_lib_prefix=no
17143   need_version=no
17144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145   soname_spec='${libname}${release}${shared_ext}$major'
17146   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17147   shlibpath_var=LD_LIBRARY_PATH
17148   shlibpath_overrides_runpath=no
17149   # This implies no fast_install, which is unacceptable.
17150   # Some rework will be needed to allow for fast_install
17151   # before this can be enabled.
17152   hardcode_into_libs=yes
17153
17154   # find out which ABI we are using
17155   libsuff=
17156   case "$host_cpu" in
17157   x86_64*|s390x*|powerpc64*)
17158     echo '#line __oline__ "configure"' > conftest.$ac_ext
17159     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160   (eval $ac_compile) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; then
17164       case `/usr/bin/file conftest.$ac_objext` in
17165       *64-bit*)
17166         libsuff=64
17167         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17168         ;;
17169       esac
17170     fi
17171     rm -rf conftest*
17172     ;;
17173   esac
17174
17175   # Append ld.so.conf contents to the search path
17176   if test -f /etc/ld.so.conf; then
17177     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17178     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17179   fi
17180
17181   # We used to test for /lib/ld.so.1 and disable shared libraries on
17182   # powerpc, because MkLinux only supported shared libraries with the
17183   # GNU dynamic linker.  Since this was broken with cross compilers,
17184   # most powerpc-linux boxes support dynamic linking these days and
17185   # people can always --disable-shared, the test was removed, and we
17186   # assume the GNU/Linux dynamic linker is in use.
17187   dynamic_linker='GNU/Linux ld.so'
17188   ;;
17189
17190 knetbsd*-gnu)
17191   version_type=linux
17192   need_lib_prefix=no
17193   need_version=no
17194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195   soname_spec='${libname}${release}${shared_ext}$major'
17196   shlibpath_var=LD_LIBRARY_PATH
17197   shlibpath_overrides_runpath=no
17198   hardcode_into_libs=yes
17199   dynamic_linker='GNU ld.so'
17200   ;;
17201
17202 netbsd*)
17203   version_type=sunos
17204   need_lib_prefix=no
17205   need_version=no
17206   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17208     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17209     dynamic_linker='NetBSD (a.out) ld.so'
17210   else
17211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212     soname_spec='${libname}${release}${shared_ext}$major'
17213     dynamic_linker='NetBSD ld.elf_so'
17214   fi
17215   shlibpath_var=LD_LIBRARY_PATH
17216   shlibpath_overrides_runpath=yes
17217   hardcode_into_libs=yes
17218   ;;
17219
17220 newsos6)
17221   version_type=linux
17222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   shlibpath_overrides_runpath=yes
17225   ;;
17226
17227 nto-qnx*)
17228   version_type=linux
17229   need_lib_prefix=no
17230   need_version=no
17231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232   soname_spec='${libname}${release}${shared_ext}$major'
17233   shlibpath_var=LD_LIBRARY_PATH
17234   shlibpath_overrides_runpath=yes
17235   ;;
17236
17237 openbsd*)
17238   version_type=sunos
17239   need_lib_prefix=no
17240   need_version=yes
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17245     case $host_os in
17246       openbsd2.[89] | openbsd2.[89].*)
17247         shlibpath_overrides_runpath=no
17248         ;;
17249       *)
17250         shlibpath_overrides_runpath=yes
17251         ;;
17252       esac
17253   else
17254     shlibpath_overrides_runpath=yes
17255   fi
17256   ;;
17257
17258 os2*)
17259   libname_spec='$name'
17260   shrext_cmds=".dll"
17261   need_lib_prefix=no
17262   library_names_spec='$libname${shared_ext} $libname.a'
17263   dynamic_linker='OS/2 ld.exe'
17264   shlibpath_var=LIBPATH
17265   ;;
17266
17267 osf3* | osf4* | osf5*)
17268   version_type=osf
17269   need_lib_prefix=no
17270   need_version=no
17271   soname_spec='${libname}${release}${shared_ext}$major'
17272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273   shlibpath_var=LD_LIBRARY_PATH
17274   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17275   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17276   ;;
17277
17278 sco3.2v5*)
17279   version_type=osf
17280   soname_spec='${libname}${release}${shared_ext}$major'
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282   shlibpath_var=LD_LIBRARY_PATH
17283   ;;
17284
17285 solaris*)
17286   version_type=linux
17287   need_lib_prefix=no
17288   need_version=no
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290   soname_spec='${libname}${release}${shared_ext}$major'
17291   shlibpath_var=LD_LIBRARY_PATH
17292   shlibpath_overrides_runpath=yes
17293   hardcode_into_libs=yes
17294   # ldd complains unless libraries are executable
17295   postinstall_cmds='chmod +x $lib'
17296   ;;
17297
17298 sunos4*)
17299   version_type=sunos
17300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17302   shlibpath_var=LD_LIBRARY_PATH
17303   shlibpath_overrides_runpath=yes
17304   if test "$with_gnu_ld" = yes; then
17305     need_lib_prefix=no
17306   fi
17307   need_version=yes
17308   ;;
17309
17310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17311   version_type=linux
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313   soname_spec='${libname}${release}${shared_ext}$major'
17314   shlibpath_var=LD_LIBRARY_PATH
17315   case $host_vendor in
17316     sni)
17317       shlibpath_overrides_runpath=no
17318       need_lib_prefix=no
17319       export_dynamic_flag_spec='${wl}-Blargedynsym'
17320       runpath_var=LD_RUN_PATH
17321       ;;
17322     siemens)
17323       need_lib_prefix=no
17324       ;;
17325     motorola)
17326       need_lib_prefix=no
17327       need_version=no
17328       shlibpath_overrides_runpath=no
17329       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17330       ;;
17331   esac
17332   ;;
17333
17334 sysv4*MP*)
17335   if test -d /usr/nec ;then
17336     version_type=linux
17337     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17338     soname_spec='$libname${shared_ext}.$major'
17339     shlibpath_var=LD_LIBRARY_PATH
17340   fi
17341   ;;
17342
17343 uts4*)
17344   version_type=linux
17345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346   soname_spec='${libname}${release}${shared_ext}$major'
17347   shlibpath_var=LD_LIBRARY_PATH
17348   ;;
17349
17350 *)
17351   dynamic_linker=no
17352   ;;
17353 esac
17354 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17355 echo "${ECHO_T}$dynamic_linker" >&6
17356 test "$dynamic_linker" = no && can_build_shared=no
17357
17358 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17360 hardcode_action_GCJ=
17361 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17362    test -n "$runpath_var GCJ" || \
17363    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17364
17365   # We can hardcode non-existant directories.
17366   if test "$hardcode_direct_GCJ" != no &&
17367      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17368      # have to relink, otherwise we might link with an installed library
17369      # when we should be linking with a yet-to-be-installed one
17370      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17371      test "$hardcode_minus_L_GCJ" != no; then
17372     # Linking always hardcodes the temporary library directory.
17373     hardcode_action_GCJ=relink
17374   else
17375     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17376     hardcode_action_GCJ=immediate
17377   fi
17378 else
17379   # We cannot hardcode anything, or else we can only hardcode existing
17380   # directories.
17381   hardcode_action_GCJ=unsupported
17382 fi
17383 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17384 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17385
17386 if test "$hardcode_action_GCJ" = relink; then
17387   # Fast installation is not supported
17388   enable_fast_install=no
17389 elif test "$shlibpath_overrides_runpath" = yes ||
17390      test "$enable_shared" = no; then
17391   # Fast installation is not necessary
17392   enable_fast_install=needless
17393 fi
17394
17395 striplib=
17396 old_striplib=
17397 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17400   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17401   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17402   echo "$as_me:$LINENO: result: yes" >&5
17403 echo "${ECHO_T}yes" >&6
17404 else
17405 # FIXME - insert some real tests, host_os isn't really good enough
17406   case $host_os in
17407    darwin*)
17408        if test -n "$STRIP" ; then
17409          striplib="$STRIP -x"
17410          echo "$as_me:$LINENO: result: yes" >&5
17411 echo "${ECHO_T}yes" >&6
17412        else
17413   echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6
17415 fi
17416        ;;
17417    *)
17418   echo "$as_me:$LINENO: result: no" >&5
17419 echo "${ECHO_T}no" >&6
17420     ;;
17421   esac
17422 fi
17423
17424 if test "x$enable_dlopen" != xyes; then
17425   enable_dlopen=unknown
17426   enable_dlopen_self=unknown
17427   enable_dlopen_self_static=unknown
17428 else
17429   lt_cv_dlopen=no
17430   lt_cv_dlopen_libs=
17431
17432   case $host_os in
17433   beos*)
17434     lt_cv_dlopen="load_add_on"
17435     lt_cv_dlopen_libs=
17436     lt_cv_dlopen_self=yes
17437     ;;
17438
17439   mingw* | pw32*)
17440     lt_cv_dlopen="LoadLibrary"
17441     lt_cv_dlopen_libs=
17442    ;;
17443
17444   cygwin*)
17445     lt_cv_dlopen="dlopen"
17446     lt_cv_dlopen_libs=
17447    ;;
17448
17449   darwin*)
17450   # if libdl is installed we need to link against it
17451     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   ac_check_lib_save_LIBS=$LIBS
17457 LIBS="-ldl  $LIBS"
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h.  */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h.  */
17464
17465 /* Override any gcc2 internal prototype to avoid an error.  */
17466 #ifdef __cplusplus
17467 extern "C"
17468 #endif
17469 /* We use char because int might match the return type of a gcc2
17470    builtin and then its argument prototype would still apply.  */
17471 char dlopen ();
17472 int
17473 main ()
17474 {
17475 dlopen ();
17476   ;
17477   return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482   (eval $ac_link) 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -z "$ac_c_werror_flag"
17490                          || test ! -s conftest.err'
17491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492   (eval $ac_try) 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; } &&
17496          { ac_try='test -s conftest$ac_exeext'
17497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498   (eval $ac_try) 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502   ac_cv_lib_dl_dlopen=yes
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ac_cv_lib_dl_dlopen=no
17508 fi
17509 rm -f conftest.err conftest.$ac_objext \
17510       conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17512 fi
17513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17515 if test $ac_cv_lib_dl_dlopen = yes; then
17516   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17517 else
17518   
17519     lt_cv_dlopen="dyld"
17520     lt_cv_dlopen_libs=
17521     lt_cv_dlopen_self=yes
17522     
17523 fi
17524
17525    ;;
17526
17527   *)
17528     echo "$as_me:$LINENO: checking for shl_load" >&5
17529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17530 if test "${ac_cv_func_shl_load+set}" = set; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17541 #define shl_load innocuous_shl_load
17542
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char shl_load (); below.
17545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546     <limits.h> exists even on freestanding compilers.  */
17547
17548 #ifdef __STDC__
17549 # include <limits.h>
17550 #else
17551 # include <assert.h>
17552 #endif
17553
17554 #undef shl_load
17555
17556 /* Override any gcc2 internal prototype to avoid an error.  */
17557 #ifdef __cplusplus
17558 extern "C"
17559 {
17560 #endif
17561 /* We use char because int might match the return type of a gcc2
17562    builtin and then its argument prototype would still apply.  */
17563 char shl_load ();
17564 /* The GNU C library defines this for functions which it implements
17565     to always fail with ENOSYS.  Some functions are actually named
17566     something starting with __ and the normal name is an alias.  */
17567 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17568 choke me
17569 #else
17570 char (*f) () = shl_load;
17571 #endif
17572 #ifdef __cplusplus
17573 }
17574 #endif
17575
17576 int
17577 main ()
17578 {
17579 return f != shl_load;
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586   (eval $ac_link) 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_c_werror_flag"
17594                          || test ! -s conftest.err'
17595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596   (eval $ac_try) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; } &&
17600          { ac_try='test -s conftest$ac_exeext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   ac_cv_func_shl_load=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 ac_cv_func_shl_load=no
17612 fi
17613 rm -f conftest.err conftest.$ac_objext \
17614       conftest$ac_exeext conftest.$ac_ext
17615 fi
17616 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17618 if test $ac_cv_func_shl_load = yes; then
17619   lt_cv_dlopen="shl_load"
17620 else
17621   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   ac_check_lib_save_LIBS=$LIBS
17627 LIBS="-ldld  $LIBS"
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h.  */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h.  */
17634
17635 /* Override any gcc2 internal prototype to avoid an error.  */
17636 #ifdef __cplusplus
17637 extern "C"
17638 #endif
17639 /* We use char because int might match the return type of a gcc2
17640    builtin and then its argument prototype would still apply.  */
17641 char shl_load ();
17642 int
17643 main ()
17644 {
17645 shl_load ();
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652   (eval $ac_link) 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -z "$ac_c_werror_flag"
17660                          || test ! -s conftest.err'
17661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662   (eval $ac_try) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; } &&
17666          { ac_try='test -s conftest$ac_exeext'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; }; then
17672   ac_cv_lib_dld_shl_load=yes
17673 else
17674   echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 ac_cv_lib_dld_shl_load=no
17678 fi
17679 rm -f conftest.err conftest.$ac_objext \
17680       conftest$ac_exeext conftest.$ac_ext
17681 LIBS=$ac_check_lib_save_LIBS
17682 fi
17683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17685 if test $ac_cv_lib_dld_shl_load = yes; then
17686   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17687 else
17688   echo "$as_me:$LINENO: checking for dlopen" >&5
17689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17690 if test "${ac_cv_func_dlopen+set}" = set; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17701 #define dlopen innocuous_dlopen
17702
17703 /* System header to define __stub macros and hopefully few prototypes,
17704     which can conflict with char dlopen (); below.
17705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706     <limits.h> exists even on freestanding compilers.  */
17707
17708 #ifdef __STDC__
17709 # include <limits.h>
17710 #else
17711 # include <assert.h>
17712 #endif
17713
17714 #undef dlopen
17715
17716 /* Override any gcc2 internal prototype to avoid an error.  */
17717 #ifdef __cplusplus
17718 extern "C"
17719 {
17720 #endif
17721 /* We use char because int might match the return type of a gcc2
17722    builtin and then its argument prototype would still apply.  */
17723 char dlopen ();
17724 /* The GNU C library defines this for functions which it implements
17725     to always fail with ENOSYS.  Some functions are actually named
17726     something starting with __ and the normal name is an alias.  */
17727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17728 choke me
17729 #else
17730 char (*f) () = dlopen;
17731 #endif
17732 #ifdef __cplusplus
17733 }
17734 #endif
17735
17736 int
17737 main ()
17738 {
17739 return f != dlopen;
17740   ;
17741   return 0;
17742 }
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746   (eval $ac_link) 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } &&
17753          { ac_try='test -z "$ac_c_werror_flag"
17754                          || test ! -s conftest.err'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; } &&
17760          { ac_try='test -s conftest$ac_exeext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   ac_cv_func_dlopen=yes
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ac_cv_func_dlopen=no
17772 fi
17773 rm -f conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775 fi
17776 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17778 if test $ac_cv_func_dlopen = yes; then
17779   lt_cv_dlopen="dlopen"
17780 else
17781   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   ac_check_lib_save_LIBS=$LIBS
17787 LIBS="-ldl  $LIBS"
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794
17795 /* Override any gcc2 internal prototype to avoid an error.  */
17796 #ifdef __cplusplus
17797 extern "C"
17798 #endif
17799 /* We use char because int might match the return type of a gcc2
17800    builtin and then its argument prototype would still apply.  */
17801 char dlopen ();
17802 int
17803 main ()
17804 {
17805 dlopen ();
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812   (eval $ac_link) 2>conftest.er1
17813   ac_status=$?
17814   grep -v '^ *+' conftest.er1 >conftest.err
17815   rm -f conftest.er1
17816   cat conftest.err >&5
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); } &&
17819          { ac_try='test -z "$ac_c_werror_flag"
17820                          || test ! -s conftest.err'
17821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822   (eval $ac_try) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; } &&
17826          { ac_try='test -s conftest$ac_exeext'
17827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828   (eval $ac_try) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; }; then
17832   ac_cv_lib_dl_dlopen=yes
17833 else
17834   echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17836
17837 ac_cv_lib_dl_dlopen=no
17838 fi
17839 rm -f conftest.err conftest.$ac_objext \
17840       conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17842 fi
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17845 if test $ac_cv_lib_dl_dlopen = yes; then
17846   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17847 else
17848   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   ac_check_lib_save_LIBS=$LIBS
17854 LIBS="-lsvld  $LIBS"
17855 cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h.  */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h.  */
17861
17862 /* Override any gcc2 internal prototype to avoid an error.  */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 /* We use char because int might match the return type of a gcc2
17867    builtin and then its argument prototype would still apply.  */
17868 char dlopen ();
17869 int
17870 main ()
17871 {
17872 dlopen ();
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17879   (eval $ac_link) 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } &&
17886          { ac_try='test -z "$ac_c_werror_flag"
17887                          || test ! -s conftest.err'
17888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889   (eval $ac_try) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   ac_cv_lib_svld_dlopen=yes
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904 ac_cv_lib_svld_dlopen=no
17905 fi
17906 rm -f conftest.err conftest.$ac_objext \
17907       conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17909 fi
17910 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17912 if test $ac_cv_lib_svld_dlopen = yes; then
17913   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17914 else
17915   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17918   echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920   ac_check_lib_save_LIBS=$LIBS
17921 LIBS="-ldld  $LIBS"
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928
17929 /* Override any gcc2 internal prototype to avoid an error.  */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 /* We use char because int might match the return type of a gcc2
17934    builtin and then its argument prototype would still apply.  */
17935 char dld_link ();
17936 int
17937 main ()
17938 {
17939 dld_link ();
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946   (eval $ac_link) 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } &&
17953          { ac_try='test -z "$ac_c_werror_flag"
17954                          || test ! -s conftest.err'
17955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956   (eval $ac_try) 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; } &&
17960          { ac_try='test -s conftest$ac_exeext'
17961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962   (eval $ac_try) 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966   ac_cv_lib_dld_dld_link=yes
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 ac_cv_lib_dld_dld_link=no
17972 fi
17973 rm -f conftest.err conftest.$ac_objext \
17974       conftest$ac_exeext conftest.$ac_ext
17975 LIBS=$ac_check_lib_save_LIBS
17976 fi
17977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17979 if test $ac_cv_lib_dld_dld_link = yes; then
17980   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17981 fi
17982
17983               
17984 fi
17985
17986             
17987 fi
17988
17989           
17990 fi
17991
17992         
17993 fi
17994
17995       
17996 fi
17997
17998     ;;
17999   esac
18000
18001   if test "x$lt_cv_dlopen" != xno; then
18002     enable_dlopen=yes
18003   else
18004     enable_dlopen=no
18005   fi
18006
18007   case $lt_cv_dlopen in
18008   dlopen)
18009     save_CPPFLAGS="$CPPFLAGS"
18010     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18011
18012     save_LDFLAGS="$LDFLAGS"
18013     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18014
18015     save_LIBS="$LIBS"
18016     LIBS="$lt_cv_dlopen_libs $LIBS"
18017
18018     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18020 if test "${lt_cv_dlopen_self+set}" = set; then
18021   echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023           if test "$cross_compiling" = yes; then :
18024   lt_cv_dlopen_self=cross
18025 else
18026   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18027   lt_status=$lt_dlunknown
18028   cat > conftest.$ac_ext <<EOF
18029 #line __oline__ "configure"
18030 #include "confdefs.h"
18031
18032 #if HAVE_DLFCN_H
18033 #include <dlfcn.h>
18034 #endif
18035
18036 #include <stdio.h>
18037
18038 #ifdef RTLD_GLOBAL
18039 #  define LT_DLGLOBAL           RTLD_GLOBAL
18040 #else
18041 #  ifdef DL_GLOBAL
18042 #    define LT_DLGLOBAL         DL_GLOBAL
18043 #  else
18044 #    define LT_DLGLOBAL         0
18045 #  endif
18046 #endif
18047
18048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18049    find out it does not work in some platform. */
18050 #ifndef LT_DLLAZY_OR_NOW
18051 #  ifdef RTLD_LAZY
18052 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18053 #  else
18054 #    ifdef DL_LAZY
18055 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18056 #    else
18057 #      ifdef RTLD_NOW
18058 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18059 #      else
18060 #        ifdef DL_NOW
18061 #          define LT_DLLAZY_OR_NOW      DL_NOW
18062 #        else
18063 #          define LT_DLLAZY_OR_NOW      0
18064 #        endif
18065 #      endif
18066 #    endif
18067 #  endif
18068 #endif
18069
18070 #ifdef __cplusplus
18071 extern "C" void exit (int);
18072 #endif
18073
18074 void fnord() { int i=42;}
18075 int main ()
18076 {
18077   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18078   int status = $lt_dlunknown;
18079
18080   if (self)
18081     {
18082       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18083       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18084       /* dlclose (self); */
18085     }
18086
18087     exit (status);
18088 }
18089 EOF
18090   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091   (eval $ac_link) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18095     (./conftest; exit; ) 2>/dev/null
18096     lt_status=$?
18097     case x$lt_status in
18098       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18099       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18100       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18101     esac
18102   else :
18103     # compilation failed
18104     lt_cv_dlopen_self=no
18105   fi
18106 fi
18107 rm -fr conftest*
18108
18109     
18110 fi
18111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18113
18114     if test "x$lt_cv_dlopen_self" = xyes; then
18115       LDFLAGS="$LDFLAGS $link_static_flag"
18116       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18118 if test "${lt_cv_dlopen_self_static+set}" = set; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121           if test "$cross_compiling" = yes; then :
18122   lt_cv_dlopen_self_static=cross
18123 else
18124   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18125   lt_status=$lt_dlunknown
18126   cat > conftest.$ac_ext <<EOF
18127 #line __oline__ "configure"
18128 #include "confdefs.h"
18129
18130 #if HAVE_DLFCN_H
18131 #include <dlfcn.h>
18132 #endif
18133
18134 #include <stdio.h>
18135
18136 #ifdef RTLD_GLOBAL
18137 #  define LT_DLGLOBAL           RTLD_GLOBAL
18138 #else
18139 #  ifdef DL_GLOBAL
18140 #    define LT_DLGLOBAL         DL_GLOBAL
18141 #  else
18142 #    define LT_DLGLOBAL         0
18143 #  endif
18144 #endif
18145
18146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18147    find out it does not work in some platform. */
18148 #ifndef LT_DLLAZY_OR_NOW
18149 #  ifdef RTLD_LAZY
18150 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18151 #  else
18152 #    ifdef DL_LAZY
18153 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18154 #    else
18155 #      ifdef RTLD_NOW
18156 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18157 #      else
18158 #        ifdef DL_NOW
18159 #          define LT_DLLAZY_OR_NOW      DL_NOW
18160 #        else
18161 #          define LT_DLLAZY_OR_NOW      0
18162 #        endif
18163 #      endif
18164 #    endif
18165 #  endif
18166 #endif
18167
18168 #ifdef __cplusplus
18169 extern "C" void exit (int);
18170 #endif
18171
18172 void fnord() { int i=42;}
18173 int main ()
18174 {
18175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18176   int status = $lt_dlunknown;
18177
18178   if (self)
18179     {
18180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18181       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18182       /* dlclose (self); */
18183     }
18184
18185     exit (status);
18186 }
18187 EOF
18188   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18189   (eval $ac_link) 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18193     (./conftest; exit; ) 2>/dev/null
18194     lt_status=$?
18195     case x$lt_status in
18196       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18197       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18198       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18199     esac
18200   else :
18201     # compilation failed
18202     lt_cv_dlopen_self_static=no
18203   fi
18204 fi
18205 rm -fr conftest*
18206
18207       
18208 fi
18209 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18211     fi
18212
18213     CPPFLAGS="$save_CPPFLAGS"
18214     LDFLAGS="$save_LDFLAGS"
18215     LIBS="$save_LIBS"
18216     ;;
18217   esac
18218
18219   case $lt_cv_dlopen_self in
18220   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18221   *) enable_dlopen_self=unknown ;;
18222   esac
18223
18224   case $lt_cv_dlopen_self_static in
18225   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18226   *) enable_dlopen_self_static=unknown ;;
18227   esac
18228 fi
18229
18230
18231 # The else clause should only fire when bootstrapping the
18232 # libtool distribution, otherwise you forgot to ship ltmain.sh
18233 # with your package, and you will get complaints that there are
18234 # no rules to generate ltmain.sh.
18235 if test -f "$ltmain"; then
18236   # See if we are running on zsh, and set the options which allow our commands through
18237   # without removal of \ escapes.
18238   if test -n "${ZSH_VERSION+set}" ; then
18239     setopt NO_GLOB_SUBST
18240   fi
18241   # Now quote all the things that may contain metacharacters while being
18242   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18243   # variables and quote the copies for generation of the libtool script.
18244   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18245     SED SHELL STRIP \
18246     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18247     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18248     deplibs_check_method reload_flag reload_cmds need_locks \
18249     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18250     lt_cv_sys_global_symbol_to_c_name_address \
18251     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18252     old_postinstall_cmds old_postuninstall_cmds \
18253     compiler_GCJ \
18254     CC_GCJ \
18255     LD_GCJ \
18256     lt_prog_compiler_wl_GCJ \
18257     lt_prog_compiler_pic_GCJ \
18258     lt_prog_compiler_static_GCJ \
18259     lt_prog_compiler_no_builtin_flag_GCJ \
18260     export_dynamic_flag_spec_GCJ \
18261     thread_safe_flag_spec_GCJ \
18262     whole_archive_flag_spec_GCJ \
18263     enable_shared_with_static_runtimes_GCJ \
18264     old_archive_cmds_GCJ \
18265     old_archive_from_new_cmds_GCJ \
18266     predep_objects_GCJ \
18267     postdep_objects_GCJ \
18268     predeps_GCJ \
18269     postdeps_GCJ \
18270     compiler_lib_search_path_GCJ \
18271     archive_cmds_GCJ \
18272     archive_expsym_cmds_GCJ \
18273     postinstall_cmds_GCJ \
18274     postuninstall_cmds_GCJ \
18275     old_archive_from_expsyms_cmds_GCJ \
18276     allow_undefined_flag_GCJ \
18277     no_undefined_flag_GCJ \
18278     export_symbols_cmds_GCJ \
18279     hardcode_libdir_flag_spec_GCJ \
18280     hardcode_libdir_flag_spec_ld_GCJ \
18281     hardcode_libdir_separator_GCJ \
18282     hardcode_automatic_GCJ \
18283     module_cmds_GCJ \
18284     module_expsym_cmds_GCJ \
18285     lt_cv_prog_compiler_c_o_GCJ \
18286     exclude_expsyms_GCJ \
18287     include_expsyms_GCJ; do
18288
18289     case $var in
18290     old_archive_cmds_GCJ | \
18291     old_archive_from_new_cmds_GCJ | \
18292     archive_cmds_GCJ | \
18293     archive_expsym_cmds_GCJ | \
18294     module_cmds_GCJ | \
18295     module_expsym_cmds_GCJ | \
18296     old_archive_from_expsyms_cmds_GCJ | \
18297     export_symbols_cmds_GCJ | \
18298     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18299     postinstall_cmds | postuninstall_cmds | \
18300     old_postinstall_cmds | old_postuninstall_cmds | \
18301     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18302       # Double-quote double-evaled strings.
18303       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18304       ;;
18305     *)
18306       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18307       ;;
18308     esac
18309   done
18310
18311   case $lt_echo in
18312   *'\$0 --fallback-echo"')
18313     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18314     ;;
18315   esac
18316
18317 cfgfile="$ofile"
18318
18319   cat <<__EOF__ >> "$cfgfile"
18320 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18321
18322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18323
18324 # Shell to use when invoking shell scripts.
18325 SHELL=$lt_SHELL
18326
18327 # Whether or not to build shared libraries.
18328 build_libtool_libs=$enable_shared
18329
18330 # Whether or not to build static libraries.
18331 build_old_libs=$enable_static
18332
18333 # Whether or not to add -lc for building shared libraries.
18334 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18335
18336 # Whether or not to disallow shared libs when runtime libs are static
18337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18338
18339 # Whether or not to optimize for fast installation.
18340 fast_install=$enable_fast_install
18341
18342 # The host system.
18343 host_alias=$host_alias
18344 host=$host
18345
18346 # An echo program that does not interpret backslashes.
18347 echo=$lt_echo
18348
18349 # The archiver.
18350 AR=$lt_AR
18351 AR_FLAGS=$lt_AR_FLAGS
18352
18353 # A C compiler.
18354 LTCC=$lt_LTCC
18355
18356 # A language-specific compiler.
18357 CC=$lt_compiler_GCJ
18358
18359 # Is the compiler the GNU C compiler?
18360 with_gcc=$GCC_GCJ
18361
18362 # An ERE matcher.
18363 EGREP=$lt_EGREP
18364
18365 # The linker used to build libraries.
18366 LD=$lt_LD_GCJ
18367
18368 # Whether we need hard or soft links.
18369 LN_S=$lt_LN_S
18370
18371 # A BSD-compatible nm program.
18372 NM=$lt_NM
18373
18374 # A symbol stripping program
18375 STRIP=$lt_STRIP
18376
18377 # Used to examine libraries when file_magic_cmd begins "file"
18378 MAGIC_CMD=$MAGIC_CMD
18379
18380 # Used on cygwin: DLL creation program.
18381 DLLTOOL="$DLLTOOL"
18382
18383 # Used on cygwin: object dumper.
18384 OBJDUMP="$OBJDUMP"
18385
18386 # Used on cygwin: assembler.
18387 AS="$AS"
18388
18389 # The name of the directory that contains temporary libtool files.
18390 objdir=$objdir
18391
18392 # How to create reloadable object files.
18393 reload_flag=$lt_reload_flag
18394 reload_cmds=$lt_reload_cmds
18395
18396 # How to pass a linker flag through the compiler.
18397 wl=$lt_lt_prog_compiler_wl_GCJ
18398
18399 # Object file suffix (normally "o").
18400 objext="$ac_objext"
18401
18402 # Old archive suffix (normally "a").
18403 libext="$libext"
18404
18405 # Shared library suffix (normally ".so").
18406 shrext_cmds='$shrext_cmds'
18407
18408 # Executable file suffix (normally "").
18409 exeext="$exeext"
18410
18411 # Additional compiler flags for building library objects.
18412 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18413 pic_mode=$pic_mode
18414
18415 # What is the maximum length of a command?
18416 max_cmd_len=$lt_cv_sys_max_cmd_len
18417
18418 # Does compiler simultaneously support -c and -o options?
18419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18420
18421 # Must we lock files when doing compilation ?
18422 need_locks=$lt_need_locks
18423
18424 # Do we need the lib prefix for modules?
18425 need_lib_prefix=$need_lib_prefix
18426
18427 # Do we need a version for libraries?
18428 need_version=$need_version
18429
18430 # Whether dlopen is supported.
18431 dlopen_support=$enable_dlopen
18432
18433 # Whether dlopen of programs is supported.
18434 dlopen_self=$enable_dlopen_self
18435
18436 # Whether dlopen of statically linked programs is supported.
18437 dlopen_self_static=$enable_dlopen_self_static
18438
18439 # Compiler flag to prevent dynamic linking.
18440 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18441
18442 # Compiler flag to turn off builtin functions.
18443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18444
18445 # Compiler flag to allow reflexive dlopens.
18446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18447
18448 # Compiler flag to generate shared objects directly from archives.
18449 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18450
18451 # Compiler flag to generate thread-safe objects.
18452 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18453
18454 # Library versioning type.
18455 version_type=$version_type
18456
18457 # Format of library name prefix.
18458 libname_spec=$lt_libname_spec
18459
18460 # List of archive names.  First name is the real one, the rest are links.
18461 # The last name is the one that the linker finds with -lNAME.
18462 library_names_spec=$lt_library_names_spec
18463
18464 # The coded name of the library, if different from the real name.
18465 soname_spec=$lt_soname_spec
18466
18467 # Commands used to build and install an old-style archive.
18468 RANLIB=$lt_RANLIB
18469 old_archive_cmds=$lt_old_archive_cmds_GCJ
18470 old_postinstall_cmds=$lt_old_postinstall_cmds
18471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18472
18473 # Create an old-style archive from a shared archive.
18474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18475
18476 # Create a temporary old-style archive to link instead of a shared archive.
18477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18478
18479 # Commands used to build and install a shared archive.
18480 archive_cmds=$lt_archive_cmds_GCJ
18481 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18482 postinstall_cmds=$lt_postinstall_cmds
18483 postuninstall_cmds=$lt_postuninstall_cmds
18484
18485 # Commands used to build a loadable module (assumed same as above if empty)
18486 module_cmds=$lt_module_cmds_GCJ
18487 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18488
18489 # Commands to strip libraries.
18490 old_striplib=$lt_old_striplib
18491 striplib=$lt_striplib
18492
18493 # Dependencies to place before the objects being linked to create a
18494 # shared library.
18495 predep_objects=$lt_predep_objects_GCJ
18496
18497 # Dependencies to place after the objects being linked to create a
18498 # shared library.
18499 postdep_objects=$lt_postdep_objects_GCJ
18500
18501 # Dependencies to place before the objects being linked to create a
18502 # shared library.
18503 predeps=$lt_predeps_GCJ
18504
18505 # Dependencies to place after the objects being linked to create a
18506 # shared library.
18507 postdeps=$lt_postdeps_GCJ
18508
18509 # The library search path used internally by the compiler when linking
18510 # a shared library.
18511 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18512
18513 # Method to check whether dependent libraries are shared objects.
18514 deplibs_check_method=$lt_deplibs_check_method
18515
18516 # Command to use when deplibs_check_method == file_magic.
18517 file_magic_cmd=$lt_file_magic_cmd
18518
18519 # Flag that allows shared libraries with undefined symbols to be built.
18520 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18521
18522 # Flag that forces no undefined symbols.
18523 no_undefined_flag=$lt_no_undefined_flag_GCJ
18524
18525 # Commands used to finish a libtool library installation in a directory.
18526 finish_cmds=$lt_finish_cmds
18527
18528 # Same as above, but a single script fragment to be evaled but not shown.
18529 finish_eval=$lt_finish_eval
18530
18531 # Take the output of nm and produce a listing of raw symbols and C names.
18532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18533
18534 # Transform the output of nm in a proper C declaration
18535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18536
18537 # Transform the output of nm in a C name address pair
18538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18539
18540 # This is the shared library runtime path variable.
18541 runpath_var=$runpath_var
18542
18543 # This is the shared library path variable.
18544 shlibpath_var=$shlibpath_var
18545
18546 # Is shlibpath searched before the hard-coded library search path?
18547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18548
18549 # How to hardcode a shared library path into an executable.
18550 hardcode_action=$hardcode_action_GCJ
18551
18552 # Whether we should hardcode library paths into libraries.
18553 hardcode_into_libs=$hardcode_into_libs
18554
18555 # Flag to hardcode \$libdir into a binary during linking.
18556 # This must work even if \$libdir does not exist.
18557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18558
18559 # If ld is used when linking, flag to hardcode \$libdir into
18560 # a binary during linking. This must work even if \$libdir does
18561 # not exist.
18562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18563
18564 # Whether we need a single -rpath flag with a separated argument.
18565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18566
18567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18568 # resulting binary.
18569 hardcode_direct=$hardcode_direct_GCJ
18570
18571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18572 # resulting binary.
18573 hardcode_minus_L=$hardcode_minus_L_GCJ
18574
18575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18576 # the resulting binary.
18577 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18578
18579 # Set to yes if building a shared library automatically hardcodes DIR into the library
18580 # and all subsequent libraries and executables linked against it.
18581 hardcode_automatic=$hardcode_automatic_GCJ
18582
18583 # Variables whose values should be saved in libtool wrapper scripts and
18584 # restored at relink time.
18585 variables_saved_for_relink="$variables_saved_for_relink"
18586
18587 # Whether libtool must link a program against all its dependency libraries.
18588 link_all_deplibs=$link_all_deplibs_GCJ
18589
18590 # Compile-time system search path for libraries
18591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18592
18593 # Run-time system search path for libraries
18594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18595
18596 # Fix the shell variable \$srcfile for the compiler.
18597 fix_srcfile_path="$fix_srcfile_path_GCJ"
18598
18599 # Set to yes if exported symbols are required.
18600 always_export_symbols=$always_export_symbols_GCJ
18601
18602 # The commands to list exported symbols.
18603 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18604
18605 # The commands to extract the exported symbol list from a shared archive.
18606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18607
18608 # Symbols that should not be listed in the preloaded symbols.
18609 exclude_expsyms=$lt_exclude_expsyms_GCJ
18610
18611 # Symbols that must always be exported.
18612 include_expsyms=$lt_include_expsyms_GCJ
18613
18614 # ### END LIBTOOL TAG CONFIG: $tagname
18615
18616 __EOF__
18617
18618
18619 else
18620   # If there is no Makefile yet, we rely on a make rule to execute
18621   # `config.status --recheck' to rerun these tests and create the
18622   # libtool script then.
18623   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18624   if test -f "$ltmain_in"; then
18625     test -f Makefile && make "$ltmain"
18626   fi
18627 fi
18628
18629
18630 ac_ext=c
18631 ac_cpp='$CPP $CPPFLAGS'
18632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18635
18636 CC="$lt_save_CC"
18637
18638         else
18639           tagname=""
18640         fi
18641         ;;
18642
18643       RC)
18644         
18645
18646
18647 # Source file extension for RC test sources.
18648 ac_ext=rc
18649
18650 # Object file extension for compiled RC test sources.
18651 objext=o
18652 objext_RC=$objext
18653
18654 # Code to be used in simple compile tests
18655 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18656
18657 # Code to be used in simple link tests
18658 lt_simple_link_test_code="$lt_simple_compile_test_code"
18659
18660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18661
18662 # If no C compiler was specified, use CC.
18663 LTCC=${LTCC-"$CC"}
18664
18665 # Allow CC to be a program name with arguments.
18666 compiler=$CC
18667
18668
18669 # Allow CC to be a program name with arguments.
18670 lt_save_CC="$CC"
18671 CC=${RC-"windres"}
18672 compiler=$CC
18673 compiler_RC=$CC
18674 lt_cv_prog_compiler_c_o_RC=yes
18675
18676 # The else clause should only fire when bootstrapping the
18677 # libtool distribution, otherwise you forgot to ship ltmain.sh
18678 # with your package, and you will get complaints that there are
18679 # no rules to generate ltmain.sh.
18680 if test -f "$ltmain"; then
18681   # See if we are running on zsh, and set the options which allow our commands through
18682   # without removal of \ escapes.
18683   if test -n "${ZSH_VERSION+set}" ; then
18684     setopt NO_GLOB_SUBST
18685   fi
18686   # Now quote all the things that may contain metacharacters while being
18687   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18688   # variables and quote the copies for generation of the libtool script.
18689   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18690     SED SHELL STRIP \
18691     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18692     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18693     deplibs_check_method reload_flag reload_cmds need_locks \
18694     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18695     lt_cv_sys_global_symbol_to_c_name_address \
18696     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18697     old_postinstall_cmds old_postuninstall_cmds \
18698     compiler_RC \
18699     CC_RC \
18700     LD_RC \
18701     lt_prog_compiler_wl_RC \
18702     lt_prog_compiler_pic_RC \
18703     lt_prog_compiler_static_RC \
18704     lt_prog_compiler_no_builtin_flag_RC \
18705     export_dynamic_flag_spec_RC \
18706     thread_safe_flag_spec_RC \
18707     whole_archive_flag_spec_RC \
18708     enable_shared_with_static_runtimes_RC \
18709     old_archive_cmds_RC \
18710     old_archive_from_new_cmds_RC \
18711     predep_objects_RC \
18712     postdep_objects_RC \
18713     predeps_RC \
18714     postdeps_RC \
18715     compiler_lib_search_path_RC \
18716     archive_cmds_RC \
18717     archive_expsym_cmds_RC \
18718     postinstall_cmds_RC \
18719     postuninstall_cmds_RC \
18720     old_archive_from_expsyms_cmds_RC \
18721     allow_undefined_flag_RC \
18722     no_undefined_flag_RC \
18723     export_symbols_cmds_RC \
18724     hardcode_libdir_flag_spec_RC \
18725     hardcode_libdir_flag_spec_ld_RC \
18726     hardcode_libdir_separator_RC \
18727     hardcode_automatic_RC \
18728     module_cmds_RC \
18729     module_expsym_cmds_RC \
18730     lt_cv_prog_compiler_c_o_RC \
18731     exclude_expsyms_RC \
18732     include_expsyms_RC; do
18733
18734     case $var in
18735     old_archive_cmds_RC | \
18736     old_archive_from_new_cmds_RC | \
18737     archive_cmds_RC | \
18738     archive_expsym_cmds_RC | \
18739     module_cmds_RC | \
18740     module_expsym_cmds_RC | \
18741     old_archive_from_expsyms_cmds_RC | \
18742     export_symbols_cmds_RC | \
18743     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18744     postinstall_cmds | postuninstall_cmds | \
18745     old_postinstall_cmds | old_postuninstall_cmds | \
18746     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18747       # Double-quote double-evaled strings.
18748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18749       ;;
18750     *)
18751       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18752       ;;
18753     esac
18754   done
18755
18756   case $lt_echo in
18757   *'\$0 --fallback-echo"')
18758     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18759     ;;
18760   esac
18761
18762 cfgfile="$ofile"
18763
18764   cat <<__EOF__ >> "$cfgfile"
18765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18766
18767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18768
18769 # Shell to use when invoking shell scripts.
18770 SHELL=$lt_SHELL
18771
18772 # Whether or not to build shared libraries.
18773 build_libtool_libs=$enable_shared
18774
18775 # Whether or not to build static libraries.
18776 build_old_libs=$enable_static
18777
18778 # Whether or not to add -lc for building shared libraries.
18779 build_libtool_need_lc=$archive_cmds_need_lc_RC
18780
18781 # Whether or not to disallow shared libs when runtime libs are static
18782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18783
18784 # Whether or not to optimize for fast installation.
18785 fast_install=$enable_fast_install
18786
18787 # The host system.
18788 host_alias=$host_alias
18789 host=$host
18790
18791 # An echo program that does not interpret backslashes.
18792 echo=$lt_echo
18793
18794 # The archiver.
18795 AR=$lt_AR
18796 AR_FLAGS=$lt_AR_FLAGS
18797
18798 # A C compiler.
18799 LTCC=$lt_LTCC
18800
18801 # A language-specific compiler.
18802 CC=$lt_compiler_RC
18803
18804 # Is the compiler the GNU C compiler?
18805 with_gcc=$GCC_RC
18806
18807 # An ERE matcher.
18808 EGREP=$lt_EGREP
18809
18810 # The linker used to build libraries.
18811 LD=$lt_LD_RC
18812
18813 # Whether we need hard or soft links.
18814 LN_S=$lt_LN_S
18815
18816 # A BSD-compatible nm program.
18817 NM=$lt_NM
18818
18819 # A symbol stripping program
18820 STRIP=$lt_STRIP
18821
18822 # Used to examine libraries when file_magic_cmd begins "file"
18823 MAGIC_CMD=$MAGIC_CMD
18824
18825 # Used on cygwin: DLL creation program.
18826 DLLTOOL="$DLLTOOL"
18827
18828 # Used on cygwin: object dumper.
18829 OBJDUMP="$OBJDUMP"
18830
18831 # Used on cygwin: assembler.
18832 AS="$AS"
18833
18834 # The name of the directory that contains temporary libtool files.
18835 objdir=$objdir
18836
18837 # How to create reloadable object files.
18838 reload_flag=$lt_reload_flag
18839 reload_cmds=$lt_reload_cmds
18840
18841 # How to pass a linker flag through the compiler.
18842 wl=$lt_lt_prog_compiler_wl_RC
18843
18844 # Object file suffix (normally "o").
18845 objext="$ac_objext"
18846
18847 # Old archive suffix (normally "a").
18848 libext="$libext"
18849
18850 # Shared library suffix (normally ".so").
18851 shrext_cmds='$shrext_cmds'
18852
18853 # Executable file suffix (normally "").
18854 exeext="$exeext"
18855
18856 # Additional compiler flags for building library objects.
18857 pic_flag=$lt_lt_prog_compiler_pic_RC
18858 pic_mode=$pic_mode
18859
18860 # What is the maximum length of a command?
18861 max_cmd_len=$lt_cv_sys_max_cmd_len
18862
18863 # Does compiler simultaneously support -c and -o options?
18864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18865
18866 # Must we lock files when doing compilation ?
18867 need_locks=$lt_need_locks
18868
18869 # Do we need the lib prefix for modules?
18870 need_lib_prefix=$need_lib_prefix
18871
18872 # Do we need a version for libraries?
18873 need_version=$need_version
18874
18875 # Whether dlopen is supported.
18876 dlopen_support=$enable_dlopen
18877
18878 # Whether dlopen of programs is supported.
18879 dlopen_self=$enable_dlopen_self
18880
18881 # Whether dlopen of statically linked programs is supported.
18882 dlopen_self_static=$enable_dlopen_self_static
18883
18884 # Compiler flag to prevent dynamic linking.
18885 link_static_flag=$lt_lt_prog_compiler_static_RC
18886
18887 # Compiler flag to turn off builtin functions.
18888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18889
18890 # Compiler flag to allow reflexive dlopens.
18891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18892
18893 # Compiler flag to generate shared objects directly from archives.
18894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18895
18896 # Compiler flag to generate thread-safe objects.
18897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18898
18899 # Library versioning type.
18900 version_type=$version_type
18901
18902 # Format of library name prefix.
18903 libname_spec=$lt_libname_spec
18904
18905 # List of archive names.  First name is the real one, the rest are links.
18906 # The last name is the one that the linker finds with -lNAME.
18907 library_names_spec=$lt_library_names_spec
18908
18909 # The coded name of the library, if different from the real name.
18910 soname_spec=$lt_soname_spec
18911
18912 # Commands used to build and install an old-style archive.
18913 RANLIB=$lt_RANLIB
18914 old_archive_cmds=$lt_old_archive_cmds_RC
18915 old_postinstall_cmds=$lt_old_postinstall_cmds
18916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18917
18918 # Create an old-style archive from a shared archive.
18919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18920
18921 # Create a temporary old-style archive to link instead of a shared archive.
18922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18923
18924 # Commands used to build and install a shared archive.
18925 archive_cmds=$lt_archive_cmds_RC
18926 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18927 postinstall_cmds=$lt_postinstall_cmds
18928 postuninstall_cmds=$lt_postuninstall_cmds
18929
18930 # Commands used to build a loadable module (assumed same as above if empty)
18931 module_cmds=$lt_module_cmds_RC
18932 module_expsym_cmds=$lt_module_expsym_cmds_RC
18933
18934 # Commands to strip libraries.
18935 old_striplib=$lt_old_striplib
18936 striplib=$lt_striplib
18937
18938 # Dependencies to place before the objects being linked to create a
18939 # shared library.
18940 predep_objects=$lt_predep_objects_RC
18941
18942 # Dependencies to place after the objects being linked to create a
18943 # shared library.
18944 postdep_objects=$lt_postdep_objects_RC
18945
18946 # Dependencies to place before the objects being linked to create a
18947 # shared library.
18948 predeps=$lt_predeps_RC
18949
18950 # Dependencies to place after the objects being linked to create a
18951 # shared library.
18952 postdeps=$lt_postdeps_RC
18953
18954 # The library search path used internally by the compiler when linking
18955 # a shared library.
18956 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18957
18958 # Method to check whether dependent libraries are shared objects.
18959 deplibs_check_method=$lt_deplibs_check_method
18960
18961 # Command to use when deplibs_check_method == file_magic.
18962 file_magic_cmd=$lt_file_magic_cmd
18963
18964 # Flag that allows shared libraries with undefined symbols to be built.
18965 allow_undefined_flag=$lt_allow_undefined_flag_RC
18966
18967 # Flag that forces no undefined symbols.
18968 no_undefined_flag=$lt_no_undefined_flag_RC
18969
18970 # Commands used to finish a libtool library installation in a directory.
18971 finish_cmds=$lt_finish_cmds
18972
18973 # Same as above, but a single script fragment to be evaled but not shown.
18974 finish_eval=$lt_finish_eval
18975
18976 # Take the output of nm and produce a listing of raw symbols and C names.
18977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18978
18979 # Transform the output of nm in a proper C declaration
18980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18981
18982 # Transform the output of nm in a C name address pair
18983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18984
18985 # This is the shared library runtime path variable.
18986 runpath_var=$runpath_var
18987
18988 # This is the shared library path variable.
18989 shlibpath_var=$shlibpath_var
18990
18991 # Is shlibpath searched before the hard-coded library search path?
18992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18993
18994 # How to hardcode a shared library path into an executable.
18995 hardcode_action=$hardcode_action_RC
18996
18997 # Whether we should hardcode library paths into libraries.
18998 hardcode_into_libs=$hardcode_into_libs
18999
19000 # Flag to hardcode \$libdir into a binary during linking.
19001 # This must work even if \$libdir does not exist.
19002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19003
19004 # If ld is used when linking, flag to hardcode \$libdir into
19005 # a binary during linking. This must work even if \$libdir does
19006 # not exist.
19007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19008
19009 # Whether we need a single -rpath flag with a separated argument.
19010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19011
19012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19013 # resulting binary.
19014 hardcode_direct=$hardcode_direct_RC
19015
19016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19017 # resulting binary.
19018 hardcode_minus_L=$hardcode_minus_L_RC
19019
19020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19021 # the resulting binary.
19022 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19023
19024 # Set to yes if building a shared library automatically hardcodes DIR into the library
19025 # and all subsequent libraries and executables linked against it.
19026 hardcode_automatic=$hardcode_automatic_RC
19027
19028 # Variables whose values should be saved in libtool wrapper scripts and
19029 # restored at relink time.
19030 variables_saved_for_relink="$variables_saved_for_relink"
19031
19032 # Whether libtool must link a program against all its dependency libraries.
19033 link_all_deplibs=$link_all_deplibs_RC
19034
19035 # Compile-time system search path for libraries
19036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19037
19038 # Run-time system search path for libraries
19039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19040
19041 # Fix the shell variable \$srcfile for the compiler.
19042 fix_srcfile_path="$fix_srcfile_path_RC"
19043
19044 # Set to yes if exported symbols are required.
19045 always_export_symbols=$always_export_symbols_RC
19046
19047 # The commands to list exported symbols.
19048 export_symbols_cmds=$lt_export_symbols_cmds_RC
19049
19050 # The commands to extract the exported symbol list from a shared archive.
19051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19052
19053 # Symbols that should not be listed in the preloaded symbols.
19054 exclude_expsyms=$lt_exclude_expsyms_RC
19055
19056 # Symbols that must always be exported.
19057 include_expsyms=$lt_include_expsyms_RC
19058
19059 # ### END LIBTOOL TAG CONFIG: $tagname
19060
19061 __EOF__
19062
19063
19064 else
19065   # If there is no Makefile yet, we rely on a make rule to execute
19066   # `config.status --recheck' to rerun these tests and create the
19067   # libtool script then.
19068   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19069   if test -f "$ltmain_in"; then
19070     test -f Makefile && make "$ltmain"
19071   fi
19072 fi
19073
19074
19075 ac_ext=c
19076 ac_cpp='$CPP $CPPFLAGS'
19077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19080
19081 CC="$lt_save_CC"
19082
19083         ;;
19084
19085       *)
19086         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19087 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19088    { (exit 1); exit 1; }; }
19089         ;;
19090       esac
19091
19092       # Append the new tag name to the list of available tags.
19093       if test -n "$tagname" ; then
19094       available_tags="$available_tags $tagname"
19095     fi
19096     fi
19097   done
19098   IFS="$lt_save_ifs"
19099
19100   # Now substitute the updated list of available tags.
19101   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19102     mv "${ofile}T" "$ofile"
19103     chmod +x "$ofile"
19104   else
19105     rm -f "${ofile}T"
19106     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19107 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19108    { (exit 1); exit 1; }; }
19109   fi
19110 fi
19111
19112
19113
19114 # This can be used to rebuild libtool when needed
19115 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19116
19117 # Always use our own libtool.
19118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19119
19120 # Prevent multiple expansion
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132   
19133
19134   
19135
19136
19137   
19138        
19139        
19140
19141 # Before making a release, the LTVERSION string should be modified.
19142 # The string is of the form C:R:A.
19143 # - If interfaces have been changed or added, but binary compatibility has
19144 #   been preserved, change to C+1:0:A+1
19145 # - If binary compatibility has been broken (eg removed or changed interfaces)
19146 #   change to C+1:0:0
19147 # - If the interface is the same as the previous version, change to C:R+1:A
19148 LTVERSION="0:1:0"
19149
19150
19151
19152         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19153 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19154 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157   ac_check_lib_save_LIBS=$LIBS
19158 LIBS="-lcposix  $LIBS"
19159 cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165
19166 /* Override any gcc2 internal prototype to avoid an error.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 /* We use char because int might match the return type of a gcc2
19171    builtin and then its argument prototype would still apply.  */
19172 char strerror ();
19173 int
19174 main ()
19175 {
19176 strerror ();
19177   ;
19178   return 0;
19179 }
19180 _ACEOF
19181 rm -f conftest.$ac_objext conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183   (eval $ac_link) 2>conftest.er1
19184   ac_status=$?
19185   grep -v '^ *+' conftest.er1 >conftest.err
19186   rm -f conftest.er1
19187   cat conftest.err >&5
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); } &&
19190          { ac_try='test -z "$ac_c_werror_flag"
19191                          || test ! -s conftest.err'
19192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193   (eval $ac_try) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; } &&
19197          { ac_try='test -s conftest$ac_exeext'
19198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199   (eval $ac_try) 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; }; then
19203   ac_cv_lib_cposix_strerror=yes
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_cv_lib_cposix_strerror=no
19209 fi
19210 rm -f conftest.err conftest.$ac_objext \
19211       conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS
19213 fi
19214 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19215 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19216 if test $ac_cv_lib_cposix_strerror = yes; then
19217   LIBS="$LIBS -lcposix"
19218 fi
19219
19220   
19221
19222 # Find a good install program.  We prefer a C program (faster),
19223 # so one script is as good as another.  But avoid the broken or
19224 # incompatible versions:
19225 # SysV /etc/install, /usr/sbin/install
19226 # SunOS /usr/etc/install
19227 # IRIX /sbin/install
19228 # AIX /bin/install
19229 # AmigaOS /C/install, which installs bootblocks on floppy discs
19230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19233 # OS/2's system install, which has a completely different semantic
19234 # ./install, which can be erroneously created by make from ./install.sh.
19235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19237 if test -z "$INSTALL"; then
19238 if test "${ac_cv_path_install+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19242 for as_dir in $PATH
19243 do
19244   IFS=$as_save_IFS
19245   test -z "$as_dir" && as_dir=.
19246   # Account for people who put trailing slashes in PATH elements.
19247 case $as_dir/ in
19248   ./ | .// | /cC/* | \
19249   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19250   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19251   /usr/ucb/* ) ;;
19252   *)
19253     # OSF1 and SCO ODT 3.0 have their own names for install.
19254     # Don't use installbsd from OSF since it installs stuff as root
19255     # by default.
19256     for ac_prog in ginstall scoinst install; do
19257       for ac_exec_ext in '' $ac_executable_extensions; do
19258         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19259           if test $ac_prog = install &&
19260             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19261             # AIX install.  It has an incompatible calling convention.
19262             :
19263           elif test $ac_prog = install &&
19264             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19265             # program-specific install script used by HP pwplus--don't use.
19266             :
19267           else
19268             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19269             break 3
19270           fi
19271         fi
19272       done
19273     done
19274     ;;
19275 esac
19276 done
19277
19278
19279 fi
19280   if test "${ac_cv_path_install+set}" = set; then
19281     INSTALL=$ac_cv_path_install
19282   else
19283     # As a last resort, use the slow shell script.  We don't cache a
19284     # path for INSTALL within a source directory, because that will
19285     # break other packages using the cache if that directory is
19286     # removed, or if the path is relative.
19287     INSTALL=$ac_install_sh
19288   fi
19289 fi
19290 echo "$as_me:$LINENO: result: $INSTALL" >&5
19291 echo "${ECHO_T}$INSTALL" >&6
19292
19293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19294 # It thinks the first close brace ends the variable substitution.
19295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19296
19297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19298
19299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19300
19301 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19302 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19303 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19304 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307   cat >conftest.make <<\_ACEOF
19308 all:
19309         @echo 'ac_maketemp="$(MAKE)"'
19310 _ACEOF
19311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19312 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19313 if test -n "$ac_maketemp"; then
19314   eval ac_cv_prog_make_${ac_make}_set=yes
19315 else
19316   eval ac_cv_prog_make_${ac_make}_set=no
19317 fi
19318 rm -f conftest.make
19319 fi
19320 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19321   echo "$as_me:$LINENO: result: yes" >&5
19322 echo "${ECHO_T}yes" >&6
19323   SET_MAKE=
19324 else
19325   echo "$as_me:$LINENO: result: no" >&5
19326 echo "${ECHO_T}no" >&6
19327   SET_MAKE="MAKE=${MAKE-make}"
19328 fi
19329
19330
19331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19333 if test "${ac_cv_header_stdc+set}" = set; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 #include <stdlib.h>
19343 #include <stdarg.h>
19344 #include <string.h>
19345 #include <float.h>
19346
19347 int
19348 main ()
19349 {
19350
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357   (eval $ac_compile) 2>conftest.er1
19358   ac_status=$?
19359   grep -v '^ *+' conftest.er1 >conftest.err
19360   rm -f conftest.er1
19361   cat conftest.err >&5
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } &&
19364          { ac_try='test -z "$ac_c_werror_flag"
19365                          || test ! -s conftest.err'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; } &&
19371          { ac_try='test -s conftest.$ac_objext'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; }; then
19377   ac_cv_header_stdc=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_cv_header_stdc=no
19383 fi
19384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19385
19386 if test $ac_cv_header_stdc = yes; then
19387   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19388   cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394 #include <string.h>
19395
19396 _ACEOF
19397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19398   $EGREP "memchr" >/dev/null 2>&1; then
19399   :
19400 else
19401   ac_cv_header_stdc=no
19402 fi
19403 rm -f conftest*
19404
19405 fi
19406
19407 if test $ac_cv_header_stdc = yes; then
19408   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415 #include <stdlib.h>
19416
19417 _ACEOF
19418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19419   $EGREP "free" >/dev/null 2>&1; then
19420   :
19421 else
19422   ac_cv_header_stdc=no
19423 fi
19424 rm -f conftest*
19425
19426 fi
19427
19428 if test $ac_cv_header_stdc = yes; then
19429   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19430   if test "$cross_compiling" = yes; then
19431   :
19432 else
19433   cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439 #include <ctype.h>
19440 #if ((' ' & 0x0FF) == 0x020)
19441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19443 #else
19444 # define ISLOWER(c) \
19445                    (('a' <= (c) && (c) <= 'i') \
19446                      || ('j' <= (c) && (c) <= 'r') \
19447                      || ('s' <= (c) && (c) <= 'z'))
19448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19449 #endif
19450
19451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19452 int
19453 main ()
19454 {
19455   int i;
19456   for (i = 0; i < 256; i++)
19457     if (XOR (islower (i), ISLOWER (i))
19458         || toupper (i) != TOUPPER (i))
19459       exit(2);
19460   exit (0);
19461 }
19462 _ACEOF
19463 rm -f conftest$ac_exeext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19465   (eval $ac_link) 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470   (eval $ac_try) 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; }; then
19474   :
19475 else
19476   echo "$as_me: program exited with status $ac_status" >&5
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19479
19480 ( exit $ac_status )
19481 ac_cv_header_stdc=no
19482 fi
19483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484 fi
19485 fi
19486 fi
19487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19489 if test $ac_cv_header_stdc = yes; then
19490   
19491 cat >>confdefs.h <<\_ACEOF
19492 @%:@define STDC_HEADERS 1
19493 _ACEOF
19494
19495 fi
19496
19497
19498
19499
19500
19501
19502 for ac_header in fcntl.h limits.h sys/file.h sys/stat.h unistd.h
19503 do
19504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19506   echo "$as_me:$LINENO: checking for $ac_header" >&5
19507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 fi
19511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19513 else
19514   # Is the header compilable?
19515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523 $ac_includes_default
19524 @%:@include <$ac_header>
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528   (eval $ac_compile) 2>conftest.er1
19529   ac_status=$?
19530   grep -v '^ *+' conftest.er1 >conftest.err
19531   rm -f conftest.er1
19532   cat conftest.err >&5
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); } &&
19535          { ac_try='test -z "$ac_c_werror_flag"
19536                          || test ! -s conftest.err'
19537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538   (eval $ac_try) 2>&5
19539   ac_status=$?
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); }; } &&
19542          { ac_try='test -s conftest.$ac_objext'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; }; then
19548   ac_header_compiler=yes
19549 else
19550   echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 ac_header_compiler=no
19554 fi
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19557 echo "${ECHO_T}$ac_header_compiler" >&6
19558
19559 # Is the header present?
19560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 @%:@include <$ac_header>
19569 _ACEOF
19570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } >/dev/null; then
19578   if test -s conftest.err; then
19579     ac_cpp_err=$ac_c_preproc_warn_flag
19580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19581   else
19582     ac_cpp_err=
19583   fi
19584 else
19585   ac_cpp_err=yes
19586 fi
19587 if test -z "$ac_cpp_err"; then
19588   ac_header_preproc=yes
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593   ac_header_preproc=no
19594 fi
19595 rm -f conftest.err conftest.$ac_ext
19596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19597 echo "${ECHO_T}$ac_header_preproc" >&6
19598
19599 # So?  What about this header?
19600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19601   yes:no: )
19602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19606     ac_header_preproc=yes
19607     ;;
19608   no:yes:* )
19609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19621     (
19622       cat <<\_ASBOX
19623 @%:@@%:@ ------------------------------------------ @%:@@%:@
19624 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
19625 @%:@@%:@ ------------------------------------------ @%:@@%:@
19626 _ASBOX
19627     ) |
19628       sed "s/^/$as_me: WARNING:     /" >&2
19629     ;;
19630 esac
19631 echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19634   echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636   eval "$as_ac_Header=\$ac_header_preproc"
19637 fi
19638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19640
19641 fi
19642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19643   cat >>confdefs.h <<_ACEOF
19644 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19645 _ACEOF
19646  
19647 fi
19648
19649 done
19650
19651
19652
19653
19654 for ac_header in sys/param.h sys/types.h netinet/in.h
19655 do
19656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19658   echo "$as_me:$LINENO: checking for $ac_header" >&5
19659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 fi
19663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19665 else
19666   # Is the header compilable?
19667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19669 cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 $ac_includes_default
19676 @%:@include <$ac_header>
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19680   (eval $ac_compile) 2>conftest.er1
19681   ac_status=$?
19682   grep -v '^ *+' conftest.er1 >conftest.err
19683   rm -f conftest.er1
19684   cat conftest.err >&5
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); } &&
19687          { ac_try='test -z "$ac_c_werror_flag"
19688                          || test ! -s conftest.err'
19689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690   (eval $ac_try) 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; } &&
19694          { ac_try='test -s conftest.$ac_objext'
19695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696   (eval $ac_try) 2>&5
19697   ac_status=$?
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); }; }; then
19700   ac_header_compiler=yes
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705 ac_header_compiler=no
19706 fi
19707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709 echo "${ECHO_T}$ac_header_compiler" >&6
19710
19711 # Is the header present?
19712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 @%:@include <$ac_header>
19721 _ACEOF
19722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } >/dev/null; then
19730   if test -s conftest.err; then
19731     ac_cpp_err=$ac_c_preproc_warn_flag
19732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19733   else
19734     ac_cpp_err=
19735   fi
19736 else
19737   ac_cpp_err=yes
19738 fi
19739 if test -z "$ac_cpp_err"; then
19740   ac_header_preproc=yes
19741 else
19742   echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745   ac_header_preproc=no
19746 fi
19747 rm -f conftest.err conftest.$ac_ext
19748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749 echo "${ECHO_T}$ac_header_preproc" >&6
19750
19751 # So?  What about this header?
19752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19753   yes:no: )
19754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19758     ac_header_preproc=yes
19759     ;;
19760   no:yes:* )
19761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19773     (
19774       cat <<\_ASBOX
19775 @%:@@%:@ ------------------------------------------ @%:@@%:@
19776 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
19777 @%:@@%:@ ------------------------------------------ @%:@@%:@
19778 _ASBOX
19779     ) |
19780       sed "s/^/$as_me: WARNING:     /" >&2
19781     ;;
19782 esac
19783 echo "$as_me:$LINENO: checking for $ac_header" >&5
19784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   eval "$as_ac_Header=\$ac_header_preproc"
19789 fi
19790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19792
19793 fi
19794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19795   cat >>confdefs.h <<_ACEOF
19796 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19797 _ACEOF
19798  
19799 fi
19800
19801 done
19802
19803
19804
19805 for ac_header in io.h windows.h
19806 do
19807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19809   echo "$as_me:$LINENO: checking for $ac_header" >&5
19810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 fi
19814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19816 else
19817   # Is the header compilable?
19818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19820 cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826 $ac_includes_default
19827 @%:@include <$ac_header>
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831   (eval $ac_compile) 2>conftest.er1
19832   ac_status=$?
19833   grep -v '^ *+' conftest.er1 >conftest.err
19834   rm -f conftest.er1
19835   cat conftest.err >&5
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); } &&
19838          { ac_try='test -z "$ac_c_werror_flag"
19839                          || test ! -s conftest.err'
19840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841   (eval $ac_try) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; } &&
19845          { ac_try='test -s conftest.$ac_objext'
19846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847   (eval $ac_try) 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; }; then
19851   ac_header_compiler=yes
19852 else
19853   echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856 ac_header_compiler=no
19857 fi
19858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19860 echo "${ECHO_T}$ac_header_compiler" >&6
19861
19862 # Is the header present?
19863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871 @%:@include <$ac_header>
19872 _ACEOF
19873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19875   ac_status=$?
19876   grep -v '^ *+' conftest.er1 >conftest.err
19877   rm -f conftest.er1
19878   cat conftest.err >&5
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } >/dev/null; then
19881   if test -s conftest.err; then
19882     ac_cpp_err=$ac_c_preproc_warn_flag
19883     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19884   else
19885     ac_cpp_err=
19886   fi
19887 else
19888   ac_cpp_err=yes
19889 fi
19890 if test -z "$ac_cpp_err"; then
19891   ac_header_preproc=yes
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896   ac_header_preproc=no
19897 fi
19898 rm -f conftest.err conftest.$ac_ext
19899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19900 echo "${ECHO_T}$ac_header_preproc" >&6
19901
19902 # So?  What about this header?
19903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19904   yes:no: )
19905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19909     ac_header_preproc=yes
19910     ;;
19911   no:yes:* )
19912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19924     (
19925       cat <<\_ASBOX
19926 @%:@@%:@ ------------------------------------------ @%:@@%:@
19927 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
19928 @%:@@%:@ ------------------------------------------ @%:@@%:@
19929 _ASBOX
19930     ) |
19931       sed "s/^/$as_me: WARNING:     /" >&2
19932     ;;
19933 esac
19934 echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   eval "$as_ac_Header=\$ac_header_preproc"
19940 fi
19941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19943
19944 fi
19945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19946   cat >>confdefs.h <<_ACEOF
19947 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19948 _ACEOF
19949  
19950 fi
19951
19952 done
19953
19954
19955 echo "$as_me:$LINENO: checking for darts.h" >&5
19956 echo $ECHO_N "checking for darts.h... $ECHO_C" >&6
19957
19958 # Check whether --with-darts or --without-darts was given.
19959 if test "${with_darts+set}" = set; then
19960   withval="$with_darts"
19961   if test "${with_darts}" = yes; then
19962         vi_darts_path="/usr/local/include"
19963      else
19964         vi_darts_path=${with_darts}
19965      fi
19966      CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
19967     
19968 fi; 
19969
19970 ac_ext=cc
19971 ac_cpp='$CXXCPP $CPPFLAGS'
19972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19975
19976
19977 if test "${cl_cv_header_darts+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 #include <darts.h>
19988 int
19989 main ()
19990 {
19991 ;
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 rm -f conftest.$ac_objext
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998   (eval $ac_compile) 2>conftest.er1
19999   ac_status=$?
20000   grep -v '^ *+' conftest.er1 >conftest.err
20001   rm -f conftest.er1
20002   cat conftest.err >&5
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); } &&
20005          { ac_try='test -z "$ac_cxx_werror_flag"
20006                          || test ! -s conftest.err'
20007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008   (eval $ac_try) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; } &&
20012          { ac_try='test -s conftest.$ac_objext'
20013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014   (eval $ac_try) 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); }; }; then
20018   cl_cv_header_darts=yes
20019 else
20020   echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20022
20023
20024     { { echo "$as_me:$LINENO: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&5
20025 echo "$as_me: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&2;}
20026    { (exit 1); exit 1; }; }
20027 fi
20028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20029 fi
20030
20031 echo "$as_me:$LINENO: result: $cl_cv_header_darts" >&5
20032 echo "${ECHO_T}$cl_cv_header_darts" >&6
20033 ac_ext=c
20034 ac_cpp='$CPP $CPPFLAGS'
20035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20038
20039
20040
20041 # Check whether --with-libiconv or --without-libiconv was given.
20042 if test "${with_libiconv+set}" = set; then
20043   withval="$with_libiconv"
20044   if test x"${with_libiconv}" != x ; then
20045         ICONV_CFLAGS="-I${with_libiconv}/include"
20046         LIBS="$LIBS -L${with_libiconv}/lib"
20047         
20048      fi
20049 fi; 
20050
20051
20052 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
20053 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
20054 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-liconv  $LIBS"
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065
20066 /* Override any gcc2 internal prototype to avoid an error.  */
20067 #ifdef __cplusplus
20068 extern "C"
20069 #endif
20070 /* We use char because int might match the return type of a gcc2
20071    builtin and then its argument prototype would still apply.  */
20072 char iconv ();
20073 int
20074 main ()
20075 {
20076 iconv ();
20077   ;
20078   return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext conftest$ac_exeext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20083   (eval $ac_link) 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } &&
20090          { ac_try='test -z "$ac_c_werror_flag"
20091                          || test ! -s conftest.err'
20092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093   (eval $ac_try) 2>&5
20094   ac_status=$?
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); }; } &&
20097          { ac_try='test -s conftest$ac_exeext'
20098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099   (eval $ac_try) 2>&5
20100   ac_status=$?
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); }; }; then
20103   ac_cv_lib_iconv_iconv=yes
20104 else
20105   echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108 ac_cv_lib_iconv_iconv=no
20109 fi
20110 rm -f conftest.err conftest.$ac_objext \
20111       conftest$ac_exeext conftest.$ac_ext
20112 LIBS=$ac_check_lib_save_LIBS
20113 fi
20114 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
20115 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
20116 if test $ac_cv_lib_iconv_iconv = yes; then
20117   cat >>confdefs.h <<_ACEOF
20118 @%:@define HAVE_LIBICONV 1
20119 _ACEOF
20120
20121   LIBS="-liconv $LIBS"
20122
20123 else
20124   
20125         if test "${ac_cv_header_iconv_h+set}" = set; then
20126   echo "$as_me:$LINENO: checking for iconv.h" >&5
20127 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20128 if test "${ac_cv_header_iconv_h+set}" = set; then
20129   echo $ECHO_N "(cached) $ECHO_C" >&6
20130 fi
20131 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20132 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20133 else
20134   # Is the header compilable?
20135 echo "$as_me:$LINENO: checking iconv.h usability" >&5
20136 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h.  */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h.  */
20143 $ac_includes_default
20144 @%:@include <iconv.h>
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148   (eval $ac_compile) 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } &&
20155          { ac_try='test -z "$ac_c_werror_flag"
20156                          || test ! -s conftest.err'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; } &&
20162          { ac_try='test -s conftest.$ac_objext'
20163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164   (eval $ac_try) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; }; then
20168   ac_header_compiler=yes
20169 else
20170   echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 ac_header_compiler=no
20174 fi
20175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20177 echo "${ECHO_T}$ac_header_compiler" >&6
20178
20179 # Is the header present?
20180 echo "$as_me:$LINENO: checking iconv.h presence" >&5
20181 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 @%:@include <iconv.h>
20189 _ACEOF
20190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20192   ac_status=$?
20193   grep -v '^ *+' conftest.er1 >conftest.err
20194   rm -f conftest.er1
20195   cat conftest.err >&5
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); } >/dev/null; then
20198   if test -s conftest.err; then
20199     ac_cpp_err=$ac_c_preproc_warn_flag
20200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20201   else
20202     ac_cpp_err=
20203   fi
20204 else
20205   ac_cpp_err=yes
20206 fi
20207 if test -z "$ac_cpp_err"; then
20208   ac_header_preproc=yes
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213   ac_header_preproc=no
20214 fi
20215 rm -f conftest.err conftest.$ac_ext
20216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20217 echo "${ECHO_T}$ac_header_preproc" >&6
20218
20219 # So?  What about this header?
20220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20221   yes:no: )
20222     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20223 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20224     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
20225 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
20226     ac_header_preproc=yes
20227     ;;
20228   no:yes:* )
20229     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
20230 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
20232 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
20233     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
20234 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
20235     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
20236 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
20238 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
20239     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
20240 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
20241     (
20242       cat <<\_ASBOX
20243 @%:@@%:@ ------------------------------------------ @%:@@%:@
20244 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
20245 @%:@@%:@ ------------------------------------------ @%:@@%:@
20246 _ASBOX
20247     ) |
20248       sed "s/^/$as_me: WARNING:     /" >&2
20249     ;;
20250 esac
20251 echo "$as_me:$LINENO: checking for iconv.h" >&5
20252 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20253 if test "${ac_cv_header_iconv_h+set}" = set; then
20254   echo $ECHO_N "(cached) $ECHO_C" >&6
20255 else
20256   ac_cv_header_iconv_h=$ac_header_preproc
20257 fi
20258 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20259 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20260
20261 fi
20262 if test $ac_cv_header_iconv_h = yes; then
20263   :
20264 else
20265   { { echo "$as_me:$LINENO: error: ChaSen needs iconv" >&5
20266 echo "$as_me: error: ChaSen needs iconv" >&2;}
20267    { (exit 1); exit 1; }; }
20268 fi
20269
20270
20271 fi
20272
20273
20274
20275
20276 echo "$as_me:$LINENO: checking iconv args" >&5
20277 echo $ECHO_N "checking iconv args... $ECHO_C" >&6
20278
20279      for CODE in EUC-JP EUCJP eucJP; do
20280        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20281          vi_iconv_arg_EUCJP=${CODE}; break
20282      fi;
20283      done
20284      rm -f iconv_test
20285      if test x"$vi_iconv_arg_EUCJP" = x; then
20286          { { echo "$as_me:$LINENO: error: cannot use EUC-JP with iconv" >&5
20287 echo "$as_me: error: cannot use EUC-JP with iconv" >&2;}
20288    { (exit 1); exit 1; }; }
20289      fi
20290      cat >>confdefs.h <<_ACEOF
20291 @%:@define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
20292 _ACEOF
20293
20294      
20295
20296      for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
20297        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20298          vi_iconv_arg_SJIS=${CODE}; break
20299      fi;
20300      done
20301      rm -f iconv_test
20302      if test x"$vi_iconv_arg_SJIS" = x; then
20303          { { echo "$as_me:$LINENO: error: cannot use Shift_JIS with iconv" >&5
20304 echo "$as_me: error: cannot use Shift_JIS with iconv" >&2;}
20305    { (exit 1); exit 1; }; }
20306      fi
20307      cat >>confdefs.h <<_ACEOF
20308 @%:@define ICONV_SJIS "$vi_iconv_arg_SJIS"
20309 _ACEOF
20310
20311      
20312
20313      for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
20314        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20315          vi_iconv_arg_88591=${CODE}; break
20316      fi;
20317      done
20318      rm -f iconv_test
20319      if test x"$vi_iconv_arg_88591" = x; then
20320          { { echo "$as_me:$LINENO: error: cannot use ISO-8859-1 with iconv" >&5
20321 echo "$as_me: error: cannot use ISO-8859-1 with iconv" >&2;}
20322    { (exit 1); exit 1; }; }
20323      fi
20324      cat >>confdefs.h <<_ACEOF
20325 @%:@define ICONV_88591 "$vi_iconv_arg_88591"
20326 _ACEOF
20327
20328      
20329 echo "$as_me:$LINENO: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
20330 echo "${ECHO_T}$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6
20331
20332 echo "$as_me:$LINENO: checking for off_t" >&5
20333 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20334 if test "${ac_cv_type_off_t+set}" = set; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337   cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h.  */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h.  */
20343 $ac_includes_default
20344 int
20345 main ()
20346 {
20347 if ((off_t *) 0)
20348   return 0;
20349 if (sizeof (off_t))
20350   return 0;
20351   ;
20352   return 0;
20353 }
20354 _ACEOF
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357   (eval $ac_compile) 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } &&
20364          { ac_try='test -z "$ac_c_werror_flag"
20365                          || test ! -s conftest.err'
20366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367   (eval $ac_try) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; } &&
20371          { ac_try='test -s conftest.$ac_objext'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; }; then
20377   ac_cv_type_off_t=yes
20378 else
20379   echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 ac_cv_type_off_t=no
20383 fi
20384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20385 fi
20386 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20387 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20388 if test $ac_cv_type_off_t = yes; then
20389   :
20390 else
20391   
20392 cat >>confdefs.h <<_ACEOF
20393 @%:@define off_t long
20394 _ACEOF
20395
20396 fi
20397
20398 echo "$as_me:$LINENO: checking for size_t" >&5
20399 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20400 if test "${ac_cv_type_size_t+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 $ac_includes_default
20410 int
20411 main ()
20412 {
20413 if ((size_t *) 0)
20414   return 0;
20415 if (sizeof (size_t))
20416   return 0;
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423   (eval $ac_compile) 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } &&
20430          { ac_try='test -z "$ac_c_werror_flag"
20431                          || test ! -s conftest.err'
20432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433   (eval $ac_try) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; } &&
20437          { ac_try='test -s conftest.$ac_objext'
20438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439   (eval $ac_try) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   ac_cv_type_size_t=yes
20444 else
20445   echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ac_cv_type_size_t=no
20449 fi
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451 fi
20452 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20453 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20454 if test $ac_cv_type_size_t = yes; then
20455   :
20456 else
20457   
20458 cat >>confdefs.h <<_ACEOF
20459 @%:@define size_t unsigned
20460 _ACEOF
20461
20462 fi
20463
20464
20465 echo "$as_me:$LINENO: checking for working memcmp" >&5
20466 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20467 if test "${ac_cv_func_memcmp_working+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   if test "$cross_compiling" = yes; then
20471   ac_cv_func_memcmp_working=no
20472 else
20473   cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 $ac_includes_default
20480 int
20481 main ()
20482 {
20483
20484   /* Some versions of memcmp are not 8-bit clean.  */
20485   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20486   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20487     exit (1);
20488
20489   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20490      or more and with at least one buffer not starting on a 4-byte boundary.
20491      William Lewis provided this test program.   */
20492   {
20493     char foo[21];
20494     char bar[21];
20495     int i;
20496     for (i = 0; i < 4; i++)
20497       {
20498         char *a = foo + i;
20499         char *b = bar + i;
20500         strcpy (a, "--------01111111");
20501         strcpy (b, "--------10000000");
20502         if (memcmp (a, b, 16) >= 0)
20503           exit (1);
20504       }
20505     exit (0);
20506   }
20507
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest$ac_exeext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514   (eval $ac_link) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   ac_cv_func_memcmp_working=yes
20524 else
20525   echo "$as_me: program exited with status $ac_status" >&5
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 ( exit $ac_status )
20530 ac_cv_func_memcmp_working=no
20531 fi
20532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20533 fi
20534 fi
20535 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20536 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20537 test $ac_cv_func_memcmp_working = no && case $LIB@&t@OBJS in
20538     "memcmp.$ac_objext"   | \
20539   *" memcmp.$ac_objext"   | \
20540     "memcmp.$ac_objext "* | \
20541   *" memcmp.$ac_objext "* ) ;;
20542   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" ;;
20543 esac
20544
20545
20546
20547
20548 for ac_header in stdlib.h unistd.h
20549 do
20550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20552   echo "$as_me:$LINENO: checking for $ac_header" >&5
20553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 fi
20557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20559 else
20560   # Is the header compilable?
20561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569 $ac_includes_default
20570 @%:@include <$ac_header>
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574   (eval $ac_compile) 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_c_werror_flag"
20582                          || test ! -s conftest.err'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; } &&
20588          { ac_try='test -s conftest.$ac_objext'
20589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590   (eval $ac_try) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_header_compiler=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_header_compiler=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6
20604
20605 # Is the header present?
20606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614 @%:@include <$ac_header>
20615 _ACEOF
20616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } >/dev/null; then
20624   if test -s conftest.err; then
20625     ac_cpp_err=$ac_c_preproc_warn_flag
20626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20627   else
20628     ac_cpp_err=
20629   fi
20630 else
20631   ac_cpp_err=yes
20632 fi
20633 if test -z "$ac_cpp_err"; then
20634   ac_header_preproc=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639   ac_header_preproc=no
20640 fi
20641 rm -f conftest.err conftest.$ac_ext
20642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6
20644
20645 # So?  What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20647   yes:no: )
20648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20652     ac_header_preproc=yes
20653     ;;
20654   no:yes:* )
20655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20667     (
20668       cat <<\_ASBOX
20669 @%:@@%:@ ------------------------------------------ @%:@@%:@
20670 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
20671 @%:@@%:@ ------------------------------------------ @%:@@%:@
20672 _ASBOX
20673     ) |
20674       sed "s/^/$as_me: WARNING:     /" >&2
20675     ;;
20676 esac
20677 echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   eval "$as_ac_Header=\$ac_header_preproc"
20683 fi
20684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20686
20687 fi
20688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20689   cat >>confdefs.h <<_ACEOF
20690 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20691 _ACEOF
20692  
20693 fi
20694
20695 done
20696
20697
20698 for ac_func in getpagesize
20699 do
20700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20701 echo "$as_me:$LINENO: checking for $ac_func" >&5
20702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20703 if eval "test \"\${$as_ac_var+set}\" = set"; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706   cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h.  */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h.  */
20712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20714 #define $ac_func innocuous_$ac_func
20715
20716 /* System header to define __stub macros and hopefully few prototypes,
20717     which can conflict with char $ac_func (); below.
20718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20719     <limits.h> exists even on freestanding compilers.  */
20720
20721 #ifdef __STDC__
20722 # include <limits.h>
20723 #else
20724 # include <assert.h>
20725 #endif
20726
20727 #undef $ac_func
20728
20729 /* Override any gcc2 internal prototype to avoid an error.  */
20730 #ifdef __cplusplus
20731 extern "C"
20732 {
20733 #endif
20734 /* We use char because int might match the return type of a gcc2
20735    builtin and then its argument prototype would still apply.  */
20736 char $ac_func ();
20737 /* The GNU C library defines this for functions which it implements
20738     to always fail with ENOSYS.  Some functions are actually named
20739     something starting with __ and the normal name is an alias.  */
20740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20741 choke me
20742 #else
20743 char (*f) () = $ac_func;
20744 #endif
20745 #ifdef __cplusplus
20746 }
20747 #endif
20748
20749 int
20750 main ()
20751 {
20752 return f != $ac_func;
20753   ;
20754   return 0;
20755 }
20756 _ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759   (eval $ac_link) 2>conftest.er1
20760   ac_status=$?
20761   grep -v '^ *+' conftest.er1 >conftest.err
20762   rm -f conftest.er1
20763   cat conftest.err >&5
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); } &&
20766          { ac_try='test -z "$ac_c_werror_flag"
20767                          || test ! -s conftest.err'
20768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769   (eval $ac_try) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); }; } &&
20773          { ac_try='test -s conftest$ac_exeext'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   eval "$as_ac_var=yes"
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 eval "$as_ac_var=no"
20785 fi
20786 rm -f conftest.err conftest.$ac_objext \
20787       conftest$ac_exeext conftest.$ac_ext
20788 fi
20789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20791 if test `eval echo '${'$as_ac_var'}'` = yes; then
20792   cat >>confdefs.h <<_ACEOF
20793 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20794 _ACEOF
20795  
20796 fi
20797 done
20798
20799 echo "$as_me:$LINENO: checking for working mmap" >&5
20800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   if test "$cross_compiling" = yes; then
20805   ac_cv_func_mmap_fixed_mapped=no
20806 else
20807   cat >conftest.$ac_ext <<_ACEOF
20808 /* confdefs.h.  */
20809 _ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h.  */
20813 $ac_includes_default
20814 /* malloc might have been renamed as rpl_malloc. */
20815 #undef malloc
20816
20817 /* Thanks to Mike Haertel and Jim Avera for this test.
20818    Here is a matrix of mmap possibilities:
20819         mmap private not fixed
20820         mmap private fixed at somewhere currently unmapped
20821         mmap private fixed at somewhere already mapped
20822         mmap shared not fixed
20823         mmap shared fixed at somewhere currently unmapped
20824         mmap shared fixed at somewhere already mapped
20825    For private mappings, we should verify that changes cannot be read()
20826    back from the file, nor mmap's back from the file at a different
20827    address.  (There have been systems where private was not correctly
20828    implemented like the infamous i386 svr4.0, and systems where the
20829    VM page cache was not coherent with the file system buffer cache
20830    like early versions of FreeBSD and possibly contemporary NetBSD.)
20831    For shared mappings, we should conversely verify that changes get
20832    propagated back to all the places they're supposed to be.
20833
20834    Grep wants private fixed already mapped.
20835    The main things grep needs to know about mmap are:
20836    * does it exist and is it safe to write into the mmap'd area
20837    * how to use it (BSD variants)  */
20838
20839 #include <fcntl.h>
20840 #include <sys/mman.h>
20841
20842 #if !STDC_HEADERS && !HAVE_STDLIB_H
20843 char *malloc ();
20844 #endif
20845
20846 /* This mess was copied from the GNU getpagesize.h.  */
20847 #if !HAVE_GETPAGESIZE
20848 /* Assume that all systems that can run configure have sys/param.h.  */
20849 # if !HAVE_SYS_PARAM_H
20850 #  define HAVE_SYS_PARAM_H 1
20851 # endif
20852
20853 # ifdef _SC_PAGESIZE
20854 #  define getpagesize() sysconf(_SC_PAGESIZE)
20855 # else /* no _SC_PAGESIZE */
20856 #  if HAVE_SYS_PARAM_H
20857 #   include <sys/param.h>
20858 #   ifdef EXEC_PAGESIZE
20859 #    define getpagesize() EXEC_PAGESIZE
20860 #   else /* no EXEC_PAGESIZE */
20861 #    ifdef NBPG
20862 #     define getpagesize() NBPG * CLSIZE
20863 #     ifndef CLSIZE
20864 #      define CLSIZE 1
20865 #     endif /* no CLSIZE */
20866 #    else /* no NBPG */
20867 #     ifdef NBPC
20868 #      define getpagesize() NBPC
20869 #     else /* no NBPC */
20870 #      ifdef PAGESIZE
20871 #       define getpagesize() PAGESIZE
20872 #      endif /* PAGESIZE */
20873 #     endif /* no NBPC */
20874 #    endif /* no NBPG */
20875 #   endif /* no EXEC_PAGESIZE */
20876 #  else /* no HAVE_SYS_PARAM_H */
20877 #   define getpagesize() 8192   /* punt totally */
20878 #  endif /* no HAVE_SYS_PARAM_H */
20879 # endif /* no _SC_PAGESIZE */
20880
20881 #endif /* no HAVE_GETPAGESIZE */
20882
20883 int
20884 main ()
20885 {
20886   char *data, *data2, *data3;
20887   int i, pagesize;
20888   int fd;
20889
20890   pagesize = getpagesize ();
20891
20892   /* First, make a file with some known garbage in it. */
20893   data = (char *) malloc (pagesize);
20894   if (!data)
20895     exit (1);
20896   for (i = 0; i < pagesize; ++i)
20897     *(data + i) = rand ();
20898   umask (0);
20899   fd = creat ("conftest.mmap", 0600);
20900   if (fd < 0)
20901     exit (1);
20902   if (write (fd, data, pagesize) != pagesize)
20903     exit (1);
20904   close (fd);
20905
20906   /* Next, try to mmap the file at a fixed address which already has
20907      something else allocated at it.  If we can, also make sure that
20908      we see the same garbage.  */
20909   fd = open ("conftest.mmap", O_RDWR);
20910   if (fd < 0)
20911     exit (1);
20912   data2 = (char *) malloc (2 * pagesize);
20913   if (!data2)
20914     exit (1);
20915   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20916   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20917                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20918     exit (1);
20919   for (i = 0; i < pagesize; ++i)
20920     if (*(data + i) != *(data2 + i))
20921       exit (1);
20922
20923   /* Finally, make sure that changes to the mapped area do not
20924      percolate back to the file as seen by read().  (This is a bug on
20925      some variants of i386 svr4.0.)  */
20926   for (i = 0; i < pagesize; ++i)
20927     *(data2 + i) = *(data2 + i) + 1;
20928   data3 = (char *) malloc (pagesize);
20929   if (!data3)
20930     exit (1);
20931   if (read (fd, data3, pagesize) != pagesize)
20932     exit (1);
20933   for (i = 0; i < pagesize; ++i)
20934     if (*(data + i) != *(data3 + i))
20935       exit (1);
20936   close (fd);
20937   exit (0);
20938 }
20939 _ACEOF
20940 rm -f conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942   (eval $ac_link) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947   (eval $ac_try) 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; }; then
20951   ac_cv_func_mmap_fixed_mapped=yes
20952 else
20953   echo "$as_me: program exited with status $ac_status" >&5
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ( exit $ac_status )
20958 ac_cv_func_mmap_fixed_mapped=no
20959 fi
20960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20961 fi
20962 fi
20963 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20966   
20967 cat >>confdefs.h <<\_ACEOF
20968 @%:@define HAVE_MMAP 1
20969 _ACEOF
20970
20971 fi
20972 rm -f conftest.mmap
20973
20974
20975 case "$host_os" in
20976     mingw* | os2*)
20977     RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
20978     ;;
20979     *)
20980     # UNIX like-system
20981     RCPATH="$sysconfdir/chasenrc"
20982     ;;
20983 esac
20984
20985
20986 if test -n "${GCC}"; then
20987         CFLAGS="${CFLAGS} -Wall"
20988 fi
20989
20990                                                                                 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
20991           ac_config_commands="$ac_config_commands default"
20992 cat >confcache <<\_ACEOF
20993 # This file is a shell script that caches the results of configure
20994 # tests run on this system so they can be shared between configure
20995 # scripts and configure runs, see configure's option --config-cache.
20996 # It is not useful on other systems.  If it contains results you don't
20997 # want to keep, you may remove or edit it.
20998 #
20999 # config.status only pays attention to the cache file if you give it
21000 # the --recheck option to rerun configure.
21001 #
21002 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21003 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21004 # following values.
21005
21006 _ACEOF
21007
21008 # The following way of writing the cache mishandles newlines in values,
21009 # but we know of no workaround that is simple, portable, and efficient.
21010 # So, don't put newlines in cache variables' values.
21011 # Ultrix sh set writes to stderr and can't be redirected directly,
21012 # and sets the high bit in the cache file unless we assign to the vars.
21013 {
21014   (set) 2>&1 |
21015     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21016     *ac_space=\ *)
21017       # `set' does not quote correctly, so add quotes (double-quote
21018       # substitution turns \\\\ into \\, and sed turns \\ into \).
21019       sed -n \
21020         "s/'/'\\\\''/g;
21021           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21022       ;;
21023     *)
21024       # `set' quotes correctly as required by POSIX, so do not add quotes.
21025       sed -n \
21026         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21027       ;;
21028     esac;
21029 } |
21030   sed '
21031      t clear
21032      : clear
21033      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21034      t end
21035      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21036      : end' >>confcache
21037 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21038   if test -w $cache_file; then
21039     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21040     cat confcache >$cache_file
21041   else
21042     echo "not updating unwritable cache $cache_file"
21043   fi
21044 fi
21045 rm -f confcache
21046
21047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21048 # Let make expand exec_prefix.
21049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21050
21051 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21052 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21053 # trailing colons and then remove the whole line if VPATH becomes empty
21054 # (actually we leave an empty line to preserve line numbers).
21055 if test "x$srcdir" = x.; then
21056   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21057 s/:*\$(srcdir):*/:/;
21058 s/:*\${srcdir}:*/:/;
21059 s/:*@srcdir@:*/:/;
21060 s/^\([^=]*=[     ]*\):*/\1/;
21061 s/:*$//;
21062 s/^[^=]*=[       ]*$//;
21063 }'
21064 fi
21065
21066 DEFS=-DHAVE_CONFIG_H
21067
21068 ac_libobjs=
21069 ac_ltlibobjs=
21070 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21071   # 1. Remove the extension, and $U if already installed.
21072   ac_i=`echo "$ac_i" |
21073          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21074   # 2. Add them.
21075   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21076   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21077 done
21078 LIB@&t@OBJS=$ac_libobjs
21079
21080 LTLIBOBJS=$ac_ltlibobjs
21081
21082
21083 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21084   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&5
21086 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&2;}
21088    { (exit 1); exit 1; }; }
21089 fi
21090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21091   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&5
21093 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&2;}
21095    { (exit 1); exit 1; }; }
21096 fi
21097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21098   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21099 Usually this means the macro was only invoked conditionally." >&5
21100 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21101 Usually this means the macro was only invoked conditionally." >&2;}
21102    { (exit 1); exit 1; }; }
21103 fi
21104 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21105   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21106 Usually this means the macro was only invoked conditionally." >&5
21107 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21108 Usually this means the macro was only invoked conditionally." >&2;}
21109    { (exit 1); exit 1; }; }
21110 fi
21111
21112 : ${CONFIG_STATUS=./config.status}
21113 ac_clean_files_save=$ac_clean_files
21114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21115 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21116 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21117 cat >$CONFIG_STATUS <<_ACEOF
21118 #! $SHELL
21119 # Generated by $as_me.
21120 # Run this file to recreate the current configuration.
21121 # Compiler output produced by configure, useful for debugging
21122 # configure, is in config.log if it exists.
21123
21124 debug=false
21125 ac_cs_recheck=false
21126 ac_cs_silent=false
21127 SHELL=\${CONFIG_SHELL-$SHELL}
21128 _ACEOF
21129
21130 cat >>$CONFIG_STATUS <<\_ACEOF
21131 ## --------------------- ##
21132 ## M4sh Initialization.  ##
21133 ## --------------------- ##
21134
21135 # Be Bourne compatible
21136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21137   emulate sh
21138   NULLCMD=:
21139   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21140   # is contrary to our usage.  Disable this feature.
21141   alias -g '${1+"$@"}'='"$@"'
21142 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21143   set -o posix
21144 fi
21145 DUALCASE=1; export DUALCASE # for MKS sh
21146
21147 # Support unset when possible.
21148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21149   as_unset=unset
21150 else
21151   as_unset=false
21152 fi
21153
21154
21155 # Work around bugs in pre-3.0 UWIN ksh.
21156 $as_unset ENV MAIL MAILPATH
21157 PS1='$ '
21158 PS2='> '
21159 PS4='+ '
21160
21161 # NLS nuisances.
21162 for as_var in \
21163   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21164   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21165   LC_TELEPHONE LC_TIME
21166 do
21167   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21168     eval $as_var=C; export $as_var
21169   else
21170     $as_unset $as_var
21171   fi
21172 done
21173
21174 # Required to use basename.
21175 if expr a : '\(a\)' >/dev/null 2>&1; then
21176   as_expr=expr
21177 else
21178   as_expr=false
21179 fi
21180
21181 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21182   as_basename=basename
21183 else
21184   as_basename=false
21185 fi
21186
21187
21188 # Name of the executable.
21189 as_me=`$as_basename "$0" ||
21190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21191          X"$0" : 'X\(//\)$' \| \
21192          X"$0" : 'X\(/\)$' \| \
21193          .     : '\(.\)' 2>/dev/null ||
21194 echo X/"$0" |
21195     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21196           /^X\/\(\/\/\)$/{ s//\1/; q; }
21197           /^X\/\(\/\).*/{ s//\1/; q; }
21198           s/.*/./; q'`
21199
21200
21201 # PATH needs CR, and LINENO needs CR and PATH.
21202 # Avoid depending upon Character Ranges.
21203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21206 as_cr_digits='0123456789'
21207 as_cr_alnum=$as_cr_Letters$as_cr_digits
21208
21209 # The user is always right.
21210 if test "${PATH_SEPARATOR+set}" != set; then
21211   echo "#! /bin/sh" >conf$$.sh
21212   echo  "exit 0"   >>conf$$.sh
21213   chmod +x conf$$.sh
21214   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21215     PATH_SEPARATOR=';'
21216   else
21217     PATH_SEPARATOR=:
21218   fi
21219   rm -f conf$$.sh
21220 fi
21221
21222
21223   as_lineno_1=$LINENO
21224   as_lineno_2=$LINENO
21225   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21226   test "x$as_lineno_1" != "x$as_lineno_2" &&
21227   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21228   # Find who we are.  Look in the path if we contain no path at all
21229   # relative or not.
21230   case $0 in
21231     *[\\/]* ) as_myself=$0 ;;
21232     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21233 for as_dir in $PATH
21234 do
21235   IFS=$as_save_IFS
21236   test -z "$as_dir" && as_dir=.
21237   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21238 done
21239
21240        ;;
21241   esac
21242   # We did not find ourselves, most probably we were run as `sh COMMAND'
21243   # in which case we are not to be found in the path.
21244   if test "x$as_myself" = x; then
21245     as_myself=$0
21246   fi
21247   if test ! -f "$as_myself"; then
21248     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21249 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21250    { (exit 1); exit 1; }; }
21251   fi
21252   case $CONFIG_SHELL in
21253   '')
21254     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21255 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21256 do
21257   IFS=$as_save_IFS
21258   test -z "$as_dir" && as_dir=.
21259   for as_base in sh bash ksh sh5; do
21260          case $as_dir in
21261          /*)
21262            if ("$as_dir/$as_base" -c '
21263   as_lineno_1=$LINENO
21264   as_lineno_2=$LINENO
21265   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21266   test "x$as_lineno_1" != "x$as_lineno_2" &&
21267   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21268              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21269              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21270              CONFIG_SHELL=$as_dir/$as_base
21271              export CONFIG_SHELL
21272              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21273            fi;;
21274          esac
21275        done
21276 done
21277 ;;
21278   esac
21279
21280   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21281   # uniformly replaced by the line number.  The first 'sed' inserts a
21282   # line-number line before each line; the second 'sed' does the real
21283   # work.  The second script uses 'N' to pair each line-number line
21284   # with the numbered line, and appends trailing '-' during
21285   # substitution so that $LINENO is not a special case at line end.
21286   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21287   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21288   sed '=' <$as_myself |
21289     sed '
21290       N
21291       s,$,-,
21292       : loop
21293       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21294       t loop
21295       s,-$,,
21296       s,^['$as_cr_digits']*\n,,
21297     ' >$as_me.lineno &&
21298   chmod +x $as_me.lineno ||
21299     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21300 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21301    { (exit 1); exit 1; }; }
21302
21303   # Don't try to exec as it changes $[0], causing all sort of problems
21304   # (the dirname of $[0] is not the place where we might find the
21305   # original and so on.  Autoconf is especially sensible to this).
21306   . ./$as_me.lineno
21307   # Exit status is that of the last command.
21308   exit
21309 }
21310
21311
21312 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21313   *c*,-n*) ECHO_N= ECHO_C='
21314 ' ECHO_T='      ' ;;
21315   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21316   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21317 esac
21318
21319 if expr a : '\(a\)' >/dev/null 2>&1; then
21320   as_expr=expr
21321 else
21322   as_expr=false
21323 fi
21324
21325 rm -f conf$$ conf$$.exe conf$$.file
21326 echo >conf$$.file
21327 if ln -s conf$$.file conf$$ 2>/dev/null; then
21328   # We could just check for DJGPP; but this test a) works b) is more generic
21329   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21330   if test -f conf$$.exe; then
21331     # Don't use ln at all; we don't have any links
21332     as_ln_s='cp -p'
21333   else
21334     as_ln_s='ln -s'
21335   fi
21336 elif ln conf$$.file conf$$ 2>/dev/null; then
21337   as_ln_s=ln
21338 else
21339   as_ln_s='cp -p'
21340 fi
21341 rm -f conf$$ conf$$.exe conf$$.file
21342
21343 if mkdir -p . 2>/dev/null; then
21344   as_mkdir_p=:
21345 else
21346   test -d ./-p && rmdir ./-p
21347   as_mkdir_p=false
21348 fi
21349
21350 as_executable_p="test -f"
21351
21352 # Sed expression to map a string onto a valid CPP name.
21353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21354
21355 # Sed expression to map a string onto a valid variable name.
21356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21357
21358
21359 # IFS
21360 # We need space, tab and new line, in precisely that order.
21361 as_nl='
21362 '
21363 IFS="   $as_nl"
21364
21365 # CDPATH.
21366 $as_unset CDPATH
21367
21368 exec 6>&1
21369
21370 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21371 # report actual input values of CONFIG_FILES etc. instead of their
21372 # values after options handling.  Logging --version etc. is OK.
21373 exec 5>>config.log
21374 {
21375   echo
21376   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21377 @%:@@%:@ Running $as_me. @%:@@%:@
21378 _ASBOX
21379 } >&5
21380 cat >&5 <<_CSEOF
21381
21382 This file was extended by $as_me, which was
21383 generated by GNU Autoconf 2.59.  Invocation command line was
21384
21385   CONFIG_FILES    = $CONFIG_FILES
21386   CONFIG_HEADERS  = $CONFIG_HEADERS
21387   CONFIG_LINKS    = $CONFIG_LINKS
21388   CONFIG_COMMANDS = $CONFIG_COMMANDS
21389   $ $0 $@
21390
21391 _CSEOF
21392 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21393 echo >&5
21394 _ACEOF
21395
21396 # Files that config.status was made for.
21397 if test -n "$ac_config_files"; then
21398   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21399 fi
21400
21401 if test -n "$ac_config_headers"; then
21402   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21403 fi
21404
21405 if test -n "$ac_config_links"; then
21406   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21407 fi
21408
21409 if test -n "$ac_config_commands"; then
21410   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21411 fi
21412
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21414
21415 ac_cs_usage="\
21416 \`$as_me' instantiates files from templates according to the
21417 current configuration.
21418
21419 Usage: $0 [OPTIONS] [FILE]...
21420
21421   -h, --help       print this help, then exit
21422   -V, --version    print version number, then exit
21423   -q, --quiet      do not print progress messages
21424   -d, --debug      don't remove temporary files
21425       --recheck    update $as_me by reconfiguring in the same conditions
21426   --file=FILE[:TEMPLATE]
21427                    instantiate the configuration file FILE
21428   --header=FILE[:TEMPLATE]
21429                    instantiate the configuration header FILE
21430
21431 Configuration files:
21432 $config_files
21433
21434 Configuration headers:
21435 $config_headers
21436
21437 Configuration commands:
21438 $config_commands
21439
21440 Report bugs to <bug-autoconf@gnu.org>."
21441 _ACEOF
21442
21443 cat >>$CONFIG_STATUS <<_ACEOF
21444 ac_cs_version="\\
21445 config.status
21446 configured by $0, generated by GNU Autoconf 2.59,
21447   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21448
21449 Copyright (C) 2003 Free Software Foundation, Inc.
21450 This config.status script is free software; the Free Software Foundation
21451 gives unlimited permission to copy, distribute and modify it."
21452 srcdir=$srcdir
21453 INSTALL="$INSTALL"
21454 _ACEOF
21455
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21457 # If no file are specified by the user, then we need to provide default
21458 # value.  By we need to know if files were specified by the user.
21459 ac_need_defaults=:
21460 while test $# != 0
21461 do
21462   case $1 in
21463   --*=*)
21464     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21465     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21466     ac_shift=:
21467     ;;
21468   -*)
21469     ac_option=$1
21470     ac_optarg=$2
21471     ac_shift=shift
21472     ;;
21473   *) # This is not an option, so the user has probably given explicit
21474      # arguments.
21475      ac_option=$1
21476      ac_need_defaults=false;;
21477   esac
21478
21479   case $ac_option in
21480   # Handling of the options.
21481 _ACEOF
21482 cat >>$CONFIG_STATUS <<\_ACEOF
21483   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21484     ac_cs_recheck=: ;;
21485   --version | --vers* | -V )
21486     echo "$ac_cs_version"; exit 0 ;;
21487   --he | --h)
21488     # Conflict between --help and --header
21489     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21490 Try \`$0 --help' for more information." >&5
21491 echo "$as_me: error: ambiguous option: $1
21492 Try \`$0 --help' for more information." >&2;}
21493    { (exit 1); exit 1; }; };;
21494   --help | --hel | -h )
21495     echo "$ac_cs_usage"; exit 0 ;;
21496   --debug | --d* | -d )
21497     debug=: ;;
21498   --file | --fil | --fi | --f )
21499     $ac_shift
21500     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21501     ac_need_defaults=false;;
21502   --header | --heade | --head | --hea )
21503     $ac_shift
21504     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21505     ac_need_defaults=false;;
21506   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21507   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21508     ac_cs_silent=: ;;
21509
21510   # This is an error.
21511   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21512 Try \`$0 --help' for more information." >&5
21513 echo "$as_me: error: unrecognized option: $1
21514 Try \`$0 --help' for more information." >&2;}
21515    { (exit 1); exit 1; }; } ;;
21516
21517   *) ac_config_targets="$ac_config_targets $1" ;;
21518
21519   esac
21520   shift
21521 done
21522
21523 ac_configure_extra_args=
21524
21525 if $ac_cs_silent; then
21526   exec 6>/dev/null
21527   ac_configure_extra_args="$ac_configure_extra_args --silent"
21528 fi
21529
21530 _ACEOF
21531 cat >>$CONFIG_STATUS <<_ACEOF
21532 if \$ac_cs_recheck; then
21533   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21534   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21535 fi
21536
21537 _ACEOF
21538
21539 cat >>$CONFIG_STATUS <<_ACEOF
21540 #
21541 # INIT-COMMANDS section.
21542 #
21543
21544 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21545
21546 _ACEOF
21547
21548
21549
21550 cat >>$CONFIG_STATUS <<\_ACEOF
21551 for ac_config_target in $ac_config_targets
21552 do
21553   case "$ac_config_target" in
21554   # Handling of arguments.
21555   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21556   "chasen-config" ) CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
21557   "chasen/Makefile" ) CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
21558   "mkchadic/Makefile" ) CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
21559   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21560   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21561   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21562   "chasen.spec" ) CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
21563   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21564   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21565   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21566   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21567 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21568    { (exit 1); exit 1; }; };;
21569   esac
21570 done
21571
21572 # If the user did not use the arguments to specify the items to instantiate,
21573 # then the envvar interface is used.  Set only those that are not.
21574 # We use the long form for the default assignment because of an extremely
21575 # bizarre bug on SunOS 4.1.3.
21576 if $ac_need_defaults; then
21577   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21578   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21579   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21580 fi
21581
21582 # Have a temporary directory for convenience.  Make it in the build tree
21583 # simply because there is no reason to put it here, and in addition,
21584 # creating and moving files from /tmp can sometimes cause problems.
21585 # Create a temporary directory, and hook for its removal unless debugging.
21586 $debug ||
21587 {
21588   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21589   trap '{ (exit 1); exit 1; }' 1 2 13 15
21590 }
21591
21592 # Create a (secure) tmp directory for tmp files.
21593
21594 {
21595   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21596   test -n "$tmp" && test -d "$tmp"
21597 }  ||
21598 {
21599   tmp=./confstat$$-$RANDOM
21600   (umask 077 && mkdir $tmp)
21601 } ||
21602 {
21603    echo "$me: cannot create a temporary directory in ." >&2
21604    { (exit 1); exit 1; }
21605 }
21606
21607 _ACEOF
21608
21609 cat >>$CONFIG_STATUS <<_ACEOF
21610
21611 #
21612 # CONFIG_FILES section.
21613 #
21614
21615 # No need to generate the scripts if there are no CONFIG_FILES.
21616 # This happens for instance when ./config.status config.h
21617 if test -n "\$CONFIG_FILES"; then
21618   # Protect against being on the right side of a sed subst in config.status.
21619   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21620    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21621 s,@SHELL@,$SHELL,;t t
21622 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21623 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21624 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21625 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21626 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21627 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21628 s,@exec_prefix@,$exec_prefix,;t t
21629 s,@prefix@,$prefix,;t t
21630 s,@program_transform_name@,$program_transform_name,;t t
21631 s,@bindir@,$bindir,;t t
21632 s,@sbindir@,$sbindir,;t t
21633 s,@libexecdir@,$libexecdir,;t t
21634 s,@datadir@,$datadir,;t t
21635 s,@sysconfdir@,$sysconfdir,;t t
21636 s,@sharedstatedir@,$sharedstatedir,;t t
21637 s,@localstatedir@,$localstatedir,;t t
21638 s,@libdir@,$libdir,;t t
21639 s,@includedir@,$includedir,;t t
21640 s,@oldincludedir@,$oldincludedir,;t t
21641 s,@infodir@,$infodir,;t t
21642 s,@mandir@,$mandir,;t t
21643 s,@build_alias@,$build_alias,;t t
21644 s,@host_alias@,$host_alias,;t t
21645 s,@target_alias@,$target_alias,;t t
21646 s,@DEFS@,$DEFS,;t t
21647 s,@ECHO_C@,$ECHO_C,;t t
21648 s,@ECHO_N@,$ECHO_N,;t t
21649 s,@ECHO_T@,$ECHO_T,;t t
21650 s,@LIBS@,$LIBS,;t t
21651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21652 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21653 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21654 s,@CYGPATH_W@,$CYGPATH_W,;t t
21655 s,@PACKAGE@,$PACKAGE,;t t
21656 s,@VERSION@,$VERSION,;t t
21657 s,@ACLOCAL@,$ACLOCAL,;t t
21658 s,@AUTOCONF@,$AUTOCONF,;t t
21659 s,@AUTOMAKE@,$AUTOMAKE,;t t
21660 s,@AUTOHEADER@,$AUTOHEADER,;t t
21661 s,@MAKEINFO@,$MAKEINFO,;t t
21662 s,@AMTAR@,$AMTAR,;t t
21663 s,@install_sh@,$install_sh,;t t
21664 s,@STRIP@,$STRIP,;t t
21665 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21666 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21667 s,@mkdir_p@,$mkdir_p,;t t
21668 s,@AWK@,$AWK,;t t
21669 s,@SET_MAKE@,$SET_MAKE,;t t
21670 s,@am__leading_dot@,$am__leading_dot,;t t
21671 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21672 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21673 s,@MAINT@,$MAINT,;t t
21674 s,@CC@,$CC,;t t
21675 s,@CFLAGS@,$CFLAGS,;t t
21676 s,@LDFLAGS@,$LDFLAGS,;t t
21677 s,@CPPFLAGS@,$CPPFLAGS,;t t
21678 s,@ac_ct_CC@,$ac_ct_CC,;t t
21679 s,@EXEEXT@,$EXEEXT,;t t
21680 s,@OBJEXT@,$OBJEXT,;t t
21681 s,@DEPDIR@,$DEPDIR,;t t
21682 s,@am__include@,$am__include,;t t
21683 s,@am__quote@,$am__quote,;t t
21684 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21685 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21686 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21687 s,@CCDEPMODE@,$CCDEPMODE,;t t
21688 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21689 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21690 s,@CXX@,$CXX,;t t
21691 s,@CXXFLAGS@,$CXXFLAGS,;t t
21692 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21693 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21694 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21695 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21696 s,@build@,$build,;t t
21697 s,@build_cpu@,$build_cpu,;t t
21698 s,@build_vendor@,$build_vendor,;t t
21699 s,@build_os@,$build_os,;t t
21700 s,@host@,$host,;t t
21701 s,@host_cpu@,$host_cpu,;t t
21702 s,@host_vendor@,$host_vendor,;t t
21703 s,@host_os@,$host_os,;t t
21704 s,@EGREP@,$EGREP,;t t
21705 s,@LN_S@,$LN_S,;t t
21706 s,@ECHO@,$ECHO,;t t
21707 s,@AR@,$AR,;t t
21708 s,@ac_ct_AR@,$ac_ct_AR,;t t
21709 s,@RANLIB@,$RANLIB,;t t
21710 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21711 s,@CPP@,$CPP,;t t
21712 s,@CXXCPP@,$CXXCPP,;t t
21713 s,@F77@,$F77,;t t
21714 s,@FFLAGS@,$FFLAGS,;t t
21715 s,@ac_ct_F77@,$ac_ct_F77,;t t
21716 s,@LIBTOOL@,$LIBTOOL,;t t
21717 s,@LTVERSION@,$LTVERSION,;t t
21718 s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
21719 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21720 s,@RCPATH@,$RCPATH,;t t
21721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21722 CEOF
21723
21724 _ACEOF
21725
21726   cat >>$CONFIG_STATUS <<\_ACEOF
21727   # Split the substitutions into bite-sized pieces for seds with
21728   # small command number limits, like on Digital OSF/1 and HP-UX.
21729   ac_max_sed_lines=48
21730   ac_sed_frag=1 # Number of current file.
21731   ac_beg=1 # First line for current file.
21732   ac_end=$ac_max_sed_lines # Line after last line for current file.
21733   ac_more_lines=:
21734   ac_sed_cmds=
21735   while $ac_more_lines; do
21736     if test $ac_beg -gt 1; then
21737       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21738     else
21739       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21740     fi
21741     if test ! -s $tmp/subs.frag; then
21742       ac_more_lines=false
21743     else
21744       # The purpose of the label and of the branching condition is to
21745       # speed up the sed processing (if there are no `@' at all, there
21746       # is no need to browse any of the substitutions).
21747       # These are the two extra sed commands mentioned above.
21748       (echo ':t
21749   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21750       if test -z "$ac_sed_cmds"; then
21751         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21752       else
21753         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21754       fi
21755       ac_sed_frag=`expr $ac_sed_frag + 1`
21756       ac_beg=$ac_end
21757       ac_end=`expr $ac_end + $ac_max_sed_lines`
21758     fi
21759   done
21760   if test -z "$ac_sed_cmds"; then
21761     ac_sed_cmds=cat
21762   fi
21763 fi # test -n "$CONFIG_FILES"
21764
21765 _ACEOF
21766 cat >>$CONFIG_STATUS <<\_ACEOF
21767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21769   case $ac_file in
21770   - | *:- | *:-:* ) # input from stdin
21771         cat >$tmp/stdin
21772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21776   * )   ac_file_in=$ac_file.in ;;
21777   esac
21778
21779   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21780   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21782          X"$ac_file" : 'X\(//\)[^/]' \| \
21783          X"$ac_file" : 'X\(//\)$' \| \
21784          X"$ac_file" : 'X\(/\)' \| \
21785          .     : '\(.\)' 2>/dev/null ||
21786 echo X"$ac_file" |
21787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21789           /^X\(\/\/\)$/{ s//\1/; q; }
21790           /^X\(\/\).*/{ s//\1/; q; }
21791           s/.*/./; q'`
21792   { if $as_mkdir_p; then
21793     mkdir -p "$ac_dir"
21794   else
21795     as_dir="$ac_dir"
21796     as_dirs=
21797     while test ! -d "$as_dir"; do
21798       as_dirs="$as_dir $as_dirs"
21799       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21801          X"$as_dir" : 'X\(//\)[^/]' \| \
21802          X"$as_dir" : 'X\(//\)$' \| \
21803          X"$as_dir" : 'X\(/\)' \| \
21804          .     : '\(.\)' 2>/dev/null ||
21805 echo X"$as_dir" |
21806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21807           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21808           /^X\(\/\/\)$/{ s//\1/; q; }
21809           /^X\(\/\).*/{ s//\1/; q; }
21810           s/.*/./; q'`
21811     done
21812     test ! -n "$as_dirs" || mkdir $as_dirs
21813   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21815    { (exit 1); exit 1; }; }; }
21816
21817   ac_builddir=.
21818
21819 if test "$ac_dir" != .; then
21820   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21821   # A "../" for each directory in $ac_dir_suffix.
21822   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21823 else
21824   ac_dir_suffix= ac_top_builddir=
21825 fi
21826
21827 case $srcdir in
21828   .)  # No --srcdir option.  We are building in place.
21829     ac_srcdir=.
21830     if test -z "$ac_top_builddir"; then
21831        ac_top_srcdir=.
21832     else
21833        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21834     fi ;;
21835   [\\/]* | ?:[\\/]* )  # Absolute path.
21836     ac_srcdir=$srcdir$ac_dir_suffix;
21837     ac_top_srcdir=$srcdir ;;
21838   *) # Relative path.
21839     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21840     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21841 esac
21842
21843 # Do not use `cd foo && pwd` to compute absolute paths, because
21844 # the directories may not exist.
21845 case `pwd` in
21846 .) ac_abs_builddir="$ac_dir";;
21847 *)
21848   case "$ac_dir" in
21849   .) ac_abs_builddir=`pwd`;;
21850   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21851   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21852   esac;;
21853 esac
21854 case $ac_abs_builddir in
21855 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21856 *)
21857   case ${ac_top_builddir}. in
21858   .) ac_abs_top_builddir=$ac_abs_builddir;;
21859   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21860   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21861   esac;;
21862 esac
21863 case $ac_abs_builddir in
21864 .) ac_abs_srcdir=$ac_srcdir;;
21865 *)
21866   case $ac_srcdir in
21867   .) ac_abs_srcdir=$ac_abs_builddir;;
21868   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21869   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21870   esac;;
21871 esac
21872 case $ac_abs_builddir in
21873 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21874 *)
21875   case $ac_top_srcdir in
21876   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21877   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21878   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21879   esac;;
21880 esac
21881
21882
21883   case $INSTALL in
21884   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21885   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21886   esac
21887
21888   if test x"$ac_file" != x-; then
21889     { echo "$as_me:$LINENO: creating $ac_file" >&5
21890 echo "$as_me: creating $ac_file" >&6;}
21891     rm -f "$ac_file"
21892   fi
21893   # Let's still pretend it is `configure' which instantiates (i.e., don't
21894   # use $as_me), people would be surprised to read:
21895   #    /* config.h.  Generated by config.status.  */
21896   if test x"$ac_file" = x-; then
21897     configure_input=
21898   else
21899     configure_input="$ac_file.  "
21900   fi
21901   configure_input=$configure_input"Generated from `echo $ac_file_in |
21902                                      sed 's,.*/,,'` by configure."
21903
21904   # First look for the input files in the build tree, otherwise in the
21905   # src tree.
21906   ac_file_inputs=`IFS=:
21907     for f in $ac_file_in; do
21908       case $f in
21909       -) echo $tmp/stdin ;;
21910       [\\/$]*)
21911          # Absolute (can't be DOS-style, as IFS=:)
21912          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21913 echo "$as_me: error: cannot find input file: $f" >&2;}
21914    { (exit 1); exit 1; }; }
21915          echo "$f";;
21916       *) # Relative
21917          if test -f "$f"; then
21918            # Build tree
21919            echo "$f"
21920          elif test -f "$srcdir/$f"; then
21921            # Source tree
21922            echo "$srcdir/$f"
21923          else
21924            # /dev/null tree
21925            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21926 echo "$as_me: error: cannot find input file: $f" >&2;}
21927    { (exit 1); exit 1; }; }
21928          fi;;
21929       esac
21930     done` || { (exit 1); exit 1; }
21931 _ACEOF
21932 cat >>$CONFIG_STATUS <<_ACEOF
21933   sed "$ac_vpsub
21934 $extrasub
21935 _ACEOF
21936 cat >>$CONFIG_STATUS <<\_ACEOF
21937 :t
21938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21939 s,@configure_input@,$configure_input,;t t
21940 s,@srcdir@,$ac_srcdir,;t t
21941 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21942 s,@top_srcdir@,$ac_top_srcdir,;t t
21943 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21944 s,@builddir@,$ac_builddir,;t t
21945 s,@abs_builddir@,$ac_abs_builddir,;t t
21946 s,@top_builddir@,$ac_top_builddir,;t t
21947 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21948 s,@INSTALL@,$ac_INSTALL,;t t
21949 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21950   rm -f $tmp/stdin
21951   if test x"$ac_file" != x-; then
21952     mv $tmp/out $ac_file
21953   else
21954     cat $tmp/out
21955     rm -f $tmp/out
21956   fi
21957
21958 done
21959 _ACEOF
21960 cat >>$CONFIG_STATUS <<\_ACEOF
21961
21962 #
21963 # CONFIG_HEADER section.
21964 #
21965
21966 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21967 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21968 #
21969 # ac_d sets the value in "#define NAME VALUE" lines.
21970 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21971 ac_dB='[         ].*$,\1#\2'
21972 ac_dC=' '
21973 ac_dD=',;t'
21974 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21975 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21976 ac_uB='$,\1#\2define\3'
21977 ac_uC=' '
21978 ac_uD=',;t'
21979
21980 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21981   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21982   case $ac_file in
21983   - | *:- | *:-:* ) # input from stdin
21984         cat >$tmp/stdin
21985         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21986         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21987   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21988         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21989   * )   ac_file_in=$ac_file.in ;;
21990   esac
21991
21992   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21993 echo "$as_me: creating $ac_file" >&6;}
21994
21995   # First look for the input files in the build tree, otherwise in the
21996   # src tree.
21997   ac_file_inputs=`IFS=:
21998     for f in $ac_file_in; do
21999       case $f in
22000       -) echo $tmp/stdin ;;
22001       [\\/$]*)
22002          # Absolute (can't be DOS-style, as IFS=:)
22003          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22004 echo "$as_me: error: cannot find input file: $f" >&2;}
22005    { (exit 1); exit 1; }; }
22006          # Do quote $f, to prevent DOS paths from being IFS'd.
22007          echo "$f";;
22008       *) # Relative
22009          if test -f "$f"; then
22010            # Build tree
22011            echo "$f"
22012          elif test -f "$srcdir/$f"; then
22013            # Source tree
22014            echo "$srcdir/$f"
22015          else
22016            # /dev/null tree
22017            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22018 echo "$as_me: error: cannot find input file: $f" >&2;}
22019    { (exit 1); exit 1; }; }
22020          fi;;
22021       esac
22022     done` || { (exit 1); exit 1; }
22023   # Remove the trailing spaces.
22024   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22025
22026 _ACEOF
22027
22028 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22029 # `conftest.undefs', that substitutes the proper values into
22030 # config.h.in to produce config.h.  The first handles `#define'
22031 # templates, and the second `#undef' templates.
22032 # And first: Protect against being on the right side of a sed subst in
22033 # config.status.  Protect against being in an unquoted here document
22034 # in config.status.
22035 rm -f conftest.defines conftest.undefs
22036 # Using a here document instead of a string reduces the quoting nightmare.
22037 # Putting comments in sed scripts is not portable.
22038 #
22039 # `end' is used to avoid that the second main sed command (meant for
22040 # 0-ary CPP macros) applies to n-ary macro definitions.
22041 # See the Autoconf documentation for `clear'.
22042 cat >confdef2sed.sed <<\_ACEOF
22043 s/[\\&,]/\\&/g
22044 s,[\\$`],\\&,g
22045 t clear
22046 : clear
22047 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22048 t end
22049 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22050 : end
22051 _ACEOF
22052 # If some macros were called several times there might be several times
22053 # the same #defines, which is useless.  Nevertheless, we may not want to
22054 # sort them, since we want the *last* AC-DEFINE to be honored.
22055 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22056 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22057 rm -f confdef2sed.sed
22058
22059 # This sed command replaces #undef with comments.  This is necessary, for
22060 # example, in the case of _POSIX_SOURCE, which is predefined and required
22061 # on some systems where configure will not decide to define it.
22062 cat >>conftest.undefs <<\_ACEOF
22063 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22064 _ACEOF
22065
22066 # Break up conftest.defines because some shells have a limit on the size
22067 # of here documents, and old seds have small limits too (100 cmds).
22068 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22069 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22070 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22071 echo '  :' >>$CONFIG_STATUS
22072 rm -f conftest.tail
22073 while grep . conftest.defines >/dev/null
22074 do
22075   # Write a limited-size here document to $tmp/defines.sed.
22076   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22077   # Speed up: don't consider the non `#define' lines.
22078   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22079   # Work around the forget-to-reset-the-flag bug.
22080   echo 't clr' >>$CONFIG_STATUS
22081   echo ': clr' >>$CONFIG_STATUS
22082   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22083   echo 'CEOF
22084   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22085   rm -f $tmp/in
22086   mv $tmp/out $tmp/in
22087 ' >>$CONFIG_STATUS
22088   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22089   rm -f conftest.defines
22090   mv conftest.tail conftest.defines
22091 done
22092 rm -f conftest.defines
22093 echo '  fi # grep' >>$CONFIG_STATUS
22094 echo >>$CONFIG_STATUS
22095
22096 # Break up conftest.undefs because some shells have a limit on the size
22097 # of here documents, and old seds have small limits too (100 cmds).
22098 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22099 rm -f conftest.tail
22100 while grep . conftest.undefs >/dev/null
22101 do
22102   # Write a limited-size here document to $tmp/undefs.sed.
22103   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22104   # Speed up: don't consider the non `#undef'
22105   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22106   # Work around the forget-to-reset-the-flag bug.
22107   echo 't clr' >>$CONFIG_STATUS
22108   echo ': clr' >>$CONFIG_STATUS
22109   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22110   echo 'CEOF
22111   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22112   rm -f $tmp/in
22113   mv $tmp/out $tmp/in
22114 ' >>$CONFIG_STATUS
22115   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22116   rm -f conftest.undefs
22117   mv conftest.tail conftest.undefs
22118 done
22119 rm -f conftest.undefs
22120
22121 cat >>$CONFIG_STATUS <<\_ACEOF
22122   # Let's still pretend it is `configure' which instantiates (i.e., don't
22123   # use $as_me), people would be surprised to read:
22124   #    /* config.h.  Generated by config.status.  */
22125   if test x"$ac_file" = x-; then
22126     echo "/* Generated by configure.  */" >$tmp/config.h
22127   else
22128     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22129   fi
22130   cat $tmp/in >>$tmp/config.h
22131   rm -f $tmp/in
22132   if test x"$ac_file" != x-; then
22133     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22134       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22135 echo "$as_me: $ac_file is unchanged" >&6;}
22136     else
22137       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22139          X"$ac_file" : 'X\(//\)[^/]' \| \
22140          X"$ac_file" : 'X\(//\)$' \| \
22141          X"$ac_file" : 'X\(/\)' \| \
22142          .     : '\(.\)' 2>/dev/null ||
22143 echo X"$ac_file" |
22144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22145           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22146           /^X\(\/\/\)$/{ s//\1/; q; }
22147           /^X\(\/\).*/{ s//\1/; q; }
22148           s/.*/./; q'`
22149       { if $as_mkdir_p; then
22150     mkdir -p "$ac_dir"
22151   else
22152     as_dir="$ac_dir"
22153     as_dirs=
22154     while test ! -d "$as_dir"; do
22155       as_dirs="$as_dir $as_dirs"
22156       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22158          X"$as_dir" : 'X\(//\)[^/]' \| \
22159          X"$as_dir" : 'X\(//\)$' \| \
22160          X"$as_dir" : 'X\(/\)' \| \
22161          .     : '\(.\)' 2>/dev/null ||
22162 echo X"$as_dir" |
22163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22165           /^X\(\/\/\)$/{ s//\1/; q; }
22166           /^X\(\/\).*/{ s//\1/; q; }
22167           s/.*/./; q'`
22168     done
22169     test ! -n "$as_dirs" || mkdir $as_dirs
22170   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22172    { (exit 1); exit 1; }; }; }
22173
22174       rm -f $ac_file
22175       mv $tmp/config.h $ac_file
22176     fi
22177   else
22178     cat $tmp/config.h
22179     rm -f $tmp/config.h
22180   fi
22181 # Compute $ac_file's index in $config_headers.
22182 _am_stamp_count=1
22183 for _am_header in $config_headers :; do
22184   case $_am_header in
22185     $ac_file | $ac_file:* )
22186       break ;;
22187     * )
22188       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22189   esac
22190 done
22191 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22192 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22193          X$ac_file : 'X\(//\)[^/]' \| \
22194          X$ac_file : 'X\(//\)$' \| \
22195          X$ac_file : 'X\(/\)' \| \
22196          .     : '\(.\)' 2>/dev/null ||
22197 echo X$ac_file |
22198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22199           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22200           /^X\(\/\/\)$/{ s//\1/; q; }
22201           /^X\(\/\).*/{ s//\1/; q; }
22202           s/.*/./; q'`/stamp-h$_am_stamp_count
22203 done
22204 _ACEOF
22205 cat >>$CONFIG_STATUS <<\_ACEOF
22206
22207 #
22208 # CONFIG_COMMANDS section.
22209 #
22210 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22211   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22212   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22213   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22214 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22215          X"$ac_dest" : 'X\(//\)[^/]' \| \
22216          X"$ac_dest" : 'X\(//\)$' \| \
22217          X"$ac_dest" : 'X\(/\)' \| \
22218          .     : '\(.\)' 2>/dev/null ||
22219 echo X"$ac_dest" |
22220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22221           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22222           /^X\(\/\/\)$/{ s//\1/; q; }
22223           /^X\(\/\).*/{ s//\1/; q; }
22224           s/.*/./; q'`
22225   { if $as_mkdir_p; then
22226     mkdir -p "$ac_dir"
22227   else
22228     as_dir="$ac_dir"
22229     as_dirs=
22230     while test ! -d "$as_dir"; do
22231       as_dirs="$as_dir $as_dirs"
22232       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22234          X"$as_dir" : 'X\(//\)[^/]' \| \
22235          X"$as_dir" : 'X\(//\)$' \| \
22236          X"$as_dir" : 'X\(/\)' \| \
22237          .     : '\(.\)' 2>/dev/null ||
22238 echo X"$as_dir" |
22239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22240           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22241           /^X\(\/\/\)$/{ s//\1/; q; }
22242           /^X\(\/\).*/{ s//\1/; q; }
22243           s/.*/./; q'`
22244     done
22245     test ! -n "$as_dirs" || mkdir $as_dirs
22246   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22248    { (exit 1); exit 1; }; }; }
22249
22250   ac_builddir=.
22251
22252 if test "$ac_dir" != .; then
22253   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22254   # A "../" for each directory in $ac_dir_suffix.
22255   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22256 else
22257   ac_dir_suffix= ac_top_builddir=
22258 fi
22259
22260 case $srcdir in
22261   .)  # No --srcdir option.  We are building in place.
22262     ac_srcdir=.
22263     if test -z "$ac_top_builddir"; then
22264        ac_top_srcdir=.
22265     else
22266        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22267     fi ;;
22268   [\\/]* | ?:[\\/]* )  # Absolute path.
22269     ac_srcdir=$srcdir$ac_dir_suffix;
22270     ac_top_srcdir=$srcdir ;;
22271   *) # Relative path.
22272     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22273     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22274 esac
22275
22276 # Do not use `cd foo && pwd` to compute absolute paths, because
22277 # the directories may not exist.
22278 case `pwd` in
22279 .) ac_abs_builddir="$ac_dir";;
22280 *)
22281   case "$ac_dir" in
22282   .) ac_abs_builddir=`pwd`;;
22283   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22284   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22285   esac;;
22286 esac
22287 case $ac_abs_builddir in
22288 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22289 *)
22290   case ${ac_top_builddir}. in
22291   .) ac_abs_top_builddir=$ac_abs_builddir;;
22292   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22293   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22294   esac;;
22295 esac
22296 case $ac_abs_builddir in
22297 .) ac_abs_srcdir=$ac_srcdir;;
22298 *)
22299   case $ac_srcdir in
22300   .) ac_abs_srcdir=$ac_abs_builddir;;
22301   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22302   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22303   esac;;
22304 esac
22305 case $ac_abs_builddir in
22306 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22307 *)
22308   case $ac_top_srcdir in
22309   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22310   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22311   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22312   esac;;
22313 esac
22314
22315
22316   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22317 echo "$as_me: executing $ac_dest commands" >&6;}
22318   case $ac_dest in
22319     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22320   # Strip MF so we end up with the name of the file.
22321   mf=`echo "$mf" | sed -e 's/:.*$//'`
22322   # Check whether this is an Automake generated Makefile or not.
22323   # We used to match only the files named `Makefile.in', but
22324   # some people rename them; so instead we look at the file content.
22325   # Grep'ing the first line is not enough: some people post-process
22326   # each Makefile.in and add a new line on top of each file to say so.
22327   # So let's grep whole file.
22328   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22329     dirpart=`(dirname "$mf") 2>/dev/null ||
22330 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22331          X"$mf" : 'X\(//\)[^/]' \| \
22332          X"$mf" : 'X\(//\)$' \| \
22333          X"$mf" : 'X\(/\)' \| \
22334          .     : '\(.\)' 2>/dev/null ||
22335 echo X"$mf" |
22336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22337           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22338           /^X\(\/\/\)$/{ s//\1/; q; }
22339           /^X\(\/\).*/{ s//\1/; q; }
22340           s/.*/./; q'`
22341   else
22342     continue
22343   fi
22344   grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
22345   # Extract the definition of DEP_FILES from the Makefile without
22346   # running `make'.
22347   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22348   test -z "$DEPDIR" && continue
22349   # When using ansi2knr, U may be empty or an underscore; expand it
22350   U=`sed -n 's/^U = //p' < "$mf"`
22351   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22352   # We invoke sed twice because it is the simplest approach to
22353   # changing $(DEPDIR) to its actual value in the expansion.
22354   for file in `sed -n '
22355     /^DEP_FILES = .*\\\\$/ {
22356       s/^DEP_FILES = //
22357       :loop
22358         s/\\\\$//
22359         p
22360         n
22361         /\\\\$/ b loop
22362       p
22363     }
22364     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22365        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22366     # Make sure the directory exists.
22367     test -f "$dirpart/$file" && continue
22368     fdir=`(dirname "$file") 2>/dev/null ||
22369 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22370          X"$file" : 'X\(//\)[^/]' \| \
22371          X"$file" : 'X\(//\)$' \| \
22372          X"$file" : 'X\(/\)' \| \
22373          .     : '\(.\)' 2>/dev/null ||
22374 echo X"$file" |
22375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22376           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22377           /^X\(\/\/\)$/{ s//\1/; q; }
22378           /^X\(\/\).*/{ s//\1/; q; }
22379           s/.*/./; q'`
22380     { if $as_mkdir_p; then
22381     mkdir -p $dirpart/$fdir
22382   else
22383     as_dir=$dirpart/$fdir
22384     as_dirs=
22385     while test ! -d "$as_dir"; do
22386       as_dirs="$as_dir $as_dirs"
22387       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389          X"$as_dir" : 'X\(//\)[^/]' \| \
22390          X"$as_dir" : 'X\(//\)$' \| \
22391          X"$as_dir" : 'X\(/\)' \| \
22392          .     : '\(.\)' 2>/dev/null ||
22393 echo X"$as_dir" |
22394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22395           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22396           /^X\(\/\/\)$/{ s//\1/; q; }
22397           /^X\(\/\).*/{ s//\1/; q; }
22398           s/.*/./; q'`
22399     done
22400     test ! -n "$as_dirs" || mkdir $as_dirs
22401   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22402 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22403    { (exit 1); exit 1; }; }; }
22404
22405     # echo "creating $dirpart/$file"
22406     echo '# dummy' > "$dirpart/$file"
22407   done
22408 done
22409  ;;
22410     default ) chmod +x chasen-config ;;
22411   esac
22412 done
22413 _ACEOF
22414
22415 cat >>$CONFIG_STATUS <<\_ACEOF
22416
22417 { (exit 0); exit 0; }
22418 _ACEOF
22419 chmod +x $CONFIG_STATUS
22420 ac_clean_files=$ac_clean_files_save
22421
22422
22423 # configure is writing to config.log, and then calls config.status.
22424 # config.status does its own redirection, appending to config.log.
22425 # Unfortunately, on DOS this fails, as config.log is still kept open
22426 # by configure, so config.status won't be able to write to it; its
22427 # output is simply discarded.  So we exec the FD to /dev/null,
22428 # effectively closing config.log, so it can be properly (re)opened and
22429 # appended to by config.status.  When coming back to configure, we
22430 # need to make the FD available again.
22431 if test "$no_create" != yes; then
22432   ac_cs_success=:
22433   ac_config_status_args=
22434   test "$silent" = yes &&
22435     ac_config_status_args="$ac_config_status_args --quiet"
22436   exec 5>/dev/null
22437   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22438   exec 5>>config.log
22439   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22440   # would make configure fail if this is the last instruction.
22441   $ac_cs_success || { (exit 1); exit 1; }
22442 fi
22443
22444
22445
22446 # removed the following entry from AC_OUTPUT
22447 #           lib/Makefile.mingw32
22448
22449 # Local Variables:
22450 # mode:shell-script
22451 # sh-indentation:4
22452 # End: