OSDN Git Service

initial import
[chasen-legacy/chasen.git] / configure
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 LIBOBJS 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.9"
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   # We used to keeping the `.' as first argument, in order to
1680   # allow $(mkdir_p) to be used without argument.  As in
1681   #   $(mkdir_p) $(somedir)
1682   # where $(somedir) is conditionally defined.  However this is wrong
1683   # for two reasons:
1684   #  1. if the package is installed by a user who cannot write `.'
1685   #     make install will fail,
1686   #  2. the above comment should most certainly read
1687   #     $(mkdir_p) $(DESTDIR)$(somedir)
1688   #     so it does not work when $(somedir) is undefined and
1689   #     $(DESTDIR) is not.
1690   #  To support the latter case, we have to write
1691   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1692   #  so the `.' trick is pointless.
1693   mkdir_p='mkdir -p --'
1694 else
1695   # On NextStep and OpenStep, the `mkdir' command does not
1696   # recognize any option.  It will interpret all options as
1697   # directories to create, and then abort because `.' already
1698   # exists.
1699   for d in ./-p ./--version;
1700   do
1701     test -d $d && rmdir $d
1702   done
1703   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1704   if test -f "$ac_aux_dir/mkinstalldirs"; then
1705     mkdir_p='$(mkinstalldirs)'
1706   else
1707     mkdir_p='$(install_sh) -d'
1708   fi
1709 fi
1710
1711 for ac_prog in gawk mawk nawk awk
1712 do
1713   # Extract the first word of "$ac_prog", so it can be a program name with args.
1714 set dummy $ac_prog; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_AWK+set}" = set; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   if test -n "$AWK"; then
1721   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726   IFS=$as_save_IFS
1727   test -z "$as_dir" && as_dir=.
1728   for ac_exec_ext in '' $ac_executable_extensions; do
1729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730     ac_cv_prog_AWK="$ac_prog"
1731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732     break 2
1733   fi
1734 done
1735 done
1736
1737 fi
1738 fi
1739 AWK=$ac_cv_prog_AWK
1740 if test -n "$AWK"; then
1741   echo "$as_me:$LINENO: result: $AWK" >&5
1742 echo "${ECHO_T}$AWK" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748   test -n "$AWK" && break
1749 done
1750
1751 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1752 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1754 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   cat >conftest.make <<\_ACEOF
1758 all:
1759         @echo 'ac_maketemp="$(MAKE)"'
1760 _ACEOF
1761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1762 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1763 if test -n "$ac_maketemp"; then
1764   eval ac_cv_prog_make_${ac_make}_set=yes
1765 else
1766   eval ac_cv_prog_make_${ac_make}_set=no
1767 fi
1768 rm -f conftest.make
1769 fi
1770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1771   echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773   SET_MAKE=
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777   SET_MAKE="MAKE=${MAKE-make}"
1778 fi
1779
1780 rm -rf .tst 2>/dev/null
1781 mkdir .tst 2>/dev/null
1782 if test -d .tst; then
1783   am__leading_dot=.
1784 else
1785   am__leading_dot=_
1786 fi
1787 rmdir .tst 2>/dev/null
1788
1789 # test to see if srcdir already configured
1790 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1791    test -f $srcdir/config.status; then
1792   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1793 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1794    { (exit 1); exit 1; }; }
1795 fi
1796
1797 # test whether we have cygpath
1798 if test -z "$CYGPATH_W"; then
1799   if (cygpath --version) >/dev/null 2>/dev/null; then
1800     CYGPATH_W='cygpath -w'
1801   else
1802     CYGPATH_W=echo
1803   fi
1804 fi
1805
1806
1807 # Define the identity of the package.
1808  PACKAGE=chasen
1809  VERSION=2.4.0-preview2
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE "$PACKAGE"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define VERSION "$VERSION"
1819 _ACEOF
1820
1821 # Some tools Automake needs.
1822
1823 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1824
1825
1826 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1827
1828
1829 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1830
1831
1832 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1833
1834
1835 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1836
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1838
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'.  However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844   if test -n "$ac_tool_prefix"; then
1845   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$STRIP"; then
1853   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864     break 2
1865   fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873   echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876   echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
1881 if test -z "$ac_cv_prog_STRIP"; then
1882   ac_ct_STRIP=$STRIP
1883   # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$ac_ct_STRIP"; then
1891   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_ac_ct_STRIP="strip"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 fi
1909 fi
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919   STRIP=$ac_ct_STRIP
1920 else
1921   STRIP="$ac_cv_prog_STRIP"
1922 fi
1923
1924 fi
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1926
1927 # We need awk for the "check" target.  The system "awk" is bad on
1928 # some platforms.
1929 # Always define AMTAR for backward compatibility.
1930
1931 AMTAR=${AMTAR-"${am_missing_run}tar"}
1932
1933 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1934
1935
1936
1937
1938
1939           ac_config_headers="$ac_config_headers config.h"
1940
1941 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1942 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1943     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1944 if test "${enable_maintainer_mode+set}" = set; then
1945   enableval="$enable_maintainer_mode"
1946   USE_MAINTAINER_MODE=$enableval
1947 else
1948   USE_MAINTAINER_MODE=no
1949 fi;
1950   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1951 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1952
1953
1954 if test $USE_MAINTAINER_MODE = yes; then
1955   MAINTAINER_MODE_TRUE=
1956   MAINTAINER_MODE_FALSE='#'
1957 else
1958   MAINTAINER_MODE_TRUE='#'
1959   MAINTAINER_MODE_FALSE=
1960 fi
1961
1962   MAINT=$MAINTAINER_MODE_TRUE
1963
1964
1965
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CC"; then
1980   ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007 fi
2008 if test -z "$ac_cv_prog_CC"; then
2009   ac_ct_CC=$CC
2010   # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$ac_ct_CC"; then
2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027     ac_cv_prog_ac_ct_CC="gcc"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033
2034 fi
2035 fi
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045   CC=$ac_ct_CC
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051   if test -n "$ac_tool_prefix"; then
2052   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2082 else
2083   echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087 fi
2088 if test -z "$ac_cv_prog_CC"; then
2089   ac_ct_CC=$CC
2090   # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test -n "$ac_ct_CC"; then
2098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   for ac_exec_ext in '' $ac_executable_extensions; do
2106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107     ac_cv_prog_ac_ct_CC="cc"
2108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109     break 2
2110   fi
2111 done
2112 done
2113
2114 fi
2115 fi
2116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2120 else
2121   echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2123 fi
2124
2125   CC=$ac_ct_CC
2126 else
2127   CC="$ac_cv_prog_CC"
2128 fi
2129
2130 fi
2131 if test -z "$CC"; then
2132   # Extract the first word of "cc", so it can be a program name with args.
2133 set dummy cc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   if test -n "$CC"; then
2140   ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142   ac_prog_rejected=no
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2151        ac_prog_rejected=yes
2152        continue
2153      fi
2154     ac_cv_prog_CC="cc"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160
2161 if test $ac_prog_rejected = yes; then
2162   # We found a bogon in the path, so make sure we never use it.
2163   set dummy $ac_cv_prog_CC
2164   shift
2165   if test $# != 0; then
2166     # We chose a different compiler from the bogus one.
2167     # However, it has the same basename, so the bogon will be chosen
2168     # first if we set CC to just the basename; use the full file name.
2169     shift
2170     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2171   fi
2172 fi
2173 fi
2174 fi
2175 CC=$ac_cv_prog_CC
2176 if test -n "$CC"; then
2177   echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6
2179 else
2180   echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6
2182 fi
2183
2184 fi
2185 if test -z "$CC"; then
2186   if test -n "$ac_tool_prefix"; then
2187   for ac_prog in cl
2188   do
2189     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test -n "$CC"; then
2197   ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212
2213 fi
2214 fi
2215 CC=$ac_cv_prog_CC
2216 if test -n "$CC"; then
2217   echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2219 else
2220   echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2222 fi
2223
2224     test -n "$CC" && break
2225   done
2226 fi
2227 if test -z "$CC"; then
2228   ac_ct_CC=$CC
2229   for ac_prog in cl
2230 do
2231   # Extract the first word of "$ac_prog", so it can be a program name with args.
2232 set dummy $ac_prog; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   if test -n "$ac_ct_CC"; then
2239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248     ac_cv_prog_ac_ct_CC="$ac_prog"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254
2255 fi
2256 fi
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6
2261 else
2262   echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2264 fi
2265
2266   test -n "$ac_ct_CC" && break
2267 done
2268
2269   CC=$ac_ct_CC
2270 fi
2271
2272 fi
2273
2274
2275 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: no acceptable C compiler found in \$PATH
2278 See \`config.log' for more details." >&2;}
2279    { (exit 1); exit 1; }; }
2280
2281 # Provide some information about the compiler.
2282 echo "$as_me:$LINENO:" \
2283      "checking for C compiler version" >&5
2284 ac_compiler=`set X $ac_compile; echo $2`
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2286   (eval $ac_compiler --version </dev/null >&5) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2291   (eval $ac_compiler -v </dev/null >&5) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2296   (eval $ac_compiler -V </dev/null >&5) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }
2300
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 ac_clean_files_save=$ac_clean_files
2317 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2318 # Try to create an executable without -o first, disregard a.out.
2319 # It will help us diagnose broken compilers, and finding out an intuition
2320 # of exeext.
2321 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2322 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2323 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2324 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2325   (eval $ac_link_default) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; then
2329   # Find the output, starting from the most likely.  This scheme is
2330 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2331 # resort.
2332
2333 # Be careful to initialize this variable, since it used to be cached.
2334 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2335 ac_cv_exeext=
2336 # b.out is created by i960 compilers.
2337 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2338 do
2339   test -f "$ac_file" || continue
2340   case $ac_file in
2341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2342         ;;
2343     conftest.$ac_ext )
2344         # This is the source file.
2345         ;;
2346     [ab].out )
2347         # We found the default executable, but exeext='' is most
2348         # certainly right.
2349         break;;
2350     *.* )
2351         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2352         # FIXME: I believe we export ac_cv_exeext for Libtool,
2353         # but it would be cool to find out if it's true.  Does anybody
2354         # maintain Libtool? --akim.
2355         export ac_cv_exeext
2356         break;;
2357     * )
2358         break;;
2359   esac
2360 done
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: C compiler cannot create executables
2368 See \`config.log' for more details." >&2;}
2369    { (exit 77); exit 77; }; }
2370 fi
2371
2372 ac_exeext=$ac_cv_exeext
2373 echo "$as_me:$LINENO: result: $ac_file" >&5
2374 echo "${ECHO_T}$ac_file" >&6
2375
2376 # Check the compiler produces executables we can run.  If not, either
2377 # the compiler is broken, or we cross compile.
2378 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2379 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2381 # If not cross compiling, check that we can run a simple program.
2382 if test "$cross_compiling" != yes; then
2383   if { ac_try='./$ac_file'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389     cross_compiling=no
2390   else
2391     if test "$cross_compiling" = maybe; then
2392         cross_compiling=yes
2393     else
2394         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2395 If you meant to cross compile, use \`--host'.
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot run C compiled programs.
2398 If you meant to cross compile, use \`--host'.
2399 See \`config.log' for more details." >&2;}
2400    { (exit 1); exit 1; }; }
2401     fi
2402   fi
2403 fi
2404 echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6
2406
2407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2408 ac_clean_files=$ac_clean_files_save
2409 # Check the compiler produces executables we can run.  If not, either
2410 # the compiler is broken, or we cross compile.
2411 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2413 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2414 echo "${ECHO_T}$cross_compiling" >&6
2415
2416 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2419   (eval $ac_link) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; then
2423   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2424 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2425 # work properly (i.e., refer to `conftest.exe'), while it won't with
2426 # `rm'.
2427 for ac_file in conftest.exe conftest conftest.*; do
2428   test -f "$ac_file" || continue
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2431     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432           export ac_cv_exeext
2433           break;;
2434     * ) break;;
2435   esac
2436 done
2437 else
2438   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }
2443 fi
2444
2445 rm -f conftest$ac_cv_exeext
2446 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2447 echo "${ECHO_T}$ac_cv_exeext" >&6
2448
2449 rm -f conftest.$ac_ext
2450 EXEEXT=$ac_cv_exeext
2451 ac_exeext=$EXEEXT
2452 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2453 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2454 if test "${ac_cv_objext+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.o conftest.obj
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; then
2478   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2479   case $ac_file in
2480     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2481     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2482        break;;
2483   esac
2484 done
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2492 See \`config.log' for more details." >&2;}
2493    { (exit 1); exit 1; }; }
2494 fi
2495
2496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2497 fi
2498 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2499 echo "${ECHO_T}$ac_cv_objext" >&6
2500 OBJEXT=$ac_cv_objext
2501 ac_objext=$OBJEXT
2502 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2503 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517 #ifndef __GNUC__
2518        choke me
2519 #endif
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -z "$ac_c_werror_flag"
2535                          || test ! -s conftest.err'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; } &&
2541          { ac_try='test -s conftest.$ac_objext'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   ac_compiler_gnu=yes
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 ac_compiler_gnu=no
2553 fi
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2556
2557 fi
2558 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2559 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2560 GCC=`test $ac_compiler_gnu = yes && echo yes`
2561 ac_test_CFLAGS=${CFLAGS+set}
2562 ac_save_CFLAGS=$CFLAGS
2563 CFLAGS="-g"
2564 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2565 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2566 if test "${ac_cv_prog_cc_g+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586   (eval $ac_compile) 2>conftest.er1
2587   ac_status=$?
2588   grep -v '^ *+' conftest.er1 >conftest.err
2589   rm -f conftest.er1
2590   cat conftest.err >&5
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -z "$ac_c_werror_flag"
2594                          || test ! -s conftest.err'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; } &&
2600          { ac_try='test -s conftest.$ac_objext'
2601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602   (eval $ac_try) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_cv_prog_cc_g=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_cv_prog_cc_g=no
2612 fi
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2617 if test "$ac_test_CFLAGS" = set; then
2618   CFLAGS=$ac_save_CFLAGS
2619 elif test $ac_cv_prog_cc_g = yes; then
2620   if test "$GCC" = yes; then
2621     CFLAGS="-g -O2"
2622   else
2623     CFLAGS="-g"
2624   fi
2625 else
2626   if test "$GCC" = yes; then
2627     CFLAGS="-O2"
2628   else
2629     CFLAGS=
2630   fi
2631 fi
2632 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2633 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2634 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   ac_cv_prog_cc_stdc=no
2638 ac_save_CC=$CC
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645 #include <stdarg.h>
2646 #include <stdio.h>
2647 #include <sys/types.h>
2648 #include <sys/stat.h>
2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2650 struct buf { int x; };
2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652 static char *e (p, i)
2653      char **p;
2654      int i;
2655 {
2656   return p[i];
2657 }
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2659 {
2660   char *s;
2661   va_list v;
2662   va_start (v,p);
2663   s = g (p, va_arg (v,int));
2664   va_end (v);
2665   return s;
2666 }
2667
2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2669    function prototypes and stuff, but not '\xHH' hex character constants.
2670    These don't provoke an error unfortunately, instead are silently treated
2671    as 'x'.  The following induces an error, until -std1 is added to get
2672    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2673    array size at least.  It's necessary to write '\x00'==0 to get something
2674    that's true only with -std1.  */
2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681 int argc;
2682 char **argv;
2683 int
2684 main ()
2685 {
2686 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 # Don't try gcc -ansi; that turns off useful extensions and
2692 # breaks some systems' header files.
2693 # AIX                   -qlanglvl=ansi
2694 # Ultrix and OSF/1      -std1
2695 # HP-UX 10.20 and later -Ae
2696 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2697 # SVR4                  -Xc -D__EXTENSIONS__
2698 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699 do
2700   CC="$ac_save_CC $ac_arg"
2701   rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag"
2711                          || test ! -s conftest.err'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   ac_cv_prog_cc_stdc=$ac_arg
2724 break
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 fi
2730 rm -f conftest.err conftest.$ac_objext
2731 done
2732 rm -f conftest.$ac_ext conftest.$ac_objext
2733 CC=$ac_save_CC
2734
2735 fi
2736
2737 case "x$ac_cv_prog_cc_stdc" in
2738   x|xno)
2739     echo "$as_me:$LINENO: result: none needed" >&5
2740 echo "${ECHO_T}none needed" >&6 ;;
2741   *)
2742     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2744     CC="$CC $ac_cv_prog_cc_stdc" ;;
2745 esac
2746
2747 # Some people use a C++ compiler to compile C.  Since we use `exit',
2748 # in C++ we need to declare it.  In case someone uses the same compiler
2749 # for both compiling C and C++ we need to have the C++ compiler decide
2750 # the declaration of exit, since it's the most demanding environment.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #ifndef __cplusplus
2753   choke me
2754 #endif
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_c_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   for ac_declaration in \
2779    '' \
2780    'extern "C" void std::exit (int) throw (); using std::exit;' \
2781    'extern "C" void std::exit (int); using std::exit;' \
2782    'extern "C" void exit (int) throw ();' \
2783    'extern "C" void exit (int);' \
2784    'void exit (int);'
2785 do
2786   cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h.  */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h.  */
2792 $ac_declaration
2793 #include <stdlib.h>
2794 int
2795 main ()
2796 {
2797 exit (42);
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>conftest.er1
2805   ac_status=$?
2806   grep -v '^ *+' conftest.er1 >conftest.err
2807   rm -f conftest.er1
2808   cat conftest.err >&5
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          { ac_try='test -z "$ac_c_werror_flag"
2812                          || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   :
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 continue
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832   cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 $ac_declaration
2839 int
2840 main ()
2841 {
2842 exit (42);
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849   (eval $ac_compile) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_c_werror_flag"
2857                          || test ! -s conftest.err'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; } &&
2863          { ac_try='test -s conftest.$ac_objext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   break
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 fi
2875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876 done
2877 rm -f conftest*
2878 if test -n "$ac_declaration"; then
2879   echo '#ifdef __cplusplus' >>confdefs.h
2880   echo $ac_declaration      >>confdefs.h
2881   echo '#endif'             >>confdefs.h
2882 fi
2883
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 fi
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 DEPDIR="${am__leading_dot}deps"
2896
2897           ac_config_commands="$ac_config_commands depfiles"
2898
2899
2900 am_make=${MAKE-make}
2901 cat > confinc << 'END'
2902 am__doit:
2903         @echo done
2904 .PHONY: am__doit
2905 END
2906 # If we don't find an include directive, just comment out the code.
2907 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2908 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2909 am__include="#"
2910 am__quote=
2911 _am_result=none
2912 # First try GNU make style include.
2913 echo "include confinc" > confmf
2914 # We grep out `Entering directory' and `Leaving directory'
2915 # messages which can occur if `w' ends up in MAKEFLAGS.
2916 # In particular we don't look at `^make:' because GNU make might
2917 # be invoked under some other name (usually "gmake"), in which
2918 # case it prints its new name instead of `make'.
2919 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2920    am__include=include
2921    am__quote=
2922    _am_result=GNU
2923 fi
2924 # Now try BSD make style include.
2925 if test "$am__include" = "#"; then
2926    echo '.include "confinc"' > confmf
2927    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2928       am__include=.include
2929       am__quote="\""
2930       _am_result=BSD
2931    fi
2932 fi
2933
2934
2935 echo "$as_me:$LINENO: result: $_am_result" >&5
2936 echo "${ECHO_T}$_am_result" >&6
2937 rm -f confinc confmf
2938
2939 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2940 if test "${enable_dependency_tracking+set}" = set; then
2941   enableval="$enable_dependency_tracking"
2942
2943 fi;
2944 if test "x$enable_dependency_tracking" != xno; then
2945   am_depcomp="$ac_aux_dir/depcomp"
2946   AMDEPBACKSLASH='\'
2947 fi
2948
2949
2950 if test "x$enable_dependency_tracking" != xno; then
2951   AMDEP_TRUE=
2952   AMDEP_FALSE='#'
2953 else
2954   AMDEP_TRUE='#'
2955   AMDEP_FALSE=
2956 fi
2957
2958
2959
2960
2961 depcc="$CC"   am_compiler_list=
2962
2963 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2964 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2969   # We make a subdir and do the tests there.  Otherwise we can end up
2970   # making bogus files that we don't know about and never remove.  For
2971   # instance it was reported that on HP-UX the gcc test will end up
2972   # making a dummy file named `D' -- because `-MD' means `put the output
2973   # in D'.
2974   mkdir conftest.dir
2975   # Copy depcomp to subdir because otherwise we won't find it if we're
2976   # using a relative directory.
2977   cp "$am_depcomp" conftest.dir
2978   cd conftest.dir
2979   # We will build objects and dependencies in a subdirectory because
2980   # it helps to detect inapplicable dependency modes.  For instance
2981   # both Tru64's cc and ICC support -MD to output dependencies as a
2982   # side effect of compilation, but ICC will put the dependencies in
2983   # the current directory while Tru64 will put them in the object
2984   # directory.
2985   mkdir sub
2986
2987   am_cv_CC_dependencies_compiler_type=none
2988   if test "$am_compiler_list" = ""; then
2989      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2990   fi
2991   for depmode in $am_compiler_list; do
2992     # Setup a source with many dependencies, because some compilers
2993     # like to wrap large dependency lists on column 80 (with \), and
2994     # we should not choose a depcomp mode which is confused by this.
2995     #
2996     # We need to recreate these files for each test, as the compiler may
2997     # overwrite some of them when testing with obscure command lines.
2998     # This happens at least with the AIX C compiler.
2999     : > sub/conftest.c
3000     for i in 1 2 3 4 5 6; do
3001       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3002       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3003       # Solaris 8's {/usr,}/bin/sh.
3004       touch sub/conftst$i.h
3005     done
3006     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3007
3008     case $depmode in
3009     nosideeffect)
3010       # after this tag, mechanisms are not by side-effect, so they'll
3011       # only be used when explicitly requested
3012       if test "x$enable_dependency_tracking" = xyes; then
3013         continue
3014       else
3015         break
3016       fi
3017       ;;
3018     none) break ;;
3019     esac
3020     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3021     # mode.  It turns out that the SunPro C++ compiler does not properly
3022     # handle `-M -o', and we need to detect this.
3023     if depmode=$depmode \
3024        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3025        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3026        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3027          >/dev/null 2>conftest.err &&
3028        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3029        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3030        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3031       # icc doesn't choke on unknown options, it will just issue warnings
3032       # or remarks (even with -Werror).  So we grep stderr for any message
3033       # that says an option was ignored or not supported.
3034       # When given -MP, icc 7.0 and 7.1 complain thusly:
3035       #   icc: Command line warning: ignoring option '-M'; no argument required
3036       # The diagnosis changed in icc 8.0:
3037       #   icc: Command line remark: option '-MP' not supported
3038       if (grep 'ignoring option' conftest.err ||
3039           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3040         am_cv_CC_dependencies_compiler_type=$depmode
3041         break
3042       fi
3043     fi
3044   done
3045
3046   cd ..
3047   rm -rf conftest.dir
3048 else
3049   am_cv_CC_dependencies_compiler_type=none
3050 fi
3051
3052 fi
3053 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3054 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3055 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3056
3057
3058
3059 if
3060   test "x$enable_dependency_tracking" != xno \
3061   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3062   am__fastdepCC_TRUE=
3063   am__fastdepCC_FALSE='#'
3064 else
3065   am__fastdepCC_TRUE='#'
3066   am__fastdepCC_FALSE=
3067 fi
3068
3069
3070 ac_ext=cc
3071 ac_cpp='$CXXCPP $CPPFLAGS'
3072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3075 if test -n "$ac_tool_prefix"; then
3076   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3077   do
3078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082 if test "${ac_cv_prog_CXX+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   if test -n "$CXX"; then
3086   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093   for ac_exec_ext in '' $ac_executable_extensions; do
3094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100 done
3101
3102 fi
3103 fi
3104 CXX=$ac_cv_prog_CXX
3105 if test -n "$CXX"; then
3106   echo "$as_me:$LINENO: result: $CXX" >&5
3107 echo "${ECHO_T}$CXX" >&6
3108 else
3109   echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3111 fi
3112
3113     test -n "$CXX" && break
3114   done
3115 fi
3116 if test -z "$CXX"; then
3117   ac_ct_CXX=$CXX
3118   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3119 do
3120   # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   if test -n "$ac_ct_CXX"; then
3128   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   for ac_exec_ext in '' $ac_executable_extensions; do
3136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137     ac_cv_prog_ac_ct_CXX="$ac_prog"
3138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142 done
3143
3144 fi
3145 fi
3146 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3147 if test -n "$ac_ct_CXX"; then
3148   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3149 echo "${ECHO_T}$ac_ct_CXX" >&6
3150 else
3151   echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3153 fi
3154
3155   test -n "$ac_ct_CXX" && break
3156 done
3157 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3158
3159   CXX=$ac_ct_CXX
3160 fi
3161
3162
3163 # Provide some information about the compiler.
3164 echo "$as_me:$LINENO:" \
3165      "checking for C++ compiler version" >&5
3166 ac_compiler=`set X $ac_compile; echo $2`
3167 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3168   (eval $ac_compiler --version </dev/null >&5) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }
3172 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3173   (eval $ac_compiler -v </dev/null >&5) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }
3177 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3178   (eval $ac_compiler -V </dev/null >&5) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }
3182
3183 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3184 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3185 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3186   echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194
3195 int
3196 main ()
3197 {
3198 #ifndef __GNUC__
3199        choke me
3200 #endif
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208   (eval $ac_compile) 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } &&
3215          { ac_try='test -z "$ac_cxx_werror_flag"
3216                          || test ! -s conftest.err'
3217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218   (eval $ac_try) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; } &&
3222          { ac_try='test -s conftest.$ac_objext'
3223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224   (eval $ac_try) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; }; then
3228   ac_compiler_gnu=yes
3229 else
3230   echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 ac_compiler_gnu=no
3234 fi
3235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3237
3238 fi
3239 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3240 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3241 GXX=`test $ac_compiler_gnu = yes && echo yes`
3242 ac_test_CXXFLAGS=${CXXFLAGS+set}
3243 ac_save_CXXFLAGS=$CXXFLAGS
3244 CXXFLAGS="-g"
3245 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3246 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3247 if test "${ac_cv_prog_cxx_g+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 int
3258 main ()
3259 {
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267   (eval $ac_compile) 2>conftest.er1
3268   ac_status=$?
3269   grep -v '^ *+' conftest.er1 >conftest.err
3270   rm -f conftest.er1
3271   cat conftest.err >&5
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } &&
3274          { ac_try='test -z "$ac_cxx_werror_flag"
3275                          || test ! -s conftest.err'
3276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277   (eval $ac_try) 2>&5
3278   ac_status=$?
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }; } &&
3281          { ac_try='test -s conftest.$ac_objext'
3282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283   (eval $ac_try) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; }; then
3287   ac_cv_prog_cxx_g=yes
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 ac_cv_prog_cxx_g=no
3293 fi
3294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3295 fi
3296 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3297 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3298 if test "$ac_test_CXXFLAGS" = set; then
3299   CXXFLAGS=$ac_save_CXXFLAGS
3300 elif test $ac_cv_prog_cxx_g = yes; then
3301   if test "$GXX" = yes; then
3302     CXXFLAGS="-g -O2"
3303   else
3304     CXXFLAGS="-g"
3305   fi
3306 else
3307   if test "$GXX" = yes; then
3308     CXXFLAGS="-O2"
3309   else
3310     CXXFLAGS=
3311   fi
3312 fi
3313 for ac_declaration in \
3314    '' \
3315    'extern "C" void std::exit (int) throw (); using std::exit;' \
3316    'extern "C" void std::exit (int); using std::exit;' \
3317    'extern "C" void exit (int) throw ();' \
3318    'extern "C" void exit (int);' \
3319    'void exit (int);'
3320 do
3321   cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 $ac_declaration
3328 #include <stdlib.h>
3329 int
3330 main ()
3331 {
3332 exit (42);
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339   (eval $ac_compile) 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -z "$ac_cxx_werror_flag"
3347                          || test ! -s conftest.err'
3348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349   (eval $ac_try) 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; } &&
3353          { ac_try='test -s conftest.$ac_objext'
3354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355   (eval $ac_try) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; }; then
3359   :
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 continue
3365 fi
3366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367   cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h.  */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h.  */
3373 $ac_declaration
3374 int
3375 main ()
3376 {
3377 exit (42);
3378   ;
3379   return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384   (eval $ac_compile) 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } &&
3391          { ac_try='test -z "$ac_cxx_werror_flag"
3392                          || test ! -s conftest.err'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; } &&
3398          { ac_try='test -s conftest.$ac_objext'
3399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400   (eval $ac_try) 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }; }; then
3404   break
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 fi
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411 done
3412 rm -f conftest*
3413 if test -n "$ac_declaration"; then
3414   echo '#ifdef __cplusplus' >>confdefs.h
3415   echo $ac_declaration      >>confdefs.h
3416   echo '#endif'             >>confdefs.h
3417 fi
3418
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425 depcc="$CXX"  am_compiler_list=
3426
3427 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3428 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3429 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3433   # We make a subdir and do the tests there.  Otherwise we can end up
3434   # making bogus files that we don't know about and never remove.  For
3435   # instance it was reported that on HP-UX the gcc test will end up
3436   # making a dummy file named `D' -- because `-MD' means `put the output
3437   # in D'.
3438   mkdir conftest.dir
3439   # Copy depcomp to subdir because otherwise we won't find it if we're
3440   # using a relative directory.
3441   cp "$am_depcomp" conftest.dir
3442   cd conftest.dir
3443   # We will build objects and dependencies in a subdirectory because
3444   # it helps to detect inapplicable dependency modes.  For instance
3445   # both Tru64's cc and ICC support -MD to output dependencies as a
3446   # side effect of compilation, but ICC will put the dependencies in
3447   # the current directory while Tru64 will put them in the object
3448   # directory.
3449   mkdir sub
3450
3451   am_cv_CXX_dependencies_compiler_type=none
3452   if test "$am_compiler_list" = ""; then
3453      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3454   fi
3455   for depmode in $am_compiler_list; do
3456     # Setup a source with many dependencies, because some compilers
3457     # like to wrap large dependency lists on column 80 (with \), and
3458     # we should not choose a depcomp mode which is confused by this.
3459     #
3460     # We need to recreate these files for each test, as the compiler may
3461     # overwrite some of them when testing with obscure command lines.
3462     # This happens at least with the AIX C compiler.
3463     : > sub/conftest.c
3464     for i in 1 2 3 4 5 6; do
3465       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3466       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3467       # Solaris 8's {/usr,}/bin/sh.
3468       touch sub/conftst$i.h
3469     done
3470     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3471
3472     case $depmode in
3473     nosideeffect)
3474       # after this tag, mechanisms are not by side-effect, so they'll
3475       # only be used when explicitly requested
3476       if test "x$enable_dependency_tracking" = xyes; then
3477         continue
3478       else
3479         break
3480       fi
3481       ;;
3482     none) break ;;
3483     esac
3484     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3485     # mode.  It turns out that the SunPro C++ compiler does not properly
3486     # handle `-M -o', and we need to detect this.
3487     if depmode=$depmode \
3488        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3489        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3490        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3491          >/dev/null 2>conftest.err &&
3492        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3493        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3494        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3495       # icc doesn't choke on unknown options, it will just issue warnings
3496       # or remarks (even with -Werror).  So we grep stderr for any message
3497       # that says an option was ignored or not supported.
3498       # When given -MP, icc 7.0 and 7.1 complain thusly:
3499       #   icc: Command line warning: ignoring option '-M'; no argument required
3500       # The diagnosis changed in icc 8.0:
3501       #   icc: Command line remark: option '-MP' not supported
3502       if (grep 'ignoring option' conftest.err ||
3503           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3504         am_cv_CXX_dependencies_compiler_type=$depmode
3505         break
3506       fi
3507     fi
3508   done
3509
3510   cd ..
3511   rm -rf conftest.dir
3512 else
3513   am_cv_CXX_dependencies_compiler_type=none
3514 fi
3515
3516 fi
3517 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3518 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3519 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3520
3521
3522
3523 if
3524   test "x$enable_dependency_tracking" != xno \
3525   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3526   am__fastdepCXX_TRUE=
3527   am__fastdepCXX_FALSE='#'
3528 else
3529   am__fastdepCXX_TRUE='#'
3530   am__fastdepCXX_FALSE=
3531 fi
3532
3533
3534 # Check whether --enable-shared or --disable-shared was given.
3535 if test "${enable_shared+set}" = set; then
3536   enableval="$enable_shared"
3537   p=${PACKAGE-default}
3538     case $enableval in
3539     yes) enable_shared=yes ;;
3540     no) enable_shared=no ;;
3541     *)
3542       enable_shared=no
3543       # Look at the argument we got.  We use all the common list separators.
3544       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3545       for pkg in $enableval; do
3546         IFS="$lt_save_ifs"
3547         if test "X$pkg" = "X$p"; then
3548           enable_shared=yes
3549         fi
3550       done
3551       IFS="$lt_save_ifs"
3552       ;;
3553     esac
3554 else
3555   enable_shared=yes
3556 fi;
3557
3558 # Check whether --enable-static or --disable-static was given.
3559 if test "${enable_static+set}" = set; then
3560   enableval="$enable_static"
3561   p=${PACKAGE-default}
3562     case $enableval in
3563     yes) enable_static=yes ;;
3564     no) enable_static=no ;;
3565     *)
3566      enable_static=no
3567       # Look at the argument we got.  We use all the common list separators.
3568       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3569       for pkg in $enableval; do
3570         IFS="$lt_save_ifs"
3571         if test "X$pkg" = "X$p"; then
3572           enable_static=yes
3573         fi
3574       done
3575       IFS="$lt_save_ifs"
3576       ;;
3577     esac
3578 else
3579   enable_static=yes
3580 fi;
3581
3582 # Check whether --enable-fast-install or --disable-fast-install was given.
3583 if test "${enable_fast_install+set}" = set; then
3584   enableval="$enable_fast_install"
3585   p=${PACKAGE-default}
3586     case $enableval in
3587     yes) enable_fast_install=yes ;;
3588     no) enable_fast_install=no ;;
3589     *)
3590       enable_fast_install=no
3591       # Look at the argument we got.  We use all the common list separators.
3592       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593       for pkg in $enableval; do
3594         IFS="$lt_save_ifs"
3595         if test "X$pkg" = "X$p"; then
3596           enable_fast_install=yes
3597         fi
3598       done
3599       IFS="$lt_save_ifs"
3600       ;;
3601     esac
3602 else
3603   enable_fast_install=yes
3604 fi;
3605
3606 # Make sure we can run config.sub.
3607 $ac_config_sub sun4 >/dev/null 2>&1 ||
3608   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3609 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3610    { (exit 1); exit 1; }; }
3611
3612 echo "$as_me:$LINENO: checking build system type" >&5
3613 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3614 if test "${ac_cv_build+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   ac_cv_build_alias=$build_alias
3618 test -z "$ac_cv_build_alias" &&
3619   ac_cv_build_alias=`$ac_config_guess`
3620 test -z "$ac_cv_build_alias" &&
3621   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3622 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3623    { (exit 1); exit 1; }; }
3624 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3625   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3626 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3627    { (exit 1); exit 1; }; }
3628
3629 fi
3630 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3631 echo "${ECHO_T}$ac_cv_build" >&6
3632 build=$ac_cv_build
3633 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3634 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3635 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3636
3637
3638 echo "$as_me:$LINENO: checking host system type" >&5
3639 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3640 if test "${ac_cv_host+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   ac_cv_host_alias=$host_alias
3644 test -z "$ac_cv_host_alias" &&
3645   ac_cv_host_alias=$ac_cv_build_alias
3646 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3647   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3648 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3649    { (exit 1); exit 1; }; }
3650
3651 fi
3652 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3653 echo "${ECHO_T}$ac_cv_host" >&6
3654 host=$ac_cv_host
3655 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3656 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3657 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3658
3659
3660 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3661 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3662 if test "${lt_cv_path_SED+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   # Loop through the user's path and test for sed and gsed.
3666 # Then use that list of sed's as ones to test for truncation.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672   for lt_ac_prog in sed gsed; do
3673     for ac_exec_ext in '' $ac_executable_extensions; do
3674       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3675         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3676       fi
3677     done
3678   done
3679 done
3680 lt_ac_max=0
3681 lt_ac_count=0
3682 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3683 # along with /bin/sed that truncates output.
3684 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3685   test ! -f $lt_ac_sed && break
3686   cat /dev/null > conftest.in
3687   lt_ac_count=0
3688   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3689   # Check for GNU sed and select it if it is found.
3690   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3691     lt_cv_path_SED=$lt_ac_sed
3692     break
3693   fi
3694   while true; do
3695     cat conftest.in conftest.in >conftest.tmp
3696     mv conftest.tmp conftest.in
3697     cp conftest.in conftest.nl
3698     echo >>conftest.nl
3699     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3700     cmp -s conftest.out conftest.nl || break
3701     # 10000 chars as input seems more than enough
3702     test $lt_ac_count -gt 10 && break
3703     lt_ac_count=`expr $lt_ac_count + 1`
3704     if test $lt_ac_count -gt $lt_ac_max; then
3705       lt_ac_max=$lt_ac_count
3706       lt_cv_path_SED=$lt_ac_sed
3707     fi
3708   done
3709 done
3710 SED=$lt_cv_path_SED
3711
3712 fi
3713
3714 echo "$as_me:$LINENO: result: $SED" >&5
3715 echo "${ECHO_T}$SED" >&6
3716
3717 echo "$as_me:$LINENO: checking for egrep" >&5
3718 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3719 if test "${ac_cv_prog_egrep+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3723     then ac_cv_prog_egrep='grep -E'
3724     else ac_cv_prog_egrep='egrep'
3725     fi
3726 fi
3727 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3728 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3729  EGREP=$ac_cv_prog_egrep
3730
3731
3732
3733 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3734 if test "${with_gnu_ld+set}" = set; then
3735   withval="$with_gnu_ld"
3736   test "$withval" = no || with_gnu_ld=yes
3737 else
3738   with_gnu_ld=no
3739 fi;
3740 ac_prog=ld
3741 if test "$GCC" = yes; then
3742   # Check if gcc -print-prog-name=ld gives a path.
3743   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3744 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3745   case $host in
3746   *-*-mingw*)
3747     # gcc leaves a trailing carriage return which upsets mingw
3748     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3749   *)
3750     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3751   esac
3752   case $ac_prog in
3753     # Accept absolute paths.
3754     [\\/]* | ?:[\\/]*)
3755       re_direlt='/[^/][^/]*/\.\./'
3756       # Canonicalize the pathname of ld
3757       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3758       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3759         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3760       done
3761       test -z "$LD" && LD="$ac_prog"
3762       ;;
3763   "")
3764     # If it fails, then pretend we aren't using GCC.
3765     ac_prog=ld
3766     ;;
3767   *)
3768     # If it is relative, then search for the first ld in PATH.
3769     with_gnu_ld=unknown
3770     ;;
3771   esac
3772 elif test "$with_gnu_ld" = yes; then
3773   echo "$as_me:$LINENO: checking for GNU ld" >&5
3774 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3775 else
3776   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3777 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3778 fi
3779 if test "${lt_cv_path_LD+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   if test -z "$LD"; then
3783   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3784   for ac_dir in $PATH; do
3785     IFS="$lt_save_ifs"
3786     test -z "$ac_dir" && ac_dir=.
3787     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3788       lt_cv_path_LD="$ac_dir/$ac_prog"
3789       # Check to see if the program is GNU ld.  I'd rather use --version,
3790       # but apparently some GNU ld's only accept -v.
3791       # Break only if it was the GNU/non-GNU ld that we prefer.
3792       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3793       *GNU* | *'with BFD'*)
3794         test "$with_gnu_ld" != no && break
3795         ;;
3796       *)
3797         test "$with_gnu_ld" != yes && break
3798         ;;
3799       esac
3800     fi
3801   done
3802   IFS="$lt_save_ifs"
3803 else
3804   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3805 fi
3806 fi
3807
3808 LD="$lt_cv_path_LD"
3809 if test -n "$LD"; then
3810   echo "$as_me:$LINENO: result: $LD" >&5
3811 echo "${ECHO_T}$LD" >&6
3812 else
3813   echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815 fi
3816 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3817 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3818    { (exit 1); exit 1; }; }
3819 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3820 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3821 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3825 case `$LD -v 2>&1 </dev/null` in
3826 *GNU* | *'with BFD'*)
3827   lt_cv_prog_gnu_ld=yes
3828   ;;
3829 *)
3830   lt_cv_prog_gnu_ld=no
3831   ;;
3832 esac
3833 fi
3834 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3835 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3836 with_gnu_ld=$lt_cv_prog_gnu_ld
3837
3838
3839 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3840 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3841 if test "${lt_cv_ld_reload_flag+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   lt_cv_ld_reload_flag='-r'
3845 fi
3846 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3847 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3848 reload_flag=$lt_cv_ld_reload_flag
3849 case $reload_flag in
3850 "" | " "*) ;;
3851 *) reload_flag=" $reload_flag" ;;
3852 esac
3853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3854
3855 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3856 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3857 if test "${lt_cv_path_NM+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   if test -n "$NM"; then
3861   # Let the user override the test.
3862   lt_cv_path_NM="$NM"
3863 else
3864   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3865   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3866     IFS="$lt_save_ifs"
3867     test -z "$ac_dir" && ac_dir=.
3868     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3869     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3870       # Check to see if the nm accepts a BSD-compat flag.
3871       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3872       #   nm: unknown option "B" ignored
3873       # Tru64's nm complains that /dev/null is an invalid object file
3874       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3875       */dev/null* | *'Invalid file or object type'*)
3876         lt_cv_path_NM="$tmp_nm -B"
3877         break
3878         ;;
3879       *)
3880         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3881         */dev/null*)
3882           lt_cv_path_NM="$tmp_nm -p"
3883           break
3884           ;;
3885         *)
3886           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3887           continue # so that we can try to find one that supports BSD flags
3888           ;;
3889         esac
3890       esac
3891     fi
3892   done
3893   IFS="$lt_save_ifs"
3894   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3895 fi
3896 fi
3897 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3898 echo "${ECHO_T}$lt_cv_path_NM" >&6
3899 NM="$lt_cv_path_NM"
3900
3901 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3902 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3903 LN_S=$as_ln_s
3904 if test "$LN_S" = "ln -s"; then
3905   echo "$as_me:$LINENO: result: yes" >&5
3906 echo "${ECHO_T}yes" >&6
3907 else
3908   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3909 echo "${ECHO_T}no, using $LN_S" >&6
3910 fi
3911
3912 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3913 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3914 if test "${lt_cv_deplibs_check_method+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   lt_cv_file_magic_cmd='$MAGIC_CMD'
3918 lt_cv_file_magic_test_file=
3919 lt_cv_deplibs_check_method='unknown'
3920 # Need to set the preceding variable on all platforms that support
3921 # interlibrary dependencies.
3922 # 'none' -- dependencies not supported.
3923 # `unknown' -- same as none, but documents that we really don't know.
3924 # 'pass_all' -- all dependencies passed with no checks.
3925 # 'test_compile' -- check by making test program.
3926 # 'file_magic [[regex]]' -- check by looking for files in library path
3927 # which responds to the $file_magic_cmd with a given extended regex.
3928 # If you have `file' or equivalent on your system and you're not sure
3929 # whether `pass_all' will *always* work, you probably want this one.
3930
3931 case $host_os in
3932 aix4* | aix5*)
3933   lt_cv_deplibs_check_method=pass_all
3934   ;;
3935
3936 beos*)
3937   lt_cv_deplibs_check_method=pass_all
3938   ;;
3939
3940 bsdi4*)
3941   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3942   lt_cv_file_magic_cmd='/usr/bin/file -L'
3943   lt_cv_file_magic_test_file=/shlib/libc.so
3944   ;;
3945
3946 cygwin*)
3947   # func_win32_libid is a shell function defined in ltmain.sh
3948   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3949   lt_cv_file_magic_cmd='func_win32_libid'
3950   ;;
3951
3952 mingw* | pw32*)
3953   # Base MSYS/MinGW do not provide the 'file' command needed by
3954   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3955   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3956   lt_cv_file_magic_cmd='$OBJDUMP -f'
3957   ;;
3958
3959 darwin* | rhapsody*)
3960   lt_cv_deplibs_check_method=pass_all
3961   ;;
3962
3963 freebsd* | kfreebsd*-gnu)
3964   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3965     case $host_cpu in
3966     i*86 )
3967       # Not sure whether the presence of OpenBSD here was a mistake.
3968       # Let's accept both of them until this is cleared up.
3969       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3970       lt_cv_file_magic_cmd=/usr/bin/file
3971       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3972       ;;
3973     esac
3974   else
3975     lt_cv_deplibs_check_method=pass_all
3976   fi
3977   ;;
3978
3979 gnu*)
3980   lt_cv_deplibs_check_method=pass_all
3981   ;;
3982
3983 hpux10.20* | hpux11*)
3984   lt_cv_file_magic_cmd=/usr/bin/file
3985   case "$host_cpu" in
3986   ia64*)
3987     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3988     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3989     ;;
3990   hppa*64*)
3991     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]'
3992     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3993     ;;
3994   *)
3995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3996     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3997     ;;
3998   esac
3999   ;;
4000
4001 irix5* | irix6* | nonstopux*)
4002   case $LD in
4003   *-32|*"-32 ") libmagic=32-bit;;
4004   *-n32|*"-n32 ") libmagic=N32;;
4005   *-64|*"-64 ") libmagic=64-bit;;
4006   *) libmagic=never-match;;
4007   esac
4008   lt_cv_deplibs_check_method=pass_all
4009   ;;
4010
4011 # This must be Linux ELF.
4012 linux*)
4013   case $host_cpu in
4014   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4015     lt_cv_deplibs_check_method=pass_all ;;
4016   *)
4017     # glibc up to 2.1.1 does not perform some relocations on ARM
4018     # this will be overridden with pass_all, but let us keep it just in case
4019     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4020   esac
4021   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4022   lt_cv_deplibs_check_method=pass_all
4023   ;;
4024
4025 netbsd*)
4026   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4028   else
4029     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4030   fi
4031   ;;
4032
4033 newos6*)
4034   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4035   lt_cv_file_magic_cmd=/usr/bin/file
4036   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4037   ;;
4038
4039 nto-qnx*)
4040   lt_cv_deplibs_check_method=unknown
4041   ;;
4042
4043 openbsd*)
4044   lt_cv_file_magic_cmd=/usr/bin/file
4045   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4046   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4047     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4048   else
4049     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4050   fi
4051   ;;
4052
4053 osf3* | osf4* | osf5*)
4054   lt_cv_deplibs_check_method=pass_all
4055   ;;
4056
4057 sco3.2v5*)
4058   lt_cv_deplibs_check_method=pass_all
4059   ;;
4060
4061 solaris*)
4062   lt_cv_deplibs_check_method=pass_all
4063   ;;
4064
4065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4066   case $host_vendor in
4067   motorola)
4068     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]'
4069     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4070     ;;
4071   ncr)
4072     lt_cv_deplibs_check_method=pass_all
4073     ;;
4074   sequent)
4075     lt_cv_file_magic_cmd='/bin/file'
4076     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4077     ;;
4078   sni)
4079     lt_cv_file_magic_cmd='/bin/file'
4080     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4081     lt_cv_file_magic_test_file=/lib/libc.so
4082     ;;
4083   siemens)
4084     lt_cv_deplibs_check_method=pass_all
4085     ;;
4086   esac
4087   ;;
4088
4089 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4090   lt_cv_deplibs_check_method=pass_all
4091   ;;
4092 esac
4093
4094 fi
4095 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4096 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4097 file_magic_cmd=$lt_cv_file_magic_cmd
4098 deplibs_check_method=$lt_cv_deplibs_check_method
4099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4100
4101
4102
4103
4104 # If no C compiler was specified, use CC.
4105 LTCC=${LTCC-"$CC"}
4106
4107 # Allow CC to be a program name with arguments.
4108 compiler=$CC
4109
4110
4111 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4112 if test "${enable_libtool_lock+set}" = set; then
4113   enableval="$enable_libtool_lock"
4114
4115 fi;
4116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4117
4118 # Some flags need to be propagated to the compiler or linker for good
4119 # libtool support.
4120 case $host in
4121 ia64-*-hpux*)
4122   # Find out which ABI we are using.
4123   echo 'int i;' > conftest.$ac_ext
4124   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125   (eval $ac_compile) 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; then
4129     case `/usr/bin/file conftest.$ac_objext` in
4130     *ELF-32*)
4131       HPUX_IA64_MODE="32"
4132       ;;
4133     *ELF-64*)
4134       HPUX_IA64_MODE="64"
4135       ;;
4136     esac
4137   fi
4138   rm -rf conftest*
4139   ;;
4140 *-*-irix6*)
4141   # Find out which ABI we are using.
4142   echo '#line 4142 "configure"' > conftest.$ac_ext
4143   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144   (eval $ac_compile) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; then
4148    if test "$lt_cv_prog_gnu_ld" = yes; then
4149     case `/usr/bin/file conftest.$ac_objext` in
4150     *32-bit*)
4151       LD="${LD-ld} -melf32bsmip"
4152       ;;
4153     *N32*)
4154       LD="${LD-ld} -melf32bmipn32"
4155       ;;
4156     *64-bit*)
4157       LD="${LD-ld} -melf64bmip"
4158       ;;
4159     esac
4160    else
4161     case `/usr/bin/file conftest.$ac_objext` in
4162     *32-bit*)
4163       LD="${LD-ld} -32"
4164       ;;
4165     *N32*)
4166       LD="${LD-ld} -n32"
4167       ;;
4168     *64-bit*)
4169       LD="${LD-ld} -64"
4170       ;;
4171     esac
4172    fi
4173   fi
4174   rm -rf conftest*
4175   ;;
4176
4177 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4178   # Find out which ABI we are using.
4179   echo 'int i;' > conftest.$ac_ext
4180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181   (eval $ac_compile) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; then
4185     case "`/usr/bin/file conftest.o`" in
4186     *32-bit*)
4187       case $host in
4188         x86_64-*linux*)
4189           LD="${LD-ld} -m elf_i386"
4190           ;;
4191         ppc64-*linux*|powerpc64-*linux*)
4192           LD="${LD-ld} -m elf32ppclinux"
4193           ;;
4194         s390x-*linux*)
4195           LD="${LD-ld} -m elf_s390"
4196           ;;
4197         sparc64-*linux*)
4198           LD="${LD-ld} -m elf32_sparc"
4199           ;;
4200       esac
4201       ;;
4202     *64-bit*)
4203       case $host in
4204         x86_64-*linux*)
4205           LD="${LD-ld} -m elf_x86_64"
4206           ;;
4207         ppc*-*linux*|powerpc*-*linux*)
4208           LD="${LD-ld} -m elf64ppc"
4209           ;;
4210         s390*-*linux*)
4211           LD="${LD-ld} -m elf64_s390"
4212           ;;
4213         sparc*-*linux*)
4214           LD="${LD-ld} -m elf64_sparc"
4215           ;;
4216       esac
4217       ;;
4218     esac
4219   fi
4220   rm -rf conftest*
4221   ;;
4222
4223 *-*-sco3.2v5*)
4224   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4225   SAVE_CFLAGS="$CFLAGS"
4226   CFLAGS="$CFLAGS -belf"
4227   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4228 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4229 if test "${lt_cv_cc_needs_belf+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238      cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244
4245 int
4246 main ()
4247 {
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255   (eval $ac_link) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   lt_cv_cc_needs_belf=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 lt_cv_cc_needs_belf=no
4281 fi
4282 rm -f conftest.err conftest.$ac_objext \
4283       conftest$ac_exeext conftest.$ac_ext
4284      ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290 fi
4291 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4293   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295     CFLAGS="$SAVE_CFLAGS"
4296   fi
4297   ;;
4298
4299 esac
4300
4301 need_locks="$enable_libtool_lock"
4302
4303
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4313   CPP=
4314 fi
4315 if test -z "$CPP"; then
4316   if test "${ac_cv_prog_CPP+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319       # Double quotes because CPP needs to be expanded
4320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4321     do
4322       ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4324 do
4325   # Use a header file that comes with gcc, so configuring glibc
4326   # with a fresh cross-compiler works.
4327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328   # <limits.h> exists even on freestanding compilers.
4329   # On the NeXT, cc -E runs the code through the compiler's parser,
4330   # not just through cpp. "Syntax error" is here to catch this case.
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342                      Syntax error
4343 _ACEOF
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } >/dev/null; then
4352   if test -s conftest.err; then
4353     ac_cpp_err=$ac_c_preproc_warn_flag
4354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4355   else
4356     ac_cpp_err=
4357   fi
4358 else
4359   ac_cpp_err=yes
4360 fi
4361 if test -z "$ac_cpp_err"; then
4362   :
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367   # Broken: fails on valid input.
4368 continue
4369 fi
4370 rm -f conftest.err conftest.$ac_ext
4371
4372   # OK, works on sane cases.  Now check whether non-existent headers
4373   # can be detected and how.
4374   cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } >/dev/null; then
4390   if test -s conftest.err; then
4391     ac_cpp_err=$ac_c_preproc_warn_flag
4392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4393   else
4394     ac_cpp_err=
4395   fi
4396 else
4397   ac_cpp_err=yes
4398 fi
4399 if test -z "$ac_cpp_err"; then
4400   # Broken: success on invalid input.
4401 continue
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4409 fi
4410 rm -f conftest.err conftest.$ac_ext
4411
4412 done
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then
4416   break
4417 fi
4418
4419     done
4420     ac_cv_prog_CPP=$CPP
4421
4422 fi
4423   CPP=$ac_cv_prog_CPP
4424 else
4425   ac_cv_prog_CPP=$CPP
4426 fi
4427 echo "$as_me:$LINENO: result: $CPP" >&5
4428 echo "${ECHO_T}$CPP" >&6
4429 ac_preproc_ok=false
4430 for ac_c_preproc_warn_flag in '' yes
4431 do
4432   # Use a header file that comes with gcc, so configuring glibc
4433   # with a fresh cross-compiler works.
4434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435   # <limits.h> exists even on freestanding compilers.
4436   # On the NeXT, cc -E runs the code through the compiler's parser,
4437   # not just through cpp. "Syntax error" is here to catch this case.
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 #ifdef __STDC__
4445 # include <limits.h>
4446 #else
4447 # include <assert.h>
4448 #endif
4449                      Syntax error
4450 _ACEOF
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } >/dev/null; then
4459   if test -s conftest.err; then
4460     ac_cpp_err=$ac_c_preproc_warn_flag
4461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4462   else
4463     ac_cpp_err=
4464   fi
4465 else
4466   ac_cpp_err=yes
4467 fi
4468 if test -z "$ac_cpp_err"; then
4469   :
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474   # Broken: fails on valid input.
4475 continue
4476 fi
4477 rm -f conftest.err conftest.$ac_ext
4478
4479   # OK, works on sane cases.  Now check whether non-existent headers
4480   # can be detected and how.
4481   cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 #include <ac_nonexistent.h>
4488 _ACEOF
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } >/dev/null; then
4497   if test -s conftest.err; then
4498     ac_cpp_err=$ac_c_preproc_warn_flag
4499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4500   else
4501     ac_cpp_err=
4502   fi
4503 else
4504   ac_cpp_err=yes
4505 fi
4506 if test -z "$ac_cpp_err"; then
4507   # Broken: success on invalid input.
4508 continue
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513   # Passes both tests.
4514 ac_preproc_ok=:
4515 break
4516 fi
4517 rm -f conftest.err conftest.$ac_ext
4518
4519 done
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4523   :
4524 else
4525   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details." >&2;}
4529    { (exit 1); exit 1; }; }
4530 fi
4531
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 #include <stdlib.h>
4551 #include <stdarg.h>
4552 #include <string.h>
4553 #include <float.h>
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565   (eval $ac_compile) 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } &&
4572          { ac_try='test -z "$ac_c_werror_flag"
4573                          || test ! -s conftest.err'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; } &&
4579          { ac_try='test -s conftest.$ac_objext'
4580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581   (eval $ac_try) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   ac_cv_header_stdc=yes
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 ac_cv_header_stdc=no
4591 fi
4592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593
4594 if test $ac_cv_header_stdc = yes; then
4595   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4596   cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <string.h>
4603
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606   $EGREP "memchr" >/dev/null 2>&1; then
4607   :
4608 else
4609   ac_cv_header_stdc=no
4610 fi
4611 rm -f conftest*
4612
4613 fi
4614
4615 if test $ac_cv_header_stdc = yes; then
4616   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617   cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 #include <stdlib.h>
4624
4625 _ACEOF
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627   $EGREP "free" >/dev/null 2>&1; then
4628   :
4629 else
4630   ac_cv_header_stdc=no
4631 fi
4632 rm -f conftest*
4633
4634 fi
4635
4636 if test $ac_cv_header_stdc = yes; then
4637   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4638   if test "$cross_compiling" = yes; then
4639   :
4640 else
4641   cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 #include <ctype.h>
4648 #if ((' ' & 0x0FF) == 0x020)
4649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4651 #else
4652 # define ISLOWER(c) \
4653                    (('a' <= (c) && (c) <= 'i') \
4654                      || ('j' <= (c) && (c) <= 'r') \
4655                      || ('s' <= (c) && (c) <= 'z'))
4656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657 #endif
4658
4659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4660 int
4661 main ()
4662 {
4663   int i;
4664   for (i = 0; i < 256; i++)
4665     if (XOR (islower (i), ISLOWER (i))
4666         || toupper (i) != TOUPPER (i))
4667       exit(2);
4668   exit (0);
4669 }
4670 _ACEOF
4671 rm -f conftest$ac_exeext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4673   (eval $ac_link) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   :
4683 else
4684   echo "$as_me: program exited with status $ac_status" >&5
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 ( exit $ac_status )
4689 ac_cv_header_stdc=no
4690 fi
4691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 fi
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4696 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4697 if test $ac_cv_header_stdc = yes; then
4698
4699 cat >>confdefs.h <<\_ACEOF
4700 #define STDC_HEADERS 1
4701 _ACEOF
4702
4703 fi
4704
4705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4716                   inttypes.h stdint.h unistd.h
4717 do
4718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 echo "$as_me:$LINENO: checking for $ac_header" >&5
4720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 $ac_includes_default
4731
4732 #include <$ac_header>
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736   (eval $ac_compile) 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } &&
4743          { ac_try='test -z "$ac_c_werror_flag"
4744                          || test ! -s conftest.err'
4745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746   (eval $ac_try) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; } &&
4750          { ac_try='test -s conftest.$ac_objext'
4751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752   (eval $ac_try) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; }; then
4756   eval "$as_ac_Header=yes"
4757 else
4758   echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 eval "$as_ac_Header=no"
4762 fi
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768   cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 _ACEOF
4771
4772 fi
4773
4774 done
4775
4776
4777
4778 for ac_header in dlfcn.h
4779 do
4780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782   echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 fi
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789 else
4790   # Is the header compilable?
4791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 $ac_includes_default
4800 #include <$ac_header>
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -z "$ac_c_werror_flag"
4812                          || test ! -s conftest.err'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_header_compiler=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_header_compiler=no
4830 fi
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4833 echo "${ECHO_T}$ac_header_compiler" >&6
4834
4835 # Is the header present?
4836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 #include <$ac_header>
4845 _ACEOF
4846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } >/dev/null; then
4854   if test -s conftest.err; then
4855     ac_cpp_err=$ac_c_preproc_warn_flag
4856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4857   else
4858     ac_cpp_err=
4859   fi
4860 else
4861   ac_cpp_err=yes
4862 fi
4863 if test -z "$ac_cpp_err"; then
4864   ac_header_preproc=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869   ac_header_preproc=no
4870 fi
4871 rm -f conftest.err conftest.$ac_ext
4872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873 echo "${ECHO_T}$ac_header_preproc" >&6
4874
4875 # So?  What about this header?
4876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4877   yes:no: )
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4882     ac_header_preproc=yes
4883     ;;
4884   no:yes:* )
4885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4897     (
4898       cat <<\_ASBOX
4899 ## ------------------------------------------ ##
4900 ## Report this to the AC_PACKAGE_NAME lists.  ##
4901 ## ------------------------------------------ ##
4902 _ASBOX
4903     ) |
4904       sed "s/^/$as_me: WARNING:     /" >&2
4905     ;;
4906 esac
4907 echo "$as_me:$LINENO: checking for $ac_header" >&5
4908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   eval "$as_ac_Header=\$ac_header_preproc"
4913 fi
4914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4916
4917 fi
4918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4919   cat >>confdefs.h <<_ACEOF
4920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921 _ACEOF
4922
4923 fi
4924
4925 done
4926
4927 ac_ext=cc
4928 ac_cpp='$CXXCPP $CPPFLAGS'
4929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4932 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4933 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4934 if test -z "$CXXCPP"; then
4935   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938       # Double quotes because CXXCPP needs to be expanded
4939     for CXXCPP in "$CXX -E" "/lib/cpp"
4940     do
4941       ac_preproc_ok=false
4942 for ac_cxx_preproc_warn_flag in '' yes
4943 do
4944   # Use a header file that comes with gcc, so configuring glibc
4945   # with a fresh cross-compiler works.
4946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947   # <limits.h> exists even on freestanding compilers.
4948   # On the NeXT, cc -E runs the code through the compiler's parser,
4949   # not just through cpp. "Syntax error" is here to catch this case.
4950   cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 #ifdef __STDC__
4957 # include <limits.h>
4958 #else
4959 # include <assert.h>
4960 #endif
4961                      Syntax error
4962 _ACEOF
4963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } >/dev/null; then
4971   if test -s conftest.err; then
4972     ac_cpp_err=$ac_cxx_preproc_warn_flag
4973     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4974   else
4975     ac_cpp_err=
4976   fi
4977 else
4978   ac_cpp_err=yes
4979 fi
4980 if test -z "$ac_cpp_err"; then
4981   :
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986   # Broken: fails on valid input.
4987 continue
4988 fi
4989 rm -f conftest.err conftest.$ac_ext
4990
4991   # OK, works on sane cases.  Now check whether non-existent headers
4992   # can be detected and how.
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #include <ac_nonexistent.h>
5000 _ACEOF
5001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5003   ac_status=$?
5004   grep -v '^ *+' conftest.er1 >conftest.err
5005   rm -f conftest.er1
5006   cat conftest.err >&5
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } >/dev/null; then
5009   if test -s conftest.err; then
5010     ac_cpp_err=$ac_cxx_preproc_warn_flag
5011     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5012   else
5013     ac_cpp_err=
5014   fi
5015 else
5016   ac_cpp_err=yes
5017 fi
5018 if test -z "$ac_cpp_err"; then
5019   # Broken: success on invalid input.
5020 continue
5021 else
5022   echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025   # Passes both tests.
5026 ac_preproc_ok=:
5027 break
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031 done
5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033 rm -f conftest.err conftest.$ac_ext
5034 if $ac_preproc_ok; then
5035   break
5036 fi
5037
5038     done
5039     ac_cv_prog_CXXCPP=$CXXCPP
5040
5041 fi
5042   CXXCPP=$ac_cv_prog_CXXCPP
5043 else
5044   ac_cv_prog_CXXCPP=$CXXCPP
5045 fi
5046 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5047 echo "${ECHO_T}$CXXCPP" >&6
5048 ac_preproc_ok=false
5049 for ac_cxx_preproc_warn_flag in '' yes
5050 do
5051   # Use a header file that comes with gcc, so configuring glibc
5052   # with a fresh cross-compiler works.
5053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054   # <limits.h> exists even on freestanding compilers.
5055   # On the NeXT, cc -E runs the code through the compiler's parser,
5056   # not just through cpp. "Syntax error" is here to catch this case.
5057   cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063 #ifdef __STDC__
5064 # include <limits.h>
5065 #else
5066 # include <assert.h>
5067 #endif
5068                      Syntax error
5069 _ACEOF
5070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5072   ac_status=$?
5073   grep -v '^ *+' conftest.er1 >conftest.err
5074   rm -f conftest.er1
5075   cat conftest.err >&5
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } >/dev/null; then
5078   if test -s conftest.err; then
5079     ac_cpp_err=$ac_cxx_preproc_warn_flag
5080     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5081   else
5082     ac_cpp_err=
5083   fi
5084 else
5085   ac_cpp_err=yes
5086 fi
5087 if test -z "$ac_cpp_err"; then
5088   :
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093   # Broken: fails on valid input.
5094 continue
5095 fi
5096 rm -f conftest.err conftest.$ac_ext
5097
5098   # OK, works on sane cases.  Now check whether non-existent headers
5099   # can be detected and how.
5100   cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 #include <ac_nonexistent.h>
5107 _ACEOF
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5110   ac_status=$?
5111   grep -v '^ *+' conftest.er1 >conftest.err
5112   rm -f conftest.er1
5113   cat conftest.err >&5
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } >/dev/null; then
5116   if test -s conftest.err; then
5117     ac_cpp_err=$ac_cxx_preproc_warn_flag
5118     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5119   else
5120     ac_cpp_err=
5121   fi
5122 else
5123   ac_cpp_err=yes
5124 fi
5125 if test -z "$ac_cpp_err"; then
5126   # Broken: success on invalid input.
5127 continue
5128 else
5129   echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132   # Passes both tests.
5133 ac_preproc_ok=:
5134 break
5135 fi
5136 rm -f conftest.err conftest.$ac_ext
5137
5138 done
5139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5140 rm -f conftest.err conftest.$ac_ext
5141 if $ac_preproc_ok; then
5142   :
5143 else
5144   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5145 See \`config.log' for more details." >&5
5146 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5147 See \`config.log' for more details." >&2;}
5148    { (exit 1); exit 1; }; }
5149 fi
5150
5151 ac_ext=cc
5152 ac_cpp='$CXXCPP $CPPFLAGS'
5153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5156
5157
5158 ac_ext=f
5159 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5160 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5162 if test -n "$ac_tool_prefix"; then
5163   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5164   do
5165     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_F77+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -n "$F77"; then
5173   ac_cv_prog_F77="$F77" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_exec_ext in '' $ac_executable_extensions; do
5181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187 done
5188
5189 fi
5190 fi
5191 F77=$ac_cv_prog_F77
5192 if test -n "$F77"; then
5193   echo "$as_me:$LINENO: result: $F77" >&5
5194 echo "${ECHO_T}$F77" >&6
5195 else
5196   echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6
5198 fi
5199
5200     test -n "$F77" && break
5201   done
5202 fi
5203 if test -z "$F77"; then
5204   ac_ct_F77=$F77
5205   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5206 do
5207   # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$ac_ct_F77"; then
5215   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_ac_ct_F77="$ac_prog"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230
5231 fi
5232 fi
5233 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5234 if test -n "$ac_ct_F77"; then
5235   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5236 echo "${ECHO_T}$ac_ct_F77" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241
5242   test -n "$ac_ct_F77" && break
5243 done
5244
5245   F77=$ac_ct_F77
5246 fi
5247
5248
5249 # Provide some information about the compiler.
5250 echo "$as_me:5250:" \
5251      "checking for Fortran 77 compiler version" >&5
5252 ac_compiler=`set X $ac_compile; echo $2`
5253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5254   (eval $ac_compiler --version </dev/null >&5) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }
5258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5259   (eval $ac_compiler -v </dev/null >&5) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }
5263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5264   (eval $ac_compiler -V </dev/null >&5) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }
5268 rm -f a.out
5269
5270 # If we don't use `.F' as extension, the preprocessor is not run on the
5271 # input file.  (Note that this only needs to work for GNU compilers.)
5272 ac_save_ext=$ac_ext
5273 ac_ext=F
5274 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5275 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5276 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   cat >conftest.$ac_ext <<_ACEOF
5280       program main
5281 #ifndef __GNUC__
5282        choke me
5283 #endif
5284
5285       end
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289   (eval $ac_compile) 2>conftest.er1
5290   ac_status=$?
5291   grep -v '^ *+' conftest.er1 >conftest.err
5292   rm -f conftest.er1
5293   cat conftest.err >&5
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } &&
5296          { ac_try='test -z "$ac_f77_werror_flag"
5297                          || test ! -s conftest.err'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; } &&
5303          { ac_try='test -s conftest.$ac_objext'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; }; then
5309   ac_compiler_gnu=yes
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314 ac_compiler_gnu=no
5315 fi
5316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5318
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5321 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5322 ac_ext=$ac_save_ext
5323 ac_test_FFLAGS=${FFLAGS+set}
5324 ac_save_FFLAGS=$FFLAGS
5325 FFLAGS=
5326 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5327 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5328 if test "${ac_cv_prog_f77_g+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   FFLAGS=-g
5332 cat >conftest.$ac_ext <<_ACEOF
5333       program main
5334
5335       end
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339   (eval $ac_compile) 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } &&
5346          { ac_try='test -z "$ac_f77_werror_flag"
5347                          || test ! -s conftest.err'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; } &&
5353          { ac_try='test -s conftest.$ac_objext'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; }; then
5359   ac_cv_prog_f77_g=yes
5360 else
5361   echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 ac_cv_prog_f77_g=no
5365 fi
5366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367
5368 fi
5369 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5370 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5371 if test "$ac_test_FFLAGS" = set; then
5372   FFLAGS=$ac_save_FFLAGS
5373 elif test $ac_cv_prog_f77_g = yes; then
5374   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5375     FFLAGS="-g -O2"
5376   else
5377     FFLAGS="-g"
5378   fi
5379 else
5380   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5381     FFLAGS="-O2"
5382   else
5383     FFLAGS=
5384   fi
5385 fi
5386
5387 G77=`test $ac_compiler_gnu = yes && echo yes`
5388 ac_ext=c
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393
5394
5395
5396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5397
5398 # find the maximum length of command line arguments
5399 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404     i=0
5405   teststring="ABCD"
5406
5407   case $build_os in
5408   msdosdjgpp*)
5409     # On DJGPP, this test can blow up pretty badly due to problems in libc
5410     # (any single argument exceeding 2000 bytes causes a buffer overrun
5411     # during glob expansion).  Even if it were fixed, the result of this
5412     # check would be larger than it should be.
5413     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5414     ;;
5415
5416   gnu*)
5417     # Under GNU Hurd, this test is not required because there is
5418     # no limit to the length of command line arguments.
5419     # Libtool will interpret -1 as no limit whatsoever
5420     lt_cv_sys_max_cmd_len=-1;
5421     ;;
5422
5423   cygwin* | mingw*)
5424     # On Win9x/ME, this test blows up -- it succeeds, but takes
5425     # about 5 minutes as the teststring grows exponentially.
5426     # Worse, since 9x/ME are not pre-emptively multitasking,
5427     # you end up with a "frozen" computer, even though with patience
5428     # the test eventually succeeds (with a max line length of 256k).
5429     # Instead, let's just punt: use the minimum linelength reported by
5430     # all of the supported platforms: 8192 (on NT/2K/XP).
5431     lt_cv_sys_max_cmd_len=8192;
5432     ;;
5433
5434   amigaos*)
5435     # On AmigaOS with pdksh, this test takes hours, literally.
5436     # So we just punt and use a minimum line length of 8192.
5437     lt_cv_sys_max_cmd_len=8192;
5438     ;;
5439
5440  *)
5441     # If test is not a shell built-in, we'll probably end up computing a
5442     # maximum length that is only half of the actual maximum length, but
5443     # we can't tell.
5444     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5445                = "XX$teststring") >/dev/null 2>&1 &&
5446             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5447             lt_cv_sys_max_cmd_len=$new_result &&
5448             test $i != 17 # 1/2 MB should be enough
5449     do
5450       i=`expr $i + 1`
5451       teststring=$teststring$teststring
5452     done
5453     teststring=
5454     # Add a significant safety factor because C++ compilers can tack on massive
5455     # amounts of additional arguments before passing them to the linker.
5456     # It appears as though 1/2 is a usable value.
5457     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5458     ;;
5459   esac
5460
5461 fi
5462
5463 if test -n $lt_cv_sys_max_cmd_len ; then
5464   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5465 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5466 else
5467   echo "$as_me:$LINENO: result: none" >&5
5468 echo "${ECHO_T}none" >&6
5469 fi
5470
5471
5472
5473
5474 # Check for command to grab the raw symbol name followed by C symbol from nm.
5475 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5476 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5477 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480
5481 # These are sane defaults that work on at least a few old systems.
5482 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5483
5484 # Character class describing NM global symbol codes.
5485 symcode='[BCDEGRST]'
5486
5487 # Regexp to match symbols that can be accessed directly from C.
5488 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5489
5490 # Transform the above into a raw symbol and a C symbol.
5491 symxfrm='\1 \2\3 \3'
5492
5493 # Transform an extracted symbol line into a proper C declaration
5494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5495
5496 # Transform an extracted symbol line into symbol name and symbol address
5497 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'"
5498
5499 # Define system-specific variables.
5500 case $host_os in
5501 aix*)
5502   symcode='[BCDT]'
5503   ;;
5504 cygwin* | mingw* | pw32*)
5505   symcode='[ABCDGISTW]'
5506   ;;
5507 hpux*) # Its linker distinguishes data from code symbols
5508   if test "$host_cpu" = ia64; then
5509     symcode='[ABCDEGRST]'
5510   fi
5511   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5512   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'"
5513   ;;
5514 irix* | nonstopux*)
5515   symcode='[BCDEGRST]'
5516   ;;
5517 osf*)
5518   symcode='[BCDEGQRST]'
5519   ;;
5520 solaris* | sysv5*)
5521   symcode='[BDRT]'
5522   ;;
5523 sysv4)
5524   symcode='[DFNSTU]'
5525   ;;
5526 esac
5527
5528 # Handle CRLF in mingw tool chain
5529 opt_cr=
5530 case $build_os in
5531 mingw*)
5532   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5533   ;;
5534 esac
5535
5536 # If we're using GNU nm, then use its standard symbol codes.
5537 case `$NM -V 2>&1` in
5538 *GNU* | *'with BFD'*)
5539   symcode='[ABCDGIRSTW]' ;;
5540 esac
5541
5542 # Try without a prefix undercore, then with it.
5543 for ac_symprfx in "" "_"; do
5544
5545   # Write the raw and C identifiers.
5546   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5547
5548   # Check to see that the pipe works correctly.
5549   pipe_works=no
5550
5551   rm -f conftest*
5552   cat > conftest.$ac_ext <<EOF
5553 #ifdef __cplusplus
5554 extern "C" {
5555 #endif
5556 char nm_test_var;
5557 void nm_test_func(){}
5558 #ifdef __cplusplus
5559 }
5560 #endif
5561 int main(){nm_test_var='a';nm_test_func();return(0);}
5562 EOF
5563
5564   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565   (eval $ac_compile) 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); }; then
5569     # Now try to grab the symbols.
5570     nlist=conftest.nm
5571     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5572   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } && test -s "$nlist"; then
5576       # Try sorting and uniquifying the output.
5577       if sort "$nlist" | uniq > "$nlist"T; then
5578         mv -f "$nlist"T "$nlist"
5579       else
5580         rm -f "$nlist"T
5581       fi
5582
5583       # Make sure that we snagged all the symbols we need.
5584       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5585         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5586           cat <<EOF > conftest.$ac_ext
5587 #ifdef __cplusplus
5588 extern "C" {
5589 #endif
5590
5591 EOF
5592           # Now generate the symbol file.
5593           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5594
5595           cat <<EOF >> conftest.$ac_ext
5596 #if defined (__STDC__) && __STDC__
5597 # define lt_ptr_t void *
5598 #else
5599 # define lt_ptr_t char *
5600 # define const
5601 #endif
5602
5603 /* The mapping between symbol names and symbols. */
5604 const struct {
5605   const char *name;
5606   lt_ptr_t address;
5607 }
5608 lt_preloaded_symbols[] =
5609 {
5610 EOF
5611           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5612           cat <<\EOF >> conftest.$ac_ext
5613   {0, (lt_ptr_t) 0}
5614 };
5615
5616 #ifdef __cplusplus
5617 }
5618 #endif
5619 EOF
5620           # Now try linking the two files.
5621           mv conftest.$ac_objext conftstm.$ac_objext
5622           lt_save_LIBS="$LIBS"
5623           lt_save_CFLAGS="$CFLAGS"
5624           LIBS="conftstm.$ac_objext"
5625           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5626           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627   (eval $ac_link) 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5631             pipe_works=yes
5632           fi
5633           LIBS="$lt_save_LIBS"
5634           CFLAGS="$lt_save_CFLAGS"
5635         else
5636           echo "cannot find nm_test_func in $nlist" >&5
5637         fi
5638       else
5639         echo "cannot find nm_test_var in $nlist" >&5
5640       fi
5641     else
5642       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5643     fi
5644   else
5645     echo "$progname: failed program was:" >&5
5646     cat conftest.$ac_ext >&5
5647   fi
5648   rm -f conftest* conftst*
5649
5650   # Do not use the global_symbol_pipe unless it works.
5651   if test "$pipe_works" = yes; then
5652     break
5653   else
5654     lt_cv_sys_global_symbol_pipe=
5655   fi
5656 done
5657
5658 fi
5659
5660 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5661   lt_cv_sys_global_symbol_to_cdecl=
5662 fi
5663 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5664   echo "$as_me:$LINENO: result: failed" >&5
5665 echo "${ECHO_T}failed" >&6
5666 else
5667   echo "$as_me:$LINENO: result: ok" >&5
5668 echo "${ECHO_T}ok" >&6
5669 fi
5670
5671 echo "$as_me:$LINENO: checking for objdir" >&5
5672 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5673 if test "${lt_cv_objdir+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   rm -f .libs 2>/dev/null
5677 mkdir .libs 2>/dev/null
5678 if test -d .libs; then
5679   lt_cv_objdir=.libs
5680 else
5681   # MS-DOS does not allow filenames that begin with a dot.
5682   lt_cv_objdir=_libs
5683 fi
5684 rmdir .libs 2>/dev/null
5685 fi
5686 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5687 echo "${ECHO_T}$lt_cv_objdir" >&6
5688 objdir=$lt_cv_objdir
5689
5690
5691
5692
5693
5694 case $host_os in
5695 aix3*)
5696   # AIX sometimes has problems with the GCC collect2 program.  For some
5697   # reason, if we set the COLLECT_NAMES environment variable, the problems
5698   # vanish in a puff of smoke.
5699   if test "X${COLLECT_NAMES+set}" != Xset; then
5700     COLLECT_NAMES=
5701     export COLLECT_NAMES
5702   fi
5703   ;;
5704 esac
5705
5706 # Sed substitution that helps us do robust quoting.  It backslashifies
5707 # metacharacters that are still active within double-quoted strings.
5708 Xsed='sed -e s/^X//'
5709 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5710
5711 # Same as above, but do not quote variable references.
5712 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5713
5714 # Sed substitution to delay expansion of an escaped shell variable in a
5715 # double_quote_subst'ed string.
5716 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5717
5718 # Sed substitution to avoid accidental globbing in evaled expressions
5719 no_glob_subst='s/\*/\\\*/g'
5720
5721 # Constants:
5722 rm="rm -f"
5723
5724 # Global variables:
5725 default_ofile=libtool
5726 can_build_shared=yes
5727
5728 # All known linkers require a `.a' archive for static linking (except M$VC,
5729 # which needs '.lib').
5730 libext=a
5731 ltmain="$ac_aux_dir/ltmain.sh"
5732 ofile="$default_ofile"
5733 with_gnu_ld="$lt_cv_prog_gnu_ld"
5734
5735 if test -n "$ac_tool_prefix"; then
5736   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5737 set dummy ${ac_tool_prefix}ar; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_AR+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   if test -n "$AR"; then
5744   ac_cv_prog_AR="$AR" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751   for ac_exec_ext in '' $ac_executable_extensions; do
5752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753     ac_cv_prog_AR="${ac_tool_prefix}ar"
5754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758 done
5759
5760 fi
5761 fi
5762 AR=$ac_cv_prog_AR
5763 if test -n "$AR"; then
5764   echo "$as_me:$LINENO: result: $AR" >&5
5765 echo "${ECHO_T}$AR" >&6
5766 else
5767   echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5769 fi
5770
5771 fi
5772 if test -z "$ac_cv_prog_AR"; then
5773   ac_ct_AR=$AR
5774   # Extract the first word of "ar", so it can be a program name with args.
5775 set dummy ar; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -n "$ac_ct_AR"; then
5782   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_prog_ac_ct_AR="ar"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797
5798   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5799 fi
5800 fi
5801 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5802 if test -n "$ac_ct_AR"; then
5803   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5804 echo "${ECHO_T}$ac_ct_AR" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809
5810   AR=$ac_ct_AR
5811 else
5812   AR="$ac_cv_prog_AR"
5813 fi
5814
5815 if test -n "$ac_tool_prefix"; then
5816   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5818 echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820 if test "${ac_cv_prog_RANLIB+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   if test -n "$RANLIB"; then
5824   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829   IFS=$as_save_IFS
5830   test -z "$as_dir" && as_dir=.
5831   for ac_exec_ext in '' $ac_executable_extensions; do
5832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835     break 2
5836   fi
5837 done
5838 done
5839
5840 fi
5841 fi
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844   echo "$as_me:$LINENO: result: $RANLIB" >&5
5845 echo "${ECHO_T}$RANLIB" >&6
5846 else
5847   echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6
5849 fi
5850
5851 fi
5852 if test -z "$ac_cv_prog_RANLIB"; then
5853   ac_ct_RANLIB=$RANLIB
5854   # Extract the first word of "ranlib", so it can be a program name with args.
5855 set dummy ranlib; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$ac_ct_RANLIB"; then
5862   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871     ac_cv_prog_ac_ct_RANLIB="ranlib"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877
5878   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5879 fi
5880 fi
5881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5882 if test -n "$ac_ct_RANLIB"; then
5883   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5884 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5885 else
5886   echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5888 fi
5889
5890   RANLIB=$ac_ct_RANLIB
5891 else
5892   RANLIB="$ac_cv_prog_RANLIB"
5893 fi
5894
5895 if test -n "$ac_tool_prefix"; then
5896   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}strip; ac_word=$2
5898 echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900 if test "${ac_cv_prog_STRIP+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   if test -n "$STRIP"; then
5904   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   for ac_exec_ext in '' $ac_executable_extensions; do
5912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918 done
5919
5920 fi
5921 fi
5922 STRIP=$ac_cv_prog_STRIP
5923 if test -n "$STRIP"; then
5924   echo "$as_me:$LINENO: result: $STRIP" >&5
5925 echo "${ECHO_T}$STRIP" >&6
5926 else
5927   echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5929 fi
5930
5931 fi
5932 if test -z "$ac_cv_prog_STRIP"; then
5933   ac_ct_STRIP=$STRIP
5934   # Extract the first word of "strip", so it can be a program name with args.
5935 set dummy strip; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   if test -n "$ac_ct_STRIP"; then
5942   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949   for ac_exec_ext in '' $ac_executable_extensions; do
5950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951     ac_cv_prog_ac_ct_STRIP="strip"
5952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956 done
5957
5958   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5959 fi
5960 fi
5961 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5962 if test -n "$ac_ct_STRIP"; then
5963   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5964 echo "${ECHO_T}$ac_ct_STRIP" >&6
5965 else
5966   echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5968 fi
5969
5970   STRIP=$ac_ct_STRIP
5971 else
5972   STRIP="$ac_cv_prog_STRIP"
5973 fi
5974
5975
5976 old_CC="$CC"
5977 old_CFLAGS="$CFLAGS"
5978
5979 # Set sane defaults for various variables
5980 test -z "$AR" && AR=ar
5981 test -z "$AR_FLAGS" && AR_FLAGS=cru
5982 test -z "$AS" && AS=as
5983 test -z "$CC" && CC=cc
5984 test -z "$LTCC" && LTCC=$CC
5985 test -z "$DLLTOOL" && DLLTOOL=dlltool
5986 test -z "$LD" && LD=ld
5987 test -z "$LN_S" && LN_S="ln -s"
5988 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5989 test -z "$NM" && NM=nm
5990 test -z "$SED" && SED=sed
5991 test -z "$OBJDUMP" && OBJDUMP=objdump
5992 test -z "$RANLIB" && RANLIB=:
5993 test -z "$STRIP" && STRIP=:
5994 test -z "$ac_objext" && ac_objext=o
5995
5996 # Determine commands to create old-style static archives.
5997 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5998 old_postinstall_cmds='chmod 644 $oldlib'
5999 old_postuninstall_cmds=
6000
6001 if test -n "$RANLIB"; then
6002   case $host_os in
6003   openbsd*)
6004     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6005     ;;
6006   *)
6007     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6008     ;;
6009   esac
6010   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6011 fi
6012
6013 # Only perform the check for file, if the check method requires it
6014 case $deplibs_check_method in
6015 file_magic*)
6016   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6017     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6018 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6019 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   case $MAGIC_CMD in
6023 [\\/*] |  ?:[\\/]*)
6024   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6025   ;;
6026 *)
6027   lt_save_MAGIC_CMD="$MAGIC_CMD"
6028   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6029   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6030   for ac_dir in $ac_dummy; do
6031     IFS="$lt_save_ifs"
6032     test -z "$ac_dir" && ac_dir=.
6033     if test -f $ac_dir/${ac_tool_prefix}file; then
6034       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6035       if test -n "$file_magic_test_file"; then
6036         case $deplibs_check_method in
6037         "file_magic "*)
6038           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6039           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6040           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6041             $EGREP "$file_magic_regex" > /dev/null; then
6042             :
6043           else
6044             cat <<EOF 1>&2
6045
6046 *** Warning: the command libtool uses to detect shared libraries,
6047 *** $file_magic_cmd, produces output that libtool cannot recognize.
6048 *** The result is that libtool may fail to recognize shared libraries
6049 *** as such.  This will affect the creation of libtool libraries that
6050 *** depend on shared libraries, but programs linked with such libtool
6051 *** libraries will work regardless of this problem.  Nevertheless, you
6052 *** may want to report the problem to your system manager and/or to
6053 *** bug-libtool@gnu.org
6054
6055 EOF
6056           fi ;;
6057         esac
6058       fi
6059       break
6060     fi
6061   done
6062   IFS="$lt_save_ifs"
6063   MAGIC_CMD="$lt_save_MAGIC_CMD"
6064   ;;
6065 esac
6066 fi
6067
6068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6069 if test -n "$MAGIC_CMD"; then
6070   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6071 echo "${ECHO_T}$MAGIC_CMD" >&6
6072 else
6073   echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6075 fi
6076
6077 if test -z "$lt_cv_path_MAGIC_CMD"; then
6078   if test -n "$ac_tool_prefix"; then
6079     echo "$as_me:$LINENO: checking for file" >&5
6080 echo $ECHO_N "checking for file... $ECHO_C" >&6
6081 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   case $MAGIC_CMD in
6085 [\\/*] |  ?:[\\/]*)
6086   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6087   ;;
6088 *)
6089   lt_save_MAGIC_CMD="$MAGIC_CMD"
6090   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6091   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6092   for ac_dir in $ac_dummy; do
6093     IFS="$lt_save_ifs"
6094     test -z "$ac_dir" && ac_dir=.
6095     if test -f $ac_dir/file; then
6096       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6097       if test -n "$file_magic_test_file"; then
6098         case $deplibs_check_method in
6099         "file_magic "*)
6100           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6101           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6102           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6103             $EGREP "$file_magic_regex" > /dev/null; then
6104             :
6105           else
6106             cat <<EOF 1>&2
6107
6108 *** Warning: the command libtool uses to detect shared libraries,
6109 *** $file_magic_cmd, produces output that libtool cannot recognize.
6110 *** The result is that libtool may fail to recognize shared libraries
6111 *** as such.  This will affect the creation of libtool libraries that
6112 *** depend on shared libraries, but programs linked with such libtool
6113 *** libraries will work regardless of this problem.  Nevertheless, you
6114 *** may want to report the problem to your system manager and/or to
6115 *** bug-libtool@gnu.org
6116
6117 EOF
6118           fi ;;
6119         esac
6120       fi
6121       break
6122     fi
6123   done
6124   IFS="$lt_save_ifs"
6125   MAGIC_CMD="$lt_save_MAGIC_CMD"
6126   ;;
6127 esac
6128 fi
6129
6130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6131 if test -n "$MAGIC_CMD"; then
6132   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6133 echo "${ECHO_T}$MAGIC_CMD" >&6
6134 else
6135   echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6
6137 fi
6138
6139   else
6140     MAGIC_CMD=:
6141   fi
6142 fi
6143
6144   fi
6145   ;;
6146 esac
6147
6148 enable_dlopen=no
6149 enable_win32_dll=no
6150
6151 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6152 if test "${enable_libtool_lock+set}" = set; then
6153   enableval="$enable_libtool_lock"
6154
6155 fi;
6156 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6157
6158
6159 # Check whether --with-pic or --without-pic was given.
6160 if test "${with_pic+set}" = set; then
6161   withval="$with_pic"
6162   pic_mode="$withval"
6163 else
6164   pic_mode=default
6165 fi;
6166 test -z "$pic_mode" && pic_mode=default
6167
6168 # Use C for the default configuration in the libtool script
6169 tagname=
6170 lt_save_CC="$CC"
6171 ac_ext=c
6172 ac_cpp='$CPP $CPPFLAGS'
6173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
6177
6178 # Source file extension for C test sources.
6179 ac_ext=c
6180
6181 # Object file extension for compiled C test sources.
6182 objext=o
6183 objext=$objext
6184
6185 # Code to be used in simple compile tests
6186 lt_simple_compile_test_code="int some_variable = 0;\n"
6187
6188 # Code to be used in simple link tests
6189 lt_simple_link_test_code='int main(){return(0);}\n'
6190
6191
6192 # If no C compiler was specified, use CC.
6193 LTCC=${LTCC-"$CC"}
6194
6195 # Allow CC to be a program name with arguments.
6196 compiler=$CC
6197
6198
6199 #
6200 # Check for any special shared library compilation flags.
6201 #
6202 lt_prog_cc_shlib=
6203 if test "$GCC" = no; then
6204   case $host_os in
6205   sco3.2v5*)
6206     lt_prog_cc_shlib='-belf'
6207     ;;
6208   esac
6209 fi
6210 if test -n "$lt_prog_cc_shlib"; then
6211   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6212 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6213   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6214   else
6215     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6216 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6217     lt_cv_prog_cc_can_build_shared=no
6218   fi
6219 fi
6220
6221
6222 #
6223 # Check to make sure the static flag actually works.
6224 #
6225 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6226 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6227 if test "${lt_prog_compiler_static_works+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   lt_prog_compiler_static_works=no
6231    save_LDFLAGS="$LDFLAGS"
6232    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6233    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6234    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6235      # The compiler can only warn and ignore the option if not recognized
6236      # So say no if there are warnings
6237      if test -s conftest.err; then
6238        # Append any errors to the config.log.
6239        cat conftest.err 1>&5
6240      else
6241        lt_prog_compiler_static_works=yes
6242      fi
6243    fi
6244    $rm conftest*
6245    LDFLAGS="$save_LDFLAGS"
6246
6247 fi
6248 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6249 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6250
6251 if test x"$lt_prog_compiler_static_works" = xyes; then
6252     :
6253 else
6254     lt_prog_compiler_static=
6255 fi
6256
6257
6258
6259
6260 lt_prog_compiler_no_builtin_flag=
6261
6262 if test "$GCC" = yes; then
6263   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6264
6265
6266 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6267 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6268 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   lt_cv_prog_compiler_rtti_exceptions=no
6272   ac_outfile=conftest.$ac_objext
6273    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6274    lt_compiler_flag="-fno-rtti -fno-exceptions"
6275    # Insert the option either (1) after the last *FLAGS variable, or
6276    # (2) before a word containing "conftest.", or (3) at the end.
6277    # Note that $ac_compile itself does not contain backslashes and begins
6278    # with a dollar sign (not a hyphen), so the echo should work correctly.
6279    # The option is referenced via a variable to avoid confusing sed.
6280    lt_compile=`echo "$ac_compile" | $SED \
6281    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6283    -e 's:$: $lt_compiler_flag:'`
6284    (eval echo "\"\$as_me:6284: $lt_compile\"" >&5)
6285    (eval "$lt_compile" 2>conftest.err)
6286    ac_status=$?
6287    cat conftest.err >&5
6288    echo "$as_me:6288: \$? = $ac_status" >&5
6289    if (exit $ac_status) && test -s "$ac_outfile"; then
6290      # The compiler can only warn and ignore the option if not recognized
6291      # So say no if there are warnings
6292      if test ! -s conftest.err; then
6293        lt_cv_prog_compiler_rtti_exceptions=yes
6294      fi
6295    fi
6296    $rm conftest*
6297
6298 fi
6299 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6300 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6301
6302 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6303     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6304 else
6305     :
6306 fi
6307
6308 fi
6309
6310 lt_prog_compiler_wl=
6311 lt_prog_compiler_pic=
6312 lt_prog_compiler_static=
6313
6314 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6315 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6316
6317   if test "$GCC" = yes; then
6318     lt_prog_compiler_wl='-Wl,'
6319     lt_prog_compiler_static='-static'
6320
6321     case $host_os in
6322       aix*)
6323       # All AIX code is PIC.
6324       if test "$host_cpu" = ia64; then
6325         # AIX 5 now supports IA64 processor
6326         lt_prog_compiler_static='-Bstatic'
6327       fi
6328       ;;
6329
6330     amigaos*)
6331       # FIXME: we need at least 68020 code to build shared libraries, but
6332       # adding the `-m68020' flag to GCC prevents building anything better,
6333       # like `-m68040'.
6334       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6335       ;;
6336
6337     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6338       # PIC is the default for these OSes.
6339       ;;
6340
6341     mingw* | pw32* | os2*)
6342       # This hack is so that the source file can tell whether it is being
6343       # built for inclusion in a dll (and should export symbols for example).
6344       lt_prog_compiler_pic='-DDLL_EXPORT'
6345       ;;
6346
6347     darwin* | rhapsody*)
6348       # PIC is the default on this platform
6349       # Common symbols not allowed in MH_DYLIB files
6350       lt_prog_compiler_pic='-fno-common'
6351       ;;
6352
6353     msdosdjgpp*)
6354       # Just because we use GCC doesn't mean we suddenly get shared libraries
6355       # on systems that don't support them.
6356       lt_prog_compiler_can_build_shared=no
6357       enable_shared=no
6358       ;;
6359
6360     sysv4*MP*)
6361       if test -d /usr/nec; then
6362         lt_prog_compiler_pic=-Kconform_pic
6363       fi
6364       ;;
6365
6366     hpux*)
6367       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6368       # not for PA HP-UX.
6369       case "$host_cpu" in
6370       hppa*64*|ia64*)
6371         # +Z the default
6372         ;;
6373       *)
6374         lt_prog_compiler_pic='-fPIC'
6375         ;;
6376       esac
6377       ;;
6378
6379     *)
6380       lt_prog_compiler_pic='-fPIC'
6381       ;;
6382     esac
6383   else
6384     # PORTME Check for flag to pass linker flags through the system compiler.
6385     case $host_os in
6386     aix*)
6387       lt_prog_compiler_wl='-Wl,'
6388       if test "$host_cpu" = ia64; then
6389         # AIX 5 now supports IA64 processor
6390         lt_prog_compiler_static='-Bstatic'
6391       else
6392         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6393       fi
6394       ;;
6395
6396     mingw* | pw32* | os2*)
6397       # This hack is so that the source file can tell whether it is being
6398       # built for inclusion in a dll (and should export symbols for example).
6399       lt_prog_compiler_pic='-DDLL_EXPORT'
6400       ;;
6401
6402     hpux9* | hpux10* | hpux11*)
6403       lt_prog_compiler_wl='-Wl,'
6404       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6405       # not for PA HP-UX.
6406       case "$host_cpu" in
6407       hppa*64*|ia64*)
6408         # +Z the default
6409         ;;
6410       *)
6411         lt_prog_compiler_pic='+Z'
6412         ;;
6413       esac
6414       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6415       lt_prog_compiler_static='${wl}-a ${wl}archive'
6416       ;;
6417
6418     irix5* | irix6* | nonstopux*)
6419       lt_prog_compiler_wl='-Wl,'
6420       # PIC (with -KPIC) is the default.
6421       lt_prog_compiler_static='-non_shared'
6422       ;;
6423
6424     newsos6)
6425       lt_prog_compiler_pic='-KPIC'
6426       lt_prog_compiler_static='-Bstatic'
6427       ;;
6428
6429     linux*)
6430       case $CC in
6431       icc* | ecc*)
6432         lt_prog_compiler_wl='-Wl,'
6433         lt_prog_compiler_pic='-KPIC'
6434         lt_prog_compiler_static='-static'
6435         ;;
6436       ccc*)
6437         lt_prog_compiler_wl='-Wl,'
6438         # All Alpha code is PIC.
6439         lt_prog_compiler_static='-non_shared'
6440         ;;
6441       esac
6442       ;;
6443
6444     osf3* | osf4* | osf5*)
6445       lt_prog_compiler_wl='-Wl,'
6446       # All OSF/1 code is PIC.
6447       lt_prog_compiler_static='-non_shared'
6448       ;;
6449
6450     sco3.2v5*)
6451       lt_prog_compiler_pic='-Kpic'
6452       lt_prog_compiler_static='-dn'
6453       ;;
6454
6455     solaris*)
6456       lt_prog_compiler_wl='-Wl,'
6457       lt_prog_compiler_pic='-KPIC'
6458       lt_prog_compiler_static='-Bstatic'
6459       ;;
6460
6461     sunos4*)
6462       lt_prog_compiler_wl='-Qoption ld '
6463       lt_prog_compiler_pic='-PIC'
6464       lt_prog_compiler_static='-Bstatic'
6465       ;;
6466
6467     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6468       lt_prog_compiler_wl='-Wl,'
6469       lt_prog_compiler_pic='-KPIC'
6470       lt_prog_compiler_static='-Bstatic'
6471       ;;
6472
6473     sysv4*MP*)
6474       if test -d /usr/nec ;then
6475         lt_prog_compiler_pic='-Kconform_pic'
6476         lt_prog_compiler_static='-Bstatic'
6477       fi
6478       ;;
6479
6480     uts4*)
6481       lt_prog_compiler_pic='-pic'
6482       lt_prog_compiler_static='-Bstatic'
6483       ;;
6484
6485     *)
6486       lt_prog_compiler_can_build_shared=no
6487       ;;
6488     esac
6489   fi
6490
6491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6492 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6493
6494 #
6495 # Check to make sure the PIC flag actually works.
6496 #
6497 if test -n "$lt_prog_compiler_pic"; then
6498
6499 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_pic_works+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   lt_prog_compiler_pic_works=no
6505   ac_outfile=conftest.$ac_objext
6506    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6507    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6508    # Insert the option either (1) after the last *FLAGS variable, or
6509    # (2) before a word containing "conftest.", or (3) at the end.
6510    # Note that $ac_compile itself does not contain backslashes and begins
6511    # with a dollar sign (not a hyphen), so the echo should work correctly.
6512    # The option is referenced via a variable to avoid confusing sed.
6513    lt_compile=`echo "$ac_compile" | $SED \
6514    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6516    -e 's:$: $lt_compiler_flag:'`
6517    (eval echo "\"\$as_me:6517: $lt_compile\"" >&5)
6518    (eval "$lt_compile" 2>conftest.err)
6519    ac_status=$?
6520    cat conftest.err >&5
6521    echo "$as_me:6521: \$? = $ac_status" >&5
6522    if (exit $ac_status) && test -s "$ac_outfile"; then
6523      # The compiler can only warn and ignore the option if not recognized
6524      # So say no if there are warnings
6525      if test ! -s conftest.err; then
6526        lt_prog_compiler_pic_works=yes
6527      fi
6528    fi
6529    $rm conftest*
6530
6531 fi
6532 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6533 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6534
6535 if test x"$lt_prog_compiler_pic_works" = xyes; then
6536     case $lt_prog_compiler_pic in
6537      "" | " "*) ;;
6538      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6539      esac
6540 else
6541     lt_prog_compiler_pic=
6542      lt_prog_compiler_can_build_shared=no
6543 fi
6544
6545 fi
6546 case "$host_os" in
6547   # For platforms which do not support PIC, -DPIC is meaningless:
6548   *djgpp*)
6549     lt_prog_compiler_pic=
6550     ;;
6551   *)
6552     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6553     ;;
6554 esac
6555
6556 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6557 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   lt_cv_prog_compiler_c_o=no
6562    $rm -r conftest 2>/dev/null
6563    mkdir conftest
6564    cd conftest
6565    mkdir out
6566    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6567
6568    lt_compiler_flag="-o out/conftest2.$ac_objext"
6569    # Insert the option either (1) after the last *FLAGS variable, or
6570    # (2) before a word containing "conftest.", or (3) at the end.
6571    # Note that $ac_compile itself does not contain backslashes and begins
6572    # with a dollar sign (not a hyphen), so the echo should work correctly.
6573    lt_compile=`echo "$ac_compile" | $SED \
6574    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6575    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6576    -e 's:$: $lt_compiler_flag:'`
6577    (eval echo "\"\$as_me:6577: $lt_compile\"" >&5)
6578    (eval "$lt_compile" 2>out/conftest.err)
6579    ac_status=$?
6580    cat out/conftest.err >&5
6581    echo "$as_me:6581: \$? = $ac_status" >&5
6582    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6583    then
6584      # The compiler can only warn and ignore the option if not recognized
6585      # So say no if there are warnings
6586      if test ! -s out/conftest.err; then
6587        lt_cv_prog_compiler_c_o=yes
6588      fi
6589    fi
6590    chmod u+w .
6591    $rm conftest*
6592    # SGI C++ compiler will create directory out/ii_files/ for
6593    # template instantiation
6594    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6595    $rm out/* && rmdir out
6596    cd ..
6597    rmdir conftest
6598    $rm conftest*
6599
6600 fi
6601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6602 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6603
6604
6605 hard_links="nottested"
6606 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6607   # do not overwrite the value of need_locks provided by the user
6608   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6609 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6610   hard_links=yes
6611   $rm conftest*
6612   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6613   touch conftest.a
6614   ln conftest.a conftest.b 2>&5 || hard_links=no
6615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6616   echo "$as_me:$LINENO: result: $hard_links" >&5
6617 echo "${ECHO_T}$hard_links" >&6
6618   if test "$hard_links" = no; then
6619     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6620 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6621     need_locks=warn
6622   fi
6623 else
6624   need_locks=no
6625 fi
6626
6627 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6628 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6629
6630   runpath_var=
6631   allow_undefined_flag=
6632   enable_shared_with_static_runtimes=no
6633   archive_cmds=
6634   archive_expsym_cmds=
6635   old_archive_From_new_cmds=
6636   old_archive_from_expsyms_cmds=
6637   export_dynamic_flag_spec=
6638   whole_archive_flag_spec=
6639   thread_safe_flag_spec=
6640   hardcode_libdir_flag_spec=
6641   hardcode_libdir_flag_spec_ld=
6642   hardcode_libdir_separator=
6643   hardcode_direct=no
6644   hardcode_minus_L=no
6645   hardcode_shlibpath_var=unsupported
6646   link_all_deplibs=unknown
6647   hardcode_automatic=no
6648   module_cmds=
6649   module_expsym_cmds=
6650   always_export_symbols=no
6651   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6652   # include_expsyms should be a list of space-separated symbols to be *always*
6653   # included in the symbol list
6654   include_expsyms=
6655   # exclude_expsyms can be an extended regexp of symbols to exclude
6656   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6657   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6658   # as well as any symbol that contains `d'.
6659   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6660   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6661   # platforms (ab)use it in PIC code, but their linkers get confused if
6662   # the symbol is explicitly referenced.  Since portable code cannot
6663   # rely on this symbol name, it's probably fine to never include it in
6664   # preloaded symbol tables.
6665   extract_expsyms_cmds=
6666
6667   case $host_os in
6668   cygwin* | mingw* | pw32*)
6669     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6670     # When not using gcc, we currently assume that we are using
6671     # Microsoft Visual C++.
6672     if test "$GCC" != yes; then
6673       with_gnu_ld=no
6674     fi
6675     ;;
6676   openbsd*)
6677     with_gnu_ld=no
6678     ;;
6679   esac
6680
6681   ld_shlibs=yes
6682   if test "$with_gnu_ld" = yes; then
6683     # If archive_cmds runs LD, not CC, wlarc should be empty
6684     wlarc='${wl}'
6685
6686     # See if GNU ld supports shared libraries.
6687     case $host_os in
6688     aix3* | aix4* | aix5*)
6689       # On AIX/PPC, the GNU linker is very broken
6690       if test "$host_cpu" != ia64; then
6691         ld_shlibs=no
6692         cat <<EOF 1>&2
6693
6694 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6695 *** to be unable to reliably create shared libraries on AIX.
6696 *** Therefore, libtool is disabling shared libraries support.  If you
6697 *** really care for shared libraries, you may want to modify your PATH
6698 *** so that a non-GNU linker is found, and then restart.
6699
6700 EOF
6701       fi
6702       ;;
6703
6704     amigaos*)
6705       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)'
6706       hardcode_libdir_flag_spec='-L$libdir'
6707       hardcode_minus_L=yes
6708
6709       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6710       # that the semantics of dynamic libraries on AmigaOS, at least up
6711       # to version 4, is to share data among multiple programs linked
6712       # with the same dynamic library.  Since this doesn't match the
6713       # behavior of shared libraries on other platforms, we can't use
6714       # them.
6715       ld_shlibs=no
6716       ;;
6717
6718     beos*)
6719       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6720         allow_undefined_flag=unsupported
6721         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6722         # support --undefined.  This deserves some investigation.  FIXME
6723         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6724       else
6725         ld_shlibs=no
6726       fi
6727       ;;
6728
6729     cygwin* | mingw* | pw32*)
6730       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6731       # as there is no search path for DLLs.
6732       hardcode_libdir_flag_spec='-L$libdir'
6733       allow_undefined_flag=unsupported
6734       always_export_symbols=no
6735       enable_shared_with_static_runtimes=yes
6736       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6737
6738       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6739         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6740         # If the export-symbols file already is a .def file (1st line
6741         # is EXPORTS), use it as is; otherwise, prepend...
6742         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6743           cp $export_symbols $output_objdir/$soname.def;
6744         else
6745           echo EXPORTS > $output_objdir/$soname.def;
6746           cat $export_symbols >> $output_objdir/$soname.def;
6747         fi~
6748         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6749       else
6750         ld_shlibs=no
6751       fi
6752       ;;
6753
6754     netbsd*)
6755       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6756         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6757         wlarc=
6758       else
6759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6761       fi
6762       ;;
6763
6764     solaris* | sysv5*)
6765       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6766         ld_shlibs=no
6767         cat <<EOF 1>&2
6768
6769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6770 *** create shared libraries on Solaris systems.  Therefore, libtool
6771 *** is disabling shared libraries support.  We urge you to upgrade GNU
6772 *** binutils to release 2.9.1 or newer.  Another option is to modify
6773 *** your PATH or compiler configuration so that the native linker is
6774 *** used, and then restart.
6775
6776 EOF
6777       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6778         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6780       else
6781         ld_shlibs=no
6782       fi
6783       ;;
6784
6785     sunos4*)
6786       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6787       wlarc=
6788       hardcode_direct=yes
6789       hardcode_shlibpath_var=no
6790       ;;
6791
6792   linux*)
6793     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6794         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795         archive_cmds="$tmp_archive_cmds"
6796       supports_anon_versioning=no
6797       case `$LD -v 2>/dev/null` in
6798         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6799         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6800         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6801         *\ 2.11.*) ;; # other 2.11 versions
6802         *) supports_anon_versioning=yes ;;
6803       esac
6804       if test $supports_anon_versioning = yes; then
6805         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6807 $echo "local: *; };" >> $output_objdir/$libname.ver~
6808         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6809       else
6810         archive_expsym_cmds="$tmp_archive_cmds"
6811       fi
6812     else
6813       ld_shlibs=no
6814     fi
6815     ;;
6816
6817     *)
6818       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6819         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6821       else
6822         ld_shlibs=no
6823       fi
6824       ;;
6825     esac
6826
6827     if test "$ld_shlibs" = yes; then
6828       runpath_var=LD_RUN_PATH
6829       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6830       export_dynamic_flag_spec='${wl}--export-dynamic'
6831       # ancient GNU ld didn't support --whole-archive et. al.
6832       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6833         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6834       else
6835         whole_archive_flag_spec=
6836       fi
6837     fi
6838   else
6839     # PORTME fill in a description of your system's linker (not GNU ld)
6840     case $host_os in
6841     aix3*)
6842       allow_undefined_flag=unsupported
6843       always_export_symbols=yes
6844       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'
6845       # Note: this linker hardcodes the directories in LIBPATH if there
6846       # are no directories specified by -L.
6847       hardcode_minus_L=yes
6848       if test "$GCC" = yes && test -z "$link_static_flag"; then
6849         # Neither direct hardcoding nor static linking is supported with a
6850         # broken collect2.
6851         hardcode_direct=unsupported
6852       fi
6853       ;;
6854
6855     aix4* | aix5*)
6856       if test "$host_cpu" = ia64; then
6857         # On IA64, the linker does run time linking by default, so we don't
6858         # have to do anything special.
6859         aix_use_runtimelinking=no
6860         exp_sym_flag='-Bexport'
6861         no_entry_flag=""
6862       else
6863         # If we're using GNU nm, then we don't want the "-C" option.
6864         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6865         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6866           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'
6867         else
6868           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'
6869         fi
6870         aix_use_runtimelinking=no
6871
6872         # Test if we are trying to use run time linking or normal
6873         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6874         # need to do runtime linking.
6875         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6876           for ld_flag in $LDFLAGS; do
6877           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6878             aix_use_runtimelinking=yes
6879             break
6880           fi
6881           done
6882         esac
6883
6884         exp_sym_flag='-bexport'
6885         no_entry_flag='-bnoentry'
6886       fi
6887
6888       # When large executables or shared objects are built, AIX ld can
6889       # have problems creating the table of contents.  If linking a library
6890       # or program results in "error TOC overflow" add -mminimal-toc to
6891       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6892       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6893
6894       archive_cmds=''
6895       hardcode_direct=yes
6896       hardcode_libdir_separator=':'
6897       link_all_deplibs=yes
6898
6899       if test "$GCC" = yes; then
6900         case $host_os in aix4.012|aix4.012.*)
6901         # We only want to do this on AIX 4.2 and lower, the check
6902         # below for broken collect2 doesn't work under 4.3+
6903           collect2name=`${CC} -print-prog-name=collect2`
6904           if test -f "$collect2name" && \
6905            strings "$collect2name" | grep resolve_lib_name >/dev/null
6906           then
6907           # We have reworked collect2
6908           hardcode_direct=yes
6909           else
6910           # We have old collect2
6911           hardcode_direct=unsupported
6912           # It fails to find uninstalled libraries when the uninstalled
6913           # path is not listed in the libpath.  Setting hardcode_minus_L
6914           # to unsupported forces relinking
6915           hardcode_minus_L=yes
6916           hardcode_libdir_flag_spec='-L$libdir'
6917           hardcode_libdir_separator=
6918           fi
6919         esac
6920         shared_flag='-shared'
6921       else
6922         # not using gcc
6923         if test "$host_cpu" = ia64; then
6924         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925         # chokes on -Wl,-G. The following line is correct:
6926           shared_flag='-G'
6927         else
6928         if test "$aix_use_runtimelinking" = yes; then
6929             shared_flag='${wl}-G'
6930           else
6931             shared_flag='${wl}-bM:SRE'
6932         fi
6933         fi
6934       fi
6935
6936       # It seems that -bexpall does not export symbols beginning with
6937       # underscore (_), so it is better to generate a list of symbols to export.
6938       always_export_symbols=yes
6939       if test "$aix_use_runtimelinking" = yes; then
6940         # Warning - without using the other runtime loading flags (-brtl),
6941         # -berok will link without error, but may produce a broken library.
6942         allow_undefined_flag='-berok'
6943        # Determine the default libpath from the value encoded in an empty executable.
6944        cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961   (eval $ac_link) 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } &&
6968          { ac_try='test -z "$ac_c_werror_flag"
6969                          || test ! -s conftest.err'
6970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971   (eval $ac_try) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); }; } &&
6975          { ac_try='test -s conftest$ac_exeext'
6976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977   (eval $ac_try) 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; }; then
6981
6982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6983 }'`
6984 # Check for a 64-bit object if we didn't find anything.
6985 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; }
6986 }'`; fi
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 fi
6992 rm -f conftest.err conftest.$ac_objext \
6993       conftest$ac_exeext conftest.$ac_ext
6994 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6995
6996        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6997         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"
6998        else
6999         if test "$host_cpu" = ia64; then
7000           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7001           allow_undefined_flag="-z nodefs"
7002           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"
7003         else
7004          # Determine the default libpath from the value encoded in an empty executable.
7005          cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h.  */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h.  */
7011
7012 int
7013 main ()
7014 {
7015
7016   ;
7017   return 0;
7018 }
7019 _ACEOF
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022   (eval $ac_link) 2>conftest.er1
7023   ac_status=$?
7024   grep -v '^ *+' conftest.er1 >conftest.err
7025   rm -f conftest.er1
7026   cat conftest.err >&5
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } &&
7029          { ac_try='test -z "$ac_c_werror_flag"
7030                          || test ! -s conftest.err'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; } &&
7036          { ac_try='test -s conftest$ac_exeext'
7037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038   (eval $ac_try) 2>&5
7039   ac_status=$?
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); }; }; then
7042
7043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7044 }'`
7045 # Check for a 64-bit object if we didn't find anything.
7046 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; }
7047 }'`; fi
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 fi
7053 rm -f conftest.err conftest.$ac_objext \
7054       conftest$ac_exeext conftest.$ac_ext
7055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7056
7057          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7058           # Warning - without using the other run time loading flags,
7059           # -berok will link without error, but may produce a broken library.
7060           no_undefined_flag=' ${wl}-bernotok'
7061           allow_undefined_flag=' ${wl}-berok'
7062           # -bexpall does not export symbols beginning with underscore (_)
7063           always_export_symbols=yes
7064           # Exported symbols can be pulled into shared objects from archives
7065           whole_archive_flag_spec=' '
7066           archive_cmds_need_lc=yes
7067           # This is similar to how AIX traditionally builds it's shared libraries.
7068           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'
7069         fi
7070       fi
7071       ;;
7072
7073     amigaos*)
7074       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)'
7075       hardcode_libdir_flag_spec='-L$libdir'
7076       hardcode_minus_L=yes
7077       # see comment about different semantics on the GNU ld section
7078       ld_shlibs=no
7079       ;;
7080
7081     bsdi4*)
7082       export_dynamic_flag_spec=-rdynamic
7083       ;;
7084
7085     cygwin* | mingw* | pw32*)
7086       # When not using gcc, we currently assume that we are using
7087       # Microsoft Visual C++.
7088       # hardcode_libdir_flag_spec is actually meaningless, as there is
7089       # no search path for DLLs.
7090       hardcode_libdir_flag_spec=' '
7091       allow_undefined_flag=unsupported
7092       # Tell ltmain to make .lib files, not .a files.
7093       libext=lib
7094       # Tell ltmain to make .dll files, not .so files.
7095       shrext_cmds=".dll"
7096       # FIXME: Setting linknames here is a bad hack.
7097       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7098       # The linker will automatically build a .lib file if we build a DLL.
7099       old_archive_From_new_cmds='true'
7100       # FIXME: Should let the user specify the lib program.
7101       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7102       fix_srcfile_path='`cygpath -w "$srcfile"`'
7103       enable_shared_with_static_runtimes=yes
7104       ;;
7105
7106     darwin* | rhapsody*)
7107     if test "$GXX" = yes ; then
7108       archive_cmds_need_lc=no
7109       case "$host_os" in
7110       rhapsody* | darwin1.[012])
7111         allow_undefined_flag='-undefined suppress'
7112         ;;
7113       *) # Darwin 1.3 on
7114       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7115         allow_undefined_flag='-flat_namespace -undefined suppress'
7116       else
7117         case ${MACOSX_DEPLOYMENT_TARGET} in
7118           10.[012])
7119             allow_undefined_flag='-flat_namespace -undefined suppress'
7120             ;;
7121           10.*)
7122             allow_undefined_flag='-undefined dynamic_lookup'
7123             ;;
7124         esac
7125       fi
7126         ;;
7127       esac
7128         lt_int_apple_cc_single_mod=no
7129         output_verbose_link_cmd='echo'
7130         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7131           lt_int_apple_cc_single_mod=yes
7132         fi
7133         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7134           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7135         else
7136         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'
7137       fi
7138       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7139       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7140         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141           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}'
7142         else
7143           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}'
7144         fi
7145           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}'
7146       hardcode_direct=no
7147       hardcode_automatic=yes
7148       hardcode_shlibpath_var=unsupported
7149       whole_archive_flag_spec='-all_load $convenience'
7150       link_all_deplibs=yes
7151     else
7152       ld_shlibs=no
7153     fi
7154       ;;
7155
7156     dgux*)
7157       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7158       hardcode_libdir_flag_spec='-L$libdir'
7159       hardcode_shlibpath_var=no
7160       ;;
7161
7162     freebsd1*)
7163       ld_shlibs=no
7164       ;;
7165
7166     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7167     # support.  Future versions do this automatically, but an explicit c++rt0.o
7168     # does not break anything, and helps significantly (at the cost of a little
7169     # extra space).
7170     freebsd2.2*)
7171       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7172       hardcode_libdir_flag_spec='-R$libdir'
7173       hardcode_direct=yes
7174       hardcode_shlibpath_var=no
7175       ;;
7176
7177     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7178     freebsd2*)
7179       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7180       hardcode_direct=yes
7181       hardcode_minus_L=yes
7182       hardcode_shlibpath_var=no
7183       ;;
7184
7185     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7186     freebsd* | kfreebsd*-gnu)
7187       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7188       hardcode_libdir_flag_spec='-R$libdir'
7189       hardcode_direct=yes
7190       hardcode_shlibpath_var=no
7191       ;;
7192
7193     hpux9*)
7194       if test "$GCC" = yes; then
7195         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'
7196       else
7197         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'
7198       fi
7199       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7200       hardcode_libdir_separator=:
7201       hardcode_direct=yes
7202
7203       # hardcode_minus_L: Not really in the search PATH,
7204       # but as the default location of the library.
7205       hardcode_minus_L=yes
7206       export_dynamic_flag_spec='${wl}-E'
7207       ;;
7208
7209     hpux10* | hpux11*)
7210       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7211         case "$host_cpu" in
7212         hppa*64*|ia64*)
7213           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7214           ;;
7215         *)
7216           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7217           ;;
7218         esac
7219       else
7220         case "$host_cpu" in
7221         hppa*64*|ia64*)
7222           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7223           ;;
7224         *)
7225           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7226           ;;
7227         esac
7228       fi
7229       if test "$with_gnu_ld" = no; then
7230         case "$host_cpu" in
7231         hppa*64*)
7232           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7233           hardcode_libdir_flag_spec_ld='+b $libdir'
7234           hardcode_libdir_separator=:
7235           hardcode_direct=no
7236           hardcode_shlibpath_var=no
7237           ;;
7238         ia64*)
7239           hardcode_libdir_flag_spec='-L$libdir'
7240           hardcode_direct=no
7241           hardcode_shlibpath_var=no
7242
7243           # hardcode_minus_L: Not really in the search PATH,
7244           # but as the default location of the library.
7245           hardcode_minus_L=yes
7246           ;;
7247         *)
7248           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249           hardcode_libdir_separator=:
7250           hardcode_direct=yes
7251           export_dynamic_flag_spec='${wl}-E'
7252
7253           # hardcode_minus_L: Not really in the search PATH,
7254           # but as the default location of the library.
7255           hardcode_minus_L=yes
7256           ;;
7257         esac
7258       fi
7259       ;;
7260
7261     irix5* | irix6* | nonstopux*)
7262       if test "$GCC" = yes; then
7263         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'
7264       else
7265         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'
7266         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7267       fi
7268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7269       hardcode_libdir_separator=:
7270       link_all_deplibs=yes
7271       ;;
7272
7273     netbsd*)
7274       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7275         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7276       else
7277         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7278       fi
7279       hardcode_libdir_flag_spec='-R$libdir'
7280       hardcode_direct=yes
7281       hardcode_shlibpath_var=no
7282       ;;
7283
7284     newsos6)
7285       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286       hardcode_direct=yes
7287       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7288       hardcode_libdir_separator=:
7289       hardcode_shlibpath_var=no
7290       ;;
7291
7292     openbsd*)
7293       hardcode_direct=yes
7294       hardcode_shlibpath_var=no
7295       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7296         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298         export_dynamic_flag_spec='${wl}-E'
7299       else
7300        case $host_os in
7301          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7302            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7303            hardcode_libdir_flag_spec='-R$libdir'
7304            ;;
7305          *)
7306            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7307            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7308            ;;
7309        esac
7310       fi
7311       ;;
7312
7313     os2*)
7314       hardcode_libdir_flag_spec='-L$libdir'
7315       hardcode_minus_L=yes
7316       allow_undefined_flag=unsupported
7317       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'
7318       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7319       ;;
7320
7321     osf3*)
7322       if test "$GCC" = yes; then
7323         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7324         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'
7325       else
7326         allow_undefined_flag=' -expect_unresolved \*'
7327         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'
7328       fi
7329       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7330       hardcode_libdir_separator=:
7331       ;;
7332
7333     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7334       if test "$GCC" = yes; then
7335         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7336         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'
7337         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338       else
7339         allow_undefined_flag=' -expect_unresolved \*'
7340         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'
7341         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7342         $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'
7343
7344         # Both c and cxx compiler support -rpath directly
7345         hardcode_libdir_flag_spec='-rpath $libdir'
7346       fi
7347       hardcode_libdir_separator=:
7348       ;;
7349
7350     sco3.2v5*)
7351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352       hardcode_shlibpath_var=no
7353       export_dynamic_flag_spec='${wl}-Bexport'
7354       runpath_var=LD_RUN_PATH
7355       hardcode_runpath_var=yes
7356       ;;
7357
7358     solaris*)
7359       no_undefined_flag=' -z text'
7360       if test "$GCC" = yes; then
7361         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7362         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7363           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7364       else
7365         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7367         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7368       fi
7369       hardcode_libdir_flag_spec='-R$libdir'
7370       hardcode_shlibpath_var=no
7371       case $host_os in
7372       solaris2.[0-5] | solaris2.[0-5].*) ;;
7373       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7374         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7375       esac
7376       link_all_deplibs=yes
7377       ;;
7378
7379     sunos4*)
7380       if test "x$host_vendor" = xsequent; then
7381         # Use $CC to link under sequent, because it throws in some extra .o
7382         # files that make .init and .fini sections work.
7383         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7384       else
7385         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7386       fi
7387       hardcode_libdir_flag_spec='-L$libdir'
7388       hardcode_direct=yes
7389       hardcode_minus_L=yes
7390       hardcode_shlibpath_var=no
7391       ;;
7392
7393     sysv4)
7394       case $host_vendor in
7395         sni)
7396           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397           hardcode_direct=yes # is this really true???
7398         ;;
7399         siemens)
7400           ## LD is ld it makes a PLAMLIB
7401           ## CC just makes a GrossModule.
7402           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403           reload_cmds='$CC -r -o $output$reload_objs'
7404           hardcode_direct=no
7405         ;;
7406         motorola)
7407           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7409         ;;
7410       esac
7411       runpath_var='LD_RUN_PATH'
7412       hardcode_shlibpath_var=no
7413       ;;
7414
7415     sysv4.3*)
7416       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417       hardcode_shlibpath_var=no
7418       export_dynamic_flag_spec='-Bexport'
7419       ;;
7420
7421     sysv4*MP*)
7422       if test -d /usr/nec; then
7423         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424         hardcode_shlibpath_var=no
7425         runpath_var=LD_RUN_PATH
7426         hardcode_runpath_var=yes
7427         ld_shlibs=yes
7428       fi
7429       ;;
7430
7431     sysv4.2uw2*)
7432       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7433       hardcode_direct=yes
7434       hardcode_minus_L=no
7435       hardcode_shlibpath_var=no
7436       hardcode_runpath_var=yes
7437       runpath_var=LD_RUN_PATH
7438       ;;
7439
7440    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7441       no_undefined_flag='${wl}-z ${wl}text'
7442       if test "$GCC" = yes; then
7443         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444       else
7445         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446       fi
7447       runpath_var='LD_RUN_PATH'
7448       hardcode_shlibpath_var=no
7449       ;;
7450
7451     sysv5*)
7452       no_undefined_flag=' -z text'
7453       # $CC -shared without GNU ld will not create a library from C++
7454       # object files and a static libstdc++, better avoid it by now
7455       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7456       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7457                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7458       hardcode_libdir_flag_spec=
7459       hardcode_shlibpath_var=no
7460       runpath_var='LD_RUN_PATH'
7461       ;;
7462
7463     uts4*)
7464       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7465       hardcode_libdir_flag_spec='-L$libdir'
7466       hardcode_shlibpath_var=no
7467       ;;
7468
7469     *)
7470       ld_shlibs=no
7471       ;;
7472     esac
7473   fi
7474
7475 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7476 echo "${ECHO_T}$ld_shlibs" >&6
7477 test "$ld_shlibs" = no && can_build_shared=no
7478
7479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7480 if test "$GCC" = yes; then
7481   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7482 fi
7483
7484 #
7485 # Do we need to explicitly link libc?
7486 #
7487 case "x$archive_cmds_need_lc" in
7488 x|xyes)
7489   # Assume -lc should be added
7490   archive_cmds_need_lc=yes
7491
7492   if test "$enable_shared" = yes && test "$GCC" = yes; then
7493     case $archive_cmds in
7494     *'~'*)
7495       # FIXME: we may have to deal with multi-command sequences.
7496       ;;
7497     '$CC '*)
7498       # Test whether the compiler implicitly links with -lc since on some
7499       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7500       # to ld, don't add -lc before -lgcc.
7501       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7503       $rm conftest*
7504       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7505
7506       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507   (eval $ac_compile) 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); } 2>conftest.err; then
7511         soname=conftest
7512         lib=conftest
7513         libobjs=conftest.$ac_objext
7514         deplibs=
7515         wl=$lt_prog_compiler_wl
7516         compiler_flags=-v
7517         linker_flags=-v
7518         verstring=
7519         output_objdir=.
7520         libname=conftest
7521         lt_save_allow_undefined_flag=$allow_undefined_flag
7522         allow_undefined_flag=
7523         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7524   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7525   ac_status=$?
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); }
7528         then
7529           archive_cmds_need_lc=no
7530         else
7531           archive_cmds_need_lc=yes
7532         fi
7533         allow_undefined_flag=$lt_save_allow_undefined_flag
7534       else
7535         cat conftest.err 1>&5
7536       fi
7537       $rm conftest*
7538       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7539 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7540       ;;
7541     esac
7542   fi
7543   ;;
7544 esac
7545
7546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7548 library_names_spec=
7549 libname_spec='lib$name'
7550 soname_spec=
7551 shrext_cmds=".so"
7552 postinstall_cmds=
7553 postuninstall_cmds=
7554 finish_cmds=
7555 finish_eval=
7556 shlibpath_var=
7557 shlibpath_overrides_runpath=unknown
7558 version_type=none
7559 dynamic_linker="$host_os ld.so"
7560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7561 if test "$GCC" = yes; then
7562   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7563   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7564     # if the path contains ";" then we assume it to be the separator
7565     # otherwise default to the standard path separator (i.e. ":") - it is
7566     # assumed that no part of a normal pathname contains ";" but that should
7567     # okay in the real world where ";" in dirpaths is itself problematic.
7568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7569   else
7570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7571   fi
7572 else
7573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7574 fi
7575 need_lib_prefix=unknown
7576 hardcode_into_libs=no
7577
7578 # when you set need_version to no, make sure it does not cause -set_version
7579 # flags to be left without arguments
7580 need_version=unknown
7581
7582 case $host_os in
7583 aix3*)
7584   version_type=linux
7585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7586   shlibpath_var=LIBPATH
7587
7588   # AIX 3 has no versioning support, so we append a major version to the name.
7589   soname_spec='${libname}${release}${shared_ext}$major'
7590   ;;
7591
7592 aix4* | aix5*)
7593   version_type=linux
7594   need_lib_prefix=no
7595   need_version=no
7596   hardcode_into_libs=yes
7597   if test "$host_cpu" = ia64; then
7598     # AIX 5 supports IA64
7599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7600     shlibpath_var=LD_LIBRARY_PATH
7601   else
7602     # With GCC up to 2.95.x, collect2 would create an import file
7603     # for dependence libraries.  The import file would start with
7604     # the line `#! .'.  This would cause the generated library to
7605     # depend on `.', always an invalid library.  This was fixed in
7606     # development snapshots of GCC prior to 3.0.
7607     case $host_os in
7608       aix4 | aix4.[01] | aix4.[01].*)
7609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7610            echo ' yes '
7611            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7612         :
7613       else
7614         can_build_shared=no
7615       fi
7616       ;;
7617     esac
7618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7619     # soname into executable. Probably we can add versioning support to
7620     # collect2, so additional links can be useful in future.
7621     if test "$aix_use_runtimelinking" = yes; then
7622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7623       # instead of lib<name>.a to let people know that these are not
7624       # typical AIX shared libraries.
7625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626     else
7627       # We preserve .a as extension for shared libraries through AIX4.2
7628       # and later when we are not doing run time linking.
7629       library_names_spec='${libname}${release}.a $libname.a'
7630       soname_spec='${libname}${release}${shared_ext}$major'
7631     fi
7632     shlibpath_var=LIBPATH
7633   fi
7634   ;;
7635
7636 amigaos*)
7637   library_names_spec='$libname.ixlibrary $libname.a'
7638   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7639   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'
7640   ;;
7641
7642 beos*)
7643   library_names_spec='${libname}${shared_ext}'
7644   dynamic_linker="$host_os ld.so"
7645   shlibpath_var=LIBRARY_PATH
7646   ;;
7647
7648 bsdi4*)
7649   version_type=linux
7650   need_version=no
7651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652   soname_spec='${libname}${release}${shared_ext}$major'
7653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7654   shlibpath_var=LD_LIBRARY_PATH
7655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7657   # the default ld.so.conf also contains /usr/contrib/lib and
7658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7659   # libtool to hard-code these into programs
7660   ;;
7661
7662 cygwin* | mingw* | pw32*)
7663   version_type=windows
7664   shrext_cmds=".dll"
7665   need_version=no
7666   need_lib_prefix=no
7667
7668   case $GCC,$host_os in
7669   yes,cygwin* | yes,mingw* | yes,pw32*)
7670     library_names_spec='$libname.dll.a'
7671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7672     postinstall_cmds='base_file=`basename \${file}`~
7673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7674       dldir=$destdir/`dirname \$dlpath`~
7675       test -d \$dldir || mkdir -p \$dldir~
7676       $install_prog $dir/$dlname \$dldir/$dlname'
7677     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7678       dlpath=$dir/\$dldll~
7679        $rm \$dlpath'
7680     shlibpath_overrides_runpath=yes
7681
7682     case $host_os in
7683     cygwin*)
7684       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7685       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7686       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7687       ;;
7688     mingw*)
7689       # MinGW DLLs use traditional 'lib' prefix
7690       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7691       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7692       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7693         # It is most probably a Windows format PATH printed by
7694         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7695         # path with ; separators, and with drive letters. We can handle the
7696         # drive letters (cygwin fileutils understands them), so leave them,
7697         # especially as we might pass files found there to a mingw objdump,
7698         # which wouldn't understand a cygwinified path. Ahh.
7699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7700       else
7701         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7702       fi
7703       ;;
7704     pw32*)
7705       # pw32 DLLs use 'pw' prefix rather than 'lib'
7706       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7707       ;;
7708     esac
7709     ;;
7710
7711   *)
7712     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7713     ;;
7714   esac
7715   dynamic_linker='Win32 ld.exe'
7716   # FIXME: first we should search . and the directory the executable is in
7717   shlibpath_var=PATH
7718   ;;
7719
7720 darwin* | rhapsody*)
7721   dynamic_linker="$host_os dyld"
7722   version_type=darwin
7723   need_lib_prefix=no
7724   need_version=no
7725   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7726   soname_spec='${libname}${release}${major}$shared_ext'
7727   shlibpath_overrides_runpath=yes
7728   shlibpath_var=DYLD_LIBRARY_PATH
7729   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7730   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7731   if test "$GCC" = yes; then
7732     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"`
7733   else
7734     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7735   fi
7736   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7737   ;;
7738
7739 dgux*)
7740   version_type=linux
7741   need_lib_prefix=no
7742   need_version=no
7743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7744   soname_spec='${libname}${release}${shared_ext}$major'
7745   shlibpath_var=LD_LIBRARY_PATH
7746   ;;
7747
7748 freebsd1*)
7749   dynamic_linker=no
7750   ;;
7751
7752 kfreebsd*-gnu)
7753   version_type=linux
7754   need_lib_prefix=no
7755   need_version=no
7756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757   soname_spec='${libname}${release}${shared_ext}$major'
7758   shlibpath_var=LD_LIBRARY_PATH
7759   shlibpath_overrides_runpath=no
7760   hardcode_into_libs=yes
7761   dynamic_linker='GNU ld.so'
7762   ;;
7763
7764 freebsd*)
7765   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7766   version_type=freebsd-$objformat
7767   case $version_type in
7768     freebsd-elf*)
7769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7770       need_version=no
7771       need_lib_prefix=no
7772       ;;
7773     freebsd-*)
7774       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7775       need_version=yes
7776       ;;
7777   esac
7778   shlibpath_var=LD_LIBRARY_PATH
7779   case $host_os in
7780   freebsd2*)
7781     shlibpath_overrides_runpath=yes
7782     ;;
7783   freebsd3.01* | freebsdelf3.01*)
7784     shlibpath_overrides_runpath=yes
7785     hardcode_into_libs=yes
7786     ;;
7787   *) # from 3.2 on
7788     shlibpath_overrides_runpath=no
7789     hardcode_into_libs=yes
7790     ;;
7791   esac
7792   ;;
7793
7794 gnu*)
7795   version_type=linux
7796   need_lib_prefix=no
7797   need_version=no
7798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7799   soname_spec='${libname}${release}${shared_ext}$major'
7800   shlibpath_var=LD_LIBRARY_PATH
7801   hardcode_into_libs=yes
7802   ;;
7803
7804 hpux9* | hpux10* | hpux11*)
7805   # Give a soname corresponding to the major version so that dld.sl refuses to
7806   # link against other versions.
7807   version_type=sunos
7808   need_lib_prefix=no
7809   need_version=no
7810   case "$host_cpu" in
7811   ia64*)
7812     shrext_cmds='.so'
7813     hardcode_into_libs=yes
7814     dynamic_linker="$host_os dld.so"
7815     shlibpath_var=LD_LIBRARY_PATH
7816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818     soname_spec='${libname}${release}${shared_ext}$major'
7819     if test "X$HPUX_IA64_MODE" = X32; then
7820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7821     else
7822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7823     fi
7824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7825     ;;
7826    hppa*64*)
7827      shrext_cmds='.sl'
7828      hardcode_into_libs=yes
7829      dynamic_linker="$host_os dld.sl"
7830      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7831      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7832      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833      soname_spec='${libname}${release}${shared_ext}$major'
7834      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7835      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7836      ;;
7837    *)
7838     shrext_cmds='.sl'
7839     dynamic_linker="$host_os dld.sl"
7840     shlibpath_var=SHLIB_PATH
7841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7843     soname_spec='${libname}${release}${shared_ext}$major'
7844     ;;
7845   esac
7846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7847   postinstall_cmds='chmod 555 $lib'
7848   ;;
7849
7850 irix5* | irix6* | nonstopux*)
7851   case $host_os in
7852     nonstopux*) version_type=nonstopux ;;
7853     *)
7854         if test "$lt_cv_prog_gnu_ld" = yes; then
7855                 version_type=linux
7856         else
7857                 version_type=irix
7858         fi ;;
7859   esac
7860   need_lib_prefix=no
7861   need_version=no
7862   soname_spec='${libname}${release}${shared_ext}$major'
7863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7864   case $host_os in
7865   irix5* | nonstopux*)
7866     libsuff= shlibsuff=
7867     ;;
7868   *)
7869     case $LD in # libtool.m4 will add one of these switches to LD
7870     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7871       libsuff= shlibsuff= libmagic=32-bit;;
7872     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7873       libsuff=32 shlibsuff=N32 libmagic=N32;;
7874     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7875       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7876     *) libsuff= shlibsuff= libmagic=never-match;;
7877     esac
7878     ;;
7879   esac
7880   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7881   shlibpath_overrides_runpath=no
7882   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7883   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7884   hardcode_into_libs=yes
7885   ;;
7886
7887 # No shared lib support for Linux oldld, aout, or coff.
7888 linux*oldld* | linux*aout* | linux*coff*)
7889   dynamic_linker=no
7890   ;;
7891
7892 # This must be Linux ELF.
7893 linux*)
7894   version_type=linux
7895   need_lib_prefix=no
7896   need_version=no
7897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898   soname_spec='${libname}${release}${shared_ext}$major'
7899   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7900   shlibpath_var=LD_LIBRARY_PATH
7901   shlibpath_overrides_runpath=no
7902   # This implies no fast_install, which is unacceptable.
7903   # Some rework will be needed to allow for fast_install
7904   # before this can be enabled.
7905   hardcode_into_libs=yes
7906
7907   # find out which ABI we are using
7908   libsuff=
7909   case "$host_cpu" in
7910   x86_64*|s390x*|powerpc64*)
7911     echo '#line 7911 "configure"' > conftest.$ac_ext
7912     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913   (eval $ac_compile) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; then
7917       case `/usr/bin/file conftest.$ac_objext` in
7918       *64-bit*)
7919         libsuff=64
7920         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7921         ;;
7922       esac
7923     fi
7924     rm -rf conftest*
7925     ;;
7926   esac
7927
7928   # Append ld.so.conf contents to the search path
7929   if test -f /etc/ld.so.conf; then
7930     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7931     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7932   fi
7933
7934   # We used to test for /lib/ld.so.1 and disable shared libraries on
7935   # powerpc, because MkLinux only supported shared libraries with the
7936   # GNU dynamic linker.  Since this was broken with cross compilers,
7937   # most powerpc-linux boxes support dynamic linking these days and
7938   # people can always --disable-shared, the test was removed, and we
7939   # assume the GNU/Linux dynamic linker is in use.
7940   dynamic_linker='GNU/Linux ld.so'
7941   ;;
7942
7943 knetbsd*-gnu)
7944   version_type=linux
7945   need_lib_prefix=no
7946   need_version=no
7947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7948   soname_spec='${libname}${release}${shared_ext}$major'
7949   shlibpath_var=LD_LIBRARY_PATH
7950   shlibpath_overrides_runpath=no
7951   hardcode_into_libs=yes
7952   dynamic_linker='GNU ld.so'
7953   ;;
7954
7955 netbsd*)
7956   version_type=sunos
7957   need_lib_prefix=no
7958   need_version=no
7959   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7961     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7962     dynamic_linker='NetBSD (a.out) ld.so'
7963   else
7964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7965     soname_spec='${libname}${release}${shared_ext}$major'
7966     dynamic_linker='NetBSD ld.elf_so'
7967   fi
7968   shlibpath_var=LD_LIBRARY_PATH
7969   shlibpath_overrides_runpath=yes
7970   hardcode_into_libs=yes
7971   ;;
7972
7973 newsos6)
7974   version_type=linux
7975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976   shlibpath_var=LD_LIBRARY_PATH
7977   shlibpath_overrides_runpath=yes
7978   ;;
7979
7980 nto-qnx*)
7981   version_type=linux
7982   need_lib_prefix=no
7983   need_version=no
7984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7985   soname_spec='${libname}${release}${shared_ext}$major'
7986   shlibpath_var=LD_LIBRARY_PATH
7987   shlibpath_overrides_runpath=yes
7988   ;;
7989
7990 openbsd*)
7991   version_type=sunos
7992   need_lib_prefix=no
7993   need_version=yes
7994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7995   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7996   shlibpath_var=LD_LIBRARY_PATH
7997   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7998     case $host_os in
7999       openbsd2.[89] | openbsd2.[89].*)
8000         shlibpath_overrides_runpath=no
8001         ;;
8002       *)
8003         shlibpath_overrides_runpath=yes
8004         ;;
8005       esac
8006   else
8007     shlibpath_overrides_runpath=yes
8008   fi
8009   ;;
8010
8011 os2*)
8012   libname_spec='$name'
8013   shrext_cmds=".dll"
8014   need_lib_prefix=no
8015   library_names_spec='$libname${shared_ext} $libname.a'
8016   dynamic_linker='OS/2 ld.exe'
8017   shlibpath_var=LIBPATH
8018   ;;
8019
8020 osf3* | osf4* | osf5*)
8021   version_type=osf
8022   need_lib_prefix=no
8023   need_version=no
8024   soname_spec='${libname}${release}${shared_ext}$major'
8025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026   shlibpath_var=LD_LIBRARY_PATH
8027   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8028   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8029   ;;
8030
8031 sco3.2v5*)
8032   version_type=osf
8033   soname_spec='${libname}${release}${shared_ext}$major'
8034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035   shlibpath_var=LD_LIBRARY_PATH
8036   ;;
8037
8038 solaris*)
8039   version_type=linux
8040   need_lib_prefix=no
8041   need_version=no
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043   soname_spec='${libname}${release}${shared_ext}$major'
8044   shlibpath_var=LD_LIBRARY_PATH
8045   shlibpath_overrides_runpath=yes
8046   hardcode_into_libs=yes
8047   # ldd complains unless libraries are executable
8048   postinstall_cmds='chmod +x $lib'
8049   ;;
8050
8051 sunos4*)
8052   version_type=sunos
8053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8054   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8055   shlibpath_var=LD_LIBRARY_PATH
8056   shlibpath_overrides_runpath=yes
8057   if test "$with_gnu_ld" = yes; then
8058     need_lib_prefix=no
8059   fi
8060   need_version=yes
8061   ;;
8062
8063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8064   version_type=linux
8065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066   soname_spec='${libname}${release}${shared_ext}$major'
8067   shlibpath_var=LD_LIBRARY_PATH
8068   case $host_vendor in
8069     sni)
8070       shlibpath_overrides_runpath=no
8071       need_lib_prefix=no
8072       export_dynamic_flag_spec='${wl}-Blargedynsym'
8073       runpath_var=LD_RUN_PATH
8074       ;;
8075     siemens)
8076       need_lib_prefix=no
8077       ;;
8078     motorola)
8079       need_lib_prefix=no
8080       need_version=no
8081       shlibpath_overrides_runpath=no
8082       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8083       ;;
8084   esac
8085   ;;
8086
8087 sysv4*MP*)
8088   if test -d /usr/nec ;then
8089     version_type=linux
8090     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8091     soname_spec='$libname${shared_ext}.$major'
8092     shlibpath_var=LD_LIBRARY_PATH
8093   fi
8094   ;;
8095
8096 uts4*)
8097   version_type=linux
8098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099   soname_spec='${libname}${release}${shared_ext}$major'
8100   shlibpath_var=LD_LIBRARY_PATH
8101   ;;
8102
8103 *)
8104   dynamic_linker=no
8105   ;;
8106 esac
8107 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8108 echo "${ECHO_T}$dynamic_linker" >&6
8109 test "$dynamic_linker" = no && can_build_shared=no
8110
8111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8113 hardcode_action=
8114 if test -n "$hardcode_libdir_flag_spec" || \
8115    test -n "$runpath_var " || \
8116    test "X$hardcode_automatic"="Xyes" ; then
8117
8118   # We can hardcode non-existant directories.
8119   if test "$hardcode_direct" != no &&
8120      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8121      # have to relink, otherwise we might link with an installed library
8122      # when we should be linking with a yet-to-be-installed one
8123      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8124      test "$hardcode_minus_L" != no; then
8125     # Linking always hardcodes the temporary library directory.
8126     hardcode_action=relink
8127   else
8128     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8129     hardcode_action=immediate
8130   fi
8131 else
8132   # We cannot hardcode anything, or else we can only hardcode existing
8133   # directories.
8134   hardcode_action=unsupported
8135 fi
8136 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8137 echo "${ECHO_T}$hardcode_action" >&6
8138
8139 if test "$hardcode_action" = relink; then
8140   # Fast installation is not supported
8141   enable_fast_install=no
8142 elif test "$shlibpath_overrides_runpath" = yes ||
8143      test "$enable_shared" = no; then
8144   # Fast installation is not necessary
8145   enable_fast_install=needless
8146 fi
8147
8148 striplib=
8149 old_striplib=
8150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8153   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8154   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8155   echo "$as_me:$LINENO: result: yes" >&5
8156 echo "${ECHO_T}yes" >&6
8157 else
8158 # FIXME - insert some real tests, host_os isn't really good enough
8159   case $host_os in
8160    darwin*)
8161        if test -n "$STRIP" ; then
8162          striplib="$STRIP -x"
8163          echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8165        else
8166   echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169        ;;
8170    *)
8171   echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8173     ;;
8174   esac
8175 fi
8176
8177 if test "x$enable_dlopen" != xyes; then
8178   enable_dlopen=unknown
8179   enable_dlopen_self=unknown
8180   enable_dlopen_self_static=unknown
8181 else
8182   lt_cv_dlopen=no
8183   lt_cv_dlopen_libs=
8184
8185   case $host_os in
8186   beos*)
8187     lt_cv_dlopen="load_add_on"
8188     lt_cv_dlopen_libs=
8189     lt_cv_dlopen_self=yes
8190     ;;
8191
8192   mingw* | pw32*)
8193     lt_cv_dlopen="LoadLibrary"
8194     lt_cv_dlopen_libs=
8195    ;;
8196
8197   cygwin*)
8198     lt_cv_dlopen="dlopen"
8199     lt_cv_dlopen_libs=
8200    ;;
8201
8202   darwin*)
8203   # if libdl is installed we need to link against it
8204     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8207   echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209   ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-ldl  $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 /* Override any gcc2 internal prototype to avoid an error.  */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 /* We use char because int might match the return type of a gcc2
8223    builtin and then its argument prototype would still apply.  */
8224 char dlopen ();
8225 int
8226 main ()
8227 {
8228 dlopen ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>conftest.er1
8236   ac_status=$?
8237   grep -v '^ *+' conftest.er1 >conftest.err
8238   rm -f conftest.er1
8239   cat conftest.err >&5
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -z "$ac_c_werror_flag"
8243                          || test ! -s conftest.err'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; } &&
8249          { ac_try='test -s conftest$ac_exeext'
8250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251   (eval $ac_try) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; }; then
8255   ac_cv_lib_dl_dlopen=yes
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 ac_cv_lib_dl_dlopen=no
8261 fi
8262 rm -f conftest.err conftest.$ac_objext \
8263       conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8267 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8268 if test $ac_cv_lib_dl_dlopen = yes; then
8269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8270 else
8271
8272     lt_cv_dlopen="dyld"
8273     lt_cv_dlopen_libs=
8274     lt_cv_dlopen_self=yes
8275
8276 fi
8277
8278    ;;
8279
8280   *)
8281     echo "$as_me:$LINENO: checking for shl_load" >&5
8282 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8283 if test "${ac_cv_func_shl_load+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8294 #define shl_load innocuous_shl_load
8295
8296 /* System header to define __stub macros and hopefully few prototypes,
8297     which can conflict with char shl_load (); below.
8298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299     <limits.h> exists even on freestanding compilers.  */
8300
8301 #ifdef __STDC__
8302 # include <limits.h>
8303 #else
8304 # include <assert.h>
8305 #endif
8306
8307 #undef shl_load
8308
8309 /* Override any gcc2 internal prototype to avoid an error.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 {
8313 #endif
8314 /* We use char because int might match the return type of a gcc2
8315    builtin and then its argument prototype would still apply.  */
8316 char shl_load ();
8317 /* The GNU C library defines this for functions which it implements
8318     to always fail with ENOSYS.  Some functions are actually named
8319     something starting with __ and the normal name is an alias.  */
8320 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8321 choke me
8322 #else
8323 char (*f) () = shl_load;
8324 #endif
8325 #ifdef __cplusplus
8326 }
8327 #endif
8328
8329 int
8330 main ()
8331 {
8332 return f != shl_load;
8333   ;
8334   return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339   (eval $ac_link) 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -z "$ac_c_werror_flag"
8347                          || test ! -s conftest.err'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; } &&
8353          { ac_try='test -s conftest$ac_exeext'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   ac_cv_func_shl_load=yes
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 ac_cv_func_shl_load=no
8365 fi
8366 rm -f conftest.err conftest.$ac_objext \
8367       conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8370 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8371 if test $ac_cv_func_shl_load = yes; then
8372   lt_cv_dlopen="shl_load"
8373 else
8374   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8375 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-ldld  $LIBS"
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h.  */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h.  */
8387
8388 /* Override any gcc2 internal prototype to avoid an error.  */
8389 #ifdef __cplusplus
8390 extern "C"
8391 #endif
8392 /* We use char because int might match the return type of a gcc2
8393    builtin and then its argument prototype would still apply.  */
8394 char shl_load ();
8395 int
8396 main ()
8397 {
8398 shl_load ();
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405   (eval $ac_link) 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -z "$ac_c_werror_flag"
8413                          || test ! -s conftest.err'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_lib_dld_shl_load=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_lib_dld_shl_load=no
8431 fi
8432 rm -f conftest.err conftest.$ac_objext \
8433       conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8437 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8438 if test $ac_cv_lib_dld_shl_load = yes; then
8439   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8440 else
8441   echo "$as_me:$LINENO: checking for dlopen" >&5
8442 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8443 if test "${ac_cv_func_dlopen+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8454 #define dlopen innocuous_dlopen
8455
8456 /* System header to define __stub macros and hopefully few prototypes,
8457     which can conflict with char dlopen (); below.
8458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459     <limits.h> exists even on freestanding compilers.  */
8460
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466
8467 #undef dlopen
8468
8469 /* Override any gcc2 internal prototype to avoid an error.  */
8470 #ifdef __cplusplus
8471 extern "C"
8472 {
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475    builtin and then its argument prototype would still apply.  */
8476 char dlopen ();
8477 /* The GNU C library defines this for functions which it implements
8478     to always fail with ENOSYS.  Some functions are actually named
8479     something starting with __ and the normal name is an alias.  */
8480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8481 choke me
8482 #else
8483 char (*f) () = dlopen;
8484 #endif
8485 #ifdef __cplusplus
8486 }
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 return f != dlopen;
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499   (eval $ac_link) 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag"
8507                          || test ! -s conftest.err'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; } &&
8513          { ac_try='test -s conftest$ac_exeext'
8514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515   (eval $ac_try) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_cv_func_dlopen=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_cv_func_dlopen=no
8525 fi
8526 rm -f conftest.err conftest.$ac_objext \
8527       conftest$ac_exeext conftest.$ac_ext
8528 fi
8529 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8530 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8531 if test $ac_cv_func_dlopen = yes; then
8532   lt_cv_dlopen="dlopen"
8533 else
8534   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   ac_check_lib_save_LIBS=$LIBS
8540 LIBS="-ldl  $LIBS"
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547
8548 /* Override any gcc2 internal prototype to avoid an error.  */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 /* We use char because int might match the return type of a gcc2
8553    builtin and then its argument prototype would still apply.  */
8554 char dlopen ();
8555 int
8556 main ()
8557 {
8558 dlopen ();
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565   (eval $ac_link) 2>conftest.er1
8566   ac_status=$?
8567   grep -v '^ *+' conftest.er1 >conftest.err
8568   rm -f conftest.er1
8569   cat conftest.err >&5
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } &&
8572          { ac_try='test -z "$ac_c_werror_flag"
8573                          || test ! -s conftest.err'
8574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); }; } &&
8579          { ac_try='test -s conftest$ac_exeext'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; }; then
8585   ac_cv_lib_dl_dlopen=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_cv_lib_dl_dlopen=no
8591 fi
8592 rm -f conftest.err conftest.$ac_objext \
8593       conftest$ac_exeext conftest.$ac_ext
8594 LIBS=$ac_check_lib_save_LIBS
8595 fi
8596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8598 if test $ac_cv_lib_dl_dlopen = yes; then
8599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8600 else
8601   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   ac_check_lib_save_LIBS=$LIBS
8607 LIBS="-lsvld  $LIBS"
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614
8615 /* Override any gcc2 internal prototype to avoid an error.  */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 /* We use char because int might match the return type of a gcc2
8620    builtin and then its argument prototype would still apply.  */
8621 char dlopen ();
8622 int
8623 main ()
8624 {
8625 dlopen ();
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632   (eval $ac_link) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -z "$ac_c_werror_flag"
8640                          || test ! -s conftest.err'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; }; then
8652   ac_cv_lib_svld_dlopen=yes
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_cv_lib_svld_dlopen=no
8658 fi
8659 rm -f conftest.err conftest.$ac_objext \
8660       conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8664 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8665 if test $ac_cv_lib_svld_dlopen = yes; then
8666   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8667 else
8668   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8669 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8670 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   ac_check_lib_save_LIBS=$LIBS
8674 LIBS="-ldld  $LIBS"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 #endif
8686 /* We use char because int might match the return type of a gcc2
8687    builtin and then its argument prototype would still apply.  */
8688 char dld_link ();
8689 int
8690 main ()
8691 {
8692 dld_link ();
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699   (eval $ac_link) 2>conftest.er1
8700   ac_status=$?
8701   grep -v '^ *+' conftest.er1 >conftest.err
8702   rm -f conftest.er1
8703   cat conftest.err >&5
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -z "$ac_c_werror_flag"
8707                          || test ! -s conftest.err'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; } &&
8713          { ac_try='test -s conftest$ac_exeext'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; }; then
8719   ac_cv_lib_dld_dld_link=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_cv_lib_dld_dld_link=no
8725 fi
8726 rm -f conftest.err conftest.$ac_objext \
8727       conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8729 fi
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8732 if test $ac_cv_lib_dld_dld_link = yes; then
8733   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8734 fi
8735
8736
8737 fi
8738
8739
8740 fi
8741
8742
8743 fi
8744
8745
8746 fi
8747
8748
8749 fi
8750
8751     ;;
8752   esac
8753
8754   if test "x$lt_cv_dlopen" != xno; then
8755     enable_dlopen=yes
8756   else
8757     enable_dlopen=no
8758   fi
8759
8760   case $lt_cv_dlopen in
8761   dlopen)
8762     save_CPPFLAGS="$CPPFLAGS"
8763     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8764
8765     save_LDFLAGS="$LDFLAGS"
8766     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8767
8768     save_LIBS="$LIBS"
8769     LIBS="$lt_cv_dlopen_libs $LIBS"
8770
8771     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8772 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8773 if test "${lt_cv_dlopen_self+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776           if test "$cross_compiling" = yes; then :
8777   lt_cv_dlopen_self=cross
8778 else
8779   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8780   lt_status=$lt_dlunknown
8781   cat > conftest.$ac_ext <<EOF
8782 #line 8782 "configure"
8783 #include "confdefs.h"
8784
8785 #if HAVE_DLFCN_H
8786 #include <dlfcn.h>
8787 #endif
8788
8789 #include <stdio.h>
8790
8791 #ifdef RTLD_GLOBAL
8792 #  define LT_DLGLOBAL           RTLD_GLOBAL
8793 #else
8794 #  ifdef DL_GLOBAL
8795 #    define LT_DLGLOBAL         DL_GLOBAL
8796 #  else
8797 #    define LT_DLGLOBAL         0
8798 #  endif
8799 #endif
8800
8801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8802    find out it does not work in some platform. */
8803 #ifndef LT_DLLAZY_OR_NOW
8804 #  ifdef RTLD_LAZY
8805 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8806 #  else
8807 #    ifdef DL_LAZY
8808 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8809 #    else
8810 #      ifdef RTLD_NOW
8811 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8812 #      else
8813 #        ifdef DL_NOW
8814 #          define LT_DLLAZY_OR_NOW      DL_NOW
8815 #        else
8816 #          define LT_DLLAZY_OR_NOW      0
8817 #        endif
8818 #      endif
8819 #    endif
8820 #  endif
8821 #endif
8822
8823 #ifdef __cplusplus
8824 extern "C" void exit (int);
8825 #endif
8826
8827 void fnord() { int i=42;}
8828 int main ()
8829 {
8830   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8831   int status = $lt_dlunknown;
8832
8833   if (self)
8834     {
8835       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8836       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8837       /* dlclose (self); */
8838     }
8839
8840     exit (status);
8841 }
8842 EOF
8843   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844   (eval $ac_link) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8848     (./conftest; exit; ) 2>/dev/null
8849     lt_status=$?
8850     case x$lt_status in
8851       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8852       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8853       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8854     esac
8855   else :
8856     # compilation failed
8857     lt_cv_dlopen_self=no
8858   fi
8859 fi
8860 rm -fr conftest*
8861
8862
8863 fi
8864 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8865 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8866
8867     if test "x$lt_cv_dlopen_self" = xyes; then
8868       LDFLAGS="$LDFLAGS $link_static_flag"
8869       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8870 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8871 if test "${lt_cv_dlopen_self_static+set}" = set; then
8872   echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874           if test "$cross_compiling" = yes; then :
8875   lt_cv_dlopen_self_static=cross
8876 else
8877   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8878   lt_status=$lt_dlunknown
8879   cat > conftest.$ac_ext <<EOF
8880 #line 8880 "configure"
8881 #include "confdefs.h"
8882
8883 #if HAVE_DLFCN_H
8884 #include <dlfcn.h>
8885 #endif
8886
8887 #include <stdio.h>
8888
8889 #ifdef RTLD_GLOBAL
8890 #  define LT_DLGLOBAL           RTLD_GLOBAL
8891 #else
8892 #  ifdef DL_GLOBAL
8893 #    define LT_DLGLOBAL         DL_GLOBAL
8894 #  else
8895 #    define LT_DLGLOBAL         0
8896 #  endif
8897 #endif
8898
8899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8900    find out it does not work in some platform. */
8901 #ifndef LT_DLLAZY_OR_NOW
8902 #  ifdef RTLD_LAZY
8903 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8904 #  else
8905 #    ifdef DL_LAZY
8906 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8907 #    else
8908 #      ifdef RTLD_NOW
8909 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8910 #      else
8911 #        ifdef DL_NOW
8912 #          define LT_DLLAZY_OR_NOW      DL_NOW
8913 #        else
8914 #          define LT_DLLAZY_OR_NOW      0
8915 #        endif
8916 #      endif
8917 #    endif
8918 #  endif
8919 #endif
8920
8921 #ifdef __cplusplus
8922 extern "C" void exit (int);
8923 #endif
8924
8925 void fnord() { int i=42;}
8926 int main ()
8927 {
8928   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8929   int status = $lt_dlunknown;
8930
8931   if (self)
8932     {
8933       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8934       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8935       /* dlclose (self); */
8936     }
8937
8938     exit (status);
8939 }
8940 EOF
8941   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942   (eval $ac_link) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8946     (./conftest; exit; ) 2>/dev/null
8947     lt_status=$?
8948     case x$lt_status in
8949       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8950       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8951       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8952     esac
8953   else :
8954     # compilation failed
8955     lt_cv_dlopen_self_static=no
8956   fi
8957 fi
8958 rm -fr conftest*
8959
8960
8961 fi
8962 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8963 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8964     fi
8965
8966     CPPFLAGS="$save_CPPFLAGS"
8967     LDFLAGS="$save_LDFLAGS"
8968     LIBS="$save_LIBS"
8969     ;;
8970   esac
8971
8972   case $lt_cv_dlopen_self in
8973   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8974   *) enable_dlopen_self=unknown ;;
8975   esac
8976
8977   case $lt_cv_dlopen_self_static in
8978   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8979   *) enable_dlopen_self_static=unknown ;;
8980   esac
8981 fi
8982
8983
8984 # Report which librarie types wil actually be built
8985 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8986 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8987 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8988 echo "${ECHO_T}$can_build_shared" >&6
8989
8990 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8991 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8992 test "$can_build_shared" = "no" && enable_shared=no
8993
8994 # On AIX, shared libraries and static libraries use the same namespace, and
8995 # are all built from PIC.
8996 case "$host_os" in
8997 aix3*)
8998   test "$enable_shared" = yes && enable_static=no
8999   if test -n "$RANLIB"; then
9000     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9001     postinstall_cmds='$RANLIB $lib'
9002   fi
9003   ;;
9004
9005 aix4* | aix5*)
9006   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9007     test "$enable_shared" = yes && enable_static=no
9008   fi
9009   ;;
9010   darwin* | rhapsody*)
9011   if test "$GCC" = yes; then
9012     archive_cmds_need_lc=no
9013     case "$host_os" in
9014     rhapsody* | darwin1.[012])
9015       allow_undefined_flag='-undefined suppress'
9016       ;;
9017     *) # Darwin 1.3 on
9018       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9019         allow_undefined_flag='-flat_namespace -undefined suppress'
9020       else
9021         case ${MACOSX_DEPLOYMENT_TARGET} in
9022           10.[012])
9023             allow_undefined_flag='-flat_namespace -undefined suppress'
9024             ;;
9025           10.*)
9026             allow_undefined_flag='-undefined dynamic_lookup'
9027             ;;
9028         esac
9029       fi
9030       ;;
9031     esac
9032     output_verbose_link_cmd='echo'
9033     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9034     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9035     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9036     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}'
9037     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}'
9038     hardcode_direct=no
9039     hardcode_automatic=yes
9040     hardcode_shlibpath_var=unsupported
9041     whole_archive_flag_spec='-all_load $convenience'
9042     link_all_deplibs=yes
9043   else
9044     ld_shlibs=no
9045   fi
9046     ;;
9047 esac
9048 echo "$as_me:$LINENO: result: $enable_shared" >&5
9049 echo "${ECHO_T}$enable_shared" >&6
9050
9051 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9052 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9053 # Make sure either enable_shared or enable_static is yes.
9054 test "$enable_shared" = yes || enable_static=yes
9055 echo "$as_me:$LINENO: result: $enable_static" >&5
9056 echo "${ECHO_T}$enable_static" >&6
9057
9058 # The else clause should only fire when bootstrapping the
9059 # libtool distribution, otherwise you forgot to ship ltmain.sh
9060 # with your package, and you will get complaints that there are
9061 # no rules to generate ltmain.sh.
9062 if test -f "$ltmain"; then
9063   # See if we are running on zsh, and set the options which allow our commands through
9064   # without removal of \ escapes.
9065   if test -n "${ZSH_VERSION+set}" ; then
9066     setopt NO_GLOB_SUBST
9067   fi
9068   # Now quote all the things that may contain metacharacters while being
9069   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9070   # variables and quote the copies for generation of the libtool script.
9071   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9072     SED SHELL STRIP \
9073     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9074     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9075     deplibs_check_method reload_flag reload_cmds need_locks \
9076     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9077     lt_cv_sys_global_symbol_to_c_name_address \
9078     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9079     old_postinstall_cmds old_postuninstall_cmds \
9080     compiler \
9081     CC \
9082     LD \
9083     lt_prog_compiler_wl \
9084     lt_prog_compiler_pic \
9085     lt_prog_compiler_static \
9086     lt_prog_compiler_no_builtin_flag \
9087     export_dynamic_flag_spec \
9088     thread_safe_flag_spec \
9089     whole_archive_flag_spec \
9090     enable_shared_with_static_runtimes \
9091     old_archive_cmds \
9092     old_archive_from_new_cmds \
9093     predep_objects \
9094     postdep_objects \
9095     predeps \
9096     postdeps \
9097     compiler_lib_search_path \
9098     archive_cmds \
9099     archive_expsym_cmds \
9100     postinstall_cmds \
9101     postuninstall_cmds \
9102     old_archive_from_expsyms_cmds \
9103     allow_undefined_flag \
9104     no_undefined_flag \
9105     export_symbols_cmds \
9106     hardcode_libdir_flag_spec \
9107     hardcode_libdir_flag_spec_ld \
9108     hardcode_libdir_separator \
9109     hardcode_automatic \
9110     module_cmds \
9111     module_expsym_cmds \
9112     lt_cv_prog_compiler_c_o \
9113     exclude_expsyms \
9114     include_expsyms; do
9115
9116     case $var in
9117     old_archive_cmds | \
9118     old_archive_from_new_cmds | \
9119     archive_cmds | \
9120     archive_expsym_cmds | \
9121     module_cmds | \
9122     module_expsym_cmds | \
9123     old_archive_from_expsyms_cmds | \
9124     export_symbols_cmds | \
9125     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9126     postinstall_cmds | postuninstall_cmds | \
9127     old_postinstall_cmds | old_postuninstall_cmds | \
9128     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9129       # Double-quote double-evaled strings.
9130       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9131       ;;
9132     *)
9133       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9134       ;;
9135     esac
9136   done
9137
9138   case $lt_echo in
9139   *'\$0 --fallback-echo"')
9140     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9141     ;;
9142   esac
9143
9144 cfgfile="${ofile}T"
9145   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9146   $rm -f "$cfgfile"
9147   { echo "$as_me:$LINENO: creating $ofile" >&5
9148 echo "$as_me: creating $ofile" >&6;}
9149
9150   cat <<__EOF__ >> "$cfgfile"
9151 #! $SHELL
9152
9153 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9154 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9156 #
9157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9158 # Free Software Foundation, Inc.
9159 #
9160 # This file is part of GNU Libtool:
9161 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9162 #
9163 # This program is free software; you can redistribute it and/or modify
9164 # it under the terms of the GNU General Public License as published by
9165 # the Free Software Foundation; either version 2 of the License, or
9166 # (at your option) any later version.
9167 #
9168 # This program is distributed in the hope that it will be useful, but
9169 # WITHOUT ANY WARRANTY; without even the implied warranty of
9170 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9171 # General Public License for more details.
9172 #
9173 # You should have received a copy of the GNU General Public License
9174 # along with this program; if not, write to the Free Software
9175 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9176 #
9177 # As a special exception to the GNU General Public License, if you
9178 # distribute this file as part of a program that contains a
9179 # configuration script generated by Autoconf, you may include it under
9180 # the same distribution terms that you use for the rest of that program.
9181
9182 # A sed program that does not truncate output.
9183 SED=$lt_SED
9184
9185 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9186 Xsed="$SED -e s/^X//"
9187
9188 # The HP-UX ksh and POSIX shell print the target directory to stdout
9189 # if CDPATH is set.
9190 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9191
9192 # The names of the tagged configurations supported by this script.
9193 available_tags=
9194
9195 # ### BEGIN LIBTOOL CONFIG
9196
9197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9198
9199 # Shell to use when invoking shell scripts.
9200 SHELL=$lt_SHELL
9201
9202 # Whether or not to build shared libraries.
9203 build_libtool_libs=$enable_shared
9204
9205 # Whether or not to build static libraries.
9206 build_old_libs=$enable_static
9207
9208 # Whether or not to add -lc for building shared libraries.
9209 build_libtool_need_lc=$archive_cmds_need_lc
9210
9211 # Whether or not to disallow shared libs when runtime libs are static
9212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9213
9214 # Whether or not to optimize for fast installation.
9215 fast_install=$enable_fast_install
9216
9217 # The host system.
9218 host_alias=$host_alias
9219 host=$host
9220
9221 # An echo program that does not interpret backslashes.
9222 echo=$lt_echo
9223
9224 # The archiver.
9225 AR=$lt_AR
9226 AR_FLAGS=$lt_AR_FLAGS
9227
9228 # A C compiler.
9229 LTCC=$lt_LTCC
9230
9231 # A language-specific compiler.
9232 CC=$lt_compiler
9233
9234 # Is the compiler the GNU C compiler?
9235 with_gcc=$GCC
9236
9237 # An ERE matcher.
9238 EGREP=$lt_EGREP
9239
9240 # The linker used to build libraries.
9241 LD=$lt_LD
9242
9243 # Whether we need hard or soft links.
9244 LN_S=$lt_LN_S
9245
9246 # A BSD-compatible nm program.
9247 NM=$lt_NM
9248
9249 # A symbol stripping program
9250 STRIP=$lt_STRIP
9251
9252 # Used to examine libraries when file_magic_cmd begins "file"
9253 MAGIC_CMD=$MAGIC_CMD
9254
9255 # Used on cygwin: DLL creation program.
9256 DLLTOOL="$DLLTOOL"
9257
9258 # Used on cygwin: object dumper.
9259 OBJDUMP="$OBJDUMP"
9260
9261 # Used on cygwin: assembler.
9262 AS="$AS"
9263
9264 # The name of the directory that contains temporary libtool files.
9265 objdir=$objdir
9266
9267 # How to create reloadable object files.
9268 reload_flag=$lt_reload_flag
9269 reload_cmds=$lt_reload_cmds
9270
9271 # How to pass a linker flag through the compiler.
9272 wl=$lt_lt_prog_compiler_wl
9273
9274 # Object file suffix (normally "o").
9275 objext="$ac_objext"
9276
9277 # Old archive suffix (normally "a").
9278 libext="$libext"
9279
9280 # Shared library suffix (normally ".so").
9281 shrext_cmds='$shrext_cmds'
9282
9283 # Executable file suffix (normally "").
9284 exeext="$exeext"
9285
9286 # Additional compiler flags for building library objects.
9287 pic_flag=$lt_lt_prog_compiler_pic
9288 pic_mode=$pic_mode
9289
9290 # What is the maximum length of a command?
9291 max_cmd_len=$lt_cv_sys_max_cmd_len
9292
9293 # Does compiler simultaneously support -c and -o options?
9294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9295
9296 # Must we lock files when doing compilation ?
9297 need_locks=$lt_need_locks
9298
9299 # Do we need the lib prefix for modules?
9300 need_lib_prefix=$need_lib_prefix
9301
9302 # Do we need a version for libraries?
9303 need_version=$need_version
9304
9305 # Whether dlopen is supported.
9306 dlopen_support=$enable_dlopen
9307
9308 # Whether dlopen of programs is supported.
9309 dlopen_self=$enable_dlopen_self
9310
9311 # Whether dlopen of statically linked programs is supported.
9312 dlopen_self_static=$enable_dlopen_self_static
9313
9314 # Compiler flag to prevent dynamic linking.
9315 link_static_flag=$lt_lt_prog_compiler_static
9316
9317 # Compiler flag to turn off builtin functions.
9318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9319
9320 # Compiler flag to allow reflexive dlopens.
9321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9322
9323 # Compiler flag to generate shared objects directly from archives.
9324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9325
9326 # Compiler flag to generate thread-safe objects.
9327 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9328
9329 # Library versioning type.
9330 version_type=$version_type
9331
9332 # Format of library name prefix.
9333 libname_spec=$lt_libname_spec
9334
9335 # List of archive names.  First name is the real one, the rest are links.
9336 # The last name is the one that the linker finds with -lNAME.
9337 library_names_spec=$lt_library_names_spec
9338
9339 # The coded name of the library, if different from the real name.
9340 soname_spec=$lt_soname_spec
9341
9342 # Commands used to build and install an old-style archive.
9343 RANLIB=$lt_RANLIB
9344 old_archive_cmds=$lt_old_archive_cmds
9345 old_postinstall_cmds=$lt_old_postinstall_cmds
9346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9347
9348 # Create an old-style archive from a shared archive.
9349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9350
9351 # Create a temporary old-style archive to link instead of a shared archive.
9352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9353
9354 # Commands used to build and install a shared archive.
9355 archive_cmds=$lt_archive_cmds
9356 archive_expsym_cmds=$lt_archive_expsym_cmds
9357 postinstall_cmds=$lt_postinstall_cmds
9358 postuninstall_cmds=$lt_postuninstall_cmds
9359
9360 # Commands used to build a loadable module (assumed same as above if empty)
9361 module_cmds=$lt_module_cmds
9362 module_expsym_cmds=$lt_module_expsym_cmds
9363
9364 # Commands to strip libraries.
9365 old_striplib=$lt_old_striplib
9366 striplib=$lt_striplib
9367
9368 # Dependencies to place before the objects being linked to create a
9369 # shared library.
9370 predep_objects=$lt_predep_objects
9371
9372 # Dependencies to place after the objects being linked to create a
9373 # shared library.
9374 postdep_objects=$lt_postdep_objects
9375
9376 # Dependencies to place before the objects being linked to create a
9377 # shared library.
9378 predeps=$lt_predeps
9379
9380 # Dependencies to place after the objects being linked to create a
9381 # shared library.
9382 postdeps=$lt_postdeps
9383
9384 # The library search path used internally by the compiler when linking
9385 # a shared library.
9386 compiler_lib_search_path=$lt_compiler_lib_search_path
9387
9388 # Method to check whether dependent libraries are shared objects.
9389 deplibs_check_method=$lt_deplibs_check_method
9390
9391 # Command to use when deplibs_check_method == file_magic.
9392 file_magic_cmd=$lt_file_magic_cmd
9393
9394 # Flag that allows shared libraries with undefined symbols to be built.
9395 allow_undefined_flag=$lt_allow_undefined_flag
9396
9397 # Flag that forces no undefined symbols.
9398 no_undefined_flag=$lt_no_undefined_flag
9399
9400 # Commands used to finish a libtool library installation in a directory.
9401 finish_cmds=$lt_finish_cmds
9402
9403 # Same as above, but a single script fragment to be evaled but not shown.
9404 finish_eval=$lt_finish_eval
9405
9406 # Take the output of nm and produce a listing of raw symbols and C names.
9407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9408
9409 # Transform the output of nm in a proper C declaration
9410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9411
9412 # Transform the output of nm in a C name address pair
9413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9414
9415 # This is the shared library runtime path variable.
9416 runpath_var=$runpath_var
9417
9418 # This is the shared library path variable.
9419 shlibpath_var=$shlibpath_var
9420
9421 # Is shlibpath searched before the hard-coded library search path?
9422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9423
9424 # How to hardcode a shared library path into an executable.
9425 hardcode_action=$hardcode_action
9426
9427 # Whether we should hardcode library paths into libraries.
9428 hardcode_into_libs=$hardcode_into_libs
9429
9430 # Flag to hardcode \$libdir into a binary during linking.
9431 # This must work even if \$libdir does not exist.
9432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9433
9434 # If ld is used when linking, flag to hardcode \$libdir into
9435 # a binary during linking. This must work even if \$libdir does
9436 # not exist.
9437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9438
9439 # Whether we need a single -rpath flag with a separated argument.
9440 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9441
9442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9443 # resulting binary.
9444 hardcode_direct=$hardcode_direct
9445
9446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9447 # resulting binary.
9448 hardcode_minus_L=$hardcode_minus_L
9449
9450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9451 # the resulting binary.
9452 hardcode_shlibpath_var=$hardcode_shlibpath_var
9453
9454 # Set to yes if building a shared library automatically hardcodes DIR into the library
9455 # and all subsequent libraries and executables linked against it.
9456 hardcode_automatic=$hardcode_automatic
9457
9458 # Variables whose values should be saved in libtool wrapper scripts and
9459 # restored at relink time.
9460 variables_saved_for_relink="$variables_saved_for_relink"
9461
9462 # Whether libtool must link a program against all its dependency libraries.
9463 link_all_deplibs=$link_all_deplibs
9464
9465 # Compile-time system search path for libraries
9466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9467
9468 # Run-time system search path for libraries
9469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9470
9471 # Fix the shell variable \$srcfile for the compiler.
9472 fix_srcfile_path="$fix_srcfile_path"
9473
9474 # Set to yes if exported symbols are required.
9475 always_export_symbols=$always_export_symbols
9476
9477 # The commands to list exported symbols.
9478 export_symbols_cmds=$lt_export_symbols_cmds
9479
9480 # The commands to extract the exported symbol list from a shared archive.
9481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9482
9483 # Symbols that should not be listed in the preloaded symbols.
9484 exclude_expsyms=$lt_exclude_expsyms
9485
9486 # Symbols that must always be exported.
9487 include_expsyms=$lt_include_expsyms
9488
9489 # ### END LIBTOOL CONFIG
9490
9491 __EOF__
9492
9493
9494   case $host_os in
9495   aix3*)
9496     cat <<\EOF >> "$cfgfile"
9497
9498 # AIX sometimes has problems with the GCC collect2 program.  For some
9499 # reason, if we set the COLLECT_NAMES environment variable, the problems
9500 # vanish in a puff of smoke.
9501 if test "X${COLLECT_NAMES+set}" != Xset; then
9502   COLLECT_NAMES=
9503   export COLLECT_NAMES
9504 fi
9505 EOF
9506     ;;
9507   esac
9508
9509   # We use sed instead of cat because bash on DJGPP gets confused if
9510   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9511   # text mode, it properly converts lines to CR/LF.  This bash problem
9512   # is reportedly fixed, but why not run on old versions too?
9513   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9514
9515   mv -f "$cfgfile" "$ofile" || \
9516     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9517   chmod +x "$ofile"
9518
9519 else
9520   # If there is no Makefile yet, we rely on a make rule to execute
9521   # `config.status --recheck' to rerun these tests and create the
9522   # libtool script then.
9523   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9524   if test -f "$ltmain_in"; then
9525     test -f Makefile && make "$ltmain"
9526   fi
9527 fi
9528
9529
9530 ac_ext=c
9531 ac_cpp='$CPP $CPPFLAGS'
9532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9535
9536 CC="$lt_save_CC"
9537
9538
9539 # Check whether --with-tags or --without-tags was given.
9540 if test "${with_tags+set}" = set; then
9541   withval="$with_tags"
9542   tagnames="$withval"
9543 fi;
9544
9545 if test -f "$ltmain" && test -n "$tagnames"; then
9546   if test ! -f "${ofile}"; then
9547     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9548 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9549   fi
9550
9551   if test -z "$LTCC"; then
9552     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9553     if test -z "$LTCC"; then
9554       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9555 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9556     else
9557       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9558 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9559     fi
9560   fi
9561
9562   # Extract list of available tagged configurations in $ofile.
9563   # Note that this assumes the entire list is on one line.
9564   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9565
9566   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9567   for tagname in $tagnames; do
9568     IFS="$lt_save_ifs"
9569     # Check whether tagname contains only valid characters
9570     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9571     "") ;;
9572     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9573 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9574    { (exit 1); exit 1; }; }
9575         ;;
9576     esac
9577
9578     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9579     then
9580       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9581 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9582    { (exit 1); exit 1; }; }
9583     fi
9584
9585     # Update the list of available tags.
9586     if test -n "$tagname"; then
9587       echo appending configuration tag \"$tagname\" to $ofile
9588
9589       case $tagname in
9590       CXX)
9591         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9592           ac_ext=cc
9593 ac_cpp='$CXXCPP $CPPFLAGS'
9594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9597
9598
9599
9600
9601 archive_cmds_need_lc_CXX=no
9602 allow_undefined_flag_CXX=
9603 always_export_symbols_CXX=no
9604 archive_expsym_cmds_CXX=
9605 export_dynamic_flag_spec_CXX=
9606 hardcode_direct_CXX=no
9607 hardcode_libdir_flag_spec_CXX=
9608 hardcode_libdir_flag_spec_ld_CXX=
9609 hardcode_libdir_separator_CXX=
9610 hardcode_minus_L_CXX=no
9611 hardcode_automatic_CXX=no
9612 module_cmds_CXX=
9613 module_expsym_cmds_CXX=
9614 link_all_deplibs_CXX=unknown
9615 old_archive_cmds_CXX=$old_archive_cmds
9616 no_undefined_flag_CXX=
9617 whole_archive_flag_spec_CXX=
9618 enable_shared_with_static_runtimes_CXX=no
9619
9620 # Dependencies to place before and after the object being linked:
9621 predep_objects_CXX=
9622 postdep_objects_CXX=
9623 predeps_CXX=
9624 postdeps_CXX=
9625 compiler_lib_search_path_CXX=
9626
9627 # Source file extension for C++ test sources.
9628 ac_ext=cc
9629
9630 # Object file extension for compiled C++ test sources.
9631 objext=o
9632 objext_CXX=$objext
9633
9634 # Code to be used in simple compile tests
9635 lt_simple_compile_test_code="int some_variable = 0;\n"
9636
9637 # Code to be used in simple link tests
9638 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9639
9640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9641
9642 # If no C compiler was specified, use CC.
9643 LTCC=${LTCC-"$CC"}
9644
9645 # Allow CC to be a program name with arguments.
9646 compiler=$CC
9647
9648
9649 # Allow CC to be a program name with arguments.
9650 lt_save_CC=$CC
9651 lt_save_LD=$LD
9652 lt_save_GCC=$GCC
9653 GCC=$GXX
9654 lt_save_with_gnu_ld=$with_gnu_ld
9655 lt_save_path_LD=$lt_cv_path_LD
9656 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9657   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9658 else
9659   unset lt_cv_prog_gnu_ld
9660 fi
9661 if test -n "${lt_cv_path_LDCXX+set}"; then
9662   lt_cv_path_LD=$lt_cv_path_LDCXX
9663 else
9664   unset lt_cv_path_LD
9665 fi
9666 test -z "${LDCXX+set}" || LD=$LDCXX
9667 CC=${CXX-"c++"}
9668 compiler=$CC
9669 compiler_CXX=$CC
9670 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9671
9672 # We don't want -fno-exception wen compiling C++ code, so set the
9673 # no_builtin_flag separately
9674 if test "$GXX" = yes; then
9675   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9676 else
9677   lt_prog_compiler_no_builtin_flag_CXX=
9678 fi
9679
9680 if test "$GXX" = yes; then
9681   # Set up default GNU C++ configuration
9682
9683
9684 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9685 if test "${with_gnu_ld+set}" = set; then
9686   withval="$with_gnu_ld"
9687   test "$withval" = no || with_gnu_ld=yes
9688 else
9689   with_gnu_ld=no
9690 fi;
9691 ac_prog=ld
9692 if test "$GCC" = yes; then
9693   # Check if gcc -print-prog-name=ld gives a path.
9694   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9695 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9696   case $host in
9697   *-*-mingw*)
9698     # gcc leaves a trailing carriage return which upsets mingw
9699     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9700   *)
9701     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9702   esac
9703   case $ac_prog in
9704     # Accept absolute paths.
9705     [\\/]* | ?:[\\/]*)
9706       re_direlt='/[^/][^/]*/\.\./'
9707       # Canonicalize the pathname of ld
9708       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9709       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9710         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9711       done
9712       test -z "$LD" && LD="$ac_prog"
9713       ;;
9714   "")
9715     # If it fails, then pretend we aren't using GCC.
9716     ac_prog=ld
9717     ;;
9718   *)
9719     # If it is relative, then search for the first ld in PATH.
9720     with_gnu_ld=unknown
9721     ;;
9722   esac
9723 elif test "$with_gnu_ld" = yes; then
9724   echo "$as_me:$LINENO: checking for GNU ld" >&5
9725 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9726 else
9727   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9728 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9729 fi
9730 if test "${lt_cv_path_LD+set}" = set; then
9731   echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733   if test -z "$LD"; then
9734   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9735   for ac_dir in $PATH; do
9736     IFS="$lt_save_ifs"
9737     test -z "$ac_dir" && ac_dir=.
9738     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9739       lt_cv_path_LD="$ac_dir/$ac_prog"
9740       # Check to see if the program is GNU ld.  I'd rather use --version,
9741       # but apparently some GNU ld's only accept -v.
9742       # Break only if it was the GNU/non-GNU ld that we prefer.
9743       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9744       *GNU* | *'with BFD'*)
9745         test "$with_gnu_ld" != no && break
9746         ;;
9747       *)
9748         test "$with_gnu_ld" != yes && break
9749         ;;
9750       esac
9751     fi
9752   done
9753   IFS="$lt_save_ifs"
9754 else
9755   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9756 fi
9757 fi
9758
9759 LD="$lt_cv_path_LD"
9760 if test -n "$LD"; then
9761   echo "$as_me:$LINENO: result: $LD" >&5
9762 echo "${ECHO_T}$LD" >&6
9763 else
9764   echo "$as_me:$LINENO: result: no" >&5
9765 echo "${ECHO_T}no" >&6
9766 fi
9767 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9768 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9769    { (exit 1); exit 1; }; }
9770 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9771 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9772 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9773   echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9776 case `$LD -v 2>&1 </dev/null` in
9777 *GNU* | *'with BFD'*)
9778   lt_cv_prog_gnu_ld=yes
9779   ;;
9780 *)
9781   lt_cv_prog_gnu_ld=no
9782   ;;
9783 esac
9784 fi
9785 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9786 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9787 with_gnu_ld=$lt_cv_prog_gnu_ld
9788
9789
9790
9791   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9792   # archiving commands below assume that GNU ld is being used.
9793   if test "$with_gnu_ld" = yes; then
9794     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795     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'
9796
9797     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9798     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9799
9800     # If archive_cmds runs LD, not CC, wlarc should be empty
9801     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9802     #     investigate it a little bit more. (MM)
9803     wlarc='${wl}'
9804
9805     # ancient GNU ld didn't support --whole-archive et. al.
9806     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9807         grep 'no-whole-archive' > /dev/null; then
9808       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9809     else
9810       whole_archive_flag_spec_CXX=
9811     fi
9812   else
9813     with_gnu_ld=no
9814     wlarc=
9815
9816     # A generic and very simple default shared library creation
9817     # command for GNU C++ for the case where it uses the native
9818     # linker, instead of GNU ld.  If possible, this setting should
9819     # overridden to take advantage of the native linker features on
9820     # the platform it is being used on.
9821     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9822   fi
9823
9824   # Commands to make compiler produce verbose output that lists
9825   # what "hidden" libraries, object files and flags are used when
9826   # linking a shared library.
9827   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9828
9829 else
9830   GXX=no
9831   with_gnu_ld=no
9832   wlarc=
9833 fi
9834
9835 # PORTME: fill in a description of your system's C++ link characteristics
9836 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9838 ld_shlibs_CXX=yes
9839 case $host_os in
9840   aix3*)
9841     # FIXME: insert proper C++ library support
9842     ld_shlibs_CXX=no
9843     ;;
9844   aix4* | aix5*)
9845     if test "$host_cpu" = ia64; then
9846       # On IA64, the linker does run time linking by default, so we don't
9847       # have to do anything special.
9848       aix_use_runtimelinking=no
9849       exp_sym_flag='-Bexport'
9850       no_entry_flag=""
9851     else
9852       aix_use_runtimelinking=no
9853
9854       # Test if we are trying to use run time linking or normal
9855       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856       # need to do runtime linking.
9857       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9858         for ld_flag in $LDFLAGS; do
9859           case $ld_flag in
9860           *-brtl*)
9861             aix_use_runtimelinking=yes
9862             break
9863             ;;
9864           esac
9865         done
9866       esac
9867
9868       exp_sym_flag='-bexport'
9869       no_entry_flag='-bnoentry'
9870     fi
9871
9872     # When large executables or shared objects are built, AIX ld can
9873     # have problems creating the table of contents.  If linking a library
9874     # or program results in "error TOC overflow" add -mminimal-toc to
9875     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9876     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9877
9878     archive_cmds_CXX=''
9879     hardcode_direct_CXX=yes
9880     hardcode_libdir_separator_CXX=':'
9881     link_all_deplibs_CXX=yes
9882
9883     if test "$GXX" = yes; then
9884       case $host_os in aix4.012|aix4.012.*)
9885       # We only want to do this on AIX 4.2 and lower, the check
9886       # below for broken collect2 doesn't work under 4.3+
9887         collect2name=`${CC} -print-prog-name=collect2`
9888         if test -f "$collect2name" && \
9889            strings "$collect2name" | grep resolve_lib_name >/dev/null
9890         then
9891           # We have reworked collect2
9892           hardcode_direct_CXX=yes
9893         else
9894           # We have old collect2
9895           hardcode_direct_CXX=unsupported
9896           # It fails to find uninstalled libraries when the uninstalled
9897           # path is not listed in the libpath.  Setting hardcode_minus_L
9898           # to unsupported forces relinking
9899           hardcode_minus_L_CXX=yes
9900           hardcode_libdir_flag_spec_CXX='-L$libdir'
9901           hardcode_libdir_separator_CXX=
9902         fi
9903       esac
9904       shared_flag='-shared'
9905     else
9906       # not using gcc
9907       if test "$host_cpu" = ia64; then
9908         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9909         # chokes on -Wl,-G. The following line is correct:
9910         shared_flag='-G'
9911       else
9912         if test "$aix_use_runtimelinking" = yes; then
9913           shared_flag='${wl}-G'
9914         else
9915           shared_flag='${wl}-bM:SRE'
9916         fi
9917       fi
9918     fi
9919
9920     # It seems that -bexpall does not export symbols beginning with
9921     # underscore (_), so it is better to generate a list of symbols to export.
9922     always_export_symbols_CXX=yes
9923     if test "$aix_use_runtimelinking" = yes; then
9924       # Warning - without using the other runtime loading flags (-brtl),
9925       # -berok will link without error, but may produce a broken library.
9926       allow_undefined_flag_CXX='-berok'
9927       # Determine the default libpath from the value encoded in an empty executable.
9928       cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934
9935 int
9936 main ()
9937 {
9938
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945   (eval $ac_link) 2>conftest.er1
9946   ac_status=$?
9947   grep -v '^ *+' conftest.er1 >conftest.err
9948   rm -f conftest.er1
9949   cat conftest.err >&5
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } &&
9952          { ac_try='test -z "$ac_cxx_werror_flag"
9953                          || test ! -s conftest.err'
9954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955   (eval $ac_try) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; } &&
9959          { ac_try='test -s conftest$ac_exeext'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; }; then
9965
9966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9967 }'`
9968 # Check for a 64-bit object if we didn't find anything.
9969 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; }
9970 }'`; fi
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 fi
9976 rm -f conftest.err conftest.$ac_objext \
9977       conftest$ac_exeext conftest.$ac_ext
9978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9979
9980       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9981
9982       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"
9983      else
9984       if test "$host_cpu" = ia64; then
9985         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9986         allow_undefined_flag_CXX="-z nodefs"
9987         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"
9988       else
9989         # Determine the default libpath from the value encoded in an empty executable.
9990         cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 int
9998 main ()
9999 {
10000
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007   (eval $ac_link) 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -z "$ac_cxx_werror_flag"
10015                          || test ! -s conftest.err'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; } &&
10021          { ac_try='test -s conftest$ac_exeext'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; }; then
10027
10028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10029 }'`
10030 # Check for a 64-bit object if we didn't find anything.
10031 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; }
10032 }'`; fi
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 fi
10038 rm -f conftest.err conftest.$ac_objext \
10039       conftest$ac_exeext conftest.$ac_ext
10040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10041
10042         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10043         # Warning - without using the other run time loading flags,
10044         # -berok will link without error, but may produce a broken library.
10045         no_undefined_flag_CXX=' ${wl}-bernotok'
10046         allow_undefined_flag_CXX=' ${wl}-berok'
10047         # -bexpall does not export symbols beginning with underscore (_)
10048         always_export_symbols_CXX=yes
10049         # Exported symbols can be pulled into shared objects from archives
10050         whole_archive_flag_spec_CXX=' '
10051         archive_cmds_need_lc_CXX=yes
10052         # This is similar to how AIX traditionally builds it's shared libraries.
10053         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'
10054       fi
10055     fi
10056     ;;
10057   chorus*)
10058     case $cc_basename in
10059       *)
10060         # FIXME: insert proper C++ library support
10061         ld_shlibs_CXX=no
10062         ;;
10063     esac
10064     ;;
10065
10066   cygwin* | mingw* | pw32*)
10067     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10068     # as there is no search path for DLLs.
10069     hardcode_libdir_flag_spec_CXX='-L$libdir'
10070     allow_undefined_flag_CXX=unsupported
10071     always_export_symbols_CXX=no
10072     enable_shared_with_static_runtimes_CXX=yes
10073
10074     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10075       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'
10076       # If the export-symbols file already is a .def file (1st line
10077       # is EXPORTS), use it as is; otherwise, prepend...
10078       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10079         cp $export_symbols $output_objdir/$soname.def;
10080       else
10081         echo EXPORTS > $output_objdir/$soname.def;
10082         cat $export_symbols >> $output_objdir/$soname.def;
10083       fi~
10084       $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'
10085     else
10086       ld_shlibs_CXX=no
10087     fi
10088   ;;
10089
10090   darwin* | rhapsody*)
10091   if test "$GXX" = yes; then
10092     archive_cmds_need_lc_CXX=no
10093     case "$host_os" in
10094     rhapsody* | darwin1.[012])
10095       allow_undefined_flag_CXX='-undefined suppress'
10096       ;;
10097     *) # Darwin 1.3 on
10098       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10099         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10100       else
10101         case ${MACOSX_DEPLOYMENT_TARGET} in
10102           10.[012])
10103             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10104             ;;
10105           10.*)
10106             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10107             ;;
10108         esac
10109       fi
10110       ;;
10111     esac
10112     lt_int_apple_cc_single_mod=no
10113     output_verbose_link_cmd='echo'
10114     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10115       lt_int_apple_cc_single_mod=yes
10116     fi
10117     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10118       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10119     else
10120       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'
10121     fi
10122     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10123
10124     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10125     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10126       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}'
10127     else
10128       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}'
10129     fi
10130     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}'
10131     hardcode_direct_CXX=no
10132     hardcode_automatic_CXX=yes
10133     hardcode_shlibpath_var_CXX=unsupported
10134     whole_archive_flag_spec_CXX='-all_load $convenience'
10135     link_all_deplibs_CXX=yes
10136   else
10137     ld_shlibs_CXX=no
10138   fi
10139     ;;
10140
10141   dgux*)
10142     case $cc_basename in
10143       ec++)
10144         # FIXME: insert proper C++ library support
10145         ld_shlibs_CXX=no
10146         ;;
10147       ghcx)
10148         # Green Hills C++ Compiler
10149         # FIXME: insert proper C++ library support
10150         ld_shlibs_CXX=no
10151         ;;
10152       *)
10153         # FIXME: insert proper C++ library support
10154         ld_shlibs_CXX=no
10155         ;;
10156     esac
10157     ;;
10158   freebsd12*)
10159     # C++ shared libraries reported to be fairly broken before switch to ELF
10160     ld_shlibs_CXX=no
10161     ;;
10162   freebsd-elf*)
10163     archive_cmds_need_lc_CXX=no
10164     ;;
10165   freebsd* | kfreebsd*-gnu)
10166     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10167     # conventions
10168     ld_shlibs_CXX=yes
10169     ;;
10170   gnu*)
10171     ;;
10172   hpux9*)
10173     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10174     hardcode_libdir_separator_CXX=:
10175     export_dynamic_flag_spec_CXX='${wl}-E'
10176     hardcode_direct_CXX=yes
10177     hardcode_minus_L_CXX=yes # Not in the search PATH,
10178                                 # but as the default
10179                                 # location of the library.
10180
10181     case $cc_basename in
10182     CC)
10183       # FIXME: insert proper C++ library support
10184       ld_shlibs_CXX=no
10185       ;;
10186     aCC)
10187       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'
10188       # Commands to make compiler produce verbose output that lists
10189       # what "hidden" libraries, object files and flags are used when
10190       # linking a shared library.
10191       #
10192       # There doesn't appear to be a way to prevent this compiler from
10193       # explicitly linking system object files so we need to strip them
10194       # from the output so that they don't get included in the library
10195       # dependencies.
10196       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'
10197       ;;
10198     *)
10199       if test "$GXX" = yes; then
10200         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'
10201       else
10202         # FIXME: insert proper C++ library support
10203         ld_shlibs_CXX=no
10204       fi
10205       ;;
10206     esac
10207     ;;
10208   hpux10*|hpux11*)
10209     if test $with_gnu_ld = no; then
10210       case "$host_cpu" in
10211       hppa*64*)
10212         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10213         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10214         hardcode_libdir_separator_CXX=:
10215         ;;
10216       ia64*)
10217         hardcode_libdir_flag_spec_CXX='-L$libdir'
10218         ;;
10219       *)
10220         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10221         hardcode_libdir_separator_CXX=:
10222         export_dynamic_flag_spec_CXX='${wl}-E'
10223         ;;
10224       esac
10225     fi
10226     case "$host_cpu" in
10227     hppa*64*)
10228       hardcode_direct_CXX=no
10229       hardcode_shlibpath_var_CXX=no
10230       ;;
10231     ia64*)
10232       hardcode_direct_CXX=no
10233       hardcode_shlibpath_var_CXX=no
10234       hardcode_minus_L_CXX=yes # Not in the search PATH,
10235                                               # but as the default
10236                                               # location of the library.
10237       ;;
10238     *)
10239       hardcode_direct_CXX=yes
10240       hardcode_minus_L_CXX=yes # Not in the search PATH,
10241                                               # but as the default
10242                                               # location of the library.
10243       ;;
10244     esac
10245
10246     case $cc_basename in
10247       CC)
10248         # FIXME: insert proper C++ library support
10249         ld_shlibs_CXX=no
10250         ;;
10251       aCC)
10252         case "$host_cpu" in
10253         hppa*64*|ia64*)
10254           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10255           ;;
10256         *)
10257           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10258           ;;
10259         esac
10260         # Commands to make compiler produce verbose output that lists
10261         # what "hidden" libraries, object files and flags are used when
10262         # linking a shared library.
10263         #
10264         # There doesn't appear to be a way to prevent this compiler from
10265         # explicitly linking system object files so we need to strip them
10266         # from the output so that they don't get included in the library
10267         # dependencies.
10268         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'
10269         ;;
10270       *)
10271         if test "$GXX" = yes; then
10272           if test $with_gnu_ld = no; then
10273             case "$host_cpu" in
10274             ia64*|hppa*64*)
10275               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10276               ;;
10277             *)
10278               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'
10279               ;;
10280             esac
10281           fi
10282         else
10283           # FIXME: insert proper C++ library support
10284           ld_shlibs_CXX=no
10285         fi
10286         ;;
10287     esac
10288     ;;
10289   irix5* | irix6*)
10290     case $cc_basename in
10291       CC)
10292         # SGI C++
10293         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'
10294
10295         # Archives containing C++ object files must be created using
10296         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10297         # necessary to make sure instantiated templates are included
10298         # in the archive.
10299         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10300         ;;
10301       *)
10302         if test "$GXX" = yes; then
10303           if test "$with_gnu_ld" = no; then
10304             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'
10305           else
10306             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'
10307           fi
10308         fi
10309         link_all_deplibs_CXX=yes
10310         ;;
10311     esac
10312     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10313     hardcode_libdir_separator_CXX=:
10314     ;;
10315   linux*)
10316     case $cc_basename in
10317       KCC)
10318         # Kuck and Associates, Inc. (KAI) C++ Compiler
10319
10320         # KCC will only create a shared library if the output file
10321         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10322         # to its proper name (with version) after linking.
10323         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'
10324         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'
10325         # Commands to make compiler produce verbose output that lists
10326         # what "hidden" libraries, object files and flags are used when
10327         # linking a shared library.
10328         #
10329         # There doesn't appear to be a way to prevent this compiler from
10330         # explicitly linking system object files so we need to strip them
10331         # from the output so that they don't get included in the library
10332         # dependencies.
10333         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'
10334
10335         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10336         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10337
10338         # Archives containing C++ object files must be created using
10339         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10340         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10341         ;;
10342       icpc)
10343         # Intel C++
10344         with_gnu_ld=yes
10345         archive_cmds_need_lc_CXX=no
10346         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347         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'
10348         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10349         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10350         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10351         ;;
10352       cxx)
10353         # Compaq C++
10354         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355         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'
10356
10357         runpath_var=LD_RUN_PATH
10358         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10359         hardcode_libdir_separator_CXX=:
10360
10361         # Commands to make compiler produce verbose output that lists
10362         # what "hidden" libraries, object files and flags are used when
10363         # linking a shared library.
10364         #
10365         # There doesn't appear to be a way to prevent this compiler from
10366         # explicitly linking system object files so we need to strip them
10367         # from the output so that they don't get included in the library
10368         # dependencies.
10369         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'
10370         ;;
10371     esac
10372     ;;
10373   lynxos*)
10374     # FIXME: insert proper C++ library support
10375     ld_shlibs_CXX=no
10376     ;;
10377   m88k*)
10378     # FIXME: insert proper C++ library support
10379     ld_shlibs_CXX=no
10380     ;;
10381   mvs*)
10382     case $cc_basename in
10383       cxx)
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387       *)
10388         # FIXME: insert proper C++ library support
10389         ld_shlibs_CXX=no
10390         ;;
10391     esac
10392     ;;
10393   netbsd*)
10394     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10395       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10396       wlarc=
10397       hardcode_libdir_flag_spec_CXX='-R$libdir'
10398       hardcode_direct_CXX=yes
10399       hardcode_shlibpath_var_CXX=no
10400     fi
10401     # Workaround some broken pre-1.5 toolchains
10402     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10403     ;;
10404   osf3*)
10405     case $cc_basename in
10406       KCC)
10407         # Kuck and Associates, Inc. (KAI) C++ Compiler
10408
10409         # KCC will only create a shared library if the output file
10410         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10411         # to its proper name (with version) after linking.
10412         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'
10413
10414         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10415         hardcode_libdir_separator_CXX=:
10416
10417         # Archives containing C++ object files must be created using
10418         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10419         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10420
10421         ;;
10422       RCC)
10423         # Rational C++ 2.4.1
10424         # FIXME: insert proper C++ library support
10425         ld_shlibs_CXX=no
10426         ;;
10427       cxx)
10428         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10429         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'
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         #
10438         # There doesn't appear to be a way to prevent this compiler from
10439         # explicitly linking system object files so we need to strip them
10440         # from the output so that they don't get included in the library
10441         # dependencies.
10442         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'
10443         ;;
10444       *)
10445         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10446           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10447           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'
10448
10449           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10450           hardcode_libdir_separator_CXX=:
10451
10452           # Commands to make compiler produce verbose output that lists
10453           # what "hidden" libraries, object files and flags are used when
10454           # linking a shared library.
10455           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10456
10457         else
10458           # FIXME: insert proper C++ library support
10459           ld_shlibs_CXX=no
10460         fi
10461         ;;
10462     esac
10463     ;;
10464   osf4* | osf5*)
10465     case $cc_basename in
10466       KCC)
10467         # Kuck and Associates, Inc. (KAI) C++ Compiler
10468
10469         # KCC will only create a shared library if the output file
10470         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10471         # to its proper name (with version) after linking.
10472         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'
10473
10474         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10475         hardcode_libdir_separator_CXX=:
10476
10477         # Archives containing C++ object files must be created using
10478         # the KAI C++ compiler.
10479         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10480         ;;
10481       RCC)
10482         # Rational C++ 2.4.1
10483         # FIXME: insert proper C++ library support
10484         ld_shlibs_CXX=no
10485         ;;
10486       cxx)
10487         allow_undefined_flag_CXX=' -expect_unresolved \*'
10488         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'
10489         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10490           echo "-hidden">> $lib.exp~
10491           $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~
10492           $rm $lib.exp'
10493
10494         hardcode_libdir_flag_spec_CXX='-rpath $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         #
10501         # There doesn't appear to be a way to prevent this compiler from
10502         # explicitly linking system object files so we need to strip them
10503         # from the output so that they don't get included in the library
10504         # dependencies.
10505         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'
10506         ;;
10507       *)
10508         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10509           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10510          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'
10511
10512           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10513           hardcode_libdir_separator_CXX=:
10514
10515           # Commands to make compiler produce verbose output that lists
10516           # what "hidden" libraries, object files and flags are used when
10517           # linking a shared library.
10518           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10519
10520         else
10521           # FIXME: insert proper C++ library support
10522           ld_shlibs_CXX=no
10523         fi
10524         ;;
10525     esac
10526     ;;
10527   psos*)
10528     # FIXME: insert proper C++ library support
10529     ld_shlibs_CXX=no
10530     ;;
10531   sco*)
10532     archive_cmds_need_lc_CXX=no
10533     case $cc_basename in
10534       CC)
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   sunos4*)
10545     case $cc_basename in
10546       CC)
10547         # Sun C++ 4.x
10548         # FIXME: insert proper C++ library support
10549         ld_shlibs_CXX=no
10550         ;;
10551       lcc)
10552         # Lucid
10553         # FIXME: insert proper C++ library support
10554         ld_shlibs_CXX=no
10555         ;;
10556       *)
10557         # FIXME: insert proper C++ library support
10558         ld_shlibs_CXX=no
10559         ;;
10560     esac
10561     ;;
10562   solaris*)
10563     case $cc_basename in
10564       CC)
10565         # Sun C++ 4.2, 5.x and Centerline C++
10566         no_undefined_flag_CXX=' -zdefs'
10567         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10568         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10569         $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'
10570
10571         hardcode_libdir_flag_spec_CXX='-R$libdir'
10572         hardcode_shlibpath_var_CXX=no
10573         case $host_os in
10574           solaris2.0-5 | solaris2.0-5.*) ;;
10575           *)
10576             # The C++ compiler is used as linker so we must use $wl
10577             # flag to pass the commands to the underlying system
10578             # linker.
10579             # Supported since Solaris 2.6 (maybe 2.5.1?)
10580             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10581             ;;
10582         esac
10583         link_all_deplibs_CXX=yes
10584
10585         # Commands to make compiler produce verbose output that lists
10586         # what "hidden" libraries, object files and flags are used when
10587         # linking a shared library.
10588         #
10589         # There doesn't appear to be a way to prevent this compiler from
10590         # explicitly linking system object files so we need to strip them
10591         # from the output so that they don't get included in the library
10592         # dependencies.
10593         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'
10594
10595         # Archives containing C++ object files must be created using
10596         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10597         # necessary to make sure instantiated templates are included
10598         # in the archive.
10599         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10600         ;;
10601       gcx)
10602         # Green Hills C++ Compiler
10603         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10604
10605         # The C++ compiler must be used to create the archive.
10606         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10607         ;;
10608       *)
10609         # GNU C++ compiler with Solaris linker
10610         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10611           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10612           if $CC --version | grep -v '^2\.7' > /dev/null; then
10613             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10614             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10615                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10616
10617             # Commands to make compiler produce verbose output that lists
10618             # what "hidden" libraries, object files and flags are used when
10619             # linking a shared library.
10620             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10621           else
10622             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10623             # platform.
10624             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10625             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10626                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10627
10628             # Commands to make compiler produce verbose output that lists
10629             # what "hidden" libraries, object files and flags are used when
10630             # linking a shared library.
10631             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10632           fi
10633
10634           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10635         fi
10636         ;;
10637     esac
10638     ;;
10639   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10640     archive_cmds_need_lc_CXX=no
10641     ;;
10642   tandem*)
10643     case $cc_basename in
10644       NCC)
10645         # NonStop-UX NCC 3.20
10646         # FIXME: insert proper C++ library support
10647         ld_shlibs_CXX=no
10648         ;;
10649       *)
10650         # FIXME: insert proper C++ library support
10651         ld_shlibs_CXX=no
10652         ;;
10653     esac
10654     ;;
10655   vxworks*)
10656     # FIXME: insert proper C++ library support
10657     ld_shlibs_CXX=no
10658     ;;
10659   *)
10660     # FIXME: insert proper C++ library support
10661     ld_shlibs_CXX=no
10662     ;;
10663 esac
10664 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10665 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10666 test "$ld_shlibs_CXX" = no && can_build_shared=no
10667
10668 GCC_CXX="$GXX"
10669 LD_CXX="$LD"
10670
10671
10672 cat > conftest.$ac_ext <<EOF
10673 class Foo
10674 {
10675 public:
10676   Foo (void) { a = 0; }
10677 private:
10678   int a;
10679 };
10680 EOF
10681
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683   (eval $ac_compile) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; then
10687   # Parse the compiler output and extract the necessary
10688   # objects, libraries and library flags.
10689
10690   # Sentinel used to keep track of whether or not we are before
10691   # the conftest object file.
10692   pre_test_object_deps_done=no
10693
10694   # The `*' in the case matches for architectures that use `case' in
10695   # $output_verbose_cmd can trigger glob expansion during the loop
10696   # eval without this substitution.
10697   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10698
10699   for p in `eval $output_verbose_link_cmd`; do
10700     case $p in
10701
10702     -L* | -R* | -l*)
10703        # Some compilers place space between "-{L,R}" and the path.
10704        # Remove the space.
10705        if test $p = "-L" \
10706           || test $p = "-R"; then
10707          prev=$p
10708          continue
10709        else
10710          prev=
10711        fi
10712
10713        if test "$pre_test_object_deps_done" = no; then
10714          case $p in
10715          -L* | -R*)
10716            # Internal compiler library paths should come after those
10717            # provided the user.  The postdeps already come after the
10718            # user supplied libs so there is no need to process them.
10719            if test -z "$compiler_lib_search_path_CXX"; then
10720              compiler_lib_search_path_CXX="${prev}${p}"
10721            else
10722              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10723            fi
10724            ;;
10725          # The "-l" case would never come before the object being
10726          # linked, so don't bother handling this case.
10727          esac
10728        else
10729          if test -z "$postdeps_CXX"; then
10730            postdeps_CXX="${prev}${p}"
10731          else
10732            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10733          fi
10734        fi
10735        ;;
10736
10737     *.$objext)
10738        # This assumes that the test object file only shows up
10739        # once in the compiler output.
10740        if test "$p" = "conftest.$objext"; then
10741          pre_test_object_deps_done=yes
10742          continue
10743        fi
10744
10745        if test "$pre_test_object_deps_done" = no; then
10746          if test -z "$predep_objects_CXX"; then
10747            predep_objects_CXX="$p"
10748          else
10749            predep_objects_CXX="$predep_objects_CXX $p"
10750          fi
10751        else
10752          if test -z "$postdep_objects_CXX"; then
10753            postdep_objects_CXX="$p"
10754          else
10755            postdep_objects_CXX="$postdep_objects_CXX $p"
10756          fi
10757        fi
10758        ;;
10759
10760     *) ;; # Ignore the rest.
10761
10762     esac
10763   done
10764
10765   # Clean up.
10766   rm -f a.out a.exe
10767 else
10768   echo "libtool.m4: error: problem compiling CXX test program"
10769 fi
10770
10771 $rm -f confest.$objext
10772
10773 case " $postdeps_CXX " in
10774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10775 esac
10776
10777 lt_prog_compiler_wl_CXX=
10778 lt_prog_compiler_pic_CXX=
10779 lt_prog_compiler_static_CXX=
10780
10781 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10782 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10783
10784   # C++ specific cases for pic, static, wl, etc.
10785   if test "$GXX" = yes; then
10786     lt_prog_compiler_wl_CXX='-Wl,'
10787     lt_prog_compiler_static_CXX='-static'
10788
10789     case $host_os in
10790     aix*)
10791       # All AIX code is PIC.
10792       if test "$host_cpu" = ia64; then
10793         # AIX 5 now supports IA64 processor
10794         lt_prog_compiler_static_CXX='-Bstatic'
10795       fi
10796       ;;
10797     amigaos*)
10798       # FIXME: we need at least 68020 code to build shared libraries, but
10799       # adding the `-m68020' flag to GCC prevents building anything better,
10800       # like `-m68040'.
10801       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10802       ;;
10803     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10804       # PIC is the default for these OSes.
10805       ;;
10806     mingw* | os2* | pw32*)
10807       # This hack is so that the source file can tell whether it is being
10808       # built for inclusion in a dll (and should export symbols for example).
10809       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10810       ;;
10811     darwin* | rhapsody*)
10812       # PIC is the default on this platform
10813       # Common symbols not allowed in MH_DYLIB files
10814       lt_prog_compiler_pic_CXX='-fno-common'
10815       ;;
10816     *djgpp*)
10817       # DJGPP does not support shared libraries at all
10818       lt_prog_compiler_pic_CXX=
10819       ;;
10820     sysv4*MP*)
10821       if test -d /usr/nec; then
10822         lt_prog_compiler_pic_CXX=-Kconform_pic
10823       fi
10824       ;;
10825     hpux*)
10826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10827       # not for PA HP-UX.
10828       case "$host_cpu" in
10829       hppa*64*|ia64*)
10830         ;;
10831       *)
10832         lt_prog_compiler_pic_CXX='-fPIC'
10833         ;;
10834       esac
10835       ;;
10836     *)
10837       lt_prog_compiler_pic_CXX='-fPIC'
10838       ;;
10839     esac
10840   else
10841     case $host_os in
10842       aix4* | aix5*)
10843         # All AIX code is PIC.
10844         if test "$host_cpu" = ia64; then
10845           # AIX 5 now supports IA64 processor
10846           lt_prog_compiler_static_CXX='-Bstatic'
10847         else
10848           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10849         fi
10850         ;;
10851       chorus*)
10852         case $cc_basename in
10853         cxch68)
10854           # Green Hills C++ Compiler
10855           # _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"
10856           ;;
10857         esac
10858         ;;
10859       dgux*)
10860         case $cc_basename in
10861           ec++)
10862             lt_prog_compiler_pic_CXX='-KPIC'
10863             ;;
10864           ghcx)
10865             # Green Hills C++ Compiler
10866             lt_prog_compiler_pic_CXX='-pic'
10867             ;;
10868           *)
10869             ;;
10870         esac
10871         ;;
10872       freebsd* | kfreebsd*-gnu)
10873         # FreeBSD uses GNU C++
10874         ;;
10875       hpux9* | hpux10* | hpux11*)
10876         case $cc_basename in
10877           CC)
10878             lt_prog_compiler_wl_CXX='-Wl,'
10879             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10880             if test "$host_cpu" != ia64; then
10881               lt_prog_compiler_pic_CXX='+Z'
10882             fi
10883             ;;
10884           aCC)
10885             lt_prog_compiler_wl_CXX='-Wl,'
10886             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10887             case "$host_cpu" in
10888             hppa*64*|ia64*)
10889               # +Z the default
10890               ;;
10891             *)
10892               lt_prog_compiler_pic_CXX='+Z'
10893               ;;
10894             esac
10895             ;;
10896           *)
10897             ;;
10898         esac
10899         ;;
10900       irix5* | irix6* | nonstopux*)
10901         case $cc_basename in
10902           CC)
10903             lt_prog_compiler_wl_CXX='-Wl,'
10904             lt_prog_compiler_static_CXX='-non_shared'
10905             # CC pic flag -KPIC is the default.
10906             ;;
10907           *)
10908             ;;
10909         esac
10910         ;;
10911       linux*)
10912         case $cc_basename in
10913           KCC)
10914             # KAI C++ Compiler
10915             lt_prog_compiler_wl_CXX='--backend -Wl,'
10916             lt_prog_compiler_pic_CXX='-fPIC'
10917             ;;
10918           icpc)
10919             # Intel C++
10920             lt_prog_compiler_wl_CXX='-Wl,'
10921             lt_prog_compiler_pic_CXX='-KPIC'
10922             lt_prog_compiler_static_CXX='-static'
10923             ;;
10924           cxx)
10925             # Compaq C++
10926             # Make sure the PIC flag is empty.  It appears that all Alpha
10927             # Linux and Compaq Tru64 Unix objects are PIC.
10928             lt_prog_compiler_pic_CXX=
10929             lt_prog_compiler_static_CXX='-non_shared'
10930             ;;
10931           *)
10932             ;;
10933         esac
10934         ;;
10935       lynxos*)
10936         ;;
10937       m88k*)
10938         ;;
10939       mvs*)
10940         case $cc_basename in
10941           cxx)
10942             lt_prog_compiler_pic_CXX='-W c,exportall'
10943             ;;
10944           *)
10945             ;;
10946         esac
10947         ;;
10948       netbsd*)
10949         ;;
10950       osf3* | osf4* | osf5*)
10951         case $cc_basename in
10952           KCC)
10953             lt_prog_compiler_wl_CXX='--backend -Wl,'
10954             ;;
10955           RCC)
10956             # Rational C++ 2.4.1
10957             lt_prog_compiler_pic_CXX='-pic'
10958             ;;
10959           cxx)
10960             # Digital/Compaq C++
10961             lt_prog_compiler_wl_CXX='-Wl,'
10962             # Make sure the PIC flag is empty.  It appears that all Alpha
10963             # Linux and Compaq Tru64 Unix objects are PIC.
10964             lt_prog_compiler_pic_CXX=
10965             lt_prog_compiler_static_CXX='-non_shared'
10966             ;;
10967           *)
10968             ;;
10969         esac
10970         ;;
10971       psos*)
10972         ;;
10973       sco*)
10974         case $cc_basename in
10975           CC)
10976             lt_prog_compiler_pic_CXX='-fPIC'
10977             ;;
10978           *)
10979             ;;
10980         esac
10981         ;;
10982       solaris*)
10983         case $cc_basename in
10984           CC)
10985             # Sun C++ 4.2, 5.x and Centerline C++
10986             lt_prog_compiler_pic_CXX='-KPIC'
10987             lt_prog_compiler_static_CXX='-Bstatic'
10988             lt_prog_compiler_wl_CXX='-Qoption ld '
10989             ;;
10990           gcx)
10991             # Green Hills C++ Compiler
10992             lt_prog_compiler_pic_CXX='-PIC'
10993             ;;
10994           *)
10995             ;;
10996         esac
10997         ;;
10998       sunos4*)
10999         case $cc_basename in
11000           CC)
11001             # Sun C++ 4.x
11002             lt_prog_compiler_pic_CXX='-pic'
11003             lt_prog_compiler_static_CXX='-Bstatic'
11004             ;;
11005           lcc)
11006             # Lucid
11007             lt_prog_compiler_pic_CXX='-pic'
11008             ;;
11009           *)
11010             ;;
11011         esac
11012         ;;
11013       tandem*)
11014         case $cc_basename in
11015           NCC)
11016             # NonStop-UX NCC 3.20
11017             lt_prog_compiler_pic_CXX='-KPIC'
11018             ;;
11019           *)
11020             ;;
11021         esac
11022         ;;
11023       unixware*)
11024         ;;
11025       vxworks*)
11026         ;;
11027       *)
11028         lt_prog_compiler_can_build_shared_CXX=no
11029         ;;
11030     esac
11031   fi
11032
11033 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11035
11036 #
11037 # Check to make sure the PIC flag actually works.
11038 #
11039 if test -n "$lt_prog_compiler_pic_CXX"; then
11040
11041 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   lt_prog_compiler_pic_works_CXX=no
11047   ac_outfile=conftest.$ac_objext
11048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11049    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11050    # Insert the option either (1) after the last *FLAGS variable, or
11051    # (2) before a word containing "conftest.", or (3) at the end.
11052    # Note that $ac_compile itself does not contain backslashes and begins
11053    # with a dollar sign (not a hyphen), so the echo should work correctly.
11054    # The option is referenced via a variable to avoid confusing sed.
11055    lt_compile=`echo "$ac_compile" | $SED \
11056    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11058    -e 's:$: $lt_compiler_flag:'`
11059    (eval echo "\"\$as_me:11059: $lt_compile\"" >&5)
11060    (eval "$lt_compile" 2>conftest.err)
11061    ac_status=$?
11062    cat conftest.err >&5
11063    echo "$as_me:11063: \$? = $ac_status" >&5
11064    if (exit $ac_status) && test -s "$ac_outfile"; then
11065      # The compiler can only warn and ignore the option if not recognized
11066      # So say no if there are warnings
11067      if test ! -s conftest.err; then
11068        lt_prog_compiler_pic_works_CXX=yes
11069      fi
11070    fi
11071    $rm conftest*
11072
11073 fi
11074 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11075 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11076
11077 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11078     case $lt_prog_compiler_pic_CXX in
11079      "" | " "*) ;;
11080      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11081      esac
11082 else
11083     lt_prog_compiler_pic_CXX=
11084      lt_prog_compiler_can_build_shared_CXX=no
11085 fi
11086
11087 fi
11088 case "$host_os" in
11089   # For platforms which do not support PIC, -DPIC is meaningless:
11090   *djgpp*)
11091     lt_prog_compiler_pic_CXX=
11092     ;;
11093   *)
11094     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11095     ;;
11096 esac
11097
11098 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11099 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11100 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   lt_cv_prog_compiler_c_o_CXX=no
11104    $rm -r conftest 2>/dev/null
11105    mkdir conftest
11106    cd conftest
11107    mkdir out
11108    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11109
11110    lt_compiler_flag="-o out/conftest2.$ac_objext"
11111    # Insert the option either (1) after the last *FLAGS variable, or
11112    # (2) before a word containing "conftest.", or (3) at the end.
11113    # Note that $ac_compile itself does not contain backslashes and begins
11114    # with a dollar sign (not a hyphen), so the echo should work correctly.
11115    lt_compile=`echo "$ac_compile" | $SED \
11116    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11117    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11118    -e 's:$: $lt_compiler_flag:'`
11119    (eval echo "\"\$as_me:11119: $lt_compile\"" >&5)
11120    (eval "$lt_compile" 2>out/conftest.err)
11121    ac_status=$?
11122    cat out/conftest.err >&5
11123    echo "$as_me:11123: \$? = $ac_status" >&5
11124    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11125    then
11126      # The compiler can only warn and ignore the option if not recognized
11127      # So say no if there are warnings
11128      if test ! -s out/conftest.err; then
11129        lt_cv_prog_compiler_c_o_CXX=yes
11130      fi
11131    fi
11132    chmod u+w .
11133    $rm conftest*
11134    # SGI C++ compiler will create directory out/ii_files/ for
11135    # template instantiation
11136    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11137    $rm out/* && rmdir out
11138    cd ..
11139    rmdir conftest
11140    $rm conftest*
11141
11142 fi
11143 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11145
11146
11147 hard_links="nottested"
11148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11149   # do not overwrite the value of need_locks provided by the user
11150   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11152   hard_links=yes
11153   $rm conftest*
11154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11155   touch conftest.a
11156   ln conftest.a conftest.b 2>&5 || hard_links=no
11157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11158   echo "$as_me:$LINENO: result: $hard_links" >&5
11159 echo "${ECHO_T}$hard_links" >&6
11160   if test "$hard_links" = no; then
11161     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11163     need_locks=warn
11164   fi
11165 else
11166   need_locks=no
11167 fi
11168
11169 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11171
11172   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11173   case $host_os in
11174   aix4* | aix5*)
11175     # If we're using GNU nm, then we don't want the "-C" option.
11176     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11177     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11178       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'
11179     else
11180       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'
11181     fi
11182     ;;
11183   pw32*)
11184     export_symbols_cmds_CXX="$ltdll_cmds"
11185   ;;
11186   cygwin* | mingw*)
11187     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11188   ;;
11189   *)
11190     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11191   ;;
11192   esac
11193
11194 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11195 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11196 test "$ld_shlibs_CXX" = no && can_build_shared=no
11197
11198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11199 if test "$GCC" = yes; then
11200   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11201 fi
11202
11203 #
11204 # Do we need to explicitly link libc?
11205 #
11206 case "x$archive_cmds_need_lc_CXX" in
11207 x|xyes)
11208   # Assume -lc should be added
11209   archive_cmds_need_lc_CXX=yes
11210
11211   if test "$enable_shared" = yes && test "$GCC" = yes; then
11212     case $archive_cmds_CXX in
11213     *'~'*)
11214       # FIXME: we may have to deal with multi-command sequences.
11215       ;;
11216     '$CC '*)
11217       # Test whether the compiler implicitly links with -lc since on some
11218       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11219       # to ld, don't add -lc before -lgcc.
11220       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11222       $rm conftest*
11223       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11224
11225       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226   (eval $ac_compile) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } 2>conftest.err; then
11230         soname=conftest
11231         lib=conftest
11232         libobjs=conftest.$ac_objext
11233         deplibs=
11234         wl=$lt_prog_compiler_wl_CXX
11235         compiler_flags=-v
11236         linker_flags=-v
11237         verstring=
11238         output_objdir=.
11239         libname=conftest
11240         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11241         allow_undefined_flag_CXX=
11242         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11243   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }
11247         then
11248           archive_cmds_need_lc_CXX=no
11249         else
11250           archive_cmds_need_lc_CXX=yes
11251         fi
11252         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11253       else
11254         cat conftest.err 1>&5
11255       fi
11256       $rm conftest*
11257       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11258 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11259       ;;
11260     esac
11261   fi
11262   ;;
11263 esac
11264
11265 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11267 library_names_spec=
11268 libname_spec='lib$name'
11269 soname_spec=
11270 shrext_cmds=".so"
11271 postinstall_cmds=
11272 postuninstall_cmds=
11273 finish_cmds=
11274 finish_eval=
11275 shlibpath_var=
11276 shlibpath_overrides_runpath=unknown
11277 version_type=none
11278 dynamic_linker="$host_os ld.so"
11279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11280 if test "$GCC" = yes; then
11281   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11282   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11283     # if the path contains ";" then we assume it to be the separator
11284     # otherwise default to the standard path separator (i.e. ":") - it is
11285     # assumed that no part of a normal pathname contains ";" but that should
11286     # okay in the real world where ";" in dirpaths is itself problematic.
11287     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11288   else
11289     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11290   fi
11291 else
11292   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11293 fi
11294 need_lib_prefix=unknown
11295 hardcode_into_libs=no
11296
11297 # when you set need_version to no, make sure it does not cause -set_version
11298 # flags to be left without arguments
11299 need_version=unknown
11300
11301 case $host_os in
11302 aix3*)
11303   version_type=linux
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11305   shlibpath_var=LIBPATH
11306
11307   # AIX 3 has no versioning support, so we append a major version to the name.
11308   soname_spec='${libname}${release}${shared_ext}$major'
11309   ;;
11310
11311 aix4* | aix5*)
11312   version_type=linux
11313   need_lib_prefix=no
11314   need_version=no
11315   hardcode_into_libs=yes
11316   if test "$host_cpu" = ia64; then
11317     # AIX 5 supports IA64
11318     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11319     shlibpath_var=LD_LIBRARY_PATH
11320   else
11321     # With GCC up to 2.95.x, collect2 would create an import file
11322     # for dependence libraries.  The import file would start with
11323     # the line `#! .'.  This would cause the generated library to
11324     # depend on `.', always an invalid library.  This was fixed in
11325     # development snapshots of GCC prior to 3.0.
11326     case $host_os in
11327       aix4 | aix4.[01] | aix4.[01].*)
11328       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11329            echo ' yes '
11330            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11331         :
11332       else
11333         can_build_shared=no
11334       fi
11335       ;;
11336     esac
11337     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11338     # soname into executable. Probably we can add versioning support to
11339     # collect2, so additional links can be useful in future.
11340     if test "$aix_use_runtimelinking" = yes; then
11341       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11342       # instead of lib<name>.a to let people know that these are not
11343       # typical AIX shared libraries.
11344       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345     else
11346       # We preserve .a as extension for shared libraries through AIX4.2
11347       # and later when we are not doing run time linking.
11348       library_names_spec='${libname}${release}.a $libname.a'
11349       soname_spec='${libname}${release}${shared_ext}$major'
11350     fi
11351     shlibpath_var=LIBPATH
11352   fi
11353   ;;
11354
11355 amigaos*)
11356   library_names_spec='$libname.ixlibrary $libname.a'
11357   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11358   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'
11359   ;;
11360
11361 beos*)
11362   library_names_spec='${libname}${shared_ext}'
11363   dynamic_linker="$host_os ld.so"
11364   shlibpath_var=LIBRARY_PATH
11365   ;;
11366
11367 bsdi4*)
11368   version_type=linux
11369   need_version=no
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371   soname_spec='${libname}${release}${shared_ext}$major'
11372   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11373   shlibpath_var=LD_LIBRARY_PATH
11374   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11375   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11376   # the default ld.so.conf also contains /usr/contrib/lib and
11377   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11378   # libtool to hard-code these into programs
11379   ;;
11380
11381 cygwin* | mingw* | pw32*)
11382   version_type=windows
11383   shrext_cmds=".dll"
11384   need_version=no
11385   need_lib_prefix=no
11386
11387   case $GCC,$host_os in
11388   yes,cygwin* | yes,mingw* | yes,pw32*)
11389     library_names_spec='$libname.dll.a'
11390     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11391     postinstall_cmds='base_file=`basename \${file}`~
11392       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11393       dldir=$destdir/`dirname \$dlpath`~
11394       test -d \$dldir || mkdir -p \$dldir~
11395       $install_prog $dir/$dlname \$dldir/$dlname'
11396     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11397       dlpath=$dir/\$dldll~
11398        $rm \$dlpath'
11399     shlibpath_overrides_runpath=yes
11400
11401     case $host_os in
11402     cygwin*)
11403       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11404       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11406       ;;
11407     mingw*)
11408       # MinGW DLLs use traditional 'lib' prefix
11409       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11410       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11411       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11412         # It is most probably a Windows format PATH printed by
11413         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11414         # path with ; separators, and with drive letters. We can handle the
11415         # drive letters (cygwin fileutils understands them), so leave them,
11416         # especially as we might pass files found there to a mingw objdump,
11417         # which wouldn't understand a cygwinified path. Ahh.
11418         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11419       else
11420         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11421       fi
11422       ;;
11423     pw32*)
11424       # pw32 DLLs use 'pw' prefix rather than 'lib'
11425       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11426       ;;
11427     esac
11428     ;;
11429
11430   *)
11431     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11432     ;;
11433   esac
11434   dynamic_linker='Win32 ld.exe'
11435   # FIXME: first we should search . and the directory the executable is in
11436   shlibpath_var=PATH
11437   ;;
11438
11439 darwin* | rhapsody*)
11440   dynamic_linker="$host_os dyld"
11441   version_type=darwin
11442   need_lib_prefix=no
11443   need_version=no
11444   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11445   soname_spec='${libname}${release}${major}$shared_ext'
11446   shlibpath_overrides_runpath=yes
11447   shlibpath_var=DYLD_LIBRARY_PATH
11448   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11449   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11450   if test "$GCC" = yes; then
11451     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"`
11452   else
11453     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11454   fi
11455   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11456   ;;
11457
11458 dgux*)
11459   version_type=linux
11460   need_lib_prefix=no
11461   need_version=no
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11463   soname_spec='${libname}${release}${shared_ext}$major'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   ;;
11466
11467 freebsd1*)
11468   dynamic_linker=no
11469   ;;
11470
11471 kfreebsd*-gnu)
11472   version_type=linux
11473   need_lib_prefix=no
11474   need_version=no
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11476   soname_spec='${libname}${release}${shared_ext}$major'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   shlibpath_overrides_runpath=no
11479   hardcode_into_libs=yes
11480   dynamic_linker='GNU ld.so'
11481   ;;
11482
11483 freebsd*)
11484   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11485   version_type=freebsd-$objformat
11486   case $version_type in
11487     freebsd-elf*)
11488       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11489       need_version=no
11490       need_lib_prefix=no
11491       ;;
11492     freebsd-*)
11493       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11494       need_version=yes
11495       ;;
11496   esac
11497   shlibpath_var=LD_LIBRARY_PATH
11498   case $host_os in
11499   freebsd2*)
11500     shlibpath_overrides_runpath=yes
11501     ;;
11502   freebsd3.01* | freebsdelf3.01*)
11503     shlibpath_overrides_runpath=yes
11504     hardcode_into_libs=yes
11505     ;;
11506   *) # from 3.2 on
11507     shlibpath_overrides_runpath=no
11508     hardcode_into_libs=yes
11509     ;;
11510   esac
11511   ;;
11512
11513 gnu*)
11514   version_type=linux
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11518   soname_spec='${libname}${release}${shared_ext}$major'
11519   shlibpath_var=LD_LIBRARY_PATH
11520   hardcode_into_libs=yes
11521   ;;
11522
11523 hpux9* | hpux10* | hpux11*)
11524   # Give a soname corresponding to the major version so that dld.sl refuses to
11525   # link against other versions.
11526   version_type=sunos
11527   need_lib_prefix=no
11528   need_version=no
11529   case "$host_cpu" in
11530   ia64*)
11531     shrext_cmds='.so'
11532     hardcode_into_libs=yes
11533     dynamic_linker="$host_os dld.so"
11534     shlibpath_var=LD_LIBRARY_PATH
11535     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537     soname_spec='${libname}${release}${shared_ext}$major'
11538     if test "X$HPUX_IA64_MODE" = X32; then
11539       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11540     else
11541       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11542     fi
11543     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544     ;;
11545    hppa*64*)
11546      shrext_cmds='.sl'
11547      hardcode_into_libs=yes
11548      dynamic_linker="$host_os dld.sl"
11549      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11550      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552      soname_spec='${libname}${release}${shared_ext}$major'
11553      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11554      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11555      ;;
11556    *)
11557     shrext_cmds='.sl'
11558     dynamic_linker="$host_os dld.sl"
11559     shlibpath_var=SHLIB_PATH
11560     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562     soname_spec='${libname}${release}${shared_ext}$major'
11563     ;;
11564   esac
11565   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11566   postinstall_cmds='chmod 555 $lib'
11567   ;;
11568
11569 irix5* | irix6* | nonstopux*)
11570   case $host_os in
11571     nonstopux*) version_type=nonstopux ;;
11572     *)
11573         if test "$lt_cv_prog_gnu_ld" = yes; then
11574                 version_type=linux
11575         else
11576                 version_type=irix
11577         fi ;;
11578   esac
11579   need_lib_prefix=no
11580   need_version=no
11581   soname_spec='${libname}${release}${shared_ext}$major'
11582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11583   case $host_os in
11584   irix5* | nonstopux*)
11585     libsuff= shlibsuff=
11586     ;;
11587   *)
11588     case $LD in # libtool.m4 will add one of these switches to LD
11589     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590       libsuff= shlibsuff= libmagic=32-bit;;
11591     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592       libsuff=32 shlibsuff=N32 libmagic=N32;;
11593     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595     *) libsuff= shlibsuff= libmagic=never-match;;
11596     esac
11597     ;;
11598   esac
11599   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600   shlibpath_overrides_runpath=no
11601   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11602   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11603   hardcode_into_libs=yes
11604   ;;
11605
11606 # No shared lib support for Linux oldld, aout, or coff.
11607 linux*oldld* | linux*aout* | linux*coff*)
11608   dynamic_linker=no
11609   ;;
11610
11611 # This must be Linux ELF.
11612 linux*)
11613   version_type=linux
11614   need_lib_prefix=no
11615   need_version=no
11616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617   soname_spec='${libname}${release}${shared_ext}$major'
11618   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11619   shlibpath_var=LD_LIBRARY_PATH
11620   shlibpath_overrides_runpath=no
11621   # This implies no fast_install, which is unacceptable.
11622   # Some rework will be needed to allow for fast_install
11623   # before this can be enabled.
11624   hardcode_into_libs=yes
11625
11626   # find out which ABI we are using
11627   libsuff=
11628   case "$host_cpu" in
11629   x86_64*|s390x*|powerpc64*)
11630     echo '#line 11630 "configure"' > conftest.$ac_ext
11631     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; then
11636       case `/usr/bin/file conftest.$ac_objext` in
11637       *64-bit*)
11638         libsuff=64
11639         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11640         ;;
11641       esac
11642     fi
11643     rm -rf conftest*
11644     ;;
11645   esac
11646
11647   # Append ld.so.conf contents to the search path
11648   if test -f /etc/ld.so.conf; then
11649     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11650     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11651   fi
11652
11653   # We used to test for /lib/ld.so.1 and disable shared libraries on
11654   # powerpc, because MkLinux only supported shared libraries with the
11655   # GNU dynamic linker.  Since this was broken with cross compilers,
11656   # most powerpc-linux boxes support dynamic linking these days and
11657   # people can always --disable-shared, the test was removed, and we
11658   # assume the GNU/Linux dynamic linker is in use.
11659   dynamic_linker='GNU/Linux ld.so'
11660   ;;
11661
11662 knetbsd*-gnu)
11663   version_type=linux
11664   need_lib_prefix=no
11665   need_version=no
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667   soname_spec='${libname}${release}${shared_ext}$major'
11668   shlibpath_var=LD_LIBRARY_PATH
11669   shlibpath_overrides_runpath=no
11670   hardcode_into_libs=yes
11671   dynamic_linker='GNU ld.so'
11672   ;;
11673
11674 netbsd*)
11675   version_type=sunos
11676   need_lib_prefix=no
11677   need_version=no
11678   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11680     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11681     dynamic_linker='NetBSD (a.out) ld.so'
11682   else
11683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11684     soname_spec='${libname}${release}${shared_ext}$major'
11685     dynamic_linker='NetBSD ld.elf_so'
11686   fi
11687   shlibpath_var=LD_LIBRARY_PATH
11688   shlibpath_overrides_runpath=yes
11689   hardcode_into_libs=yes
11690   ;;
11691
11692 newsos6)
11693   version_type=linux
11694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   shlibpath_overrides_runpath=yes
11697   ;;
11698
11699 nto-qnx*)
11700   version_type=linux
11701   need_lib_prefix=no
11702   need_version=no
11703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704   soname_spec='${libname}${release}${shared_ext}$major'
11705   shlibpath_var=LD_LIBRARY_PATH
11706   shlibpath_overrides_runpath=yes
11707   ;;
11708
11709 openbsd*)
11710   version_type=sunos
11711   need_lib_prefix=no
11712   need_version=yes
11713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11715   shlibpath_var=LD_LIBRARY_PATH
11716   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11717     case $host_os in
11718       openbsd2.[89] | openbsd2.[89].*)
11719         shlibpath_overrides_runpath=no
11720         ;;
11721       *)
11722         shlibpath_overrides_runpath=yes
11723         ;;
11724       esac
11725   else
11726     shlibpath_overrides_runpath=yes
11727   fi
11728   ;;
11729
11730 os2*)
11731   libname_spec='$name'
11732   shrext_cmds=".dll"
11733   need_lib_prefix=no
11734   library_names_spec='$libname${shared_ext} $libname.a'
11735   dynamic_linker='OS/2 ld.exe'
11736   shlibpath_var=LIBPATH
11737   ;;
11738
11739 osf3* | osf4* | osf5*)
11740   version_type=osf
11741   need_lib_prefix=no
11742   need_version=no
11743   soname_spec='${libname}${release}${shared_ext}$major'
11744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745   shlibpath_var=LD_LIBRARY_PATH
11746   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11747   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11748   ;;
11749
11750 sco3.2v5*)
11751   version_type=osf
11752   soname_spec='${libname}${release}${shared_ext}$major'
11753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754   shlibpath_var=LD_LIBRARY_PATH
11755   ;;
11756
11757 solaris*)
11758   version_type=linux
11759   need_lib_prefix=no
11760   need_version=no
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   shlibpath_overrides_runpath=yes
11765   hardcode_into_libs=yes
11766   # ldd complains unless libraries are executable
11767   postinstall_cmds='chmod +x $lib'
11768   ;;
11769
11770 sunos4*)
11771   version_type=sunos
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   shlibpath_overrides_runpath=yes
11776   if test "$with_gnu_ld" = yes; then
11777     need_lib_prefix=no
11778   fi
11779   need_version=yes
11780   ;;
11781
11782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11783   version_type=linux
11784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785   soname_spec='${libname}${release}${shared_ext}$major'
11786   shlibpath_var=LD_LIBRARY_PATH
11787   case $host_vendor in
11788     sni)
11789       shlibpath_overrides_runpath=no
11790       need_lib_prefix=no
11791       export_dynamic_flag_spec='${wl}-Blargedynsym'
11792       runpath_var=LD_RUN_PATH
11793       ;;
11794     siemens)
11795       need_lib_prefix=no
11796       ;;
11797     motorola)
11798       need_lib_prefix=no
11799       need_version=no
11800       shlibpath_overrides_runpath=no
11801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11802       ;;
11803   esac
11804   ;;
11805
11806 sysv4*MP*)
11807   if test -d /usr/nec ;then
11808     version_type=linux
11809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11810     soname_spec='$libname${shared_ext}.$major'
11811     shlibpath_var=LD_LIBRARY_PATH
11812   fi
11813   ;;
11814
11815 uts4*)
11816   version_type=linux
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   soname_spec='${libname}${release}${shared_ext}$major'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   ;;
11821
11822 *)
11823   dynamic_linker=no
11824   ;;
11825 esac
11826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11827 echo "${ECHO_T}$dynamic_linker" >&6
11828 test "$dynamic_linker" = no && can_build_shared=no
11829
11830 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11832 hardcode_action_CXX=
11833 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11834    test -n "$runpath_var CXX" || \
11835    test "X$hardcode_automatic_CXX"="Xyes" ; then
11836
11837   # We can hardcode non-existant directories.
11838   if test "$hardcode_direct_CXX" != no &&
11839      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11840      # have to relink, otherwise we might link with an installed library
11841      # when we should be linking with a yet-to-be-installed one
11842      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11843      test "$hardcode_minus_L_CXX" != no; then
11844     # Linking always hardcodes the temporary library directory.
11845     hardcode_action_CXX=relink
11846   else
11847     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11848     hardcode_action_CXX=immediate
11849   fi
11850 else
11851   # We cannot hardcode anything, or else we can only hardcode existing
11852   # directories.
11853   hardcode_action_CXX=unsupported
11854 fi
11855 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11856 echo "${ECHO_T}$hardcode_action_CXX" >&6
11857
11858 if test "$hardcode_action_CXX" = relink; then
11859   # Fast installation is not supported
11860   enable_fast_install=no
11861 elif test "$shlibpath_overrides_runpath" = yes ||
11862      test "$enable_shared" = no; then
11863   # Fast installation is not necessary
11864   enable_fast_install=needless
11865 fi
11866
11867 striplib=
11868 old_striplib=
11869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11872   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11873   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11874   echo "$as_me:$LINENO: result: yes" >&5
11875 echo "${ECHO_T}yes" >&6
11876 else
11877 # FIXME - insert some real tests, host_os isn't really good enough
11878   case $host_os in
11879    darwin*)
11880        if test -n "$STRIP" ; then
11881          striplib="$STRIP -x"
11882          echo "$as_me:$LINENO: result: yes" >&5
11883 echo "${ECHO_T}yes" >&6
11884        else
11885   echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6
11887 fi
11888        ;;
11889    *)
11890   echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6
11892     ;;
11893   esac
11894 fi
11895
11896 if test "x$enable_dlopen" != xyes; then
11897   enable_dlopen=unknown
11898   enable_dlopen_self=unknown
11899   enable_dlopen_self_static=unknown
11900 else
11901   lt_cv_dlopen=no
11902   lt_cv_dlopen_libs=
11903
11904   case $host_os in
11905   beos*)
11906     lt_cv_dlopen="load_add_on"
11907     lt_cv_dlopen_libs=
11908     lt_cv_dlopen_self=yes
11909     ;;
11910
11911   mingw* | pw32*)
11912     lt_cv_dlopen="LoadLibrary"
11913     lt_cv_dlopen_libs=
11914    ;;
11915
11916   cygwin*)
11917     lt_cv_dlopen="dlopen"
11918     lt_cv_dlopen_libs=
11919    ;;
11920
11921   darwin*)
11922   # if libdl is installed we need to link against it
11923     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11926   echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928   ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-ldl  $LIBS"
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936
11937 /* Override any gcc2 internal prototype to avoid an error.  */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 /* We use char because int might match the return type of a gcc2
11942    builtin and then its argument prototype would still apply.  */
11943 char dlopen ();
11944 int
11945 main ()
11946 {
11947 dlopen ();
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954   (eval $ac_link) 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } &&
11961          { ac_try='test -z "$ac_cxx_werror_flag"
11962                          || test ! -s conftest.err'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; } &&
11968          { ac_try='test -s conftest$ac_exeext'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974   ac_cv_lib_dl_dlopen=yes
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 ac_cv_lib_dl_dlopen=no
11980 fi
11981 rm -f conftest.err conftest.$ac_objext \
11982       conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11984 fi
11985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11987 if test $ac_cv_lib_dl_dlopen = yes; then
11988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11989 else
11990
11991     lt_cv_dlopen="dyld"
11992     lt_cv_dlopen_libs=
11993     lt_cv_dlopen_self=yes
11994
11995 fi
11996
11997    ;;
11998
11999   *)
12000     echo "$as_me:$LINENO: checking for shl_load" >&5
12001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12002 if test "${ac_cv_func_shl_load+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12013 #define shl_load innocuous_shl_load
12014
12015 /* System header to define __stub macros and hopefully few prototypes,
12016     which can conflict with char shl_load (); below.
12017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12018     <limits.h> exists even on freestanding compilers.  */
12019
12020 #ifdef __STDC__
12021 # include <limits.h>
12022 #else
12023 # include <assert.h>
12024 #endif
12025
12026 #undef shl_load
12027
12028 /* Override any gcc2 internal prototype to avoid an error.  */
12029 #ifdef __cplusplus
12030 extern "C"
12031 {
12032 #endif
12033 /* We use char because int might match the return type of a gcc2
12034    builtin and then its argument prototype would still apply.  */
12035 char shl_load ();
12036 /* The GNU C library defines this for functions which it implements
12037     to always fail with ENOSYS.  Some functions are actually named
12038     something starting with __ and the normal name is an alias.  */
12039 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12040 choke me
12041 #else
12042 char (*f) () = shl_load;
12043 #endif
12044 #ifdef __cplusplus
12045 }
12046 #endif
12047
12048 int
12049 main ()
12050 {
12051 return f != shl_load;
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058   (eval $ac_link) 2>conftest.er1
12059   ac_status=$?
12060   grep -v '^ *+' conftest.er1 >conftest.err
12061   rm -f conftest.er1
12062   cat conftest.err >&5
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); } &&
12065          { ac_try='test -z "$ac_cxx_werror_flag"
12066                          || test ! -s conftest.err'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest$ac_exeext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   ac_cv_func_shl_load=yes
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 ac_cv_func_shl_load=no
12084 fi
12085 rm -f conftest.err conftest.$ac_objext \
12086       conftest$ac_exeext conftest.$ac_ext
12087 fi
12088 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12090 if test $ac_cv_func_shl_load = yes; then
12091   lt_cv_dlopen="shl_load"
12092 else
12093   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12094 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-ldld  $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107 /* Override any gcc2 internal prototype to avoid an error.  */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 /* We use char because int might match the return type of a gcc2
12112    builtin and then its argument prototype would still apply.  */
12113 char shl_load ();
12114 int
12115 main ()
12116 {
12117 shl_load ();
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12124   (eval $ac_link) 2>conftest.er1
12125   ac_status=$?
12126   grep -v '^ *+' conftest.er1 >conftest.err
12127   rm -f conftest.er1
12128   cat conftest.err >&5
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } &&
12131          { ac_try='test -z "$ac_cxx_werror_flag"
12132                          || test ! -s conftest.err'
12133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134   (eval $ac_try) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; } &&
12138          { ac_try='test -s conftest$ac_exeext'
12139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140   (eval $ac_try) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; }; then
12144   ac_cv_lib_dld_shl_load=yes
12145 else
12146   echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ac_cv_lib_dld_shl_load=no
12150 fi
12151 rm -f conftest.err conftest.$ac_objext \
12152       conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12156 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12157 if test $ac_cv_lib_dld_shl_load = yes; then
12158   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12159 else
12160   echo "$as_me:$LINENO: checking for dlopen" >&5
12161 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12162 if test "${ac_cv_func_dlopen+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12173 #define dlopen innocuous_dlopen
12174
12175 /* System header to define __stub macros and hopefully few prototypes,
12176     which can conflict with char dlopen (); below.
12177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178     <limits.h> exists even on freestanding compilers.  */
12179
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12185
12186 #undef dlopen
12187
12188 /* Override any gcc2 internal prototype to avoid an error.  */
12189 #ifdef __cplusplus
12190 extern "C"
12191 {
12192 #endif
12193 /* We use char because int might match the return type of a gcc2
12194    builtin and then its argument prototype would still apply.  */
12195 char dlopen ();
12196 /* The GNU C library defines this for functions which it implements
12197     to always fail with ENOSYS.  Some functions are actually named
12198     something starting with __ and the normal name is an alias.  */
12199 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12200 choke me
12201 #else
12202 char (*f) () = dlopen;
12203 #endif
12204 #ifdef __cplusplus
12205 }
12206 #endif
12207
12208 int
12209 main ()
12210 {
12211 return f != dlopen;
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218   (eval $ac_link) 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -z "$ac_cxx_werror_flag"
12226                          || test ! -s conftest.err'
12227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228   (eval $ac_try) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; } &&
12232          { ac_try='test -s conftest$ac_exeext'
12233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234   (eval $ac_try) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_func_dlopen=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_func_dlopen=no
12244 fi
12245 rm -f conftest.err conftest.$ac_objext \
12246       conftest$ac_exeext conftest.$ac_ext
12247 fi
12248 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12249 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12250 if test $ac_cv_func_dlopen = yes; then
12251   lt_cv_dlopen="dlopen"
12252 else
12253   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258   ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-ldl  $LIBS"
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266
12267 /* Override any gcc2 internal prototype to avoid an error.  */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 /* We use char because int might match the return type of a gcc2
12272    builtin and then its argument prototype would still apply.  */
12273 char dlopen ();
12274 int
12275 main ()
12276 {
12277 dlopen ();
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284   (eval $ac_link) 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } &&
12291          { ac_try='test -z "$ac_cxx_werror_flag"
12292                          || test ! -s conftest.err'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; }; then
12304   ac_cv_lib_dl_dlopen=yes
12305 else
12306   echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 ac_cv_lib_dl_dlopen=no
12310 fi
12311 rm -f conftest.err conftest.$ac_objext \
12312       conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12314 fi
12315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12317 if test $ac_cv_lib_dl_dlopen = yes; then
12318   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12319 else
12320   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lsvld  $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333
12334 /* Override any gcc2 internal prototype to avoid an error.  */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 /* We use char because int might match the return type of a gcc2
12339    builtin and then its argument prototype would still apply.  */
12340 char dlopen ();
12341 int
12342 main ()
12343 {
12344 dlopen ();
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351   (eval $ac_link) 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_cxx_werror_flag"
12359                          || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_lib_svld_dlopen=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_lib_svld_dlopen=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12384 if test $ac_cv_lib_svld_dlopen = yes; then
12385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12386 else
12387   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   ac_check_lib_save_LIBS=$LIBS
12393 LIBS="-ldld  $LIBS"
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400
12401 /* Override any gcc2 internal prototype to avoid an error.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 /* We use char because int might match the return type of a gcc2
12406    builtin and then its argument prototype would still apply.  */
12407 char dld_link ();
12408 int
12409 main ()
12410 {
12411 dld_link ();
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418   (eval $ac_link) 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_cxx_werror_flag"
12426                          || test ! -s conftest.err'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest$ac_exeext'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   ac_cv_lib_dld_dld_link=yes
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_cv_lib_dld_dld_link=no
12444 fi
12445 rm -f conftest.err conftest.$ac_objext \
12446       conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12448 fi
12449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12450 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12451 if test $ac_cv_lib_dld_dld_link = yes; then
12452   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12453 fi
12454
12455
12456 fi
12457
12458
12459 fi
12460
12461
12462 fi
12463
12464
12465 fi
12466
12467
12468 fi
12469
12470     ;;
12471   esac
12472
12473   if test "x$lt_cv_dlopen" != xno; then
12474     enable_dlopen=yes
12475   else
12476     enable_dlopen=no
12477   fi
12478
12479   case $lt_cv_dlopen in
12480   dlopen)
12481     save_CPPFLAGS="$CPPFLAGS"
12482     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12483
12484     save_LDFLAGS="$LDFLAGS"
12485     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12486
12487     save_LIBS="$LIBS"
12488     LIBS="$lt_cv_dlopen_libs $LIBS"
12489
12490     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12491 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12492 if test "${lt_cv_dlopen_self+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495           if test "$cross_compiling" = yes; then :
12496   lt_cv_dlopen_self=cross
12497 else
12498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12499   lt_status=$lt_dlunknown
12500   cat > conftest.$ac_ext <<EOF
12501 #line 12501 "configure"
12502 #include "confdefs.h"
12503
12504 #if HAVE_DLFCN_H
12505 #include <dlfcn.h>
12506 #endif
12507
12508 #include <stdio.h>
12509
12510 #ifdef RTLD_GLOBAL
12511 #  define LT_DLGLOBAL           RTLD_GLOBAL
12512 #else
12513 #  ifdef DL_GLOBAL
12514 #    define LT_DLGLOBAL         DL_GLOBAL
12515 #  else
12516 #    define LT_DLGLOBAL         0
12517 #  endif
12518 #endif
12519
12520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12521    find out it does not work in some platform. */
12522 #ifndef LT_DLLAZY_OR_NOW
12523 #  ifdef RTLD_LAZY
12524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12525 #  else
12526 #    ifdef DL_LAZY
12527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12528 #    else
12529 #      ifdef RTLD_NOW
12530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12531 #      else
12532 #        ifdef DL_NOW
12533 #          define LT_DLLAZY_OR_NOW      DL_NOW
12534 #        else
12535 #          define LT_DLLAZY_OR_NOW      0
12536 #        endif
12537 #      endif
12538 #    endif
12539 #  endif
12540 #endif
12541
12542 #ifdef __cplusplus
12543 extern "C" void exit (int);
12544 #endif
12545
12546 void fnord() { int i=42;}
12547 int main ()
12548 {
12549   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12550   int status = $lt_dlunknown;
12551
12552   if (self)
12553     {
12554       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12555       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12556       /* dlclose (self); */
12557     }
12558
12559     exit (status);
12560 }
12561 EOF
12562   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563   (eval $ac_link) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12567     (./conftest; exit; ) 2>/dev/null
12568     lt_status=$?
12569     case x$lt_status in
12570       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12571       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12572       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12573     esac
12574   else :
12575     # compilation failed
12576     lt_cv_dlopen_self=no
12577   fi
12578 fi
12579 rm -fr conftest*
12580
12581
12582 fi
12583 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12585
12586     if test "x$lt_cv_dlopen_self" = xyes; then
12587       LDFLAGS="$LDFLAGS $link_static_flag"
12588       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12590 if test "${lt_cv_dlopen_self_static+set}" = set; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593           if test "$cross_compiling" = yes; then :
12594   lt_cv_dlopen_self_static=cross
12595 else
12596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12597   lt_status=$lt_dlunknown
12598   cat > conftest.$ac_ext <<EOF
12599 #line 12599 "configure"
12600 #include "confdefs.h"
12601
12602 #if HAVE_DLFCN_H
12603 #include <dlfcn.h>
12604 #endif
12605
12606 #include <stdio.h>
12607
12608 #ifdef RTLD_GLOBAL
12609 #  define LT_DLGLOBAL           RTLD_GLOBAL
12610 #else
12611 #  ifdef DL_GLOBAL
12612 #    define LT_DLGLOBAL         DL_GLOBAL
12613 #  else
12614 #    define LT_DLGLOBAL         0
12615 #  endif
12616 #endif
12617
12618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12619    find out it does not work in some platform. */
12620 #ifndef LT_DLLAZY_OR_NOW
12621 #  ifdef RTLD_LAZY
12622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12623 #  else
12624 #    ifdef DL_LAZY
12625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12626 #    else
12627 #      ifdef RTLD_NOW
12628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12629 #      else
12630 #        ifdef DL_NOW
12631 #          define LT_DLLAZY_OR_NOW      DL_NOW
12632 #        else
12633 #          define LT_DLLAZY_OR_NOW      0
12634 #        endif
12635 #      endif
12636 #    endif
12637 #  endif
12638 #endif
12639
12640 #ifdef __cplusplus
12641 extern "C" void exit (int);
12642 #endif
12643
12644 void fnord() { int i=42;}
12645 int main ()
12646 {
12647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12648   int status = $lt_dlunknown;
12649
12650   if (self)
12651     {
12652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12654       /* dlclose (self); */
12655     }
12656
12657     exit (status);
12658 }
12659 EOF
12660   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661   (eval $ac_link) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12665     (./conftest; exit; ) 2>/dev/null
12666     lt_status=$?
12667     case x$lt_status in
12668       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12669       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12670       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12671     esac
12672   else :
12673     # compilation failed
12674     lt_cv_dlopen_self_static=no
12675   fi
12676 fi
12677 rm -fr conftest*
12678
12679
12680 fi
12681 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12682 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12683     fi
12684
12685     CPPFLAGS="$save_CPPFLAGS"
12686     LDFLAGS="$save_LDFLAGS"
12687     LIBS="$save_LIBS"
12688     ;;
12689   esac
12690
12691   case $lt_cv_dlopen_self in
12692   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12693   *) enable_dlopen_self=unknown ;;
12694   esac
12695
12696   case $lt_cv_dlopen_self_static in
12697   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12698   *) enable_dlopen_self_static=unknown ;;
12699   esac
12700 fi
12701
12702
12703 # The else clause should only fire when bootstrapping the
12704 # libtool distribution, otherwise you forgot to ship ltmain.sh
12705 # with your package, and you will get complaints that there are
12706 # no rules to generate ltmain.sh.
12707 if test -f "$ltmain"; then
12708   # See if we are running on zsh, and set the options which allow our commands through
12709   # without removal of \ escapes.
12710   if test -n "${ZSH_VERSION+set}" ; then
12711     setopt NO_GLOB_SUBST
12712   fi
12713   # Now quote all the things that may contain metacharacters while being
12714   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12715   # variables and quote the copies for generation of the libtool script.
12716   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12717     SED SHELL STRIP \
12718     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12719     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12720     deplibs_check_method reload_flag reload_cmds need_locks \
12721     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12722     lt_cv_sys_global_symbol_to_c_name_address \
12723     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12724     old_postinstall_cmds old_postuninstall_cmds \
12725     compiler_CXX \
12726     CC_CXX \
12727     LD_CXX \
12728     lt_prog_compiler_wl_CXX \
12729     lt_prog_compiler_pic_CXX \
12730     lt_prog_compiler_static_CXX \
12731     lt_prog_compiler_no_builtin_flag_CXX \
12732     export_dynamic_flag_spec_CXX \
12733     thread_safe_flag_spec_CXX \
12734     whole_archive_flag_spec_CXX \
12735     enable_shared_with_static_runtimes_CXX \
12736     old_archive_cmds_CXX \
12737     old_archive_from_new_cmds_CXX \
12738     predep_objects_CXX \
12739     postdep_objects_CXX \
12740     predeps_CXX \
12741     postdeps_CXX \
12742     compiler_lib_search_path_CXX \
12743     archive_cmds_CXX \
12744     archive_expsym_cmds_CXX \
12745     postinstall_cmds_CXX \
12746     postuninstall_cmds_CXX \
12747     old_archive_from_expsyms_cmds_CXX \
12748     allow_undefined_flag_CXX \
12749     no_undefined_flag_CXX \
12750     export_symbols_cmds_CXX \
12751     hardcode_libdir_flag_spec_CXX \
12752     hardcode_libdir_flag_spec_ld_CXX \
12753     hardcode_libdir_separator_CXX \
12754     hardcode_automatic_CXX \
12755     module_cmds_CXX \
12756     module_expsym_cmds_CXX \
12757     lt_cv_prog_compiler_c_o_CXX \
12758     exclude_expsyms_CXX \
12759     include_expsyms_CXX; do
12760
12761     case $var in
12762     old_archive_cmds_CXX | \
12763     old_archive_from_new_cmds_CXX | \
12764     archive_cmds_CXX | \
12765     archive_expsym_cmds_CXX | \
12766     module_cmds_CXX | \
12767     module_expsym_cmds_CXX | \
12768     old_archive_from_expsyms_cmds_CXX | \
12769     export_symbols_cmds_CXX | \
12770     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12771     postinstall_cmds | postuninstall_cmds | \
12772     old_postinstall_cmds | old_postuninstall_cmds | \
12773     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12774       # Double-quote double-evaled strings.
12775       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12776       ;;
12777     *)
12778       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12779       ;;
12780     esac
12781   done
12782
12783   case $lt_echo in
12784   *'\$0 --fallback-echo"')
12785     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12786     ;;
12787   esac
12788
12789 cfgfile="$ofile"
12790
12791   cat <<__EOF__ >> "$cfgfile"
12792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12793
12794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12795
12796 # Shell to use when invoking shell scripts.
12797 SHELL=$lt_SHELL
12798
12799 # Whether or not to build shared libraries.
12800 build_libtool_libs=$enable_shared
12801
12802 # Whether or not to build static libraries.
12803 build_old_libs=$enable_static
12804
12805 # Whether or not to add -lc for building shared libraries.
12806 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12807
12808 # Whether or not to disallow shared libs when runtime libs are static
12809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12810
12811 # Whether or not to optimize for fast installation.
12812 fast_install=$enable_fast_install
12813
12814 # The host system.
12815 host_alias=$host_alias
12816 host=$host
12817
12818 # An echo program that does not interpret backslashes.
12819 echo=$lt_echo
12820
12821 # The archiver.
12822 AR=$lt_AR
12823 AR_FLAGS=$lt_AR_FLAGS
12824
12825 # A C compiler.
12826 LTCC=$lt_LTCC
12827
12828 # A language-specific compiler.
12829 CC=$lt_compiler_CXX
12830
12831 # Is the compiler the GNU C compiler?
12832 with_gcc=$GCC_CXX
12833
12834 # An ERE matcher.
12835 EGREP=$lt_EGREP
12836
12837 # The linker used to build libraries.
12838 LD=$lt_LD_CXX
12839
12840 # Whether we need hard or soft links.
12841 LN_S=$lt_LN_S
12842
12843 # A BSD-compatible nm program.
12844 NM=$lt_NM
12845
12846 # A symbol stripping program
12847 STRIP=$lt_STRIP
12848
12849 # Used to examine libraries when file_magic_cmd begins "file"
12850 MAGIC_CMD=$MAGIC_CMD
12851
12852 # Used on cygwin: DLL creation program.
12853 DLLTOOL="$DLLTOOL"
12854
12855 # Used on cygwin: object dumper.
12856 OBJDUMP="$OBJDUMP"
12857
12858 # Used on cygwin: assembler.
12859 AS="$AS"
12860
12861 # The name of the directory that contains temporary libtool files.
12862 objdir=$objdir
12863
12864 # How to create reloadable object files.
12865 reload_flag=$lt_reload_flag
12866 reload_cmds=$lt_reload_cmds
12867
12868 # How to pass a linker flag through the compiler.
12869 wl=$lt_lt_prog_compiler_wl_CXX
12870
12871 # Object file suffix (normally "o").
12872 objext="$ac_objext"
12873
12874 # Old archive suffix (normally "a").
12875 libext="$libext"
12876
12877 # Shared library suffix (normally ".so").
12878 shrext_cmds='$shrext_cmds'
12879
12880 # Executable file suffix (normally "").
12881 exeext="$exeext"
12882
12883 # Additional compiler flags for building library objects.
12884 pic_flag=$lt_lt_prog_compiler_pic_CXX
12885 pic_mode=$pic_mode
12886
12887 # What is the maximum length of a command?
12888 max_cmd_len=$lt_cv_sys_max_cmd_len
12889
12890 # Does compiler simultaneously support -c and -o options?
12891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12892
12893 # Must we lock files when doing compilation ?
12894 need_locks=$lt_need_locks
12895
12896 # Do we need the lib prefix for modules?
12897 need_lib_prefix=$need_lib_prefix
12898
12899 # Do we need a version for libraries?
12900 need_version=$need_version
12901
12902 # Whether dlopen is supported.
12903 dlopen_support=$enable_dlopen
12904
12905 # Whether dlopen of programs is supported.
12906 dlopen_self=$enable_dlopen_self
12907
12908 # Whether dlopen of statically linked programs is supported.
12909 dlopen_self_static=$enable_dlopen_self_static
12910
12911 # Compiler flag to prevent dynamic linking.
12912 link_static_flag=$lt_lt_prog_compiler_static_CXX
12913
12914 # Compiler flag to turn off builtin functions.
12915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12916
12917 # Compiler flag to allow reflexive dlopens.
12918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12919
12920 # Compiler flag to generate shared objects directly from archives.
12921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12922
12923 # Compiler flag to generate thread-safe objects.
12924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12925
12926 # Library versioning type.
12927 version_type=$version_type
12928
12929 # Format of library name prefix.
12930 libname_spec=$lt_libname_spec
12931
12932 # List of archive names.  First name is the real one, the rest are links.
12933 # The last name is the one that the linker finds with -lNAME.
12934 library_names_spec=$lt_library_names_spec
12935
12936 # The coded name of the library, if different from the real name.
12937 soname_spec=$lt_soname_spec
12938
12939 # Commands used to build and install an old-style archive.
12940 RANLIB=$lt_RANLIB
12941 old_archive_cmds=$lt_old_archive_cmds_CXX
12942 old_postinstall_cmds=$lt_old_postinstall_cmds
12943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12944
12945 # Create an old-style archive from a shared archive.
12946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12947
12948 # Create a temporary old-style archive to link instead of a shared archive.
12949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12950
12951 # Commands used to build and install a shared archive.
12952 archive_cmds=$lt_archive_cmds_CXX
12953 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12954 postinstall_cmds=$lt_postinstall_cmds
12955 postuninstall_cmds=$lt_postuninstall_cmds
12956
12957 # Commands used to build a loadable module (assumed same as above if empty)
12958 module_cmds=$lt_module_cmds_CXX
12959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12960
12961 # Commands to strip libraries.
12962 old_striplib=$lt_old_striplib
12963 striplib=$lt_striplib
12964
12965 # Dependencies to place before the objects being linked to create a
12966 # shared library.
12967 predep_objects=$lt_predep_objects_CXX
12968
12969 # Dependencies to place after the objects being linked to create a
12970 # shared library.
12971 postdep_objects=$lt_postdep_objects_CXX
12972
12973 # Dependencies to place before the objects being linked to create a
12974 # shared library.
12975 predeps=$lt_predeps_CXX
12976
12977 # Dependencies to place after the objects being linked to create a
12978 # shared library.
12979 postdeps=$lt_postdeps_CXX
12980
12981 # The library search path used internally by the compiler when linking
12982 # a shared library.
12983 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12984
12985 # Method to check whether dependent libraries are shared objects.
12986 deplibs_check_method=$lt_deplibs_check_method
12987
12988 # Command to use when deplibs_check_method == file_magic.
12989 file_magic_cmd=$lt_file_magic_cmd
12990
12991 # Flag that allows shared libraries with undefined symbols to be built.
12992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12993
12994 # Flag that forces no undefined symbols.
12995 no_undefined_flag=$lt_no_undefined_flag_CXX
12996
12997 # Commands used to finish a libtool library installation in a directory.
12998 finish_cmds=$lt_finish_cmds
12999
13000 # Same as above, but a single script fragment to be evaled but not shown.
13001 finish_eval=$lt_finish_eval
13002
13003 # Take the output of nm and produce a listing of raw symbols and C names.
13004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13005
13006 # Transform the output of nm in a proper C declaration
13007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13008
13009 # Transform the output of nm in a C name address pair
13010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13011
13012 # This is the shared library runtime path variable.
13013 runpath_var=$runpath_var
13014
13015 # This is the shared library path variable.
13016 shlibpath_var=$shlibpath_var
13017
13018 # Is shlibpath searched before the hard-coded library search path?
13019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13020
13021 # How to hardcode a shared library path into an executable.
13022 hardcode_action=$hardcode_action_CXX
13023
13024 # Whether we should hardcode library paths into libraries.
13025 hardcode_into_libs=$hardcode_into_libs
13026
13027 # Flag to hardcode \$libdir into a binary during linking.
13028 # This must work even if \$libdir does not exist.
13029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13030
13031 # If ld is used when linking, flag to hardcode \$libdir into
13032 # a binary during linking. This must work even if \$libdir does
13033 # not exist.
13034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13035
13036 # Whether we need a single -rpath flag with a separated argument.
13037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13038
13039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13040 # resulting binary.
13041 hardcode_direct=$hardcode_direct_CXX
13042
13043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13044 # resulting binary.
13045 hardcode_minus_L=$hardcode_minus_L_CXX
13046
13047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13048 # the resulting binary.
13049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13050
13051 # Set to yes if building a shared library automatically hardcodes DIR into the library
13052 # and all subsequent libraries and executables linked against it.
13053 hardcode_automatic=$hardcode_automatic_CXX
13054
13055 # Variables whose values should be saved in libtool wrapper scripts and
13056 # restored at relink time.
13057 variables_saved_for_relink="$variables_saved_for_relink"
13058
13059 # Whether libtool must link a program against all its dependency libraries.
13060 link_all_deplibs=$link_all_deplibs_CXX
13061
13062 # Compile-time system search path for libraries
13063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13064
13065 # Run-time system search path for libraries
13066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13067
13068 # Fix the shell variable \$srcfile for the compiler.
13069 fix_srcfile_path="$fix_srcfile_path_CXX"
13070
13071 # Set to yes if exported symbols are required.
13072 always_export_symbols=$always_export_symbols_CXX
13073
13074 # The commands to list exported symbols.
13075 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13076
13077 # The commands to extract the exported symbol list from a shared archive.
13078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13079
13080 # Symbols that should not be listed in the preloaded symbols.
13081 exclude_expsyms=$lt_exclude_expsyms_CXX
13082
13083 # Symbols that must always be exported.
13084 include_expsyms=$lt_include_expsyms_CXX
13085
13086 # ### END LIBTOOL TAG CONFIG: $tagname
13087
13088 __EOF__
13089
13090
13091 else
13092   # If there is no Makefile yet, we rely on a make rule to execute
13093   # `config.status --recheck' to rerun these tests and create the
13094   # libtool script then.
13095   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13096   if test -f "$ltmain_in"; then
13097     test -f Makefile && make "$ltmain"
13098   fi
13099 fi
13100
13101
13102 ac_ext=c
13103 ac_cpp='$CPP $CPPFLAGS'
13104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13107
13108 CC=$lt_save_CC
13109 LDCXX=$LD
13110 LD=$lt_save_LD
13111 GCC=$lt_save_GCC
13112 with_gnu_ldcxx=$with_gnu_ld
13113 with_gnu_ld=$lt_save_with_gnu_ld
13114 lt_cv_path_LDCXX=$lt_cv_path_LD
13115 lt_cv_path_LD=$lt_save_path_LD
13116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13118
13119         else
13120           tagname=""
13121         fi
13122         ;;
13123
13124       F77)
13125         if test -n "$F77" && test "X$F77" != "Xno"; then
13126
13127 ac_ext=f
13128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13131
13132
13133 archive_cmds_need_lc_F77=no
13134 allow_undefined_flag_F77=
13135 always_export_symbols_F77=no
13136 archive_expsym_cmds_F77=
13137 export_dynamic_flag_spec_F77=
13138 hardcode_direct_F77=no
13139 hardcode_libdir_flag_spec_F77=
13140 hardcode_libdir_flag_spec_ld_F77=
13141 hardcode_libdir_separator_F77=
13142 hardcode_minus_L_F77=no
13143 hardcode_automatic_F77=no
13144 module_cmds_F77=
13145 module_expsym_cmds_F77=
13146 link_all_deplibs_F77=unknown
13147 old_archive_cmds_F77=$old_archive_cmds
13148 no_undefined_flag_F77=
13149 whole_archive_flag_spec_F77=
13150 enable_shared_with_static_runtimes_F77=no
13151
13152 # Source file extension for f77 test sources.
13153 ac_ext=f
13154
13155 # Object file extension for compiled f77 test sources.
13156 objext=o
13157 objext_F77=$objext
13158
13159 # Code to be used in simple compile tests
13160 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13161
13162 # Code to be used in simple link tests
13163 lt_simple_link_test_code="      program t\n      end\n"
13164
13165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13166
13167 # If no C compiler was specified, use CC.
13168 LTCC=${LTCC-"$CC"}
13169
13170 # Allow CC to be a program name with arguments.
13171 compiler=$CC
13172
13173
13174 # Allow CC to be a program name with arguments.
13175 lt_save_CC="$CC"
13176 CC=${F77-"f77"}
13177 compiler=$CC
13178 compiler_F77=$CC
13179 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13180
13181 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13182 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13183 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13184 echo "${ECHO_T}$can_build_shared" >&6
13185
13186 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13187 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13188 test "$can_build_shared" = "no" && enable_shared=no
13189
13190 # On AIX, shared libraries and static libraries use the same namespace, and
13191 # are all built from PIC.
13192 case "$host_os" in
13193 aix3*)
13194   test "$enable_shared" = yes && enable_static=no
13195   if test -n "$RANLIB"; then
13196     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13197     postinstall_cmds='$RANLIB $lib'
13198   fi
13199   ;;
13200 aix4* | aix5*)
13201   test "$enable_shared" = yes && enable_static=no
13202   ;;
13203 esac
13204 echo "$as_me:$LINENO: result: $enable_shared" >&5
13205 echo "${ECHO_T}$enable_shared" >&6
13206
13207 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13208 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13209 # Make sure either enable_shared or enable_static is yes.
13210 test "$enable_shared" = yes || enable_static=yes
13211 echo "$as_me:$LINENO: result: $enable_static" >&5
13212 echo "${ECHO_T}$enable_static" >&6
13213
13214 test "$ld_shlibs_F77" = no && can_build_shared=no
13215
13216 GCC_F77="$G77"
13217 LD_F77="$LD"
13218
13219 lt_prog_compiler_wl_F77=
13220 lt_prog_compiler_pic_F77=
13221 lt_prog_compiler_static_F77=
13222
13223 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13225
13226   if test "$GCC" = yes; then
13227     lt_prog_compiler_wl_F77='-Wl,'
13228     lt_prog_compiler_static_F77='-static'
13229
13230     case $host_os in
13231       aix*)
13232       # All AIX code is PIC.
13233       if test "$host_cpu" = ia64; then
13234         # AIX 5 now supports IA64 processor
13235         lt_prog_compiler_static_F77='-Bstatic'
13236       fi
13237       ;;
13238
13239     amigaos*)
13240       # FIXME: we need at least 68020 code to build shared libraries, but
13241       # adding the `-m68020' flag to GCC prevents building anything better,
13242       # like `-m68040'.
13243       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13244       ;;
13245
13246     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13247       # PIC is the default for these OSes.
13248       ;;
13249
13250     mingw* | pw32* | os2*)
13251       # This hack is so that the source file can tell whether it is being
13252       # built for inclusion in a dll (and should export symbols for example).
13253       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13254       ;;
13255
13256     darwin* | rhapsody*)
13257       # PIC is the default on this platform
13258       # Common symbols not allowed in MH_DYLIB files
13259       lt_prog_compiler_pic_F77='-fno-common'
13260       ;;
13261
13262     msdosdjgpp*)
13263       # Just because we use GCC doesn't mean we suddenly get shared libraries
13264       # on systems that don't support them.
13265       lt_prog_compiler_can_build_shared_F77=no
13266       enable_shared=no
13267       ;;
13268
13269     sysv4*MP*)
13270       if test -d /usr/nec; then
13271         lt_prog_compiler_pic_F77=-Kconform_pic
13272       fi
13273       ;;
13274
13275     hpux*)
13276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13277       # not for PA HP-UX.
13278       case "$host_cpu" in
13279       hppa*64*|ia64*)
13280         # +Z the default
13281         ;;
13282       *)
13283         lt_prog_compiler_pic_F77='-fPIC'
13284         ;;
13285       esac
13286       ;;
13287
13288     *)
13289       lt_prog_compiler_pic_F77='-fPIC'
13290       ;;
13291     esac
13292   else
13293     # PORTME Check for flag to pass linker flags through the system compiler.
13294     case $host_os in
13295     aix*)
13296       lt_prog_compiler_wl_F77='-Wl,'
13297       if test "$host_cpu" = ia64; then
13298         # AIX 5 now supports IA64 processor
13299         lt_prog_compiler_static_F77='-Bstatic'
13300       else
13301         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13302       fi
13303       ;;
13304
13305     mingw* | pw32* | os2*)
13306       # This hack is so that the source file can tell whether it is being
13307       # built for inclusion in a dll (and should export symbols for example).
13308       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13309       ;;
13310
13311     hpux9* | hpux10* | hpux11*)
13312       lt_prog_compiler_wl_F77='-Wl,'
13313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13314       # not for PA HP-UX.
13315       case "$host_cpu" in
13316       hppa*64*|ia64*)
13317         # +Z the default
13318         ;;
13319       *)
13320         lt_prog_compiler_pic_F77='+Z'
13321         ;;
13322       esac
13323       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13324       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13325       ;;
13326
13327     irix5* | irix6* | nonstopux*)
13328       lt_prog_compiler_wl_F77='-Wl,'
13329       # PIC (with -KPIC) is the default.
13330       lt_prog_compiler_static_F77='-non_shared'
13331       ;;
13332
13333     newsos6)
13334       lt_prog_compiler_pic_F77='-KPIC'
13335       lt_prog_compiler_static_F77='-Bstatic'
13336       ;;
13337
13338     linux*)
13339       case $CC in
13340       icc* | ecc*)
13341         lt_prog_compiler_wl_F77='-Wl,'
13342         lt_prog_compiler_pic_F77='-KPIC'
13343         lt_prog_compiler_static_F77='-static'
13344         ;;
13345       ccc*)
13346         lt_prog_compiler_wl_F77='-Wl,'
13347         # All Alpha code is PIC.
13348         lt_prog_compiler_static_F77='-non_shared'
13349         ;;
13350       esac
13351       ;;
13352
13353     osf3* | osf4* | osf5*)
13354       lt_prog_compiler_wl_F77='-Wl,'
13355       # All OSF/1 code is PIC.
13356       lt_prog_compiler_static_F77='-non_shared'
13357       ;;
13358
13359     sco3.2v5*)
13360       lt_prog_compiler_pic_F77='-Kpic'
13361       lt_prog_compiler_static_F77='-dn'
13362       ;;
13363
13364     solaris*)
13365       lt_prog_compiler_wl_F77='-Wl,'
13366       lt_prog_compiler_pic_F77='-KPIC'
13367       lt_prog_compiler_static_F77='-Bstatic'
13368       ;;
13369
13370     sunos4*)
13371       lt_prog_compiler_wl_F77='-Qoption ld '
13372       lt_prog_compiler_pic_F77='-PIC'
13373       lt_prog_compiler_static_F77='-Bstatic'
13374       ;;
13375
13376     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13377       lt_prog_compiler_wl_F77='-Wl,'
13378       lt_prog_compiler_pic_F77='-KPIC'
13379       lt_prog_compiler_static_F77='-Bstatic'
13380       ;;
13381
13382     sysv4*MP*)
13383       if test -d /usr/nec ;then
13384         lt_prog_compiler_pic_F77='-Kconform_pic'
13385         lt_prog_compiler_static_F77='-Bstatic'
13386       fi
13387       ;;
13388
13389     uts4*)
13390       lt_prog_compiler_pic_F77='-pic'
13391       lt_prog_compiler_static_F77='-Bstatic'
13392       ;;
13393
13394     *)
13395       lt_prog_compiler_can_build_shared_F77=no
13396       ;;
13397     esac
13398   fi
13399
13400 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13401 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13402
13403 #
13404 # Check to make sure the PIC flag actually works.
13405 #
13406 if test -n "$lt_prog_compiler_pic_F77"; then
13407
13408 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13410 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13411   echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413   lt_prog_compiler_pic_works_F77=no
13414   ac_outfile=conftest.$ac_objext
13415    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13416    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13417    # Insert the option either (1) after the last *FLAGS variable, or
13418    # (2) before a word containing "conftest.", or (3) at the end.
13419    # Note that $ac_compile itself does not contain backslashes and begins
13420    # with a dollar sign (not a hyphen), so the echo should work correctly.
13421    # The option is referenced via a variable to avoid confusing sed.
13422    lt_compile=`echo "$ac_compile" | $SED \
13423    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13425    -e 's:$: $lt_compiler_flag:'`
13426    (eval echo "\"\$as_me:13426: $lt_compile\"" >&5)
13427    (eval "$lt_compile" 2>conftest.err)
13428    ac_status=$?
13429    cat conftest.err >&5
13430    echo "$as_me:13430: \$? = $ac_status" >&5
13431    if (exit $ac_status) && test -s "$ac_outfile"; then
13432      # The compiler can only warn and ignore the option if not recognized
13433      # So say no if there are warnings
13434      if test ! -s conftest.err; then
13435        lt_prog_compiler_pic_works_F77=yes
13436      fi
13437    fi
13438    $rm conftest*
13439
13440 fi
13441 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13442 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13443
13444 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13445     case $lt_prog_compiler_pic_F77 in
13446      "" | " "*) ;;
13447      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13448      esac
13449 else
13450     lt_prog_compiler_pic_F77=
13451      lt_prog_compiler_can_build_shared_F77=no
13452 fi
13453
13454 fi
13455 case "$host_os" in
13456   # For platforms which do not support PIC, -DPIC is meaningless:
13457   *djgpp*)
13458     lt_prog_compiler_pic_F77=
13459     ;;
13460   *)
13461     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13462     ;;
13463 esac
13464
13465 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13467 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13468   echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470   lt_cv_prog_compiler_c_o_F77=no
13471    $rm -r conftest 2>/dev/null
13472    mkdir conftest
13473    cd conftest
13474    mkdir out
13475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13476
13477    lt_compiler_flag="-o out/conftest2.$ac_objext"
13478    # Insert the option either (1) after the last *FLAGS variable, or
13479    # (2) before a word containing "conftest.", or (3) at the end.
13480    # Note that $ac_compile itself does not contain backslashes and begins
13481    # with a dollar sign (not a hyphen), so the echo should work correctly.
13482    lt_compile=`echo "$ac_compile" | $SED \
13483    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13485    -e 's:$: $lt_compiler_flag:'`
13486    (eval echo "\"\$as_me:13486: $lt_compile\"" >&5)
13487    (eval "$lt_compile" 2>out/conftest.err)
13488    ac_status=$?
13489    cat out/conftest.err >&5
13490    echo "$as_me:13490: \$? = $ac_status" >&5
13491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13492    then
13493      # The compiler can only warn and ignore the option if not recognized
13494      # So say no if there are warnings
13495      if test ! -s out/conftest.err; then
13496        lt_cv_prog_compiler_c_o_F77=yes
13497      fi
13498    fi
13499    chmod u+w .
13500    $rm conftest*
13501    # SGI C++ compiler will create directory out/ii_files/ for
13502    # template instantiation
13503    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13504    $rm out/* && rmdir out
13505    cd ..
13506    rmdir conftest
13507    $rm conftest*
13508
13509 fi
13510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13511 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13512
13513
13514 hard_links="nottested"
13515 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13516   # do not overwrite the value of need_locks provided by the user
13517   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13518 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13519   hard_links=yes
13520   $rm conftest*
13521   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13522   touch conftest.a
13523   ln conftest.a conftest.b 2>&5 || hard_links=no
13524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525   echo "$as_me:$LINENO: result: $hard_links" >&5
13526 echo "${ECHO_T}$hard_links" >&6
13527   if test "$hard_links" = no; then
13528     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13529 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13530     need_locks=warn
13531   fi
13532 else
13533   need_locks=no
13534 fi
13535
13536 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13537 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13538
13539   runpath_var=
13540   allow_undefined_flag_F77=
13541   enable_shared_with_static_runtimes_F77=no
13542   archive_cmds_F77=
13543   archive_expsym_cmds_F77=
13544   old_archive_From_new_cmds_F77=
13545   old_archive_from_expsyms_cmds_F77=
13546   export_dynamic_flag_spec_F77=
13547   whole_archive_flag_spec_F77=
13548   thread_safe_flag_spec_F77=
13549   hardcode_libdir_flag_spec_F77=
13550   hardcode_libdir_flag_spec_ld_F77=
13551   hardcode_libdir_separator_F77=
13552   hardcode_direct_F77=no
13553   hardcode_minus_L_F77=no
13554   hardcode_shlibpath_var_F77=unsupported
13555   link_all_deplibs_F77=unknown
13556   hardcode_automatic_F77=no
13557   module_cmds_F77=
13558   module_expsym_cmds_F77=
13559   always_export_symbols_F77=no
13560   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13561   # include_expsyms should be a list of space-separated symbols to be *always*
13562   # included in the symbol list
13563   include_expsyms_F77=
13564   # exclude_expsyms can be an extended regexp of symbols to exclude
13565   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13566   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13567   # as well as any symbol that contains `d'.
13568   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13569   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13570   # platforms (ab)use it in PIC code, but their linkers get confused if
13571   # the symbol is explicitly referenced.  Since portable code cannot
13572   # rely on this symbol name, it's probably fine to never include it in
13573   # preloaded symbol tables.
13574   extract_expsyms_cmds=
13575
13576   case $host_os in
13577   cygwin* | mingw* | pw32*)
13578     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13579     # When not using gcc, we currently assume that we are using
13580     # Microsoft Visual C++.
13581     if test "$GCC" != yes; then
13582       with_gnu_ld=no
13583     fi
13584     ;;
13585   openbsd*)
13586     with_gnu_ld=no
13587     ;;
13588   esac
13589
13590   ld_shlibs_F77=yes
13591   if test "$with_gnu_ld" = yes; then
13592     # If archive_cmds runs LD, not CC, wlarc should be empty
13593     wlarc='${wl}'
13594
13595     # See if GNU ld supports shared libraries.
13596     case $host_os in
13597     aix3* | aix4* | aix5*)
13598       # On AIX/PPC, the GNU linker is very broken
13599       if test "$host_cpu" != ia64; then
13600         ld_shlibs_F77=no
13601         cat <<EOF 1>&2
13602
13603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13604 *** to be unable to reliably create shared libraries on AIX.
13605 *** Therefore, libtool is disabling shared libraries support.  If you
13606 *** really care for shared libraries, you may want to modify your PATH
13607 *** so that a non-GNU linker is found, and then restart.
13608
13609 EOF
13610       fi
13611       ;;
13612
13613     amigaos*)
13614       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)'
13615       hardcode_libdir_flag_spec_F77='-L$libdir'
13616       hardcode_minus_L_F77=yes
13617
13618       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13619       # that the semantics of dynamic libraries on AmigaOS, at least up
13620       # to version 4, is to share data among multiple programs linked
13621       # with the same dynamic library.  Since this doesn't match the
13622       # behavior of shared libraries on other platforms, we can't use
13623       # them.
13624       ld_shlibs_F77=no
13625       ;;
13626
13627     beos*)
13628       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13629         allow_undefined_flag_F77=unsupported
13630         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13631         # support --undefined.  This deserves some investigation.  FIXME
13632         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633       else
13634         ld_shlibs_F77=no
13635       fi
13636       ;;
13637
13638     cygwin* | mingw* | pw32*)
13639       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13640       # as there is no search path for DLLs.
13641       hardcode_libdir_flag_spec_F77='-L$libdir'
13642       allow_undefined_flag_F77=unsupported
13643       always_export_symbols_F77=no
13644       enable_shared_with_static_runtimes_F77=yes
13645       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13646
13647       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13648         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13649         # If the export-symbols file already is a .def file (1st line
13650         # is EXPORTS), use it as is; otherwise, prepend...
13651         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13652           cp $export_symbols $output_objdir/$soname.def;
13653         else
13654           echo EXPORTS > $output_objdir/$soname.def;
13655           cat $export_symbols >> $output_objdir/$soname.def;
13656         fi~
13657         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13658       else
13659         ld_shlibs=no
13660       fi
13661       ;;
13662
13663     netbsd*)
13664       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13665         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13666         wlarc=
13667       else
13668         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13669         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13670       fi
13671       ;;
13672
13673     solaris* | sysv5*)
13674       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13675         ld_shlibs_F77=no
13676         cat <<EOF 1>&2
13677
13678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13679 *** create shared libraries on Solaris systems.  Therefore, libtool
13680 *** is disabling shared libraries support.  We urge you to upgrade GNU
13681 *** binutils to release 2.9.1 or newer.  Another option is to modify
13682 *** your PATH or compiler configuration so that the native linker is
13683 *** used, and then restart.
13684
13685 EOF
13686       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13689       else
13690         ld_shlibs_F77=no
13691       fi
13692       ;;
13693
13694     sunos4*)
13695       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13696       wlarc=
13697       hardcode_direct_F77=yes
13698       hardcode_shlibpath_var_F77=no
13699       ;;
13700
13701   linux*)
13702     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13703         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13704         archive_cmds_F77="$tmp_archive_cmds"
13705       supports_anon_versioning=no
13706       case `$LD -v 2>/dev/null` in
13707         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13708         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13709         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13710         *\ 2.11.*) ;; # other 2.11 versions
13711         *) supports_anon_versioning=yes ;;
13712       esac
13713       if test $supports_anon_versioning = yes; then
13714         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13716 $echo "local: *; };" >> $output_objdir/$libname.ver~
13717         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13718       else
13719         archive_expsym_cmds_F77="$tmp_archive_cmds"
13720       fi
13721     else
13722       ld_shlibs_F77=no
13723     fi
13724     ;;
13725
13726     *)
13727       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13728         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730       else
13731         ld_shlibs_F77=no
13732       fi
13733       ;;
13734     esac
13735
13736     if test "$ld_shlibs_F77" = yes; then
13737       runpath_var=LD_RUN_PATH
13738       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13739       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13740       # ancient GNU ld didn't support --whole-archive et. al.
13741       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13742         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13743       else
13744         whole_archive_flag_spec_F77=
13745       fi
13746     fi
13747   else
13748     # PORTME fill in a description of your system's linker (not GNU ld)
13749     case $host_os in
13750     aix3*)
13751       allow_undefined_flag_F77=unsupported
13752       always_export_symbols_F77=yes
13753       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'
13754       # Note: this linker hardcodes the directories in LIBPATH if there
13755       # are no directories specified by -L.
13756       hardcode_minus_L_F77=yes
13757       if test "$GCC" = yes && test -z "$link_static_flag"; then
13758         # Neither direct hardcoding nor static linking is supported with a
13759         # broken collect2.
13760         hardcode_direct_F77=unsupported
13761       fi
13762       ;;
13763
13764     aix4* | aix5*)
13765       if test "$host_cpu" = ia64; then
13766         # On IA64, the linker does run time linking by default, so we don't
13767         # have to do anything special.
13768         aix_use_runtimelinking=no
13769         exp_sym_flag='-Bexport'
13770         no_entry_flag=""
13771       else
13772         # If we're using GNU nm, then we don't want the "-C" option.
13773         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13774         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13775           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'
13776         else
13777           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'
13778         fi
13779         aix_use_runtimelinking=no
13780
13781         # Test if we are trying to use run time linking or normal
13782         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13783         # need to do runtime linking.
13784         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13785           for ld_flag in $LDFLAGS; do
13786           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13787             aix_use_runtimelinking=yes
13788             break
13789           fi
13790           done
13791         esac
13792
13793         exp_sym_flag='-bexport'
13794         no_entry_flag='-bnoentry'
13795       fi
13796
13797       # When large executables or shared objects are built, AIX ld can
13798       # have problems creating the table of contents.  If linking a library
13799       # or program results in "error TOC overflow" add -mminimal-toc to
13800       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13801       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13802
13803       archive_cmds_F77=''
13804       hardcode_direct_F77=yes
13805       hardcode_libdir_separator_F77=':'
13806       link_all_deplibs_F77=yes
13807
13808       if test "$GCC" = yes; then
13809         case $host_os in aix4.012|aix4.012.*)
13810         # We only want to do this on AIX 4.2 and lower, the check
13811         # below for broken collect2 doesn't work under 4.3+
13812           collect2name=`${CC} -print-prog-name=collect2`
13813           if test -f "$collect2name" && \
13814            strings "$collect2name" | grep resolve_lib_name >/dev/null
13815           then
13816           # We have reworked collect2
13817           hardcode_direct_F77=yes
13818           else
13819           # We have old collect2
13820           hardcode_direct_F77=unsupported
13821           # It fails to find uninstalled libraries when the uninstalled
13822           # path is not listed in the libpath.  Setting hardcode_minus_L
13823           # to unsupported forces relinking
13824           hardcode_minus_L_F77=yes
13825           hardcode_libdir_flag_spec_F77='-L$libdir'
13826           hardcode_libdir_separator_F77=
13827           fi
13828         esac
13829         shared_flag='-shared'
13830       else
13831         # not using gcc
13832         if test "$host_cpu" = ia64; then
13833         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13834         # chokes on -Wl,-G. The following line is correct:
13835           shared_flag='-G'
13836         else
13837         if test "$aix_use_runtimelinking" = yes; then
13838             shared_flag='${wl}-G'
13839           else
13840             shared_flag='${wl}-bM:SRE'
13841         fi
13842         fi
13843       fi
13844
13845       # It seems that -bexpall does not export symbols beginning with
13846       # underscore (_), so it is better to generate a list of symbols to export.
13847       always_export_symbols_F77=yes
13848       if test "$aix_use_runtimelinking" = yes; then
13849         # Warning - without using the other runtime loading flags (-brtl),
13850         # -berok will link without error, but may produce a broken library.
13851         allow_undefined_flag_F77='-berok'
13852        # Determine the default libpath from the value encoded in an empty executable.
13853        cat >conftest.$ac_ext <<_ACEOF
13854       program main
13855
13856       end
13857 _ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860   (eval $ac_link) 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_f77_werror_flag"
13868                          || test ! -s conftest.err'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; } &&
13874          { ac_try='test -s conftest$ac_exeext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880
13881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13882 }'`
13883 # Check for a 64-bit object if we didn't find anything.
13884 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; }
13885 }'`; fi
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 fi
13891 rm -f conftest.err conftest.$ac_objext \
13892       conftest$ac_exeext conftest.$ac_ext
13893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13894
13895        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13896         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"
13897        else
13898         if test "$host_cpu" = ia64; then
13899           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13900           allow_undefined_flag_F77="-z nodefs"
13901           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"
13902         else
13903          # Determine the default libpath from the value encoded in an empty executable.
13904          cat >conftest.$ac_ext <<_ACEOF
13905       program main
13906
13907       end
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911   (eval $ac_link) 2>conftest.er1
13912   ac_status=$?
13913   grep -v '^ *+' conftest.er1 >conftest.err
13914   rm -f conftest.er1
13915   cat conftest.err >&5
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -z "$ac_f77_werror_flag"
13919                          || test ! -s conftest.err'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; } &&
13925          { ac_try='test -s conftest$ac_exeext'
13926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927   (eval $ac_try) 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; }; then
13931
13932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13933 }'`
13934 # Check for a 64-bit object if we didn't find anything.
13935 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; }
13936 }'`; fi
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 fi
13942 rm -f conftest.err conftest.$ac_objext \
13943       conftest$ac_exeext conftest.$ac_ext
13944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13945
13946          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13947           # Warning - without using the other run time loading flags,
13948           # -berok will link without error, but may produce a broken library.
13949           no_undefined_flag_F77=' ${wl}-bernotok'
13950           allow_undefined_flag_F77=' ${wl}-berok'
13951           # -bexpall does not export symbols beginning with underscore (_)
13952           always_export_symbols_F77=yes
13953           # Exported symbols can be pulled into shared objects from archives
13954           whole_archive_flag_spec_F77=' '
13955           archive_cmds_need_lc_F77=yes
13956           # This is similar to how AIX traditionally builds it's shared libraries.
13957           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'
13958         fi
13959       fi
13960       ;;
13961
13962     amigaos*)
13963       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)'
13964       hardcode_libdir_flag_spec_F77='-L$libdir'
13965       hardcode_minus_L_F77=yes
13966       # see comment about different semantics on the GNU ld section
13967       ld_shlibs_F77=no
13968       ;;
13969
13970     bsdi4*)
13971       export_dynamic_flag_spec_F77=-rdynamic
13972       ;;
13973
13974     cygwin* | mingw* | pw32*)
13975       # When not using gcc, we currently assume that we are using
13976       # Microsoft Visual C++.
13977       # hardcode_libdir_flag_spec is actually meaningless, as there is
13978       # no search path for DLLs.
13979       hardcode_libdir_flag_spec_F77=' '
13980       allow_undefined_flag_F77=unsupported
13981       # Tell ltmain to make .lib files, not .a files.
13982       libext=lib
13983       # Tell ltmain to make .dll files, not .so files.
13984       shrext_cmds=".dll"
13985       # FIXME: Setting linknames here is a bad hack.
13986       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13987       # The linker will automatically build a .lib file if we build a DLL.
13988       old_archive_From_new_cmds_F77='true'
13989       # FIXME: Should let the user specify the lib program.
13990       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13991       fix_srcfile_path='`cygpath -w "$srcfile"`'
13992       enable_shared_with_static_runtimes_F77=yes
13993       ;;
13994
13995     darwin* | rhapsody*)
13996     if test "$GXX" = yes ; then
13997       archive_cmds_need_lc_F77=no
13998       case "$host_os" in
13999       rhapsody* | darwin1.[012])
14000         allow_undefined_flag_F77='-undefined suppress'
14001         ;;
14002       *) # Darwin 1.3 on
14003       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14004         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14005       else
14006         case ${MACOSX_DEPLOYMENT_TARGET} in
14007           10.[012])
14008             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14009             ;;
14010           10.*)
14011             allow_undefined_flag_F77='-undefined dynamic_lookup'
14012             ;;
14013         esac
14014       fi
14015         ;;
14016       esac
14017         lt_int_apple_cc_single_mod=no
14018         output_verbose_link_cmd='echo'
14019         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14020           lt_int_apple_cc_single_mod=yes
14021         fi
14022         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14023           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14024         else
14025         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'
14026       fi
14027       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14028       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14029         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14030           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}'
14031         else
14032           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}'
14033         fi
14034           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}'
14035       hardcode_direct_F77=no
14036       hardcode_automatic_F77=yes
14037       hardcode_shlibpath_var_F77=unsupported
14038       whole_archive_flag_spec_F77='-all_load $convenience'
14039       link_all_deplibs_F77=yes
14040     else
14041       ld_shlibs_F77=no
14042     fi
14043       ;;
14044
14045     dgux*)
14046       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14047       hardcode_libdir_flag_spec_F77='-L$libdir'
14048       hardcode_shlibpath_var_F77=no
14049       ;;
14050
14051     freebsd1*)
14052       ld_shlibs_F77=no
14053       ;;
14054
14055     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14056     # support.  Future versions do this automatically, but an explicit c++rt0.o
14057     # does not break anything, and helps significantly (at the cost of a little
14058     # extra space).
14059     freebsd2.2*)
14060       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14061       hardcode_libdir_flag_spec_F77='-R$libdir'
14062       hardcode_direct_F77=yes
14063       hardcode_shlibpath_var_F77=no
14064       ;;
14065
14066     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14067     freebsd2*)
14068       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14069       hardcode_direct_F77=yes
14070       hardcode_minus_L_F77=yes
14071       hardcode_shlibpath_var_F77=no
14072       ;;
14073
14074     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14075     freebsd* | kfreebsd*-gnu)
14076       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14077       hardcode_libdir_flag_spec_F77='-R$libdir'
14078       hardcode_direct_F77=yes
14079       hardcode_shlibpath_var_F77=no
14080       ;;
14081
14082     hpux9*)
14083       if test "$GCC" = yes; then
14084         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'
14085       else
14086         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'
14087       fi
14088       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14089       hardcode_libdir_separator_F77=:
14090       hardcode_direct_F77=yes
14091
14092       # hardcode_minus_L: Not really in the search PATH,
14093       # but as the default location of the library.
14094       hardcode_minus_L_F77=yes
14095       export_dynamic_flag_spec_F77='${wl}-E'
14096       ;;
14097
14098     hpux10* | hpux11*)
14099       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14100         case "$host_cpu" in
14101         hppa*64*|ia64*)
14102           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14103           ;;
14104         *)
14105           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14106           ;;
14107         esac
14108       else
14109         case "$host_cpu" in
14110         hppa*64*|ia64*)
14111           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14112           ;;
14113         *)
14114           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14115           ;;
14116         esac
14117       fi
14118       if test "$with_gnu_ld" = no; then
14119         case "$host_cpu" in
14120         hppa*64*)
14121           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14122           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14123           hardcode_libdir_separator_F77=:
14124           hardcode_direct_F77=no
14125           hardcode_shlibpath_var_F77=no
14126           ;;
14127         ia64*)
14128           hardcode_libdir_flag_spec_F77='-L$libdir'
14129           hardcode_direct_F77=no
14130           hardcode_shlibpath_var_F77=no
14131
14132           # hardcode_minus_L: Not really in the search PATH,
14133           # but as the default location of the library.
14134           hardcode_minus_L_F77=yes
14135           ;;
14136         *)
14137           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14138           hardcode_libdir_separator_F77=:
14139           hardcode_direct_F77=yes
14140           export_dynamic_flag_spec_F77='${wl}-E'
14141
14142           # hardcode_minus_L: Not really in the search PATH,
14143           # but as the default location of the library.
14144           hardcode_minus_L_F77=yes
14145           ;;
14146         esac
14147       fi
14148       ;;
14149
14150     irix5* | irix6* | nonstopux*)
14151       if test "$GCC" = yes; then
14152         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'
14153       else
14154         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'
14155         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14156       fi
14157       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14158       hardcode_libdir_separator_F77=:
14159       link_all_deplibs_F77=yes
14160       ;;
14161
14162     netbsd*)
14163       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14164         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14165       else
14166         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14167       fi
14168       hardcode_libdir_flag_spec_F77='-R$libdir'
14169       hardcode_direct_F77=yes
14170       hardcode_shlibpath_var_F77=no
14171       ;;
14172
14173     newsos6)
14174       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175       hardcode_direct_F77=yes
14176       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177       hardcode_libdir_separator_F77=:
14178       hardcode_shlibpath_var_F77=no
14179       ;;
14180
14181     openbsd*)
14182       hardcode_direct_F77=yes
14183       hardcode_shlibpath_var_F77=no
14184       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14185         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14186         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14187         export_dynamic_flag_spec_F77='${wl}-E'
14188       else
14189        case $host_os in
14190          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14191            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14192            hardcode_libdir_flag_spec_F77='-R$libdir'
14193            ;;
14194          *)
14195            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14196            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14197            ;;
14198        esac
14199       fi
14200       ;;
14201
14202     os2*)
14203       hardcode_libdir_flag_spec_F77='-L$libdir'
14204       hardcode_minus_L_F77=yes
14205       allow_undefined_flag_F77=unsupported
14206       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'
14207       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14208       ;;
14209
14210     osf3*)
14211       if test "$GCC" = yes; then
14212         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14213         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'
14214       else
14215         allow_undefined_flag_F77=' -expect_unresolved \*'
14216         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'
14217       fi
14218       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14219       hardcode_libdir_separator_F77=:
14220       ;;
14221
14222     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14223       if test "$GCC" = yes; then
14224         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14225         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'
14226         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14227       else
14228         allow_undefined_flag_F77=' -expect_unresolved \*'
14229         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'
14230         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~
14231         $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'
14232
14233         # Both c and cxx compiler support -rpath directly
14234         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14235       fi
14236       hardcode_libdir_separator_F77=:
14237       ;;
14238
14239     sco3.2v5*)
14240       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241       hardcode_shlibpath_var_F77=no
14242       export_dynamic_flag_spec_F77='${wl}-Bexport'
14243       runpath_var=LD_RUN_PATH
14244       hardcode_runpath_var=yes
14245       ;;
14246
14247     solaris*)
14248       no_undefined_flag_F77=' -z text'
14249       if test "$GCC" = yes; then
14250         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14251         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14252           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14253       else
14254         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14256         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14257       fi
14258       hardcode_libdir_flag_spec_F77='-R$libdir'
14259       hardcode_shlibpath_var_F77=no
14260       case $host_os in
14261       solaris2.[0-5] | solaris2.[0-5].*) ;;
14262       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14263         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14264       esac
14265       link_all_deplibs_F77=yes
14266       ;;
14267
14268     sunos4*)
14269       if test "x$host_vendor" = xsequent; then
14270         # Use $CC to link under sequent, because it throws in some extra .o
14271         # files that make .init and .fini sections work.
14272         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14273       else
14274         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14275       fi
14276       hardcode_libdir_flag_spec_F77='-L$libdir'
14277       hardcode_direct_F77=yes
14278       hardcode_minus_L_F77=yes
14279       hardcode_shlibpath_var_F77=no
14280       ;;
14281
14282     sysv4)
14283       case $host_vendor in
14284         sni)
14285           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286           hardcode_direct_F77=yes # is this really true???
14287         ;;
14288         siemens)
14289           ## LD is ld it makes a PLAMLIB
14290           ## CC just makes a GrossModule.
14291           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292           reload_cmds_F77='$CC -r -o $output$reload_objs'
14293           hardcode_direct_F77=no
14294         ;;
14295         motorola)
14296           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14298         ;;
14299       esac
14300       runpath_var='LD_RUN_PATH'
14301       hardcode_shlibpath_var_F77=no
14302       ;;
14303
14304     sysv4.3*)
14305       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14306       hardcode_shlibpath_var_F77=no
14307       export_dynamic_flag_spec_F77='-Bexport'
14308       ;;
14309
14310     sysv4*MP*)
14311       if test -d /usr/nec; then
14312         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313         hardcode_shlibpath_var_F77=no
14314         runpath_var=LD_RUN_PATH
14315         hardcode_runpath_var=yes
14316         ld_shlibs_F77=yes
14317       fi
14318       ;;
14319
14320     sysv4.2uw2*)
14321       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14322       hardcode_direct_F77=yes
14323       hardcode_minus_L_F77=no
14324       hardcode_shlibpath_var_F77=no
14325       hardcode_runpath_var=yes
14326       runpath_var=LD_RUN_PATH
14327       ;;
14328
14329    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14330       no_undefined_flag_F77='${wl}-z ${wl}text'
14331       if test "$GCC" = yes; then
14332         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333       else
14334         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335       fi
14336       runpath_var='LD_RUN_PATH'
14337       hardcode_shlibpath_var_F77=no
14338       ;;
14339
14340     sysv5*)
14341       no_undefined_flag_F77=' -z text'
14342       # $CC -shared without GNU ld will not create a library from C++
14343       # object files and a static libstdc++, better avoid it by now
14344       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14346                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14347       hardcode_libdir_flag_spec_F77=
14348       hardcode_shlibpath_var_F77=no
14349       runpath_var='LD_RUN_PATH'
14350       ;;
14351
14352     uts4*)
14353       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14354       hardcode_libdir_flag_spec_F77='-L$libdir'
14355       hardcode_shlibpath_var_F77=no
14356       ;;
14357
14358     *)
14359       ld_shlibs_F77=no
14360       ;;
14361     esac
14362   fi
14363
14364 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14365 echo "${ECHO_T}$ld_shlibs_F77" >&6
14366 test "$ld_shlibs_F77" = no && can_build_shared=no
14367
14368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14369 if test "$GCC" = yes; then
14370   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14371 fi
14372
14373 #
14374 # Do we need to explicitly link libc?
14375 #
14376 case "x$archive_cmds_need_lc_F77" in
14377 x|xyes)
14378   # Assume -lc should be added
14379   archive_cmds_need_lc_F77=yes
14380
14381   if test "$enable_shared" = yes && test "$GCC" = yes; then
14382     case $archive_cmds_F77 in
14383     *'~'*)
14384       # FIXME: we may have to deal with multi-command sequences.
14385       ;;
14386     '$CC '*)
14387       # Test whether the compiler implicitly links with -lc since on some
14388       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14389       # to ld, don't add -lc before -lgcc.
14390       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14391 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14392       $rm conftest*
14393       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14394
14395       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396   (eval $ac_compile) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); } 2>conftest.err; then
14400         soname=conftest
14401         lib=conftest
14402         libobjs=conftest.$ac_objext
14403         deplibs=
14404         wl=$lt_prog_compiler_wl_F77
14405         compiler_flags=-v
14406         linker_flags=-v
14407         verstring=
14408         output_objdir=.
14409         libname=conftest
14410         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14411         allow_undefined_flag_F77=
14412         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14413   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }
14417         then
14418           archive_cmds_need_lc_F77=no
14419         else
14420           archive_cmds_need_lc_F77=yes
14421         fi
14422         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14423       else
14424         cat conftest.err 1>&5
14425       fi
14426       $rm conftest*
14427       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14428 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14429       ;;
14430     esac
14431   fi
14432   ;;
14433 esac
14434
14435 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14436 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14437 library_names_spec=
14438 libname_spec='lib$name'
14439 soname_spec=
14440 shrext_cmds=".so"
14441 postinstall_cmds=
14442 postuninstall_cmds=
14443 finish_cmds=
14444 finish_eval=
14445 shlibpath_var=
14446 shlibpath_overrides_runpath=unknown
14447 version_type=none
14448 dynamic_linker="$host_os ld.so"
14449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14450 if test "$GCC" = yes; then
14451   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14452   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14453     # if the path contains ";" then we assume it to be the separator
14454     # otherwise default to the standard path separator (i.e. ":") - it is
14455     # assumed that no part of a normal pathname contains ";" but that should
14456     # okay in the real world where ";" in dirpaths is itself problematic.
14457     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14458   else
14459     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14460   fi
14461 else
14462   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14463 fi
14464 need_lib_prefix=unknown
14465 hardcode_into_libs=no
14466
14467 # when you set need_version to no, make sure it does not cause -set_version
14468 # flags to be left without arguments
14469 need_version=unknown
14470
14471 case $host_os in
14472 aix3*)
14473   version_type=linux
14474   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14475   shlibpath_var=LIBPATH
14476
14477   # AIX 3 has no versioning support, so we append a major version to the name.
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   ;;
14480
14481 aix4* | aix5*)
14482   version_type=linux
14483   need_lib_prefix=no
14484   need_version=no
14485   hardcode_into_libs=yes
14486   if test "$host_cpu" = ia64; then
14487     # AIX 5 supports IA64
14488     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14489     shlibpath_var=LD_LIBRARY_PATH
14490   else
14491     # With GCC up to 2.95.x, collect2 would create an import file
14492     # for dependence libraries.  The import file would start with
14493     # the line `#! .'.  This would cause the generated library to
14494     # depend on `.', always an invalid library.  This was fixed in
14495     # development snapshots of GCC prior to 3.0.
14496     case $host_os in
14497       aix4 | aix4.[01] | aix4.[01].*)
14498       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14499            echo ' yes '
14500            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14501         :
14502       else
14503         can_build_shared=no
14504       fi
14505       ;;
14506     esac
14507     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14508     # soname into executable. Probably we can add versioning support to
14509     # collect2, so additional links can be useful in future.
14510     if test "$aix_use_runtimelinking" = yes; then
14511       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14512       # instead of lib<name>.a to let people know that these are not
14513       # typical AIX shared libraries.
14514       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515     else
14516       # We preserve .a as extension for shared libraries through AIX4.2
14517       # and later when we are not doing run time linking.
14518       library_names_spec='${libname}${release}.a $libname.a'
14519       soname_spec='${libname}${release}${shared_ext}$major'
14520     fi
14521     shlibpath_var=LIBPATH
14522   fi
14523   ;;
14524
14525 amigaos*)
14526   library_names_spec='$libname.ixlibrary $libname.a'
14527   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14528   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'
14529   ;;
14530
14531 beos*)
14532   library_names_spec='${libname}${shared_ext}'
14533   dynamic_linker="$host_os ld.so"
14534   shlibpath_var=LIBRARY_PATH
14535   ;;
14536
14537 bsdi4*)
14538   version_type=linux
14539   need_version=no
14540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541   soname_spec='${libname}${release}${shared_ext}$major'
14542   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14545   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14546   # the default ld.so.conf also contains /usr/contrib/lib and
14547   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14548   # libtool to hard-code these into programs
14549   ;;
14550
14551 cygwin* | mingw* | pw32*)
14552   version_type=windows
14553   shrext_cmds=".dll"
14554   need_version=no
14555   need_lib_prefix=no
14556
14557   case $GCC,$host_os in
14558   yes,cygwin* | yes,mingw* | yes,pw32*)
14559     library_names_spec='$libname.dll.a'
14560     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14561     postinstall_cmds='base_file=`basename \${file}`~
14562       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14563       dldir=$destdir/`dirname \$dlpath`~
14564       test -d \$dldir || mkdir -p \$dldir~
14565       $install_prog $dir/$dlname \$dldir/$dlname'
14566     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14567       dlpath=$dir/\$dldll~
14568        $rm \$dlpath'
14569     shlibpath_overrides_runpath=yes
14570
14571     case $host_os in
14572     cygwin*)
14573       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14574       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14576       ;;
14577     mingw*)
14578       # MinGW DLLs use traditional 'lib' prefix
14579       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14581       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14582         # It is most probably a Windows format PATH printed by
14583         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14584         # path with ; separators, and with drive letters. We can handle the
14585         # drive letters (cygwin fileutils understands them), so leave them,
14586         # especially as we might pass files found there to a mingw objdump,
14587         # which wouldn't understand a cygwinified path. Ahh.
14588         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14589       else
14590         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14591       fi
14592       ;;
14593     pw32*)
14594       # pw32 DLLs use 'pw' prefix rather than 'lib'
14595       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14596       ;;
14597     esac
14598     ;;
14599
14600   *)
14601     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14602     ;;
14603   esac
14604   dynamic_linker='Win32 ld.exe'
14605   # FIXME: first we should search . and the directory the executable is in
14606   shlibpath_var=PATH
14607   ;;
14608
14609 darwin* | rhapsody*)
14610   dynamic_linker="$host_os dyld"
14611   version_type=darwin
14612   need_lib_prefix=no
14613   need_version=no
14614   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14615   soname_spec='${libname}${release}${major}$shared_ext'
14616   shlibpath_overrides_runpath=yes
14617   shlibpath_var=DYLD_LIBRARY_PATH
14618   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14619   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14620   if test "$GCC" = yes; then
14621     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"`
14622   else
14623     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14624   fi
14625   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14626   ;;
14627
14628 dgux*)
14629   version_type=linux
14630   need_lib_prefix=no
14631   need_version=no
14632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14633   soname_spec='${libname}${release}${shared_ext}$major'
14634   shlibpath_var=LD_LIBRARY_PATH
14635   ;;
14636
14637 freebsd1*)
14638   dynamic_linker=no
14639   ;;
14640
14641 kfreebsd*-gnu)
14642   version_type=linux
14643   need_lib_prefix=no
14644   need_version=no
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14646   soname_spec='${libname}${release}${shared_ext}$major'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   shlibpath_overrides_runpath=no
14649   hardcode_into_libs=yes
14650   dynamic_linker='GNU ld.so'
14651   ;;
14652
14653 freebsd*)
14654   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14655   version_type=freebsd-$objformat
14656   case $version_type in
14657     freebsd-elf*)
14658       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14659       need_version=no
14660       need_lib_prefix=no
14661       ;;
14662     freebsd-*)
14663       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14664       need_version=yes
14665       ;;
14666   esac
14667   shlibpath_var=LD_LIBRARY_PATH
14668   case $host_os in
14669   freebsd2*)
14670     shlibpath_overrides_runpath=yes
14671     ;;
14672   freebsd3.01* | freebsdelf3.01*)
14673     shlibpath_overrides_runpath=yes
14674     hardcode_into_libs=yes
14675     ;;
14676   *) # from 3.2 on
14677     shlibpath_overrides_runpath=no
14678     hardcode_into_libs=yes
14679     ;;
14680   esac
14681   ;;
14682
14683 gnu*)
14684   version_type=linux
14685   need_lib_prefix=no
14686   need_version=no
14687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14688   soname_spec='${libname}${release}${shared_ext}$major'
14689   shlibpath_var=LD_LIBRARY_PATH
14690   hardcode_into_libs=yes
14691   ;;
14692
14693 hpux9* | hpux10* | hpux11*)
14694   # Give a soname corresponding to the major version so that dld.sl refuses to
14695   # link against other versions.
14696   version_type=sunos
14697   need_lib_prefix=no
14698   need_version=no
14699   case "$host_cpu" in
14700   ia64*)
14701     shrext_cmds='.so'
14702     hardcode_into_libs=yes
14703     dynamic_linker="$host_os dld.so"
14704     shlibpath_var=LD_LIBRARY_PATH
14705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707     soname_spec='${libname}${release}${shared_ext}$major'
14708     if test "X$HPUX_IA64_MODE" = X32; then
14709       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14710     else
14711       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14712     fi
14713     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14714     ;;
14715    hppa*64*)
14716      shrext_cmds='.sl'
14717      hardcode_into_libs=yes
14718      dynamic_linker="$host_os dld.sl"
14719      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14720      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14721      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722      soname_spec='${libname}${release}${shared_ext}$major'
14723      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14724      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14725      ;;
14726    *)
14727     shrext_cmds='.sl'
14728     dynamic_linker="$host_os dld.sl"
14729     shlibpath_var=SHLIB_PATH
14730     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732     soname_spec='${libname}${release}${shared_ext}$major'
14733     ;;
14734   esac
14735   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14736   postinstall_cmds='chmod 555 $lib'
14737   ;;
14738
14739 irix5* | irix6* | nonstopux*)
14740   case $host_os in
14741     nonstopux*) version_type=nonstopux ;;
14742     *)
14743         if test "$lt_cv_prog_gnu_ld" = yes; then
14744                 version_type=linux
14745         else
14746                 version_type=irix
14747         fi ;;
14748   esac
14749   need_lib_prefix=no
14750   need_version=no
14751   soname_spec='${libname}${release}${shared_ext}$major'
14752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14753   case $host_os in
14754   irix5* | nonstopux*)
14755     libsuff= shlibsuff=
14756     ;;
14757   *)
14758     case $LD in # libtool.m4 will add one of these switches to LD
14759     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14760       libsuff= shlibsuff= libmagic=32-bit;;
14761     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14762       libsuff=32 shlibsuff=N32 libmagic=N32;;
14763     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14764       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14765     *) libsuff= shlibsuff= libmagic=never-match;;
14766     esac
14767     ;;
14768   esac
14769   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14770   shlibpath_overrides_runpath=no
14771   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14772   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14773   hardcode_into_libs=yes
14774   ;;
14775
14776 # No shared lib support for Linux oldld, aout, or coff.
14777 linux*oldld* | linux*aout* | linux*coff*)
14778   dynamic_linker=no
14779   ;;
14780
14781 # This must be Linux ELF.
14782 linux*)
14783   version_type=linux
14784   need_lib_prefix=no
14785   need_version=no
14786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787   soname_spec='${libname}${release}${shared_ext}$major'
14788   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14789   shlibpath_var=LD_LIBRARY_PATH
14790   shlibpath_overrides_runpath=no
14791   # This implies no fast_install, which is unacceptable.
14792   # Some rework will be needed to allow for fast_install
14793   # before this can be enabled.
14794   hardcode_into_libs=yes
14795
14796   # find out which ABI we are using
14797   libsuff=
14798   case "$host_cpu" in
14799   x86_64*|s390x*|powerpc64*)
14800     echo '#line 14800 "configure"' > conftest.$ac_ext
14801     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802   (eval $ac_compile) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; then
14806       case `/usr/bin/file conftest.$ac_objext` in
14807       *64-bit*)
14808         libsuff=64
14809         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14810         ;;
14811       esac
14812     fi
14813     rm -rf conftest*
14814     ;;
14815   esac
14816
14817   # Append ld.so.conf contents to the search path
14818   if test -f /etc/ld.so.conf; then
14819     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14820     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14821   fi
14822
14823   # We used to test for /lib/ld.so.1 and disable shared libraries on
14824   # powerpc, because MkLinux only supported shared libraries with the
14825   # GNU dynamic linker.  Since this was broken with cross compilers,
14826   # most powerpc-linux boxes support dynamic linking these days and
14827   # people can always --disable-shared, the test was removed, and we
14828   # assume the GNU/Linux dynamic linker is in use.
14829   dynamic_linker='GNU/Linux ld.so'
14830   ;;
14831
14832 knetbsd*-gnu)
14833   version_type=linux
14834   need_lib_prefix=no
14835   need_version=no
14836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14837   soname_spec='${libname}${release}${shared_ext}$major'
14838   shlibpath_var=LD_LIBRARY_PATH
14839   shlibpath_overrides_runpath=no
14840   hardcode_into_libs=yes
14841   dynamic_linker='GNU ld.so'
14842   ;;
14843
14844 netbsd*)
14845   version_type=sunos
14846   need_lib_prefix=no
14847   need_version=no
14848   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14851     dynamic_linker='NetBSD (a.out) ld.so'
14852   else
14853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854     soname_spec='${libname}${release}${shared_ext}$major'
14855     dynamic_linker='NetBSD ld.elf_so'
14856   fi
14857   shlibpath_var=LD_LIBRARY_PATH
14858   shlibpath_overrides_runpath=yes
14859   hardcode_into_libs=yes
14860   ;;
14861
14862 newsos6)
14863   version_type=linux
14864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865   shlibpath_var=LD_LIBRARY_PATH
14866   shlibpath_overrides_runpath=yes
14867   ;;
14868
14869 nto-qnx*)
14870   version_type=linux
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   shlibpath_overrides_runpath=yes
14877   ;;
14878
14879 openbsd*)
14880   version_type=sunos
14881   need_lib_prefix=no
14882   need_version=yes
14883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14884   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14885   shlibpath_var=LD_LIBRARY_PATH
14886   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14887     case $host_os in
14888       openbsd2.[89] | openbsd2.[89].*)
14889         shlibpath_overrides_runpath=no
14890         ;;
14891       *)
14892         shlibpath_overrides_runpath=yes
14893         ;;
14894       esac
14895   else
14896     shlibpath_overrides_runpath=yes
14897   fi
14898   ;;
14899
14900 os2*)
14901   libname_spec='$name'
14902   shrext_cmds=".dll"
14903   need_lib_prefix=no
14904   library_names_spec='$libname${shared_ext} $libname.a'
14905   dynamic_linker='OS/2 ld.exe'
14906   shlibpath_var=LIBPATH
14907   ;;
14908
14909 osf3* | osf4* | osf5*)
14910   version_type=osf
14911   need_lib_prefix=no
14912   need_version=no
14913   soname_spec='${libname}${release}${shared_ext}$major'
14914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14917   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14918   ;;
14919
14920 sco3.2v5*)
14921   version_type=osf
14922   soname_spec='${libname}${release}${shared_ext}$major'
14923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924   shlibpath_var=LD_LIBRARY_PATH
14925   ;;
14926
14927 solaris*)
14928   version_type=linux
14929   need_lib_prefix=no
14930   need_version=no
14931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932   soname_spec='${libname}${release}${shared_ext}$major'
14933   shlibpath_var=LD_LIBRARY_PATH
14934   shlibpath_overrides_runpath=yes
14935   hardcode_into_libs=yes
14936   # ldd complains unless libraries are executable
14937   postinstall_cmds='chmod +x $lib'
14938   ;;
14939
14940 sunos4*)
14941   version_type=sunos
14942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14943   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14944   shlibpath_var=LD_LIBRARY_PATH
14945   shlibpath_overrides_runpath=yes
14946   if test "$with_gnu_ld" = yes; then
14947     need_lib_prefix=no
14948   fi
14949   need_version=yes
14950   ;;
14951
14952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14953   version_type=linux
14954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955   soname_spec='${libname}${release}${shared_ext}$major'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   case $host_vendor in
14958     sni)
14959       shlibpath_overrides_runpath=no
14960       need_lib_prefix=no
14961       export_dynamic_flag_spec='${wl}-Blargedynsym'
14962       runpath_var=LD_RUN_PATH
14963       ;;
14964     siemens)
14965       need_lib_prefix=no
14966       ;;
14967     motorola)
14968       need_lib_prefix=no
14969       need_version=no
14970       shlibpath_overrides_runpath=no
14971       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14972       ;;
14973   esac
14974   ;;
14975
14976 sysv4*MP*)
14977   if test -d /usr/nec ;then
14978     version_type=linux
14979     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14980     soname_spec='$libname${shared_ext}.$major'
14981     shlibpath_var=LD_LIBRARY_PATH
14982   fi
14983   ;;
14984
14985 uts4*)
14986   version_type=linux
14987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988   soname_spec='${libname}${release}${shared_ext}$major'
14989   shlibpath_var=LD_LIBRARY_PATH
14990   ;;
14991
14992 *)
14993   dynamic_linker=no
14994   ;;
14995 esac
14996 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14997 echo "${ECHO_T}$dynamic_linker" >&6
14998 test "$dynamic_linker" = no && can_build_shared=no
14999
15000 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15001 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15002 hardcode_action_F77=
15003 if test -n "$hardcode_libdir_flag_spec_F77" || \
15004    test -n "$runpath_var F77" || \
15005    test "X$hardcode_automatic_F77"="Xyes" ; then
15006
15007   # We can hardcode non-existant directories.
15008   if test "$hardcode_direct_F77" != no &&
15009      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15010      # have to relink, otherwise we might link with an installed library
15011      # when we should be linking with a yet-to-be-installed one
15012      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15013      test "$hardcode_minus_L_F77" != no; then
15014     # Linking always hardcodes the temporary library directory.
15015     hardcode_action_F77=relink
15016   else
15017     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15018     hardcode_action_F77=immediate
15019   fi
15020 else
15021   # We cannot hardcode anything, or else we can only hardcode existing
15022   # directories.
15023   hardcode_action_F77=unsupported
15024 fi
15025 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15026 echo "${ECHO_T}$hardcode_action_F77" >&6
15027
15028 if test "$hardcode_action_F77" = relink; then
15029   # Fast installation is not supported
15030   enable_fast_install=no
15031 elif test "$shlibpath_overrides_runpath" = yes ||
15032      test "$enable_shared" = no; then
15033   # Fast installation is not necessary
15034   enable_fast_install=needless
15035 fi
15036
15037 striplib=
15038 old_striplib=
15039 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15040 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15041 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15042   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15043   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15044   echo "$as_me:$LINENO: result: yes" >&5
15045 echo "${ECHO_T}yes" >&6
15046 else
15047 # FIXME - insert some real tests, host_os isn't really good enough
15048   case $host_os in
15049    darwin*)
15050        if test -n "$STRIP" ; then
15051          striplib="$STRIP -x"
15052          echo "$as_me:$LINENO: result: yes" >&5
15053 echo "${ECHO_T}yes" >&6
15054        else
15055   echo "$as_me:$LINENO: result: no" >&5
15056 echo "${ECHO_T}no" >&6
15057 fi
15058        ;;
15059    *)
15060   echo "$as_me:$LINENO: result: no" >&5
15061 echo "${ECHO_T}no" >&6
15062     ;;
15063   esac
15064 fi
15065
15066
15067
15068 # The else clause should only fire when bootstrapping the
15069 # libtool distribution, otherwise you forgot to ship ltmain.sh
15070 # with your package, and you will get complaints that there are
15071 # no rules to generate ltmain.sh.
15072 if test -f "$ltmain"; then
15073   # See if we are running on zsh, and set the options which allow our commands through
15074   # without removal of \ escapes.
15075   if test -n "${ZSH_VERSION+set}" ; then
15076     setopt NO_GLOB_SUBST
15077   fi
15078   # Now quote all the things that may contain metacharacters while being
15079   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15080   # variables and quote the copies for generation of the libtool script.
15081   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15082     SED SHELL STRIP \
15083     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15084     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15085     deplibs_check_method reload_flag reload_cmds need_locks \
15086     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15087     lt_cv_sys_global_symbol_to_c_name_address \
15088     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15089     old_postinstall_cmds old_postuninstall_cmds \
15090     compiler_F77 \
15091     CC_F77 \
15092     LD_F77 \
15093     lt_prog_compiler_wl_F77 \
15094     lt_prog_compiler_pic_F77 \
15095     lt_prog_compiler_static_F77 \
15096     lt_prog_compiler_no_builtin_flag_F77 \
15097     export_dynamic_flag_spec_F77 \
15098     thread_safe_flag_spec_F77 \
15099     whole_archive_flag_spec_F77 \
15100     enable_shared_with_static_runtimes_F77 \
15101     old_archive_cmds_F77 \
15102     old_archive_from_new_cmds_F77 \
15103     predep_objects_F77 \
15104     postdep_objects_F77 \
15105     predeps_F77 \
15106     postdeps_F77 \
15107     compiler_lib_search_path_F77 \
15108     archive_cmds_F77 \
15109     archive_expsym_cmds_F77 \
15110     postinstall_cmds_F77 \
15111     postuninstall_cmds_F77 \
15112     old_archive_from_expsyms_cmds_F77 \
15113     allow_undefined_flag_F77 \
15114     no_undefined_flag_F77 \
15115     export_symbols_cmds_F77 \
15116     hardcode_libdir_flag_spec_F77 \
15117     hardcode_libdir_flag_spec_ld_F77 \
15118     hardcode_libdir_separator_F77 \
15119     hardcode_automatic_F77 \
15120     module_cmds_F77 \
15121     module_expsym_cmds_F77 \
15122     lt_cv_prog_compiler_c_o_F77 \
15123     exclude_expsyms_F77 \
15124     include_expsyms_F77; do
15125
15126     case $var in
15127     old_archive_cmds_F77 | \
15128     old_archive_from_new_cmds_F77 | \
15129     archive_cmds_F77 | \
15130     archive_expsym_cmds_F77 | \
15131     module_cmds_F77 | \
15132     module_expsym_cmds_F77 | \
15133     old_archive_from_expsyms_cmds_F77 | \
15134     export_symbols_cmds_F77 | \
15135     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15136     postinstall_cmds | postuninstall_cmds | \
15137     old_postinstall_cmds | old_postuninstall_cmds | \
15138     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15139       # Double-quote double-evaled strings.
15140       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15141       ;;
15142     *)
15143       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15144       ;;
15145     esac
15146   done
15147
15148   case $lt_echo in
15149   *'\$0 --fallback-echo"')
15150     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15151     ;;
15152   esac
15153
15154 cfgfile="$ofile"
15155
15156   cat <<__EOF__ >> "$cfgfile"
15157 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15158
15159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15160
15161 # Shell to use when invoking shell scripts.
15162 SHELL=$lt_SHELL
15163
15164 # Whether or not to build shared libraries.
15165 build_libtool_libs=$enable_shared
15166
15167 # Whether or not to build static libraries.
15168 build_old_libs=$enable_static
15169
15170 # Whether or not to add -lc for building shared libraries.
15171 build_libtool_need_lc=$archive_cmds_need_lc_F77
15172
15173 # Whether or not to disallow shared libs when runtime libs are static
15174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15175
15176 # Whether or not to optimize for fast installation.
15177 fast_install=$enable_fast_install
15178
15179 # The host system.
15180 host_alias=$host_alias
15181 host=$host
15182
15183 # An echo program that does not interpret backslashes.
15184 echo=$lt_echo
15185
15186 # The archiver.
15187 AR=$lt_AR
15188 AR_FLAGS=$lt_AR_FLAGS
15189
15190 # A C compiler.
15191 LTCC=$lt_LTCC
15192
15193 # A language-specific compiler.
15194 CC=$lt_compiler_F77
15195
15196 # Is the compiler the GNU C compiler?
15197 with_gcc=$GCC_F77
15198
15199 # An ERE matcher.
15200 EGREP=$lt_EGREP
15201
15202 # The linker used to build libraries.
15203 LD=$lt_LD_F77
15204
15205 # Whether we need hard or soft links.
15206 LN_S=$lt_LN_S
15207
15208 # A BSD-compatible nm program.
15209 NM=$lt_NM
15210
15211 # A symbol stripping program
15212 STRIP=$lt_STRIP
15213
15214 # Used to examine libraries when file_magic_cmd begins "file"
15215 MAGIC_CMD=$MAGIC_CMD
15216
15217 # Used on cygwin: DLL creation program.
15218 DLLTOOL="$DLLTOOL"
15219
15220 # Used on cygwin: object dumper.
15221 OBJDUMP="$OBJDUMP"
15222
15223 # Used on cygwin: assembler.
15224 AS="$AS"
15225
15226 # The name of the directory that contains temporary libtool files.
15227 objdir=$objdir
15228
15229 # How to create reloadable object files.
15230 reload_flag=$lt_reload_flag
15231 reload_cmds=$lt_reload_cmds
15232
15233 # How to pass a linker flag through the compiler.
15234 wl=$lt_lt_prog_compiler_wl_F77
15235
15236 # Object file suffix (normally "o").
15237 objext="$ac_objext"
15238
15239 # Old archive suffix (normally "a").
15240 libext="$libext"
15241
15242 # Shared library suffix (normally ".so").
15243 shrext_cmds='$shrext_cmds'
15244
15245 # Executable file suffix (normally "").
15246 exeext="$exeext"
15247
15248 # Additional compiler flags for building library objects.
15249 pic_flag=$lt_lt_prog_compiler_pic_F77
15250 pic_mode=$pic_mode
15251
15252 # What is the maximum length of a command?
15253 max_cmd_len=$lt_cv_sys_max_cmd_len
15254
15255 # Does compiler simultaneously support -c and -o options?
15256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15257
15258 # Must we lock files when doing compilation ?
15259 need_locks=$lt_need_locks
15260
15261 # Do we need the lib prefix for modules?
15262 need_lib_prefix=$need_lib_prefix
15263
15264 # Do we need a version for libraries?
15265 need_version=$need_version
15266
15267 # Whether dlopen is supported.
15268 dlopen_support=$enable_dlopen
15269
15270 # Whether dlopen of programs is supported.
15271 dlopen_self=$enable_dlopen_self
15272
15273 # Whether dlopen of statically linked programs is supported.
15274 dlopen_self_static=$enable_dlopen_self_static
15275
15276 # Compiler flag to prevent dynamic linking.
15277 link_static_flag=$lt_lt_prog_compiler_static_F77
15278
15279 # Compiler flag to turn off builtin functions.
15280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15281
15282 # Compiler flag to allow reflexive dlopens.
15283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15284
15285 # Compiler flag to generate shared objects directly from archives.
15286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15287
15288 # Compiler flag to generate thread-safe objects.
15289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15290
15291 # Library versioning type.
15292 version_type=$version_type
15293
15294 # Format of library name prefix.
15295 libname_spec=$lt_libname_spec
15296
15297 # List of archive names.  First name is the real one, the rest are links.
15298 # The last name is the one that the linker finds with -lNAME.
15299 library_names_spec=$lt_library_names_spec
15300
15301 # The coded name of the library, if different from the real name.
15302 soname_spec=$lt_soname_spec
15303
15304 # Commands used to build and install an old-style archive.
15305 RANLIB=$lt_RANLIB
15306 old_archive_cmds=$lt_old_archive_cmds_F77
15307 old_postinstall_cmds=$lt_old_postinstall_cmds
15308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15309
15310 # Create an old-style archive from a shared archive.
15311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15312
15313 # Create a temporary old-style archive to link instead of a shared archive.
15314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15315
15316 # Commands used to build and install a shared archive.
15317 archive_cmds=$lt_archive_cmds_F77
15318 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15319 postinstall_cmds=$lt_postinstall_cmds
15320 postuninstall_cmds=$lt_postuninstall_cmds
15321
15322 # Commands used to build a loadable module (assumed same as above if empty)
15323 module_cmds=$lt_module_cmds_F77
15324 module_expsym_cmds=$lt_module_expsym_cmds_F77
15325
15326 # Commands to strip libraries.
15327 old_striplib=$lt_old_striplib
15328 striplib=$lt_striplib
15329
15330 # Dependencies to place before the objects being linked to create a
15331 # shared library.
15332 predep_objects=$lt_predep_objects_F77
15333
15334 # Dependencies to place after the objects being linked to create a
15335 # shared library.
15336 postdep_objects=$lt_postdep_objects_F77
15337
15338 # Dependencies to place before the objects being linked to create a
15339 # shared library.
15340 predeps=$lt_predeps_F77
15341
15342 # Dependencies to place after the objects being linked to create a
15343 # shared library.
15344 postdeps=$lt_postdeps_F77
15345
15346 # The library search path used internally by the compiler when linking
15347 # a shared library.
15348 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15349
15350 # Method to check whether dependent libraries are shared objects.
15351 deplibs_check_method=$lt_deplibs_check_method
15352
15353 # Command to use when deplibs_check_method == file_magic.
15354 file_magic_cmd=$lt_file_magic_cmd
15355
15356 # Flag that allows shared libraries with undefined symbols to be built.
15357 allow_undefined_flag=$lt_allow_undefined_flag_F77
15358
15359 # Flag that forces no undefined symbols.
15360 no_undefined_flag=$lt_no_undefined_flag_F77
15361
15362 # Commands used to finish a libtool library installation in a directory.
15363 finish_cmds=$lt_finish_cmds
15364
15365 # Same as above, but a single script fragment to be evaled but not shown.
15366 finish_eval=$lt_finish_eval
15367
15368 # Take the output of nm and produce a listing of raw symbols and C names.
15369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15370
15371 # Transform the output of nm in a proper C declaration
15372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15373
15374 # Transform the output of nm in a C name address pair
15375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15376
15377 # This is the shared library runtime path variable.
15378 runpath_var=$runpath_var
15379
15380 # This is the shared library path variable.
15381 shlibpath_var=$shlibpath_var
15382
15383 # Is shlibpath searched before the hard-coded library search path?
15384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15385
15386 # How to hardcode a shared library path into an executable.
15387 hardcode_action=$hardcode_action_F77
15388
15389 # Whether we should hardcode library paths into libraries.
15390 hardcode_into_libs=$hardcode_into_libs
15391
15392 # Flag to hardcode \$libdir into a binary during linking.
15393 # This must work even if \$libdir does not exist.
15394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15395
15396 # If ld is used when linking, flag to hardcode \$libdir into
15397 # a binary during linking. This must work even if \$libdir does
15398 # not exist.
15399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15400
15401 # Whether we need a single -rpath flag with a separated argument.
15402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15403
15404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15405 # resulting binary.
15406 hardcode_direct=$hardcode_direct_F77
15407
15408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15409 # resulting binary.
15410 hardcode_minus_L=$hardcode_minus_L_F77
15411
15412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15413 # the resulting binary.
15414 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15415
15416 # Set to yes if building a shared library automatically hardcodes DIR into the library
15417 # and all subsequent libraries and executables linked against it.
15418 hardcode_automatic=$hardcode_automatic_F77
15419
15420 # Variables whose values should be saved in libtool wrapper scripts and
15421 # restored at relink time.
15422 variables_saved_for_relink="$variables_saved_for_relink"
15423
15424 # Whether libtool must link a program against all its dependency libraries.
15425 link_all_deplibs=$link_all_deplibs_F77
15426
15427 # Compile-time system search path for libraries
15428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15429
15430 # Run-time system search path for libraries
15431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15432
15433 # Fix the shell variable \$srcfile for the compiler.
15434 fix_srcfile_path="$fix_srcfile_path_F77"
15435
15436 # Set to yes if exported symbols are required.
15437 always_export_symbols=$always_export_symbols_F77
15438
15439 # The commands to list exported symbols.
15440 export_symbols_cmds=$lt_export_symbols_cmds_F77
15441
15442 # The commands to extract the exported symbol list from a shared archive.
15443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15444
15445 # Symbols that should not be listed in the preloaded symbols.
15446 exclude_expsyms=$lt_exclude_expsyms_F77
15447
15448 # Symbols that must always be exported.
15449 include_expsyms=$lt_include_expsyms_F77
15450
15451 # ### END LIBTOOL TAG CONFIG: $tagname
15452
15453 __EOF__
15454
15455
15456 else
15457   # If there is no Makefile yet, we rely on a make rule to execute
15458   # `config.status --recheck' to rerun these tests and create the
15459   # libtool script then.
15460   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15461   if test -f "$ltmain_in"; then
15462     test -f Makefile && make "$ltmain"
15463   fi
15464 fi
15465
15466
15467 ac_ext=c
15468 ac_cpp='$CPP $CPPFLAGS'
15469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15472
15473 CC="$lt_save_CC"
15474
15475         else
15476           tagname=""
15477         fi
15478         ;;
15479
15480       GCJ)
15481         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15482
15483
15484
15485 # Source file extension for Java test sources.
15486 ac_ext=java
15487
15488 # Object file extension for compiled Java test sources.
15489 objext=o
15490 objext_GCJ=$objext
15491
15492 # Code to be used in simple compile tests
15493 lt_simple_compile_test_code="class foo {}\n"
15494
15495 # Code to be used in simple link tests
15496 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15497
15498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15499
15500 # If no C compiler was specified, use CC.
15501 LTCC=${LTCC-"$CC"}
15502
15503 # Allow CC to be a program name with arguments.
15504 compiler=$CC
15505
15506
15507 # Allow CC to be a program name with arguments.
15508 lt_save_CC="$CC"
15509 CC=${GCJ-"gcj"}
15510 compiler=$CC
15511 compiler_GCJ=$CC
15512
15513 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15514 archive_cmds_need_lc_GCJ=no
15515
15516
15517 lt_prog_compiler_no_builtin_flag_GCJ=
15518
15519 if test "$GCC" = yes; then
15520   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15521
15522
15523 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   lt_cv_prog_compiler_rtti_exceptions=no
15529   ac_outfile=conftest.$ac_objext
15530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15531    lt_compiler_flag="-fno-rtti -fno-exceptions"
15532    # Insert the option either (1) after the last *FLAGS variable, or
15533    # (2) before a word containing "conftest.", or (3) at the end.
15534    # Note that $ac_compile itself does not contain backslashes and begins
15535    # with a dollar sign (not a hyphen), so the echo should work correctly.
15536    # The option is referenced via a variable to avoid confusing sed.
15537    lt_compile=`echo "$ac_compile" | $SED \
15538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15540    -e 's:$: $lt_compiler_flag:'`
15541    (eval echo "\"\$as_me:15541: $lt_compile\"" >&5)
15542    (eval "$lt_compile" 2>conftest.err)
15543    ac_status=$?
15544    cat conftest.err >&5
15545    echo "$as_me:15545: \$? = $ac_status" >&5
15546    if (exit $ac_status) && test -s "$ac_outfile"; then
15547      # The compiler can only warn and ignore the option if not recognized
15548      # So say no if there are warnings
15549      if test ! -s conftest.err; then
15550        lt_cv_prog_compiler_rtti_exceptions=yes
15551      fi
15552    fi
15553    $rm conftest*
15554
15555 fi
15556 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15557 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15558
15559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15560     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15561 else
15562     :
15563 fi
15564
15565 fi
15566
15567 lt_prog_compiler_wl_GCJ=
15568 lt_prog_compiler_pic_GCJ=
15569 lt_prog_compiler_static_GCJ=
15570
15571 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15573
15574   if test "$GCC" = yes; then
15575     lt_prog_compiler_wl_GCJ='-Wl,'
15576     lt_prog_compiler_static_GCJ='-static'
15577
15578     case $host_os in
15579       aix*)
15580       # All AIX code is PIC.
15581       if test "$host_cpu" = ia64; then
15582         # AIX 5 now supports IA64 processor
15583         lt_prog_compiler_static_GCJ='-Bstatic'
15584       fi
15585       ;;
15586
15587     amigaos*)
15588       # FIXME: we need at least 68020 code to build shared libraries, but
15589       # adding the `-m68020' flag to GCC prevents building anything better,
15590       # like `-m68040'.
15591       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15592       ;;
15593
15594     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15595       # PIC is the default for these OSes.
15596       ;;
15597
15598     mingw* | pw32* | os2*)
15599       # This hack is so that the source file can tell whether it is being
15600       # built for inclusion in a dll (and should export symbols for example).
15601       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15602       ;;
15603
15604     darwin* | rhapsody*)
15605       # PIC is the default on this platform
15606       # Common symbols not allowed in MH_DYLIB files
15607       lt_prog_compiler_pic_GCJ='-fno-common'
15608       ;;
15609
15610     msdosdjgpp*)
15611       # Just because we use GCC doesn't mean we suddenly get shared libraries
15612       # on systems that don't support them.
15613       lt_prog_compiler_can_build_shared_GCJ=no
15614       enable_shared=no
15615       ;;
15616
15617     sysv4*MP*)
15618       if test -d /usr/nec; then
15619         lt_prog_compiler_pic_GCJ=-Kconform_pic
15620       fi
15621       ;;
15622
15623     hpux*)
15624       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15625       # not for PA HP-UX.
15626       case "$host_cpu" in
15627       hppa*64*|ia64*)
15628         # +Z the default
15629         ;;
15630       *)
15631         lt_prog_compiler_pic_GCJ='-fPIC'
15632         ;;
15633       esac
15634       ;;
15635
15636     *)
15637       lt_prog_compiler_pic_GCJ='-fPIC'
15638       ;;
15639     esac
15640   else
15641     # PORTME Check for flag to pass linker flags through the system compiler.
15642     case $host_os in
15643     aix*)
15644       lt_prog_compiler_wl_GCJ='-Wl,'
15645       if test "$host_cpu" = ia64; then
15646         # AIX 5 now supports IA64 processor
15647         lt_prog_compiler_static_GCJ='-Bstatic'
15648       else
15649         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15650       fi
15651       ;;
15652
15653     mingw* | pw32* | os2*)
15654       # This hack is so that the source file can tell whether it is being
15655       # built for inclusion in a dll (and should export symbols for example).
15656       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15657       ;;
15658
15659     hpux9* | hpux10* | hpux11*)
15660       lt_prog_compiler_wl_GCJ='-Wl,'
15661       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15662       # not for PA HP-UX.
15663       case "$host_cpu" in
15664       hppa*64*|ia64*)
15665         # +Z the default
15666         ;;
15667       *)
15668         lt_prog_compiler_pic_GCJ='+Z'
15669         ;;
15670       esac
15671       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15672       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15673       ;;
15674
15675     irix5* | irix6* | nonstopux*)
15676       lt_prog_compiler_wl_GCJ='-Wl,'
15677       # PIC (with -KPIC) is the default.
15678       lt_prog_compiler_static_GCJ='-non_shared'
15679       ;;
15680
15681     newsos6)
15682       lt_prog_compiler_pic_GCJ='-KPIC'
15683       lt_prog_compiler_static_GCJ='-Bstatic'
15684       ;;
15685
15686     linux*)
15687       case $CC in
15688       icc* | ecc*)
15689         lt_prog_compiler_wl_GCJ='-Wl,'
15690         lt_prog_compiler_pic_GCJ='-KPIC'
15691         lt_prog_compiler_static_GCJ='-static'
15692         ;;
15693       ccc*)
15694         lt_prog_compiler_wl_GCJ='-Wl,'
15695         # All Alpha code is PIC.
15696         lt_prog_compiler_static_GCJ='-non_shared'
15697         ;;
15698       esac
15699       ;;
15700
15701     osf3* | osf4* | osf5*)
15702       lt_prog_compiler_wl_GCJ='-Wl,'
15703       # All OSF/1 code is PIC.
15704       lt_prog_compiler_static_GCJ='-non_shared'
15705       ;;
15706
15707     sco3.2v5*)
15708       lt_prog_compiler_pic_GCJ='-Kpic'
15709       lt_prog_compiler_static_GCJ='-dn'
15710       ;;
15711
15712     solaris*)
15713       lt_prog_compiler_wl_GCJ='-Wl,'
15714       lt_prog_compiler_pic_GCJ='-KPIC'
15715       lt_prog_compiler_static_GCJ='-Bstatic'
15716       ;;
15717
15718     sunos4*)
15719       lt_prog_compiler_wl_GCJ='-Qoption ld '
15720       lt_prog_compiler_pic_GCJ='-PIC'
15721       lt_prog_compiler_static_GCJ='-Bstatic'
15722       ;;
15723
15724     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15725       lt_prog_compiler_wl_GCJ='-Wl,'
15726       lt_prog_compiler_pic_GCJ='-KPIC'
15727       lt_prog_compiler_static_GCJ='-Bstatic'
15728       ;;
15729
15730     sysv4*MP*)
15731       if test -d /usr/nec ;then
15732         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15733         lt_prog_compiler_static_GCJ='-Bstatic'
15734       fi
15735       ;;
15736
15737     uts4*)
15738       lt_prog_compiler_pic_GCJ='-pic'
15739       lt_prog_compiler_static_GCJ='-Bstatic'
15740       ;;
15741
15742     *)
15743       lt_prog_compiler_can_build_shared_GCJ=no
15744       ;;
15745     esac
15746   fi
15747
15748 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15749 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15750
15751 #
15752 # Check to make sure the PIC flag actually works.
15753 #
15754 if test -n "$lt_prog_compiler_pic_GCJ"; then
15755
15756 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15758 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   lt_prog_compiler_pic_works_GCJ=no
15762   ac_outfile=conftest.$ac_objext
15763    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15764    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15765    # Insert the option either (1) after the last *FLAGS variable, or
15766    # (2) before a word containing "conftest.", or (3) at the end.
15767    # Note that $ac_compile itself does not contain backslashes and begins
15768    # with a dollar sign (not a hyphen), so the echo should work correctly.
15769    # The option is referenced via a variable to avoid confusing sed.
15770    lt_compile=`echo "$ac_compile" | $SED \
15771    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15773    -e 's:$: $lt_compiler_flag:'`
15774    (eval echo "\"\$as_me:15774: $lt_compile\"" >&5)
15775    (eval "$lt_compile" 2>conftest.err)
15776    ac_status=$?
15777    cat conftest.err >&5
15778    echo "$as_me:15778: \$? = $ac_status" >&5
15779    if (exit $ac_status) && test -s "$ac_outfile"; then
15780      # The compiler can only warn and ignore the option if not recognized
15781      # So say no if there are warnings
15782      if test ! -s conftest.err; then
15783        lt_prog_compiler_pic_works_GCJ=yes
15784      fi
15785    fi
15786    $rm conftest*
15787
15788 fi
15789 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15790 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15791
15792 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15793     case $lt_prog_compiler_pic_GCJ in
15794      "" | " "*) ;;
15795      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15796      esac
15797 else
15798     lt_prog_compiler_pic_GCJ=
15799      lt_prog_compiler_can_build_shared_GCJ=no
15800 fi
15801
15802 fi
15803 case "$host_os" in
15804   # For platforms which do not support PIC, -DPIC is meaningless:
15805   *djgpp*)
15806     lt_prog_compiler_pic_GCJ=
15807     ;;
15808   *)
15809     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15810     ;;
15811 esac
15812
15813 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15815 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   lt_cv_prog_compiler_c_o_GCJ=no
15819    $rm -r conftest 2>/dev/null
15820    mkdir conftest
15821    cd conftest
15822    mkdir out
15823    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15824
15825    lt_compiler_flag="-o out/conftest2.$ac_objext"
15826    # Insert the option either (1) after the last *FLAGS variable, or
15827    # (2) before a word containing "conftest.", or (3) at the end.
15828    # Note that $ac_compile itself does not contain backslashes and begins
15829    # with a dollar sign (not a hyphen), so the echo should work correctly.
15830    lt_compile=`echo "$ac_compile" | $SED \
15831    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15833    -e 's:$: $lt_compiler_flag:'`
15834    (eval echo "\"\$as_me:15834: $lt_compile\"" >&5)
15835    (eval "$lt_compile" 2>out/conftest.err)
15836    ac_status=$?
15837    cat out/conftest.err >&5
15838    echo "$as_me:15838: \$? = $ac_status" >&5
15839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15840    then
15841      # The compiler can only warn and ignore the option if not recognized
15842      # So say no if there are warnings
15843      if test ! -s out/conftest.err; then
15844        lt_cv_prog_compiler_c_o_GCJ=yes
15845      fi
15846    fi
15847    chmod u+w .
15848    $rm conftest*
15849    # SGI C++ compiler will create directory out/ii_files/ for
15850    # template instantiation
15851    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15852    $rm out/* && rmdir out
15853    cd ..
15854    rmdir conftest
15855    $rm conftest*
15856
15857 fi
15858 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15860
15861
15862 hard_links="nottested"
15863 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15864   # do not overwrite the value of need_locks provided by the user
15865   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15867   hard_links=yes
15868   $rm conftest*
15869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15870   touch conftest.a
15871   ln conftest.a conftest.b 2>&5 || hard_links=no
15872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15873   echo "$as_me:$LINENO: result: $hard_links" >&5
15874 echo "${ECHO_T}$hard_links" >&6
15875   if test "$hard_links" = no; then
15876     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15878     need_locks=warn
15879   fi
15880 else
15881   need_locks=no
15882 fi
15883
15884 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15886
15887   runpath_var=
15888   allow_undefined_flag_GCJ=
15889   enable_shared_with_static_runtimes_GCJ=no
15890   archive_cmds_GCJ=
15891   archive_expsym_cmds_GCJ=
15892   old_archive_From_new_cmds_GCJ=
15893   old_archive_from_expsyms_cmds_GCJ=
15894   export_dynamic_flag_spec_GCJ=
15895   whole_archive_flag_spec_GCJ=
15896   thread_safe_flag_spec_GCJ=
15897   hardcode_libdir_flag_spec_GCJ=
15898   hardcode_libdir_flag_spec_ld_GCJ=
15899   hardcode_libdir_separator_GCJ=
15900   hardcode_direct_GCJ=no
15901   hardcode_minus_L_GCJ=no
15902   hardcode_shlibpath_var_GCJ=unsupported
15903   link_all_deplibs_GCJ=unknown
15904   hardcode_automatic_GCJ=no
15905   module_cmds_GCJ=
15906   module_expsym_cmds_GCJ=
15907   always_export_symbols_GCJ=no
15908   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15909   # include_expsyms should be a list of space-separated symbols to be *always*
15910   # included in the symbol list
15911   include_expsyms_GCJ=
15912   # exclude_expsyms can be an extended regexp of symbols to exclude
15913   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15914   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15915   # as well as any symbol that contains `d'.
15916   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15917   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15918   # platforms (ab)use it in PIC code, but their linkers get confused if
15919   # the symbol is explicitly referenced.  Since portable code cannot
15920   # rely on this symbol name, it's probably fine to never include it in
15921   # preloaded symbol tables.
15922   extract_expsyms_cmds=
15923
15924   case $host_os in
15925   cygwin* | mingw* | pw32*)
15926     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15927     # When not using gcc, we currently assume that we are using
15928     # Microsoft Visual C++.
15929     if test "$GCC" != yes; then
15930       with_gnu_ld=no
15931     fi
15932     ;;
15933   openbsd*)
15934     with_gnu_ld=no
15935     ;;
15936   esac
15937
15938   ld_shlibs_GCJ=yes
15939   if test "$with_gnu_ld" = yes; then
15940     # If archive_cmds runs LD, not CC, wlarc should be empty
15941     wlarc='${wl}'
15942
15943     # See if GNU ld supports shared libraries.
15944     case $host_os in
15945     aix3* | aix4* | aix5*)
15946       # On AIX/PPC, the GNU linker is very broken
15947       if test "$host_cpu" != ia64; then
15948         ld_shlibs_GCJ=no
15949         cat <<EOF 1>&2
15950
15951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15952 *** to be unable to reliably create shared libraries on AIX.
15953 *** Therefore, libtool is disabling shared libraries support.  If you
15954 *** really care for shared libraries, you may want to modify your PATH
15955 *** so that a non-GNU linker is found, and then restart.
15956
15957 EOF
15958       fi
15959       ;;
15960
15961     amigaos*)
15962       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)'
15963       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964       hardcode_minus_L_GCJ=yes
15965
15966       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15967       # that the semantics of dynamic libraries on AmigaOS, at least up
15968       # to version 4, is to share data among multiple programs linked
15969       # with the same dynamic library.  Since this doesn't match the
15970       # behavior of shared libraries on other platforms, we can't use
15971       # them.
15972       ld_shlibs_GCJ=no
15973       ;;
15974
15975     beos*)
15976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15977         allow_undefined_flag_GCJ=unsupported
15978         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15979         # support --undefined.  This deserves some investigation.  FIXME
15980         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15981       else
15982         ld_shlibs_GCJ=no
15983       fi
15984       ;;
15985
15986     cygwin* | mingw* | pw32*)
15987       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15988       # as there is no search path for DLLs.
15989       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990       allow_undefined_flag_GCJ=unsupported
15991       always_export_symbols_GCJ=no
15992       enable_shared_with_static_runtimes_GCJ=yes
15993       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15994
15995       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15996         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15997         # If the export-symbols file already is a .def file (1st line
15998         # is EXPORTS), use it as is; otherwise, prepend...
15999         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16000           cp $export_symbols $output_objdir/$soname.def;
16001         else
16002           echo EXPORTS > $output_objdir/$soname.def;
16003           cat $export_symbols >> $output_objdir/$soname.def;
16004         fi~
16005         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16006       else
16007         ld_shlibs=no
16008       fi
16009       ;;
16010
16011     netbsd*)
16012       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16013         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16014         wlarc=
16015       else
16016         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16018       fi
16019       ;;
16020
16021     solaris* | sysv5*)
16022       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16023         ld_shlibs_GCJ=no
16024         cat <<EOF 1>&2
16025
16026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16027 *** create shared libraries on Solaris systems.  Therefore, libtool
16028 *** is disabling shared libraries support.  We urge you to upgrade GNU
16029 *** binutils to release 2.9.1 or newer.  Another option is to modify
16030 *** your PATH or compiler configuration so that the native linker is
16031 *** used, and then restart.
16032
16033 EOF
16034       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16035         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037       else
16038         ld_shlibs_GCJ=no
16039       fi
16040       ;;
16041
16042     sunos4*)
16043       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16044       wlarc=
16045       hardcode_direct_GCJ=yes
16046       hardcode_shlibpath_var_GCJ=no
16047       ;;
16048
16049   linux*)
16050     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16051         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052         archive_cmds_GCJ="$tmp_archive_cmds"
16053       supports_anon_versioning=no
16054       case `$LD -v 2>/dev/null` in
16055         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16056         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16057         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16058         *\ 2.11.*) ;; # other 2.11 versions
16059         *) supports_anon_versioning=yes ;;
16060       esac
16061       if test $supports_anon_versioning = yes; then
16062         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16064 $echo "local: *; };" >> $output_objdir/$libname.ver~
16065         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16066       else
16067         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16068       fi
16069     else
16070       ld_shlibs_GCJ=no
16071     fi
16072     ;;
16073
16074     *)
16075       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078       else
16079         ld_shlibs_GCJ=no
16080       fi
16081       ;;
16082     esac
16083
16084     if test "$ld_shlibs_GCJ" = yes; then
16085       runpath_var=LD_RUN_PATH
16086       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16087       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16088       # ancient GNU ld didn't support --whole-archive et. al.
16089       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16090         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16091       else
16092         whole_archive_flag_spec_GCJ=
16093       fi
16094     fi
16095   else
16096     # PORTME fill in a description of your system's linker (not GNU ld)
16097     case $host_os in
16098     aix3*)
16099       allow_undefined_flag_GCJ=unsupported
16100       always_export_symbols_GCJ=yes
16101       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'
16102       # Note: this linker hardcodes the directories in LIBPATH if there
16103       # are no directories specified by -L.
16104       hardcode_minus_L_GCJ=yes
16105       if test "$GCC" = yes && test -z "$link_static_flag"; then
16106         # Neither direct hardcoding nor static linking is supported with a
16107         # broken collect2.
16108         hardcode_direct_GCJ=unsupported
16109       fi
16110       ;;
16111
16112     aix4* | aix5*)
16113       if test "$host_cpu" = ia64; then
16114         # On IA64, the linker does run time linking by default, so we don't
16115         # have to do anything special.
16116         aix_use_runtimelinking=no
16117         exp_sym_flag='-Bexport'
16118         no_entry_flag=""
16119       else
16120         # If we're using GNU nm, then we don't want the "-C" option.
16121         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16122         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16123           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'
16124         else
16125           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'
16126         fi
16127         aix_use_runtimelinking=no
16128
16129         # Test if we are trying to use run time linking or normal
16130         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16131         # need to do runtime linking.
16132         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16133           for ld_flag in $LDFLAGS; do
16134           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16135             aix_use_runtimelinking=yes
16136             break
16137           fi
16138           done
16139         esac
16140
16141         exp_sym_flag='-bexport'
16142         no_entry_flag='-bnoentry'
16143       fi
16144
16145       # When large executables or shared objects are built, AIX ld can
16146       # have problems creating the table of contents.  If linking a library
16147       # or program results in "error TOC overflow" add -mminimal-toc to
16148       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16149       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16150
16151       archive_cmds_GCJ=''
16152       hardcode_direct_GCJ=yes
16153       hardcode_libdir_separator_GCJ=':'
16154       link_all_deplibs_GCJ=yes
16155
16156       if test "$GCC" = yes; then
16157         case $host_os in aix4.012|aix4.012.*)
16158         # We only want to do this on AIX 4.2 and lower, the check
16159         # below for broken collect2 doesn't work under 4.3+
16160           collect2name=`${CC} -print-prog-name=collect2`
16161           if test -f "$collect2name" && \
16162            strings "$collect2name" | grep resolve_lib_name >/dev/null
16163           then
16164           # We have reworked collect2
16165           hardcode_direct_GCJ=yes
16166           else
16167           # We have old collect2
16168           hardcode_direct_GCJ=unsupported
16169           # It fails to find uninstalled libraries when the uninstalled
16170           # path is not listed in the libpath.  Setting hardcode_minus_L
16171           # to unsupported forces relinking
16172           hardcode_minus_L_GCJ=yes
16173           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174           hardcode_libdir_separator_GCJ=
16175           fi
16176         esac
16177         shared_flag='-shared'
16178       else
16179         # not using gcc
16180         if test "$host_cpu" = ia64; then
16181         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16182         # chokes on -Wl,-G. The following line is correct:
16183           shared_flag='-G'
16184         else
16185         if test "$aix_use_runtimelinking" = yes; then
16186             shared_flag='${wl}-G'
16187           else
16188             shared_flag='${wl}-bM:SRE'
16189         fi
16190         fi
16191       fi
16192
16193       # It seems that -bexpall does not export symbols beginning with
16194       # underscore (_), so it is better to generate a list of symbols to export.
16195       always_export_symbols_GCJ=yes
16196       if test "$aix_use_runtimelinking" = yes; then
16197         # Warning - without using the other runtime loading flags (-brtl),
16198         # -berok will link without error, but may produce a broken library.
16199         allow_undefined_flag_GCJ='-berok'
16200        # Determine the default libpath from the value encoded in an empty executable.
16201        cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h.  */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h.  */
16207
16208 int
16209 main ()
16210 {
16211
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218   (eval $ac_link) 2>conftest.er1
16219   ac_status=$?
16220   grep -v '^ *+' conftest.er1 >conftest.err
16221   rm -f conftest.er1
16222   cat conftest.err >&5
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); } &&
16225          { ac_try='test -z "$ac_c_werror_flag"
16226                          || test ! -s conftest.err'
16227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228   (eval $ac_try) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; } &&
16232          { ac_try='test -s conftest$ac_exeext'
16233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234   (eval $ac_try) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; }; then
16238
16239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16240 }'`
16241 # Check for a 64-bit object if we didn't find anything.
16242 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; }
16243 }'`; fi
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 fi
16249 rm -f conftest.err conftest.$ac_objext \
16250       conftest$ac_exeext conftest.$ac_ext
16251 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16252
16253        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16254         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"
16255        else
16256         if test "$host_cpu" = ia64; then
16257           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16258           allow_undefined_flag_GCJ="-z nodefs"
16259           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"
16260         else
16261          # Determine the default libpath from the value encoded in an empty executable.
16262          cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h.  */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h.  */
16268
16269 int
16270 main ()
16271 {
16272
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16279   (eval $ac_link) 2>conftest.er1
16280   ac_status=$?
16281   grep -v '^ *+' conftest.er1 >conftest.err
16282   rm -f conftest.er1
16283   cat conftest.err >&5
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } &&
16286          { ac_try='test -z "$ac_c_werror_flag"
16287                          || test ! -s conftest.err'
16288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; } &&
16293          { ac_try='test -s conftest$ac_exeext'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; }; then
16299
16300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16301 }'`
16302 # Check for a 64-bit object if we didn't find anything.
16303 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; }
16304 }'`; fi
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309 fi
16310 rm -f conftest.err conftest.$ac_objext \
16311       conftest$ac_exeext conftest.$ac_ext
16312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16313
16314          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16315           # Warning - without using the other run time loading flags,
16316           # -berok will link without error, but may produce a broken library.
16317           no_undefined_flag_GCJ=' ${wl}-bernotok'
16318           allow_undefined_flag_GCJ=' ${wl}-berok'
16319           # -bexpall does not export symbols beginning with underscore (_)
16320           always_export_symbols_GCJ=yes
16321           # Exported symbols can be pulled into shared objects from archives
16322           whole_archive_flag_spec_GCJ=' '
16323           archive_cmds_need_lc_GCJ=yes
16324           # This is similar to how AIX traditionally builds it's shared libraries.
16325           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'
16326         fi
16327       fi
16328       ;;
16329
16330     amigaos*)
16331       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)'
16332       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16333       hardcode_minus_L_GCJ=yes
16334       # see comment about different semantics on the GNU ld section
16335       ld_shlibs_GCJ=no
16336       ;;
16337
16338     bsdi4*)
16339       export_dynamic_flag_spec_GCJ=-rdynamic
16340       ;;
16341
16342     cygwin* | mingw* | pw32*)
16343       # When not using gcc, we currently assume that we are using
16344       # Microsoft Visual C++.
16345       # hardcode_libdir_flag_spec is actually meaningless, as there is
16346       # no search path for DLLs.
16347       hardcode_libdir_flag_spec_GCJ=' '
16348       allow_undefined_flag_GCJ=unsupported
16349       # Tell ltmain to make .lib files, not .a files.
16350       libext=lib
16351       # Tell ltmain to make .dll files, not .so files.
16352       shrext_cmds=".dll"
16353       # FIXME: Setting linknames here is a bad hack.
16354       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16355       # The linker will automatically build a .lib file if we build a DLL.
16356       old_archive_From_new_cmds_GCJ='true'
16357       # FIXME: Should let the user specify the lib program.
16358       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16359       fix_srcfile_path='`cygpath -w "$srcfile"`'
16360       enable_shared_with_static_runtimes_GCJ=yes
16361       ;;
16362
16363     darwin* | rhapsody*)
16364     if test "$GXX" = yes ; then
16365       archive_cmds_need_lc_GCJ=no
16366       case "$host_os" in
16367       rhapsody* | darwin1.[012])
16368         allow_undefined_flag_GCJ='-undefined suppress'
16369         ;;
16370       *) # Darwin 1.3 on
16371       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16372         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16373       else
16374         case ${MACOSX_DEPLOYMENT_TARGET} in
16375           10.[012])
16376             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16377             ;;
16378           10.*)
16379             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16380             ;;
16381         esac
16382       fi
16383         ;;
16384       esac
16385         lt_int_apple_cc_single_mod=no
16386         output_verbose_link_cmd='echo'
16387         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16388           lt_int_apple_cc_single_mod=yes
16389         fi
16390         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16391           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16392         else
16393         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'
16394       fi
16395       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16396       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16397         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16398           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}'
16399         else
16400           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}'
16401         fi
16402           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}'
16403       hardcode_direct_GCJ=no
16404       hardcode_automatic_GCJ=yes
16405       hardcode_shlibpath_var_GCJ=unsupported
16406       whole_archive_flag_spec_GCJ='-all_load $convenience'
16407       link_all_deplibs_GCJ=yes
16408     else
16409       ld_shlibs_GCJ=no
16410     fi
16411       ;;
16412
16413     dgux*)
16414       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16415       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16416       hardcode_shlibpath_var_GCJ=no
16417       ;;
16418
16419     freebsd1*)
16420       ld_shlibs_GCJ=no
16421       ;;
16422
16423     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16424     # support.  Future versions do this automatically, but an explicit c++rt0.o
16425     # does not break anything, and helps significantly (at the cost of a little
16426     # extra space).
16427     freebsd2.2*)
16428       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16429       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16430       hardcode_direct_GCJ=yes
16431       hardcode_shlibpath_var_GCJ=no
16432       ;;
16433
16434     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16435     freebsd2*)
16436       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16437       hardcode_direct_GCJ=yes
16438       hardcode_minus_L_GCJ=yes
16439       hardcode_shlibpath_var_GCJ=no
16440       ;;
16441
16442     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16443     freebsd* | kfreebsd*-gnu)
16444       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16445       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16446       hardcode_direct_GCJ=yes
16447       hardcode_shlibpath_var_GCJ=no
16448       ;;
16449
16450     hpux9*)
16451       if test "$GCC" = yes; then
16452         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'
16453       else
16454         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'
16455       fi
16456       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16457       hardcode_libdir_separator_GCJ=:
16458       hardcode_direct_GCJ=yes
16459
16460       # hardcode_minus_L: Not really in the search PATH,
16461       # but as the default location of the library.
16462       hardcode_minus_L_GCJ=yes
16463       export_dynamic_flag_spec_GCJ='${wl}-E'
16464       ;;
16465
16466     hpux10* | hpux11*)
16467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16468         case "$host_cpu" in
16469         hppa*64*|ia64*)
16470           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16471           ;;
16472         *)
16473           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16474           ;;
16475         esac
16476       else
16477         case "$host_cpu" in
16478         hppa*64*|ia64*)
16479           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16480           ;;
16481         *)
16482           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16483           ;;
16484         esac
16485       fi
16486       if test "$with_gnu_ld" = no; then
16487         case "$host_cpu" in
16488         hppa*64*)
16489           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16490           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16491           hardcode_libdir_separator_GCJ=:
16492           hardcode_direct_GCJ=no
16493           hardcode_shlibpath_var_GCJ=no
16494           ;;
16495         ia64*)
16496           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497           hardcode_direct_GCJ=no
16498           hardcode_shlibpath_var_GCJ=no
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         *)
16505           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16506           hardcode_libdir_separator_GCJ=:
16507           hardcode_direct_GCJ=yes
16508           export_dynamic_flag_spec_GCJ='${wl}-E'
16509
16510           # hardcode_minus_L: Not really in the search PATH,
16511           # but as the default location of the library.
16512           hardcode_minus_L_GCJ=yes
16513           ;;
16514         esac
16515       fi
16516       ;;
16517
16518     irix5* | irix6* | nonstopux*)
16519       if test "$GCC" = yes; then
16520         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'
16521       else
16522         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'
16523         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16524       fi
16525       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16526       hardcode_libdir_separator_GCJ=:
16527       link_all_deplibs_GCJ=yes
16528       ;;
16529
16530     netbsd*)
16531       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16532         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16533       else
16534         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16535       fi
16536       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16537       hardcode_direct_GCJ=yes
16538       hardcode_shlibpath_var_GCJ=no
16539       ;;
16540
16541     newsos6)
16542       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543       hardcode_direct_GCJ=yes
16544       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16545       hardcode_libdir_separator_GCJ=:
16546       hardcode_shlibpath_var_GCJ=no
16547       ;;
16548
16549     openbsd*)
16550       hardcode_direct_GCJ=yes
16551       hardcode_shlibpath_var_GCJ=no
16552       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16553         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16554         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16555         export_dynamic_flag_spec_GCJ='${wl}-E'
16556       else
16557        case $host_os in
16558          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16559            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16560            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16561            ;;
16562          *)
16563            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16564            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16565            ;;
16566        esac
16567       fi
16568       ;;
16569
16570     os2*)
16571       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16572       hardcode_minus_L_GCJ=yes
16573       allow_undefined_flag_GCJ=unsupported
16574       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'
16575       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16576       ;;
16577
16578     osf3*)
16579       if test "$GCC" = yes; then
16580         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16581         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'
16582       else
16583         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16584         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'
16585       fi
16586       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16587       hardcode_libdir_separator_GCJ=:
16588       ;;
16589
16590     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16591       if test "$GCC" = yes; then
16592         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16593         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'
16594         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16595       else
16596         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16597         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'
16598         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~
16599         $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'
16600
16601         # Both c and cxx compiler support -rpath directly
16602         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16603       fi
16604       hardcode_libdir_separator_GCJ=:
16605       ;;
16606
16607     sco3.2v5*)
16608       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609       hardcode_shlibpath_var_GCJ=no
16610       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16611       runpath_var=LD_RUN_PATH
16612       hardcode_runpath_var=yes
16613       ;;
16614
16615     solaris*)
16616       no_undefined_flag_GCJ=' -z text'
16617       if test "$GCC" = yes; then
16618         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16619         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16620           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16621       else
16622         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16624         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16625       fi
16626       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16627       hardcode_shlibpath_var_GCJ=no
16628       case $host_os in
16629       solaris2.[0-5] | solaris2.[0-5].*) ;;
16630       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16631         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16632       esac
16633       link_all_deplibs_GCJ=yes
16634       ;;
16635
16636     sunos4*)
16637       if test "x$host_vendor" = xsequent; then
16638         # Use $CC to link under sequent, because it throws in some extra .o
16639         # files that make .init and .fini sections work.
16640         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16641       else
16642         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16643       fi
16644       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16645       hardcode_direct_GCJ=yes
16646       hardcode_minus_L_GCJ=yes
16647       hardcode_shlibpath_var_GCJ=no
16648       ;;
16649
16650     sysv4)
16651       case $host_vendor in
16652         sni)
16653           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654           hardcode_direct_GCJ=yes # is this really true???
16655         ;;
16656         siemens)
16657           ## LD is ld it makes a PLAMLIB
16658           ## CC just makes a GrossModule.
16659           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16660           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16661           hardcode_direct_GCJ=no
16662         ;;
16663         motorola)
16664           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16666         ;;
16667       esac
16668       runpath_var='LD_RUN_PATH'
16669       hardcode_shlibpath_var_GCJ=no
16670       ;;
16671
16672     sysv4.3*)
16673       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674       hardcode_shlibpath_var_GCJ=no
16675       export_dynamic_flag_spec_GCJ='-Bexport'
16676       ;;
16677
16678     sysv4*MP*)
16679       if test -d /usr/nec; then
16680         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16681         hardcode_shlibpath_var_GCJ=no
16682         runpath_var=LD_RUN_PATH
16683         hardcode_runpath_var=yes
16684         ld_shlibs_GCJ=yes
16685       fi
16686       ;;
16687
16688     sysv4.2uw2*)
16689       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16690       hardcode_direct_GCJ=yes
16691       hardcode_minus_L_GCJ=no
16692       hardcode_shlibpath_var_GCJ=no
16693       hardcode_runpath_var=yes
16694       runpath_var=LD_RUN_PATH
16695       ;;
16696
16697    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16698       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16699       if test "$GCC" = yes; then
16700         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16701       else
16702         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16703       fi
16704       runpath_var='LD_RUN_PATH'
16705       hardcode_shlibpath_var_GCJ=no
16706       ;;
16707
16708     sysv5*)
16709       no_undefined_flag_GCJ=' -z text'
16710       # $CC -shared without GNU ld will not create a library from C++
16711       # object files and a static libstdc++, better avoid it by now
16712       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16713       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16714                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16715       hardcode_libdir_flag_spec_GCJ=
16716       hardcode_shlibpath_var_GCJ=no
16717       runpath_var='LD_RUN_PATH'
16718       ;;
16719
16720     uts4*)
16721       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16723       hardcode_shlibpath_var_GCJ=no
16724       ;;
16725
16726     *)
16727       ld_shlibs_GCJ=no
16728       ;;
16729     esac
16730   fi
16731
16732 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16733 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16734 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16735
16736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16737 if test "$GCC" = yes; then
16738   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16739 fi
16740
16741 #
16742 # Do we need to explicitly link libc?
16743 #
16744 case "x$archive_cmds_need_lc_GCJ" in
16745 x|xyes)
16746   # Assume -lc should be added
16747   archive_cmds_need_lc_GCJ=yes
16748
16749   if test "$enable_shared" = yes && test "$GCC" = yes; then
16750     case $archive_cmds_GCJ in
16751     *'~'*)
16752       # FIXME: we may have to deal with multi-command sequences.
16753       ;;
16754     '$CC '*)
16755       # Test whether the compiler implicitly links with -lc since on some
16756       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16757       # to ld, don't add -lc before -lgcc.
16758       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16760       $rm conftest*
16761       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16762
16763       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764   (eval $ac_compile) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } 2>conftest.err; then
16768         soname=conftest
16769         lib=conftest
16770         libobjs=conftest.$ac_objext
16771         deplibs=
16772         wl=$lt_prog_compiler_wl_GCJ
16773         compiler_flags=-v
16774         linker_flags=-v
16775         verstring=
16776         output_objdir=.
16777         libname=conftest
16778         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16779         allow_undefined_flag_GCJ=
16780         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16781   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }
16785         then
16786           archive_cmds_need_lc_GCJ=no
16787         else
16788           archive_cmds_need_lc_GCJ=yes
16789         fi
16790         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16791       else
16792         cat conftest.err 1>&5
16793       fi
16794       $rm conftest*
16795       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16796 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16797       ;;
16798     esac
16799   fi
16800   ;;
16801 esac
16802
16803 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16805 library_names_spec=
16806 libname_spec='lib$name'
16807 soname_spec=
16808 shrext_cmds=".so"
16809 postinstall_cmds=
16810 postuninstall_cmds=
16811 finish_cmds=
16812 finish_eval=
16813 shlibpath_var=
16814 shlibpath_overrides_runpath=unknown
16815 version_type=none
16816 dynamic_linker="$host_os ld.so"
16817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16818 if test "$GCC" = yes; then
16819   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16820   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16821     # if the path contains ";" then we assume it to be the separator
16822     # otherwise default to the standard path separator (i.e. ":") - it is
16823     # assumed that no part of a normal pathname contains ";" but that should
16824     # okay in the real world where ";" in dirpaths is itself problematic.
16825     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16826   else
16827     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16828   fi
16829 else
16830   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16831 fi
16832 need_lib_prefix=unknown
16833 hardcode_into_libs=no
16834
16835 # when you set need_version to no, make sure it does not cause -set_version
16836 # flags to be left without arguments
16837 need_version=unknown
16838
16839 case $host_os in
16840 aix3*)
16841   version_type=linux
16842   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16843   shlibpath_var=LIBPATH
16844
16845   # AIX 3 has no versioning support, so we append a major version to the name.
16846   soname_spec='${libname}${release}${shared_ext}$major'
16847   ;;
16848
16849 aix4* | aix5*)
16850   version_type=linux
16851   need_lib_prefix=no
16852   need_version=no
16853   hardcode_into_libs=yes
16854   if test "$host_cpu" = ia64; then
16855     # AIX 5 supports IA64
16856     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16857     shlibpath_var=LD_LIBRARY_PATH
16858   else
16859     # With GCC up to 2.95.x, collect2 would create an import file
16860     # for dependence libraries.  The import file would start with
16861     # the line `#! .'.  This would cause the generated library to
16862     # depend on `.', always an invalid library.  This was fixed in
16863     # development snapshots of GCC prior to 3.0.
16864     case $host_os in
16865       aix4 | aix4.[01] | aix4.[01].*)
16866       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16867            echo ' yes '
16868            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16869         :
16870       else
16871         can_build_shared=no
16872       fi
16873       ;;
16874     esac
16875     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16876     # soname into executable. Probably we can add versioning support to
16877     # collect2, so additional links can be useful in future.
16878     if test "$aix_use_runtimelinking" = yes; then
16879       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16880       # instead of lib<name>.a to let people know that these are not
16881       # typical AIX shared libraries.
16882       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883     else
16884       # We preserve .a as extension for shared libraries through AIX4.2
16885       # and later when we are not doing run time linking.
16886       library_names_spec='${libname}${release}.a $libname.a'
16887       soname_spec='${libname}${release}${shared_ext}$major'
16888     fi
16889     shlibpath_var=LIBPATH
16890   fi
16891   ;;
16892
16893 amigaos*)
16894   library_names_spec='$libname.ixlibrary $libname.a'
16895   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16896   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'
16897   ;;
16898
16899 beos*)
16900   library_names_spec='${libname}${shared_ext}'
16901   dynamic_linker="$host_os ld.so"
16902   shlibpath_var=LIBRARY_PATH
16903   ;;
16904
16905 bsdi4*)
16906   version_type=linux
16907   need_version=no
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16911   shlibpath_var=LD_LIBRARY_PATH
16912   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16913   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16914   # the default ld.so.conf also contains /usr/contrib/lib and
16915   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16916   # libtool to hard-code these into programs
16917   ;;
16918
16919 cygwin* | mingw* | pw32*)
16920   version_type=windows
16921   shrext_cmds=".dll"
16922   need_version=no
16923   need_lib_prefix=no
16924
16925   case $GCC,$host_os in
16926   yes,cygwin* | yes,mingw* | yes,pw32*)
16927     library_names_spec='$libname.dll.a'
16928     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16929     postinstall_cmds='base_file=`basename \${file}`~
16930       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16931       dldir=$destdir/`dirname \$dlpath`~
16932       test -d \$dldir || mkdir -p \$dldir~
16933       $install_prog $dir/$dlname \$dldir/$dlname'
16934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16935       dlpath=$dir/\$dldll~
16936        $rm \$dlpath'
16937     shlibpath_overrides_runpath=yes
16938
16939     case $host_os in
16940     cygwin*)
16941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16944       ;;
16945     mingw*)
16946       # MinGW DLLs use traditional 'lib' prefix
16947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16949       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16950         # It is most probably a Windows format PATH printed by
16951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16952         # path with ; separators, and with drive letters. We can handle the
16953         # drive letters (cygwin fileutils understands them), so leave them,
16954         # especially as we might pass files found there to a mingw objdump,
16955         # which wouldn't understand a cygwinified path. Ahh.
16956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16957       else
16958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16959       fi
16960       ;;
16961     pw32*)
16962       # pw32 DLLs use 'pw' prefix rather than 'lib'
16963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16964       ;;
16965     esac
16966     ;;
16967
16968   *)
16969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16970     ;;
16971   esac
16972   dynamic_linker='Win32 ld.exe'
16973   # FIXME: first we should search . and the directory the executable is in
16974   shlibpath_var=PATH
16975   ;;
16976
16977 darwin* | rhapsody*)
16978   dynamic_linker="$host_os dyld"
16979   version_type=darwin
16980   need_lib_prefix=no
16981   need_version=no
16982   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16983   soname_spec='${libname}${release}${major}$shared_ext'
16984   shlibpath_overrides_runpath=yes
16985   shlibpath_var=DYLD_LIBRARY_PATH
16986   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16987   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16988   if test "$GCC" = yes; then
16989     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"`
16990   else
16991     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16992   fi
16993   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16994   ;;
16995
16996 dgux*)
16997   version_type=linux
16998   need_lib_prefix=no
16999   need_version=no
17000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17001   soname_spec='${libname}${release}${shared_ext}$major'
17002   shlibpath_var=LD_LIBRARY_PATH
17003   ;;
17004
17005 freebsd1*)
17006   dynamic_linker=no
17007   ;;
17008
17009 kfreebsd*-gnu)
17010   version_type=linux
17011   need_lib_prefix=no
17012   need_version=no
17013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17014   soname_spec='${libname}${release}${shared_ext}$major'
17015   shlibpath_var=LD_LIBRARY_PATH
17016   shlibpath_overrides_runpath=no
17017   hardcode_into_libs=yes
17018   dynamic_linker='GNU ld.so'
17019   ;;
17020
17021 freebsd*)
17022   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17023   version_type=freebsd-$objformat
17024   case $version_type in
17025     freebsd-elf*)
17026       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17027       need_version=no
17028       need_lib_prefix=no
17029       ;;
17030     freebsd-*)
17031       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17032       need_version=yes
17033       ;;
17034   esac
17035   shlibpath_var=LD_LIBRARY_PATH
17036   case $host_os in
17037   freebsd2*)
17038     shlibpath_overrides_runpath=yes
17039     ;;
17040   freebsd3.01* | freebsdelf3.01*)
17041     shlibpath_overrides_runpath=yes
17042     hardcode_into_libs=yes
17043     ;;
17044   *) # from 3.2 on
17045     shlibpath_overrides_runpath=no
17046     hardcode_into_libs=yes
17047     ;;
17048   esac
17049   ;;
17050
17051 gnu*)
17052   version_type=linux
17053   need_lib_prefix=no
17054   need_version=no
17055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17056   soname_spec='${libname}${release}${shared_ext}$major'
17057   shlibpath_var=LD_LIBRARY_PATH
17058   hardcode_into_libs=yes
17059   ;;
17060
17061 hpux9* | hpux10* | hpux11*)
17062   # Give a soname corresponding to the major version so that dld.sl refuses to
17063   # link against other versions.
17064   version_type=sunos
17065   need_lib_prefix=no
17066   need_version=no
17067   case "$host_cpu" in
17068   ia64*)
17069     shrext_cmds='.so'
17070     hardcode_into_libs=yes
17071     dynamic_linker="$host_os dld.so"
17072     shlibpath_var=LD_LIBRARY_PATH
17073     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075     soname_spec='${libname}${release}${shared_ext}$major'
17076     if test "X$HPUX_IA64_MODE" = X32; then
17077       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17078     else
17079       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17080     fi
17081     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17082     ;;
17083    hppa*64*)
17084      shrext_cmds='.sl'
17085      hardcode_into_libs=yes
17086      dynamic_linker="$host_os dld.sl"
17087      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17088      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17092      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17093      ;;
17094    *)
17095     shrext_cmds='.sl'
17096     dynamic_linker="$host_os dld.sl"
17097     shlibpath_var=SHLIB_PATH
17098     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100     soname_spec='${libname}${release}${shared_ext}$major'
17101     ;;
17102   esac
17103   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17104   postinstall_cmds='chmod 555 $lib'
17105   ;;
17106
17107 irix5* | irix6* | nonstopux*)
17108   case $host_os in
17109     nonstopux*) version_type=nonstopux ;;
17110     *)
17111         if test "$lt_cv_prog_gnu_ld" = yes; then
17112                 version_type=linux
17113         else
17114                 version_type=irix
17115         fi ;;
17116   esac
17117   need_lib_prefix=no
17118   need_version=no
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17121   case $host_os in
17122   irix5* | nonstopux*)
17123     libsuff= shlibsuff=
17124     ;;
17125   *)
17126     case $LD in # libtool.m4 will add one of these switches to LD
17127     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17128       libsuff= shlibsuff= libmagic=32-bit;;
17129     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17130       libsuff=32 shlibsuff=N32 libmagic=N32;;
17131     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17132       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17133     *) libsuff= shlibsuff= libmagic=never-match;;
17134     esac
17135     ;;
17136   esac
17137   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17138   shlibpath_overrides_runpath=no
17139   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17140   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17141   hardcode_into_libs=yes
17142   ;;
17143
17144 # No shared lib support for Linux oldld, aout, or coff.
17145 linux*oldld* | linux*aout* | linux*coff*)
17146   dynamic_linker=no
17147   ;;
17148
17149 # This must be Linux ELF.
17150 linux*)
17151   version_type=linux
17152   need_lib_prefix=no
17153   need_version=no
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155   soname_spec='${libname}${release}${shared_ext}$major'
17156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17157   shlibpath_var=LD_LIBRARY_PATH
17158   shlibpath_overrides_runpath=no
17159   # This implies no fast_install, which is unacceptable.
17160   # Some rework will be needed to allow for fast_install
17161   # before this can be enabled.
17162   hardcode_into_libs=yes
17163
17164   # find out which ABI we are using
17165   libsuff=
17166   case "$host_cpu" in
17167   x86_64*|s390x*|powerpc64*)
17168     echo '#line 17168 "configure"' > conftest.$ac_ext
17169     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170   (eval $ac_compile) 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; then
17174       case `/usr/bin/file conftest.$ac_objext` in
17175       *64-bit*)
17176         libsuff=64
17177         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17178         ;;
17179       esac
17180     fi
17181     rm -rf conftest*
17182     ;;
17183   esac
17184
17185   # Append ld.so.conf contents to the search path
17186   if test -f /etc/ld.so.conf; then
17187     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17188     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17189   fi
17190
17191   # We used to test for /lib/ld.so.1 and disable shared libraries on
17192   # powerpc, because MkLinux only supported shared libraries with the
17193   # GNU dynamic linker.  Since this was broken with cross compilers,
17194   # most powerpc-linux boxes support dynamic linking these days and
17195   # people can always --disable-shared, the test was removed, and we
17196   # assume the GNU/Linux dynamic linker is in use.
17197   dynamic_linker='GNU/Linux ld.so'
17198   ;;
17199
17200 knetbsd*-gnu)
17201   version_type=linux
17202   need_lib_prefix=no
17203   need_version=no
17204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205   soname_spec='${libname}${release}${shared_ext}$major'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   shlibpath_overrides_runpath=no
17208   hardcode_into_libs=yes
17209   dynamic_linker='GNU ld.so'
17210   ;;
17211
17212 netbsd*)
17213   version_type=sunos
17214   need_lib_prefix=no
17215   need_version=no
17216   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17218     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17219     dynamic_linker='NetBSD (a.out) ld.so'
17220   else
17221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17222     soname_spec='${libname}${release}${shared_ext}$major'
17223     dynamic_linker='NetBSD ld.elf_so'
17224   fi
17225   shlibpath_var=LD_LIBRARY_PATH
17226   shlibpath_overrides_runpath=yes
17227   hardcode_into_libs=yes
17228   ;;
17229
17230 newsos6)
17231   version_type=linux
17232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233   shlibpath_var=LD_LIBRARY_PATH
17234   shlibpath_overrides_runpath=yes
17235   ;;
17236
17237 nto-qnx*)
17238   version_type=linux
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242   soname_spec='${libname}${release}${shared_ext}$major'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   shlibpath_overrides_runpath=yes
17245   ;;
17246
17247 openbsd*)
17248   version_type=sunos
17249   need_lib_prefix=no
17250   need_version=yes
17251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17253   shlibpath_var=LD_LIBRARY_PATH
17254   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17255     case $host_os in
17256       openbsd2.[89] | openbsd2.[89].*)
17257         shlibpath_overrides_runpath=no
17258         ;;
17259       *)
17260         shlibpath_overrides_runpath=yes
17261         ;;
17262       esac
17263   else
17264     shlibpath_overrides_runpath=yes
17265   fi
17266   ;;
17267
17268 os2*)
17269   libname_spec='$name'
17270   shrext_cmds=".dll"
17271   need_lib_prefix=no
17272   library_names_spec='$libname${shared_ext} $libname.a'
17273   dynamic_linker='OS/2 ld.exe'
17274   shlibpath_var=LIBPATH
17275   ;;
17276
17277 osf3* | osf4* | osf5*)
17278   version_type=osf
17279   need_lib_prefix=no
17280   need_version=no
17281   soname_spec='${libname}${release}${shared_ext}$major'
17282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17285   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17286   ;;
17287
17288 sco3.2v5*)
17289   version_type=osf
17290   soname_spec='${libname}${release}${shared_ext}$major'
17291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292   shlibpath_var=LD_LIBRARY_PATH
17293   ;;
17294
17295 solaris*)
17296   version_type=linux
17297   need_lib_prefix=no
17298   need_version=no
17299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300   soname_spec='${libname}${release}${shared_ext}$major'
17301   shlibpath_var=LD_LIBRARY_PATH
17302   shlibpath_overrides_runpath=yes
17303   hardcode_into_libs=yes
17304   # ldd complains unless libraries are executable
17305   postinstall_cmds='chmod +x $lib'
17306   ;;
17307
17308 sunos4*)
17309   version_type=sunos
17310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17311   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   shlibpath_overrides_runpath=yes
17314   if test "$with_gnu_ld" = yes; then
17315     need_lib_prefix=no
17316   fi
17317   need_version=yes
17318   ;;
17319
17320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17321   version_type=linux
17322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323   soname_spec='${libname}${release}${shared_ext}$major'
17324   shlibpath_var=LD_LIBRARY_PATH
17325   case $host_vendor in
17326     sni)
17327       shlibpath_overrides_runpath=no
17328       need_lib_prefix=no
17329       export_dynamic_flag_spec='${wl}-Blargedynsym'
17330       runpath_var=LD_RUN_PATH
17331       ;;
17332     siemens)
17333       need_lib_prefix=no
17334       ;;
17335     motorola)
17336       need_lib_prefix=no
17337       need_version=no
17338       shlibpath_overrides_runpath=no
17339       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17340       ;;
17341   esac
17342   ;;
17343
17344 sysv4*MP*)
17345   if test -d /usr/nec ;then
17346     version_type=linux
17347     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17348     soname_spec='$libname${shared_ext}.$major'
17349     shlibpath_var=LD_LIBRARY_PATH
17350   fi
17351   ;;
17352
17353 uts4*)
17354   version_type=linux
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356   soname_spec='${libname}${release}${shared_ext}$major'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   ;;
17359
17360 *)
17361   dynamic_linker=no
17362   ;;
17363 esac
17364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17365 echo "${ECHO_T}$dynamic_linker" >&6
17366 test "$dynamic_linker" = no && can_build_shared=no
17367
17368 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17370 hardcode_action_GCJ=
17371 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17372    test -n "$runpath_var GCJ" || \
17373    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17374
17375   # We can hardcode non-existant directories.
17376   if test "$hardcode_direct_GCJ" != no &&
17377      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17378      # have to relink, otherwise we might link with an installed library
17379      # when we should be linking with a yet-to-be-installed one
17380      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17381      test "$hardcode_minus_L_GCJ" != no; then
17382     # Linking always hardcodes the temporary library directory.
17383     hardcode_action_GCJ=relink
17384   else
17385     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17386     hardcode_action_GCJ=immediate
17387   fi
17388 else
17389   # We cannot hardcode anything, or else we can only hardcode existing
17390   # directories.
17391   hardcode_action_GCJ=unsupported
17392 fi
17393 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17394 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17395
17396 if test "$hardcode_action_GCJ" = relink; then
17397   # Fast installation is not supported
17398   enable_fast_install=no
17399 elif test "$shlibpath_overrides_runpath" = yes ||
17400      test "$enable_shared" = no; then
17401   # Fast installation is not necessary
17402   enable_fast_install=needless
17403 fi
17404
17405 striplib=
17406 old_striplib=
17407 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17410   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17411   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17412   echo "$as_me:$LINENO: result: yes" >&5
17413 echo "${ECHO_T}yes" >&6
17414 else
17415 # FIXME - insert some real tests, host_os isn't really good enough
17416   case $host_os in
17417    darwin*)
17418        if test -n "$STRIP" ; then
17419          striplib="$STRIP -x"
17420          echo "$as_me:$LINENO: result: yes" >&5
17421 echo "${ECHO_T}yes" >&6
17422        else
17423   echo "$as_me:$LINENO: result: no" >&5
17424 echo "${ECHO_T}no" >&6
17425 fi
17426        ;;
17427    *)
17428   echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6
17430     ;;
17431   esac
17432 fi
17433
17434 if test "x$enable_dlopen" != xyes; then
17435   enable_dlopen=unknown
17436   enable_dlopen_self=unknown
17437   enable_dlopen_self_static=unknown
17438 else
17439   lt_cv_dlopen=no
17440   lt_cv_dlopen_libs=
17441
17442   case $host_os in
17443   beos*)
17444     lt_cv_dlopen="load_add_on"
17445     lt_cv_dlopen_libs=
17446     lt_cv_dlopen_self=yes
17447     ;;
17448
17449   mingw* | pw32*)
17450     lt_cv_dlopen="LoadLibrary"
17451     lt_cv_dlopen_libs=
17452    ;;
17453
17454   cygwin*)
17455     lt_cv_dlopen="dlopen"
17456     lt_cv_dlopen_libs=
17457    ;;
17458
17459   darwin*)
17460   # if libdl is installed we need to link against it
17461     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   ac_check_lib_save_LIBS=$LIBS
17467 LIBS="-ldl  $LIBS"
17468 cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474
17475 /* Override any gcc2 internal prototype to avoid an error.  */
17476 #ifdef __cplusplus
17477 extern "C"
17478 #endif
17479 /* We use char because int might match the return type of a gcc2
17480    builtin and then its argument prototype would still apply.  */
17481 char dlopen ();
17482 int
17483 main ()
17484 {
17485 dlopen ();
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492   (eval $ac_link) 2>conftest.er1
17493   ac_status=$?
17494   grep -v '^ *+' conftest.er1 >conftest.err
17495   rm -f conftest.er1
17496   cat conftest.err >&5
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } &&
17499          { ac_try='test -z "$ac_c_werror_flag"
17500                          || test ! -s conftest.err'
17501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502   (eval $ac_try) 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; } &&
17506          { ac_try='test -s conftest$ac_exeext'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; }; then
17512   ac_cv_lib_dl_dlopen=yes
17513 else
17514   echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17516
17517 ac_cv_lib_dl_dlopen=no
17518 fi
17519 rm -f conftest.err conftest.$ac_objext \
17520       conftest$ac_exeext conftest.$ac_ext
17521 LIBS=$ac_check_lib_save_LIBS
17522 fi
17523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17525 if test $ac_cv_lib_dl_dlopen = yes; then
17526   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17527 else
17528
17529     lt_cv_dlopen="dyld"
17530     lt_cv_dlopen_libs=
17531     lt_cv_dlopen_self=yes
17532
17533 fi
17534
17535    ;;
17536
17537   *)
17538     echo "$as_me:$LINENO: checking for shl_load" >&5
17539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17540 if test "${ac_cv_func_shl_load+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543   cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17551 #define shl_load innocuous_shl_load
17552
17553 /* System header to define __stub macros and hopefully few prototypes,
17554     which can conflict with char shl_load (); below.
17555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17556     <limits.h> exists even on freestanding compilers.  */
17557
17558 #ifdef __STDC__
17559 # include <limits.h>
17560 #else
17561 # include <assert.h>
17562 #endif
17563
17564 #undef shl_load
17565
17566 /* Override any gcc2 internal prototype to avoid an error.  */
17567 #ifdef __cplusplus
17568 extern "C"
17569 {
17570 #endif
17571 /* We use char because int might match the return type of a gcc2
17572    builtin and then its argument prototype would still apply.  */
17573 char shl_load ();
17574 /* The GNU C library defines this for functions which it implements
17575     to always fail with ENOSYS.  Some functions are actually named
17576     something starting with __ and the normal name is an alias.  */
17577 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17578 choke me
17579 #else
17580 char (*f) () = shl_load;
17581 #endif
17582 #ifdef __cplusplus
17583 }
17584 #endif
17585
17586 int
17587 main ()
17588 {
17589 return f != shl_load;
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596   (eval $ac_link) 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } &&
17603          { ac_try='test -z "$ac_c_werror_flag"
17604                          || test ! -s conftest.err'
17605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606   (eval $ac_try) 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); }; } &&
17610          { ac_try='test -s conftest$ac_exeext'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ac_cv_func_shl_load=yes
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 ac_cv_func_shl_load=no
17622 fi
17623 rm -f conftest.err conftest.$ac_objext \
17624       conftest$ac_exeext conftest.$ac_ext
17625 fi
17626 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17627 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17628 if test $ac_cv_func_shl_load = yes; then
17629   lt_cv_dlopen="shl_load"
17630 else
17631   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17632 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17633 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   ac_check_lib_save_LIBS=$LIBS
17637 LIBS="-ldld  $LIBS"
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644
17645 /* Override any gcc2 internal prototype to avoid an error.  */
17646 #ifdef __cplusplus
17647 extern "C"
17648 #endif
17649 /* We use char because int might match the return type of a gcc2
17650    builtin and then its argument prototype would still apply.  */
17651 char shl_load ();
17652 int
17653 main ()
17654 {
17655 shl_load ();
17656   ;
17657   return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662   (eval $ac_link) 2>conftest.er1
17663   ac_status=$?
17664   grep -v '^ *+' conftest.er1 >conftest.err
17665   rm -f conftest.er1
17666   cat conftest.err >&5
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); } &&
17669          { ac_try='test -z "$ac_c_werror_flag"
17670                          || test ! -s conftest.err'
17671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; } &&
17676          { ac_try='test -s conftest$ac_exeext'
17677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678   (eval $ac_try) 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_lib_dld_shl_load=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 ac_cv_lib_dld_shl_load=no
17688 fi
17689 rm -f conftest.err conftest.$ac_objext \
17690       conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17692 fi
17693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17695 if test $ac_cv_lib_dld_shl_load = yes; then
17696   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17697 else
17698   echo "$as_me:$LINENO: checking for dlopen" >&5
17699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17700 if test "${ac_cv_func_dlopen+set}" = set; then
17701   echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703   cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h.  */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h.  */
17709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17711 #define dlopen innocuous_dlopen
17712
17713 /* System header to define __stub macros and hopefully few prototypes,
17714     which can conflict with char dlopen (); below.
17715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17716     <limits.h> exists even on freestanding compilers.  */
17717
17718 #ifdef __STDC__
17719 # include <limits.h>
17720 #else
17721 # include <assert.h>
17722 #endif
17723
17724 #undef dlopen
17725
17726 /* Override any gcc2 internal prototype to avoid an error.  */
17727 #ifdef __cplusplus
17728 extern "C"
17729 {
17730 #endif
17731 /* We use char because int might match the return type of a gcc2
17732    builtin and then its argument prototype would still apply.  */
17733 char dlopen ();
17734 /* The GNU C library defines this for functions which it implements
17735     to always fail with ENOSYS.  Some functions are actually named
17736     something starting with __ and the normal name is an alias.  */
17737 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17738 choke me
17739 #else
17740 char (*f) () = dlopen;
17741 #endif
17742 #ifdef __cplusplus
17743 }
17744 #endif
17745
17746 int
17747 main ()
17748 {
17749 return f != dlopen;
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_func_dlopen=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_cv_func_dlopen=no
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 fi
17786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17788 if test $ac_cv_func_dlopen = yes; then
17789   lt_cv_dlopen="dlopen"
17790 else
17791   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17794   echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796   ac_check_lib_save_LIBS=$LIBS
17797 LIBS="-ldl  $LIBS"
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h.  */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h.  */
17804
17805 /* Override any gcc2 internal prototype to avoid an error.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 /* We use char because int might match the return type of a gcc2
17810    builtin and then its argument prototype would still apply.  */
17811 char dlopen ();
17812 int
17813 main ()
17814 {
17815 dlopen ();
17816   ;
17817   return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822   (eval $ac_link) 2>conftest.er1
17823   ac_status=$?
17824   grep -v '^ *+' conftest.er1 >conftest.err
17825   rm -f conftest.er1
17826   cat conftest.err >&5
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); } &&
17829          { ac_try='test -z "$ac_c_werror_flag"
17830                          || test ! -s conftest.err'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; } &&
17836          { ac_try='test -s conftest$ac_exeext'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_cv_lib_dl_dlopen=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 ac_cv_lib_dl_dlopen=no
17848 fi
17849 rm -f conftest.err conftest.$ac_objext \
17850       conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17852 fi
17853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17855 if test $ac_cv_lib_dl_dlopen = yes; then
17856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17857 else
17858   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17861   echo $ECHO_N "(cached) $ECHO_C" >&6
17862 else
17863   ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-lsvld  $LIBS"
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871
17872 /* Override any gcc2 internal prototype to avoid an error.  */
17873 #ifdef __cplusplus
17874 extern "C"
17875 #endif
17876 /* We use char because int might match the return type of a gcc2
17877    builtin and then its argument prototype would still apply.  */
17878 char dlopen ();
17879 int
17880 main ()
17881 {
17882 dlopen ();
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -z "$ac_c_werror_flag"
17897                          || test ! -s conftest.err'
17898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899   (eval $ac_try) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; } &&
17903          { ac_try='test -s conftest$ac_exeext'
17904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905   (eval $ac_try) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; }; then
17909   ac_cv_lib_svld_dlopen=yes
17910 else
17911   echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 ac_cv_lib_svld_dlopen=no
17915 fi
17916 rm -f conftest.err conftest.$ac_objext \
17917       conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17919 fi
17920 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17921 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17922 if test $ac_cv_lib_svld_dlopen = yes; then
17923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17924 else
17925   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17926 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17928   echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930   ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-ldld  $LIBS"
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938
17939 /* Override any gcc2 internal prototype to avoid an error.  */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 /* We use char because int might match the return type of a gcc2
17944    builtin and then its argument prototype would still apply.  */
17945 char dld_link ();
17946 int
17947 main ()
17948 {
17949 dld_link ();
17950   ;
17951   return 0;
17952 }
17953 _ACEOF
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17956   (eval $ac_link) 2>conftest.er1
17957   ac_status=$?
17958   grep -v '^ *+' conftest.er1 >conftest.err
17959   rm -f conftest.er1
17960   cat conftest.err >&5
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); } &&
17963          { ac_try='test -z "$ac_c_werror_flag"
17964                          || test ! -s conftest.err'
17965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966   (eval $ac_try) 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; } &&
17970          { ac_try='test -s conftest$ac_exeext'
17971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972   (eval $ac_try) 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; }; then
17976   ac_cv_lib_dld_dld_link=yes
17977 else
17978   echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17980
17981 ac_cv_lib_dld_dld_link=no
17982 fi
17983 rm -f conftest.err conftest.$ac_objext \
17984       conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17986 fi
17987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17989 if test $ac_cv_lib_dld_dld_link = yes; then
17990   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17991 fi
17992
17993
17994 fi
17995
17996
17997 fi
17998
17999
18000 fi
18001
18002
18003 fi
18004
18005
18006 fi
18007
18008     ;;
18009   esac
18010
18011   if test "x$lt_cv_dlopen" != xno; then
18012     enable_dlopen=yes
18013   else
18014     enable_dlopen=no
18015   fi
18016
18017   case $lt_cv_dlopen in
18018   dlopen)
18019     save_CPPFLAGS="$CPPFLAGS"
18020     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18021
18022     save_LDFLAGS="$LDFLAGS"
18023     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18024
18025     save_LIBS="$LIBS"
18026     LIBS="$lt_cv_dlopen_libs $LIBS"
18027
18028     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18030 if test "${lt_cv_dlopen_self+set}" = set; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033           if test "$cross_compiling" = yes; then :
18034   lt_cv_dlopen_self=cross
18035 else
18036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18037   lt_status=$lt_dlunknown
18038   cat > conftest.$ac_ext <<EOF
18039 #line 18039 "configure"
18040 #include "confdefs.h"
18041
18042 #if HAVE_DLFCN_H
18043 #include <dlfcn.h>
18044 #endif
18045
18046 #include <stdio.h>
18047
18048 #ifdef RTLD_GLOBAL
18049 #  define LT_DLGLOBAL           RTLD_GLOBAL
18050 #else
18051 #  ifdef DL_GLOBAL
18052 #    define LT_DLGLOBAL         DL_GLOBAL
18053 #  else
18054 #    define LT_DLGLOBAL         0
18055 #  endif
18056 #endif
18057
18058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18059    find out it does not work in some platform. */
18060 #ifndef LT_DLLAZY_OR_NOW
18061 #  ifdef RTLD_LAZY
18062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18063 #  else
18064 #    ifdef DL_LAZY
18065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18066 #    else
18067 #      ifdef RTLD_NOW
18068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18069 #      else
18070 #        ifdef DL_NOW
18071 #          define LT_DLLAZY_OR_NOW      DL_NOW
18072 #        else
18073 #          define LT_DLLAZY_OR_NOW      0
18074 #        endif
18075 #      endif
18076 #    endif
18077 #  endif
18078 #endif
18079
18080 #ifdef __cplusplus
18081 extern "C" void exit (int);
18082 #endif
18083
18084 void fnord() { int i=42;}
18085 int main ()
18086 {
18087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18088   int status = $lt_dlunknown;
18089
18090   if (self)
18091     {
18092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18093       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18094       /* dlclose (self); */
18095     }
18096
18097     exit (status);
18098 }
18099 EOF
18100   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18101   (eval $ac_link) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18105     (./conftest; exit; ) 2>/dev/null
18106     lt_status=$?
18107     case x$lt_status in
18108       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18109       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18110       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18111     esac
18112   else :
18113     # compilation failed
18114     lt_cv_dlopen_self=no
18115   fi
18116 fi
18117 rm -fr conftest*
18118
18119
18120 fi
18121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18123
18124     if test "x$lt_cv_dlopen_self" = xyes; then
18125       LDFLAGS="$LDFLAGS $link_static_flag"
18126       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18128 if test "${lt_cv_dlopen_self_static+set}" = set; then
18129   echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131           if test "$cross_compiling" = yes; then :
18132   lt_cv_dlopen_self_static=cross
18133 else
18134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18135   lt_status=$lt_dlunknown
18136   cat > conftest.$ac_ext <<EOF
18137 #line 18137 "configure"
18138 #include "confdefs.h"
18139
18140 #if HAVE_DLFCN_H
18141 #include <dlfcn.h>
18142 #endif
18143
18144 #include <stdio.h>
18145
18146 #ifdef RTLD_GLOBAL
18147 #  define LT_DLGLOBAL           RTLD_GLOBAL
18148 #else
18149 #  ifdef DL_GLOBAL
18150 #    define LT_DLGLOBAL         DL_GLOBAL
18151 #  else
18152 #    define LT_DLGLOBAL         0
18153 #  endif
18154 #endif
18155
18156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18157    find out it does not work in some platform. */
18158 #ifndef LT_DLLAZY_OR_NOW
18159 #  ifdef RTLD_LAZY
18160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18161 #  else
18162 #    ifdef DL_LAZY
18163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18164 #    else
18165 #      ifdef RTLD_NOW
18166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18167 #      else
18168 #        ifdef DL_NOW
18169 #          define LT_DLLAZY_OR_NOW      DL_NOW
18170 #        else
18171 #          define LT_DLLAZY_OR_NOW      0
18172 #        endif
18173 #      endif
18174 #    endif
18175 #  endif
18176 #endif
18177
18178 #ifdef __cplusplus
18179 extern "C" void exit (int);
18180 #endif
18181
18182 void fnord() { int i=42;}
18183 int main ()
18184 {
18185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18186   int status = $lt_dlunknown;
18187
18188   if (self)
18189     {
18190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18192       /* dlclose (self); */
18193     }
18194
18195     exit (status);
18196 }
18197 EOF
18198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199   (eval $ac_link) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18203     (./conftest; exit; ) 2>/dev/null
18204     lt_status=$?
18205     case x$lt_status in
18206       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18207       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18208       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18209     esac
18210   else :
18211     # compilation failed
18212     lt_cv_dlopen_self_static=no
18213   fi
18214 fi
18215 rm -fr conftest*
18216
18217
18218 fi
18219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18221     fi
18222
18223     CPPFLAGS="$save_CPPFLAGS"
18224     LDFLAGS="$save_LDFLAGS"
18225     LIBS="$save_LIBS"
18226     ;;
18227   esac
18228
18229   case $lt_cv_dlopen_self in
18230   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18231   *) enable_dlopen_self=unknown ;;
18232   esac
18233
18234   case $lt_cv_dlopen_self_static in
18235   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18236   *) enable_dlopen_self_static=unknown ;;
18237   esac
18238 fi
18239
18240
18241 # The else clause should only fire when bootstrapping the
18242 # libtool distribution, otherwise you forgot to ship ltmain.sh
18243 # with your package, and you will get complaints that there are
18244 # no rules to generate ltmain.sh.
18245 if test -f "$ltmain"; then
18246   # See if we are running on zsh, and set the options which allow our commands through
18247   # without removal of \ escapes.
18248   if test -n "${ZSH_VERSION+set}" ; then
18249     setopt NO_GLOB_SUBST
18250   fi
18251   # Now quote all the things that may contain metacharacters while being
18252   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18253   # variables and quote the copies for generation of the libtool script.
18254   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18255     SED SHELL STRIP \
18256     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18257     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18258     deplibs_check_method reload_flag reload_cmds need_locks \
18259     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18260     lt_cv_sys_global_symbol_to_c_name_address \
18261     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18262     old_postinstall_cmds old_postuninstall_cmds \
18263     compiler_GCJ \
18264     CC_GCJ \
18265     LD_GCJ \
18266     lt_prog_compiler_wl_GCJ \
18267     lt_prog_compiler_pic_GCJ \
18268     lt_prog_compiler_static_GCJ \
18269     lt_prog_compiler_no_builtin_flag_GCJ \
18270     export_dynamic_flag_spec_GCJ \
18271     thread_safe_flag_spec_GCJ \
18272     whole_archive_flag_spec_GCJ \
18273     enable_shared_with_static_runtimes_GCJ \
18274     old_archive_cmds_GCJ \
18275     old_archive_from_new_cmds_GCJ \
18276     predep_objects_GCJ \
18277     postdep_objects_GCJ \
18278     predeps_GCJ \
18279     postdeps_GCJ \
18280     compiler_lib_search_path_GCJ \
18281     archive_cmds_GCJ \
18282     archive_expsym_cmds_GCJ \
18283     postinstall_cmds_GCJ \
18284     postuninstall_cmds_GCJ \
18285     old_archive_from_expsyms_cmds_GCJ \
18286     allow_undefined_flag_GCJ \
18287     no_undefined_flag_GCJ \
18288     export_symbols_cmds_GCJ \
18289     hardcode_libdir_flag_spec_GCJ \
18290     hardcode_libdir_flag_spec_ld_GCJ \
18291     hardcode_libdir_separator_GCJ \
18292     hardcode_automatic_GCJ \
18293     module_cmds_GCJ \
18294     module_expsym_cmds_GCJ \
18295     lt_cv_prog_compiler_c_o_GCJ \
18296     exclude_expsyms_GCJ \
18297     include_expsyms_GCJ; do
18298
18299     case $var in
18300     old_archive_cmds_GCJ | \
18301     old_archive_from_new_cmds_GCJ | \
18302     archive_cmds_GCJ | \
18303     archive_expsym_cmds_GCJ | \
18304     module_cmds_GCJ | \
18305     module_expsym_cmds_GCJ | \
18306     old_archive_from_expsyms_cmds_GCJ | \
18307     export_symbols_cmds_GCJ | \
18308     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18309     postinstall_cmds | postuninstall_cmds | \
18310     old_postinstall_cmds | old_postuninstall_cmds | \
18311     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18312       # Double-quote double-evaled strings.
18313       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18314       ;;
18315     *)
18316       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18317       ;;
18318     esac
18319   done
18320
18321   case $lt_echo in
18322   *'\$0 --fallback-echo"')
18323     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18324     ;;
18325   esac
18326
18327 cfgfile="$ofile"
18328
18329   cat <<__EOF__ >> "$cfgfile"
18330 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18331
18332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18333
18334 # Shell to use when invoking shell scripts.
18335 SHELL=$lt_SHELL
18336
18337 # Whether or not to build shared libraries.
18338 build_libtool_libs=$enable_shared
18339
18340 # Whether or not to build static libraries.
18341 build_old_libs=$enable_static
18342
18343 # Whether or not to add -lc for building shared libraries.
18344 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18345
18346 # Whether or not to disallow shared libs when runtime libs are static
18347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18348
18349 # Whether or not to optimize for fast installation.
18350 fast_install=$enable_fast_install
18351
18352 # The host system.
18353 host_alias=$host_alias
18354 host=$host
18355
18356 # An echo program that does not interpret backslashes.
18357 echo=$lt_echo
18358
18359 # The archiver.
18360 AR=$lt_AR
18361 AR_FLAGS=$lt_AR_FLAGS
18362
18363 # A C compiler.
18364 LTCC=$lt_LTCC
18365
18366 # A language-specific compiler.
18367 CC=$lt_compiler_GCJ
18368
18369 # Is the compiler the GNU C compiler?
18370 with_gcc=$GCC_GCJ
18371
18372 # An ERE matcher.
18373 EGREP=$lt_EGREP
18374
18375 # The linker used to build libraries.
18376 LD=$lt_LD_GCJ
18377
18378 # Whether we need hard or soft links.
18379 LN_S=$lt_LN_S
18380
18381 # A BSD-compatible nm program.
18382 NM=$lt_NM
18383
18384 # A symbol stripping program
18385 STRIP=$lt_STRIP
18386
18387 # Used to examine libraries when file_magic_cmd begins "file"
18388 MAGIC_CMD=$MAGIC_CMD
18389
18390 # Used on cygwin: DLL creation program.
18391 DLLTOOL="$DLLTOOL"
18392
18393 # Used on cygwin: object dumper.
18394 OBJDUMP="$OBJDUMP"
18395
18396 # Used on cygwin: assembler.
18397 AS="$AS"
18398
18399 # The name of the directory that contains temporary libtool files.
18400 objdir=$objdir
18401
18402 # How to create reloadable object files.
18403 reload_flag=$lt_reload_flag
18404 reload_cmds=$lt_reload_cmds
18405
18406 # How to pass a linker flag through the compiler.
18407 wl=$lt_lt_prog_compiler_wl_GCJ
18408
18409 # Object file suffix (normally "o").
18410 objext="$ac_objext"
18411
18412 # Old archive suffix (normally "a").
18413 libext="$libext"
18414
18415 # Shared library suffix (normally ".so").
18416 shrext_cmds='$shrext_cmds'
18417
18418 # Executable file suffix (normally "").
18419 exeext="$exeext"
18420
18421 # Additional compiler flags for building library objects.
18422 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18423 pic_mode=$pic_mode
18424
18425 # What is the maximum length of a command?
18426 max_cmd_len=$lt_cv_sys_max_cmd_len
18427
18428 # Does compiler simultaneously support -c and -o options?
18429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18430
18431 # Must we lock files when doing compilation ?
18432 need_locks=$lt_need_locks
18433
18434 # Do we need the lib prefix for modules?
18435 need_lib_prefix=$need_lib_prefix
18436
18437 # Do we need a version for libraries?
18438 need_version=$need_version
18439
18440 # Whether dlopen is supported.
18441 dlopen_support=$enable_dlopen
18442
18443 # Whether dlopen of programs is supported.
18444 dlopen_self=$enable_dlopen_self
18445
18446 # Whether dlopen of statically linked programs is supported.
18447 dlopen_self_static=$enable_dlopen_self_static
18448
18449 # Compiler flag to prevent dynamic linking.
18450 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18451
18452 # Compiler flag to turn off builtin functions.
18453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18454
18455 # Compiler flag to allow reflexive dlopens.
18456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18457
18458 # Compiler flag to generate shared objects directly from archives.
18459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18460
18461 # Compiler flag to generate thread-safe objects.
18462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18463
18464 # Library versioning type.
18465 version_type=$version_type
18466
18467 # Format of library name prefix.
18468 libname_spec=$lt_libname_spec
18469
18470 # List of archive names.  First name is the real one, the rest are links.
18471 # The last name is the one that the linker finds with -lNAME.
18472 library_names_spec=$lt_library_names_spec
18473
18474 # The coded name of the library, if different from the real name.
18475 soname_spec=$lt_soname_spec
18476
18477 # Commands used to build and install an old-style archive.
18478 RANLIB=$lt_RANLIB
18479 old_archive_cmds=$lt_old_archive_cmds_GCJ
18480 old_postinstall_cmds=$lt_old_postinstall_cmds
18481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18482
18483 # Create an old-style archive from a shared archive.
18484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18485
18486 # Create a temporary old-style archive to link instead of a shared archive.
18487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18488
18489 # Commands used to build and install a shared archive.
18490 archive_cmds=$lt_archive_cmds_GCJ
18491 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18492 postinstall_cmds=$lt_postinstall_cmds
18493 postuninstall_cmds=$lt_postuninstall_cmds
18494
18495 # Commands used to build a loadable module (assumed same as above if empty)
18496 module_cmds=$lt_module_cmds_GCJ
18497 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18498
18499 # Commands to strip libraries.
18500 old_striplib=$lt_old_striplib
18501 striplib=$lt_striplib
18502
18503 # Dependencies to place before the objects being linked to create a
18504 # shared library.
18505 predep_objects=$lt_predep_objects_GCJ
18506
18507 # Dependencies to place after the objects being linked to create a
18508 # shared library.
18509 postdep_objects=$lt_postdep_objects_GCJ
18510
18511 # Dependencies to place before the objects being linked to create a
18512 # shared library.
18513 predeps=$lt_predeps_GCJ
18514
18515 # Dependencies to place after the objects being linked to create a
18516 # shared library.
18517 postdeps=$lt_postdeps_GCJ
18518
18519 # The library search path used internally by the compiler when linking
18520 # a shared library.
18521 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18522
18523 # Method to check whether dependent libraries are shared objects.
18524 deplibs_check_method=$lt_deplibs_check_method
18525
18526 # Command to use when deplibs_check_method == file_magic.
18527 file_magic_cmd=$lt_file_magic_cmd
18528
18529 # Flag that allows shared libraries with undefined symbols to be built.
18530 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18531
18532 # Flag that forces no undefined symbols.
18533 no_undefined_flag=$lt_no_undefined_flag_GCJ
18534
18535 # Commands used to finish a libtool library installation in a directory.
18536 finish_cmds=$lt_finish_cmds
18537
18538 # Same as above, but a single script fragment to be evaled but not shown.
18539 finish_eval=$lt_finish_eval
18540
18541 # Take the output of nm and produce a listing of raw symbols and C names.
18542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18543
18544 # Transform the output of nm in a proper C declaration
18545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18546
18547 # Transform the output of nm in a C name address pair
18548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18549
18550 # This is the shared library runtime path variable.
18551 runpath_var=$runpath_var
18552
18553 # This is the shared library path variable.
18554 shlibpath_var=$shlibpath_var
18555
18556 # Is shlibpath searched before the hard-coded library search path?
18557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18558
18559 # How to hardcode a shared library path into an executable.
18560 hardcode_action=$hardcode_action_GCJ
18561
18562 # Whether we should hardcode library paths into libraries.
18563 hardcode_into_libs=$hardcode_into_libs
18564
18565 # Flag to hardcode \$libdir into a binary during linking.
18566 # This must work even if \$libdir does not exist.
18567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18568
18569 # If ld is used when linking, flag to hardcode \$libdir into
18570 # a binary during linking. This must work even if \$libdir does
18571 # not exist.
18572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18573
18574 # Whether we need a single -rpath flag with a separated argument.
18575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18576
18577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18578 # resulting binary.
18579 hardcode_direct=$hardcode_direct_GCJ
18580
18581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18582 # resulting binary.
18583 hardcode_minus_L=$hardcode_minus_L_GCJ
18584
18585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18586 # the resulting binary.
18587 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18588
18589 # Set to yes if building a shared library automatically hardcodes DIR into the library
18590 # and all subsequent libraries and executables linked against it.
18591 hardcode_automatic=$hardcode_automatic_GCJ
18592
18593 # Variables whose values should be saved in libtool wrapper scripts and
18594 # restored at relink time.
18595 variables_saved_for_relink="$variables_saved_for_relink"
18596
18597 # Whether libtool must link a program against all its dependency libraries.
18598 link_all_deplibs=$link_all_deplibs_GCJ
18599
18600 # Compile-time system search path for libraries
18601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18602
18603 # Run-time system search path for libraries
18604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18605
18606 # Fix the shell variable \$srcfile for the compiler.
18607 fix_srcfile_path="$fix_srcfile_path_GCJ"
18608
18609 # Set to yes if exported symbols are required.
18610 always_export_symbols=$always_export_symbols_GCJ
18611
18612 # The commands to list exported symbols.
18613 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18614
18615 # The commands to extract the exported symbol list from a shared archive.
18616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18617
18618 # Symbols that should not be listed in the preloaded symbols.
18619 exclude_expsyms=$lt_exclude_expsyms_GCJ
18620
18621 # Symbols that must always be exported.
18622 include_expsyms=$lt_include_expsyms_GCJ
18623
18624 # ### END LIBTOOL TAG CONFIG: $tagname
18625
18626 __EOF__
18627
18628
18629 else
18630   # If there is no Makefile yet, we rely on a make rule to execute
18631   # `config.status --recheck' to rerun these tests and create the
18632   # libtool script then.
18633   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18634   if test -f "$ltmain_in"; then
18635     test -f Makefile && make "$ltmain"
18636   fi
18637 fi
18638
18639
18640 ac_ext=c
18641 ac_cpp='$CPP $CPPFLAGS'
18642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18645
18646 CC="$lt_save_CC"
18647
18648         else
18649           tagname=""
18650         fi
18651         ;;
18652
18653       RC)
18654
18655
18656
18657 # Source file extension for RC test sources.
18658 ac_ext=rc
18659
18660 # Object file extension for compiled RC test sources.
18661 objext=o
18662 objext_RC=$objext
18663
18664 # Code to be used in simple compile tests
18665 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18666
18667 # Code to be used in simple link tests
18668 lt_simple_link_test_code="$lt_simple_compile_test_code"
18669
18670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18671
18672 # If no C compiler was specified, use CC.
18673 LTCC=${LTCC-"$CC"}
18674
18675 # Allow CC to be a program name with arguments.
18676 compiler=$CC
18677
18678
18679 # Allow CC to be a program name with arguments.
18680 lt_save_CC="$CC"
18681 CC=${RC-"windres"}
18682 compiler=$CC
18683 compiler_RC=$CC
18684 lt_cv_prog_compiler_c_o_RC=yes
18685
18686 # The else clause should only fire when bootstrapping the
18687 # libtool distribution, otherwise you forgot to ship ltmain.sh
18688 # with your package, and you will get complaints that there are
18689 # no rules to generate ltmain.sh.
18690 if test -f "$ltmain"; then
18691   # See if we are running on zsh, and set the options which allow our commands through
18692   # without removal of \ escapes.
18693   if test -n "${ZSH_VERSION+set}" ; then
18694     setopt NO_GLOB_SUBST
18695   fi
18696   # Now quote all the things that may contain metacharacters while being
18697   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18698   # variables and quote the copies for generation of the libtool script.
18699   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18700     SED SHELL STRIP \
18701     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18702     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18703     deplibs_check_method reload_flag reload_cmds need_locks \
18704     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18705     lt_cv_sys_global_symbol_to_c_name_address \
18706     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18707     old_postinstall_cmds old_postuninstall_cmds \
18708     compiler_RC \
18709     CC_RC \
18710     LD_RC \
18711     lt_prog_compiler_wl_RC \
18712     lt_prog_compiler_pic_RC \
18713     lt_prog_compiler_static_RC \
18714     lt_prog_compiler_no_builtin_flag_RC \
18715     export_dynamic_flag_spec_RC \
18716     thread_safe_flag_spec_RC \
18717     whole_archive_flag_spec_RC \
18718     enable_shared_with_static_runtimes_RC \
18719     old_archive_cmds_RC \
18720     old_archive_from_new_cmds_RC \
18721     predep_objects_RC \
18722     postdep_objects_RC \
18723     predeps_RC \
18724     postdeps_RC \
18725     compiler_lib_search_path_RC \
18726     archive_cmds_RC \
18727     archive_expsym_cmds_RC \
18728     postinstall_cmds_RC \
18729     postuninstall_cmds_RC \
18730     old_archive_from_expsyms_cmds_RC \
18731     allow_undefined_flag_RC \
18732     no_undefined_flag_RC \
18733     export_symbols_cmds_RC \
18734     hardcode_libdir_flag_spec_RC \
18735     hardcode_libdir_flag_spec_ld_RC \
18736     hardcode_libdir_separator_RC \
18737     hardcode_automatic_RC \
18738     module_cmds_RC \
18739     module_expsym_cmds_RC \
18740     lt_cv_prog_compiler_c_o_RC \
18741     exclude_expsyms_RC \
18742     include_expsyms_RC; do
18743
18744     case $var in
18745     old_archive_cmds_RC | \
18746     old_archive_from_new_cmds_RC | \
18747     archive_cmds_RC | \
18748     archive_expsym_cmds_RC | \
18749     module_cmds_RC | \
18750     module_expsym_cmds_RC | \
18751     old_archive_from_expsyms_cmds_RC | \
18752     export_symbols_cmds_RC | \
18753     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18754     postinstall_cmds | postuninstall_cmds | \
18755     old_postinstall_cmds | old_postuninstall_cmds | \
18756     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18757       # Double-quote double-evaled strings.
18758       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18759       ;;
18760     *)
18761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762       ;;
18763     esac
18764   done
18765
18766   case $lt_echo in
18767   *'\$0 --fallback-echo"')
18768     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769     ;;
18770   esac
18771
18772 cfgfile="$ofile"
18773
18774   cat <<__EOF__ >> "$cfgfile"
18775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18776
18777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18778
18779 # Shell to use when invoking shell scripts.
18780 SHELL=$lt_SHELL
18781
18782 # Whether or not to build shared libraries.
18783 build_libtool_libs=$enable_shared
18784
18785 # Whether or not to build static libraries.
18786 build_old_libs=$enable_static
18787
18788 # Whether or not to add -lc for building shared libraries.
18789 build_libtool_need_lc=$archive_cmds_need_lc_RC
18790
18791 # Whether or not to disallow shared libs when runtime libs are static
18792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18793
18794 # Whether or not to optimize for fast installation.
18795 fast_install=$enable_fast_install
18796
18797 # The host system.
18798 host_alias=$host_alias
18799 host=$host
18800
18801 # An echo program that does not interpret backslashes.
18802 echo=$lt_echo
18803
18804 # The archiver.
18805 AR=$lt_AR
18806 AR_FLAGS=$lt_AR_FLAGS
18807
18808 # A C compiler.
18809 LTCC=$lt_LTCC
18810
18811 # A language-specific compiler.
18812 CC=$lt_compiler_RC
18813
18814 # Is the compiler the GNU C compiler?
18815 with_gcc=$GCC_RC
18816
18817 # An ERE matcher.
18818 EGREP=$lt_EGREP
18819
18820 # The linker used to build libraries.
18821 LD=$lt_LD_RC
18822
18823 # Whether we need hard or soft links.
18824 LN_S=$lt_LN_S
18825
18826 # A BSD-compatible nm program.
18827 NM=$lt_NM
18828
18829 # A symbol stripping program
18830 STRIP=$lt_STRIP
18831
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18834
18835 # Used on cygwin: DLL creation program.
18836 DLLTOOL="$DLLTOOL"
18837
18838 # Used on cygwin: object dumper.
18839 OBJDUMP="$OBJDUMP"
18840
18841 # Used on cygwin: assembler.
18842 AS="$AS"
18843
18844 # The name of the directory that contains temporary libtool files.
18845 objdir=$objdir
18846
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18850
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_RC
18853
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18856
18857 # Old archive suffix (normally "a").
18858 libext="$libext"
18859
18860 # Shared library suffix (normally ".so").
18861 shrext_cmds='$shrext_cmds'
18862
18863 # Executable file suffix (normally "").
18864 exeext="$exeext"
18865
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_RC
18868 pic_mode=$pic_mode
18869
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18872
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18875
18876 # Must we lock files when doing compilation ?
18877 need_locks=$lt_need_locks
18878
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18881
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18884
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18887
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18890
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18893
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_RC
18896
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18899
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18902
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18905
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18908
18909 # Library versioning type.
18910 version_type=$version_type
18911
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18914
18915 # List of archive names.  First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18918
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18921
18922 # Commands used to build and install an old-style archive.
18923 RANLIB=$lt_RANLIB
18924 old_archive_cmds=$lt_old_archive_cmds_RC
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18927
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18930
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18933
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_RC
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18939
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_RC
18942 module_expsym_cmds=$lt_module_expsym_cmds_RC
18943
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18947
18948 # Dependencies to place before the objects being linked to create a
18949 # shared library.
18950 predep_objects=$lt_predep_objects_RC
18951
18952 # Dependencies to place after the objects being linked to create a
18953 # shared library.
18954 postdep_objects=$lt_postdep_objects_RC
18955
18956 # Dependencies to place before the objects being linked to create a
18957 # shared library.
18958 predeps=$lt_predeps_RC
18959
18960 # Dependencies to place after the objects being linked to create a
18961 # shared library.
18962 postdeps=$lt_postdeps_RC
18963
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18967
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18970
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18973
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_RC
18976
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_RC
18979
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18982
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18985
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18988
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18991
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18994
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18997
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19000
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_RC
19006
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19009
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19013
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19016 # not exist.
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19018
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19021
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_RC
19025
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_RC
19029
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19033
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_RC
19037
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19041
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_RC
19044
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19047
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19050
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_RC"
19053
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_RC
19056
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_RC
19059
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19062
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_RC
19065
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_RC
19068
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19070
19071 __EOF__
19072
19073
19074 else
19075   # If there is no Makefile yet, we rely on a make rule to execute
19076   # `config.status --recheck' to rerun these tests and create the
19077   # libtool script then.
19078   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079   if test -f "$ltmain_in"; then
19080     test -f Makefile && make "$ltmain"
19081   fi
19082 fi
19083
19084
19085 ac_ext=c
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091 CC="$lt_save_CC"
19092
19093         ;;
19094
19095       *)
19096         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19098    { (exit 1); exit 1; }; }
19099         ;;
19100       esac
19101
19102       # Append the new tag name to the list of available tags.
19103       if test -n "$tagname" ; then
19104       available_tags="$available_tags $tagname"
19105     fi
19106     fi
19107   done
19108   IFS="$lt_save_ifs"
19109
19110   # Now substitute the updated list of available tags.
19111   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19112     mv "${ofile}T" "$ofile"
19113     chmod +x "$ofile"
19114   else
19115     rm -f "${ofile}T"
19116     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19118    { (exit 1); exit 1; }; }
19119   fi
19120 fi
19121
19122
19123
19124 # This can be used to rebuild libtool when needed
19125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19126
19127 # Always use our own libtool.
19128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19129
19130 # Prevent multiple expansion
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151 # Before making a release, the LTVERSION string should be modified.
19152 # The string is of the form C:R:A.
19153 # - If interfaces have been changed or added, but binary compatibility has
19154 #   been preserved, change to C+1:0:A+1
19155 # - If binary compatibility has been broken (eg removed or changed interfaces)
19156 #   change to C+1:0:0
19157 # - If the interface is the same as the previous version, change to C:R+1:A
19158 LTVERSION="0:1:0"
19159
19160
19161 echo "$as_me:$LINENO: checking for library containing strerror" >&5
19162 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
19163 if test "${ac_cv_search_strerror+set}" = set; then
19164   echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166   ac_func_search_save_LIBS=$LIBS
19167 ac_cv_search_strerror=no
19168 cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174
19175 /* Override any gcc2 internal prototype to avoid an error.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 /* We use char because int might match the return type of a gcc2
19180    builtin and then its argument prototype would still apply.  */
19181 char strerror ();
19182 int
19183 main ()
19184 {
19185 strerror ();
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext conftest$ac_exeext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19192   (eval $ac_link) 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } &&
19199          { ac_try='test -z "$ac_c_werror_flag"
19200                          || test ! -s conftest.err'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; } &&
19206          { ac_try='test -s conftest$ac_exeext'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; }; then
19212   ac_cv_search_strerror="none required"
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 fi
19218 rm -f conftest.err conftest.$ac_objext \
19219       conftest$ac_exeext conftest.$ac_ext
19220 if test "$ac_cv_search_strerror" = no; then
19221   for ac_lib in cposix; do
19222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19223     cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19229
19230 /* Override any gcc2 internal prototype to avoid an error.  */
19231 #ifdef __cplusplus
19232 extern "C"
19233 #endif
19234 /* We use char because int might match the return type of a gcc2
19235    builtin and then its argument prototype would still apply.  */
19236 char strerror ();
19237 int
19238 main ()
19239 {
19240 strerror ();
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19247   (eval $ac_link) 2>conftest.er1
19248   ac_status=$?
19249   grep -v '^ *+' conftest.er1 >conftest.err
19250   rm -f conftest.er1
19251   cat conftest.err >&5
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); } &&
19254          { ac_try='test -z "$ac_c_werror_flag"
19255                          || test ! -s conftest.err'
19256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257   (eval $ac_try) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; } &&
19261          { ac_try='test -s conftest$ac_exeext'
19262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263   (eval $ac_try) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; }; then
19267   ac_cv_search_strerror="-l$ac_lib"
19268 break
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273 fi
19274 rm -f conftest.err conftest.$ac_objext \
19275       conftest$ac_exeext conftest.$ac_ext
19276   done
19277 fi
19278 LIBS=$ac_func_search_save_LIBS
19279 fi
19280 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
19281 echo "${ECHO_T}$ac_cv_search_strerror" >&6
19282 if test "$ac_cv_search_strerror" != no; then
19283   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
19284
19285 fi
19286
19287 # Find a good install program.  We prefer a C program (faster),
19288 # so one script is as good as another.  But avoid the broken or
19289 # incompatible versions:
19290 # SysV /etc/install, /usr/sbin/install
19291 # SunOS /usr/etc/install
19292 # IRIX /sbin/install
19293 # AIX /bin/install
19294 # AmigaOS /C/install, which installs bootblocks on floppy discs
19295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19298 # OS/2's system install, which has a completely different semantic
19299 # ./install, which can be erroneously created by make from ./install.sh.
19300 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19301 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19302 if test -z "$INSTALL"; then
19303 if test "${ac_cv_path_install+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19307 for as_dir in $PATH
19308 do
19309   IFS=$as_save_IFS
19310   test -z "$as_dir" && as_dir=.
19311   # Account for people who put trailing slashes in PATH elements.
19312 case $as_dir/ in
19313   ./ | .// | /cC/* | \
19314   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19315   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19316   /usr/ucb/* ) ;;
19317   *)
19318     # OSF1 and SCO ODT 3.0 have their own names for install.
19319     # Don't use installbsd from OSF since it installs stuff as root
19320     # by default.
19321     for ac_prog in ginstall scoinst install; do
19322       for ac_exec_ext in '' $ac_executable_extensions; do
19323         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19324           if test $ac_prog = install &&
19325             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19326             # AIX install.  It has an incompatible calling convention.
19327             :
19328           elif test $ac_prog = install &&
19329             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19330             # program-specific install script used by HP pwplus--don't use.
19331             :
19332           else
19333             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19334             break 3
19335           fi
19336         fi
19337       done
19338     done
19339     ;;
19340 esac
19341 done
19342
19343
19344 fi
19345   if test "${ac_cv_path_install+set}" = set; then
19346     INSTALL=$ac_cv_path_install
19347   else
19348     # As a last resort, use the slow shell script.  We don't cache a
19349     # path for INSTALL within a source directory, because that will
19350     # break other packages using the cache if that directory is
19351     # removed, or if the path is relative.
19352     INSTALL=$ac_install_sh
19353   fi
19354 fi
19355 echo "$as_me:$LINENO: result: $INSTALL" >&5
19356 echo "${ECHO_T}$INSTALL" >&6
19357
19358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19359 # It thinks the first close brace ends the variable substitution.
19360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19361
19362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19363
19364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19365
19366 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19367 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19368 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19369 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   cat >conftest.make <<\_ACEOF
19373 all:
19374         @echo 'ac_maketemp="$(MAKE)"'
19375 _ACEOF
19376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19377 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19378 if test -n "$ac_maketemp"; then
19379   eval ac_cv_prog_make_${ac_make}_set=yes
19380 else
19381   eval ac_cv_prog_make_${ac_make}_set=no
19382 fi
19383 rm -f conftest.make
19384 fi
19385 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19386   echo "$as_me:$LINENO: result: yes" >&5
19387 echo "${ECHO_T}yes" >&6
19388   SET_MAKE=
19389 else
19390   echo "$as_me:$LINENO: result: no" >&5
19391 echo "${ECHO_T}no" >&6
19392   SET_MAKE="MAKE=${MAKE-make}"
19393 fi
19394
19395
19396 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19397 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19398 if test "${ac_cv_header_stdc+set}" = set; then
19399   echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401   cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407 #include <stdlib.h>
19408 #include <stdarg.h>
19409 #include <string.h>
19410 #include <float.h>
19411
19412 int
19413 main ()
19414 {
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422   (eval $ac_compile) 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -z "$ac_c_werror_flag"
19430                          || test ! -s conftest.err'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; } &&
19436          { ac_try='test -s conftest.$ac_objext'
19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438   (eval $ac_try) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   ac_cv_header_stdc=yes
19443 else
19444   echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447 ac_cv_header_stdc=no
19448 fi
19449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19450
19451 if test $ac_cv_header_stdc = yes; then
19452   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19453   cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459 #include <string.h>
19460
19461 _ACEOF
19462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19463   $EGREP "memchr" >/dev/null 2>&1; then
19464   :
19465 else
19466   ac_cv_header_stdc=no
19467 fi
19468 rm -f conftest*
19469
19470 fi
19471
19472 if test $ac_cv_header_stdc = yes; then
19473   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19474   cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h.  */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h.  */
19480 #include <stdlib.h>
19481
19482 _ACEOF
19483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19484   $EGREP "free" >/dev/null 2>&1; then
19485   :
19486 else
19487   ac_cv_header_stdc=no
19488 fi
19489 rm -f conftest*
19490
19491 fi
19492
19493 if test $ac_cv_header_stdc = yes; then
19494   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19495   if test "$cross_compiling" = yes; then
19496   :
19497 else
19498   cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504 #include <ctype.h>
19505 #if ((' ' & 0x0FF) == 0x020)
19506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19508 #else
19509 # define ISLOWER(c) \
19510                    (('a' <= (c) && (c) <= 'i') \
19511                      || ('j' <= (c) && (c) <= 'r') \
19512                      || ('s' <= (c) && (c) <= 'z'))
19513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19514 #endif
19515
19516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19517 int
19518 main ()
19519 {
19520   int i;
19521   for (i = 0; i < 256; i++)
19522     if (XOR (islower (i), ISLOWER (i))
19523         || toupper (i) != TOUPPER (i))
19524       exit(2);
19525   exit (0);
19526 }
19527 _ACEOF
19528 rm -f conftest$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530   (eval $ac_link) 2>&5
19531   ac_status=$?
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535   (eval $ac_try) 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   :
19540 else
19541   echo "$as_me: program exited with status $ac_status" >&5
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ( exit $ac_status )
19546 ac_cv_header_stdc=no
19547 fi
19548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19549 fi
19550 fi
19551 fi
19552 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19553 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19554 if test $ac_cv_header_stdc = yes; then
19555
19556 cat >>confdefs.h <<\_ACEOF
19557 #define STDC_HEADERS 1
19558 _ACEOF
19559
19560 fi
19561
19562
19563
19564
19565
19566
19567 for ac_header in fcntl.h limits.h sys/file.h sys/stat.h unistd.h
19568 do
19569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571   echo "$as_me:$LINENO: checking for $ac_header" >&5
19572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574   echo $ECHO_N "(cached) $ECHO_C" >&6
19575 fi
19576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578 else
19579   # Is the header compilable?
19580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 $ac_includes_default
19589 #include <$ac_header>
19590 _ACEOF
19591 rm -f conftest.$ac_objext
19592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19593   (eval $ac_compile) 2>conftest.er1
19594   ac_status=$?
19595   grep -v '^ *+' conftest.er1 >conftest.err
19596   rm -f conftest.er1
19597   cat conftest.err >&5
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); } &&
19600          { ac_try='test -z "$ac_c_werror_flag"
19601                          || test ! -s conftest.err'
19602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603   (eval $ac_try) 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; } &&
19607          { ac_try='test -s conftest.$ac_objext'
19608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609   (eval $ac_try) 2>&5
19610   ac_status=$?
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); }; }; then
19613   ac_header_compiler=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ac_header_compiler=no
19619 fi
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622 echo "${ECHO_T}$ac_header_compiler" >&6
19623
19624 # Is the header present?
19625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633 #include <$ac_header>
19634 _ACEOF
19635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } >/dev/null; then
19643   if test -s conftest.err; then
19644     ac_cpp_err=$ac_c_preproc_warn_flag
19645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19646   else
19647     ac_cpp_err=
19648   fi
19649 else
19650   ac_cpp_err=yes
19651 fi
19652 if test -z "$ac_cpp_err"; then
19653   ac_header_preproc=yes
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658   ac_header_preproc=no
19659 fi
19660 rm -f conftest.err conftest.$ac_ext
19661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662 echo "${ECHO_T}$ac_header_preproc" >&6
19663
19664 # So?  What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19666   yes:no: )
19667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671     ac_header_preproc=yes
19672     ;;
19673   no:yes:* )
19674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19686     (
19687       cat <<\_ASBOX
19688 ## ------------------------------------------ ##
19689 ## Report this to the AC_PACKAGE_NAME lists.  ##
19690 ## ------------------------------------------ ##
19691 _ASBOX
19692     ) |
19693       sed "s/^/$as_me: WARNING:     /" >&2
19694     ;;
19695 esac
19696 echo "$as_me:$LINENO: checking for $ac_header" >&5
19697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699   echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701   eval "$as_ac_Header=\$ac_header_preproc"
19702 fi
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19705
19706 fi
19707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19708   cat >>confdefs.h <<_ACEOF
19709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19710 _ACEOF
19711
19712 fi
19713
19714 done
19715
19716
19717
19718
19719 for ac_header in sys/param.h sys/types.h netinet/in.h
19720 do
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723   echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 fi
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 else
19731   # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 $ac_includes_default
19741 #include <$ac_header>
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745   (eval $ac_compile) 2>conftest.er1
19746   ac_status=$?
19747   grep -v '^ *+' conftest.er1 >conftest.err
19748   rm -f conftest.er1
19749   cat conftest.err >&5
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); } &&
19752          { ac_try='test -z "$ac_c_werror_flag"
19753                          || test ! -s conftest.err'
19754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755   (eval $ac_try) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; } &&
19759          { ac_try='test -s conftest.$ac_objext'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; }; then
19765   ac_header_compiler=yes
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_header_compiler=no
19771 fi
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774 echo "${ECHO_T}$ac_header_compiler" >&6
19775
19776 # Is the header present?
19777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 #include <$ac_header>
19786 _ACEOF
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } >/dev/null; then
19795   if test -s conftest.err; then
19796     ac_cpp_err=$ac_c_preproc_warn_flag
19797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19798   else
19799     ac_cpp_err=
19800   fi
19801 else
19802   ac_cpp_err=yes
19803 fi
19804 if test -z "$ac_cpp_err"; then
19805   ac_header_preproc=yes
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810   ac_header_preproc=no
19811 fi
19812 rm -f conftest.err conftest.$ac_ext
19813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19814 echo "${ECHO_T}$ac_header_preproc" >&6
19815
19816 # So?  What about this header?
19817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19818   yes:no: )
19819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19823     ac_header_preproc=yes
19824     ;;
19825   no:yes:* )
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19838     (
19839       cat <<\_ASBOX
19840 ## ------------------------------------------ ##
19841 ## Report this to the AC_PACKAGE_NAME lists.  ##
19842 ## ------------------------------------------ ##
19843 _ASBOX
19844     ) |
19845       sed "s/^/$as_me: WARNING:     /" >&2
19846     ;;
19847 esac
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851   echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853   eval "$as_ac_Header=\$ac_header_preproc"
19854 fi
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857
19858 fi
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860   cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862 _ACEOF
19863
19864 fi
19865
19866 done
19867
19868
19869
19870 for ac_header in io.h windows.h
19871 do
19872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19874   echo "$as_me:$LINENO: checking for $ac_header" >&5
19875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19877   echo $ECHO_N "(cached) $ECHO_C" >&6
19878 fi
19879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19881 else
19882   # Is the header compilable?
19883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 $ac_includes_default
19892 #include <$ac_header>
19893 _ACEOF
19894 rm -f conftest.$ac_objext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19896   (eval $ac_compile) 2>conftest.er1
19897   ac_status=$?
19898   grep -v '^ *+' conftest.er1 >conftest.err
19899   rm -f conftest.er1
19900   cat conftest.err >&5
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); } &&
19903          { ac_try='test -z "$ac_c_werror_flag"
19904                          || test ! -s conftest.err'
19905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906   (eval $ac_try) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; } &&
19910          { ac_try='test -s conftest.$ac_objext'
19911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912   (eval $ac_try) 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; }; then
19916   ac_header_compiler=yes
19917 else
19918   echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921 ac_header_compiler=no
19922 fi
19923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19925 echo "${ECHO_T}$ac_header_compiler" >&6
19926
19927 # Is the header present?
19928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h.  */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h.  */
19936 #include <$ac_header>
19937 _ACEOF
19938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } >/dev/null; then
19946   if test -s conftest.err; then
19947     ac_cpp_err=$ac_c_preproc_warn_flag
19948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19949   else
19950     ac_cpp_err=
19951   fi
19952 else
19953   ac_cpp_err=yes
19954 fi
19955 if test -z "$ac_cpp_err"; then
19956   ac_header_preproc=yes
19957 else
19958   echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961   ac_header_preproc=no
19962 fi
19963 rm -f conftest.err conftest.$ac_ext
19964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19965 echo "${ECHO_T}$ac_header_preproc" >&6
19966
19967 # So?  What about this header?
19968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19969   yes:no: )
19970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19974     ac_header_preproc=yes
19975     ;;
19976   no:yes:* )
19977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19989     (
19990       cat <<\_ASBOX
19991 ## ------------------------------------------ ##
19992 ## Report this to the AC_PACKAGE_NAME lists.  ##
19993 ## ------------------------------------------ ##
19994 _ASBOX
19995     ) |
19996       sed "s/^/$as_me: WARNING:     /" >&2
19997     ;;
19998 esac
19999 echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   eval "$as_ac_Header=\$ac_header_preproc"
20005 fi
20006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20008
20009 fi
20010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20011   cat >>confdefs.h <<_ACEOF
20012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20013 _ACEOF
20014
20015 fi
20016
20017 done
20018
20019
20020 echo "$as_me:$LINENO: checking for darts.h" >&5
20021 echo $ECHO_N "checking for darts.h... $ECHO_C" >&6
20022
20023 # Check whether --with-darts or --without-darts was given.
20024 if test "${with_darts+set}" = set; then
20025   withval="$with_darts"
20026   if test "${with_darts}" = yes; then
20027         vi_darts_path="/usr/local/include"
20028      else
20029         vi_darts_path=${with_darts}
20030      fi
20031      CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
20032
20033 fi;
20034
20035 ac_ext=cc
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040
20041
20042 if test "${cl_cv_header_darts+set}" = set; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h.  */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h.  */
20052 #include <darts.h>
20053 int
20054 main ()
20055 {
20056 ;
20057   ;
20058   return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063   (eval $ac_compile) 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } &&
20070          { ac_try='test -z "$ac_cxx_werror_flag"
20071                          || test ! -s conftest.err'
20072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073   (eval $ac_try) 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); }; } &&
20077          { ac_try='test -s conftest.$ac_objext'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   cl_cv_header_darts=yes
20084 else
20085   echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088
20089     { { 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
20090 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;}
20091    { (exit 1); exit 1; }; }
20092 fi
20093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20094 fi
20095
20096 echo "$as_me:$LINENO: result: $cl_cv_header_darts" >&5
20097 echo "${ECHO_T}$cl_cv_header_darts" >&6
20098 ac_ext=c
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103
20104
20105
20106 # Check whether --with-libiconv or --without-libiconv was given.
20107 if test "${with_libiconv+set}" = set; then
20108   withval="$with_libiconv"
20109   if test x"${with_libiconv}" != x ; then
20110         ICONV_CFLAGS="-I${with_libiconv}/include"
20111         LIBS="$LIBS -L${with_libiconv}/lib"
20112
20113      fi
20114 fi;
20115
20116
20117 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
20118 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
20119 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122   ac_check_lib_save_LIBS=$LIBS
20123 LIBS="-liconv  $LIBS"
20124 cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130
20131 /* Override any gcc2 internal prototype to avoid an error.  */
20132 #ifdef __cplusplus
20133 extern "C"
20134 #endif
20135 /* We use char because int might match the return type of a gcc2
20136    builtin and then its argument prototype would still apply.  */
20137 char iconv ();
20138 int
20139 main ()
20140 {
20141 iconv ();
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest.$ac_objext conftest$ac_exeext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20148   (eval $ac_link) 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_exeext'
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_cv_lib_iconv_iconv=yes
20169 else
20170   echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 ac_cv_lib_iconv_iconv=no
20174 fi
20175 rm -f conftest.err conftest.$ac_objext \
20176       conftest$ac_exeext conftest.$ac_ext
20177 LIBS=$ac_check_lib_save_LIBS
20178 fi
20179 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
20180 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
20181 if test $ac_cv_lib_iconv_iconv = yes; then
20182   cat >>confdefs.h <<_ACEOF
20183 #define HAVE_LIBICONV 1
20184 _ACEOF
20185
20186   LIBS="-liconv $LIBS"
20187
20188 else
20189
20190         if test "${ac_cv_header_iconv_h+set}" = set; then
20191   echo "$as_me:$LINENO: checking for iconv.h" >&5
20192 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20193 if test "${ac_cv_header_iconv_h+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 fi
20196 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20197 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20198 else
20199   # Is the header compilable?
20200 echo "$as_me:$LINENO: checking iconv.h usability" >&5
20201 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
20202 cat >conftest.$ac_ext <<_ACEOF
20203 /* confdefs.h.  */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h.  */
20208 $ac_includes_default
20209 #include <iconv.h>
20210 _ACEOF
20211 rm -f conftest.$ac_objext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213   (eval $ac_compile) 2>conftest.er1
20214   ac_status=$?
20215   grep -v '^ *+' conftest.er1 >conftest.err
20216   rm -f conftest.er1
20217   cat conftest.err >&5
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } &&
20220          { ac_try='test -z "$ac_c_werror_flag"
20221                          || test ! -s conftest.err'
20222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223   (eval $ac_try) 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; } &&
20227          { ac_try='test -s conftest.$ac_objext'
20228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229   (eval $ac_try) 2>&5
20230   ac_status=$?
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); }; }; then
20233   ac_header_compiler=yes
20234 else
20235   echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238 ac_header_compiler=no
20239 fi
20240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20242 echo "${ECHO_T}$ac_header_compiler" >&6
20243
20244 # Is the header present?
20245 echo "$as_me:$LINENO: checking iconv.h presence" >&5
20246 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 #include <iconv.h>
20254 _ACEOF
20255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } >/dev/null; then
20263   if test -s conftest.err; then
20264     ac_cpp_err=$ac_c_preproc_warn_flag
20265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20266   else
20267     ac_cpp_err=
20268   fi
20269 else
20270   ac_cpp_err=yes
20271 fi
20272 if test -z "$ac_cpp_err"; then
20273   ac_header_preproc=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278   ac_header_preproc=no
20279 fi
20280 rm -f conftest.err conftest.$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20282 echo "${ECHO_T}$ac_header_preproc" >&6
20283
20284 # So?  What about this header?
20285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20286   yes:no: )
20287     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20288 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20289     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
20290 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
20291     ac_header_preproc=yes
20292     ;;
20293   no:yes:* )
20294     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
20295 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
20296     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
20297 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
20298     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
20299 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
20300     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
20301 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
20303 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
20304     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
20305 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
20306     (
20307       cat <<\_ASBOX
20308 ## ------------------------------------------ ##
20309 ## Report this to the AC_PACKAGE_NAME lists.  ##
20310 ## ------------------------------------------ ##
20311 _ASBOX
20312     ) |
20313       sed "s/^/$as_me: WARNING:     /" >&2
20314     ;;
20315 esac
20316 echo "$as_me:$LINENO: checking for iconv.h" >&5
20317 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20318 if test "${ac_cv_header_iconv_h+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321   ac_cv_header_iconv_h=$ac_header_preproc
20322 fi
20323 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20324 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20325
20326 fi
20327 if test $ac_cv_header_iconv_h = yes; then
20328   :
20329 else
20330   { { echo "$as_me:$LINENO: error: ChaSen needs iconv" >&5
20331 echo "$as_me: error: ChaSen needs iconv" >&2;}
20332    { (exit 1); exit 1; }; }
20333 fi
20334
20335
20336 fi
20337
20338
20339
20340
20341 echo "$as_me:$LINENO: checking iconv args" >&5
20342 echo $ECHO_N "checking iconv args... $ECHO_C" >&6
20343
20344      for CODE in EUC-JP EUCJP eucJP; do
20345        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20346          vi_iconv_arg_EUCJP=${CODE}; break
20347      fi;
20348      done
20349      rm -f iconv_test
20350      if test x"$vi_iconv_arg_EUCJP" = x; then
20351          { { echo "$as_me:$LINENO: error: cannot use EUC-JP with iconv" >&5
20352 echo "$as_me: error: cannot use EUC-JP with iconv" >&2;}
20353    { (exit 1); exit 1; }; }
20354      fi
20355      cat >>confdefs.h <<_ACEOF
20356 #define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
20357 _ACEOF
20358
20359
20360
20361      for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
20362        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20363          vi_iconv_arg_SJIS=${CODE}; break
20364      fi;
20365      done
20366      rm -f iconv_test
20367      if test x"$vi_iconv_arg_SJIS" = x; then
20368          { { echo "$as_me:$LINENO: error: cannot use Shift_JIS with iconv" >&5
20369 echo "$as_me: error: cannot use Shift_JIS with iconv" >&2;}
20370    { (exit 1); exit 1; }; }
20371      fi
20372      cat >>confdefs.h <<_ACEOF
20373 #define ICONV_SJIS "$vi_iconv_arg_SJIS"
20374 _ACEOF
20375
20376
20377
20378      for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
20379        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20380          vi_iconv_arg_88591=${CODE}; break
20381      fi;
20382      done
20383      rm -f iconv_test
20384      if test x"$vi_iconv_arg_88591" = x; then
20385          { { echo "$as_me:$LINENO: error: cannot use ISO-8859-1 with iconv" >&5
20386 echo "$as_me: error: cannot use ISO-8859-1 with iconv" >&2;}
20387    { (exit 1); exit 1; }; }
20388      fi
20389      cat >>confdefs.h <<_ACEOF
20390 #define ICONV_88591 "$vi_iconv_arg_88591"
20391 _ACEOF
20392
20393
20394 echo "$as_me:$LINENO: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
20395 echo "${ECHO_T}$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6
20396
20397 echo "$as_me:$LINENO: checking for off_t" >&5
20398 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20399 if test "${ac_cv_type_off_t+set}" = set; then
20400   echo $ECHO_N "(cached) $ECHO_C" >&6
20401 else
20402   cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h.  */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h.  */
20408 $ac_includes_default
20409 int
20410 main ()
20411 {
20412 if ((off_t *) 0)
20413   return 0;
20414 if (sizeof (off_t))
20415   return 0;
20416   ;
20417   return 0;
20418 }
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422   (eval $ac_compile) 2>conftest.er1
20423   ac_status=$?
20424   grep -v '^ *+' conftest.er1 >conftest.err
20425   rm -f conftest.er1
20426   cat conftest.err >&5
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } &&
20429          { ac_try='test -z "$ac_c_werror_flag"
20430                          || test ! -s conftest.err'
20431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432   (eval $ac_try) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; } &&
20436          { ac_try='test -s conftest.$ac_objext'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   ac_cv_type_off_t=yes
20443 else
20444   echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_cv_type_off_t=no
20448 fi
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 fi
20451 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20452 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20453 if test $ac_cv_type_off_t = yes; then
20454   :
20455 else
20456
20457 cat >>confdefs.h <<_ACEOF
20458 #define off_t long
20459 _ACEOF
20460
20461 fi
20462
20463 echo "$as_me:$LINENO: checking for size_t" >&5
20464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20465 if test "${ac_cv_type_size_t+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 $ac_includes_default
20475 int
20476 main ()
20477 {
20478 if ((size_t *) 0)
20479   return 0;
20480 if (sizeof (size_t))
20481   return 0;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488   (eval $ac_compile) 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } &&
20495          { ac_try='test -z "$ac_c_werror_flag"
20496                          || test ! -s conftest.err'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; } &&
20502          { ac_try='test -s conftest.$ac_objext'
20503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504   (eval $ac_try) 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; }; then
20508   ac_cv_type_size_t=yes
20509 else
20510   echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513 ac_cv_type_size_t=no
20514 fi
20515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20516 fi
20517 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20518 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20519 if test $ac_cv_type_size_t = yes; then
20520   :
20521 else
20522
20523 cat >>confdefs.h <<_ACEOF
20524 #define size_t unsigned
20525 _ACEOF
20526
20527 fi
20528
20529
20530 echo "$as_me:$LINENO: checking for working memcmp" >&5
20531 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20532 if test "${ac_cv_func_memcmp_working+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535   if test "$cross_compiling" = yes; then
20536   ac_cv_func_memcmp_working=no
20537 else
20538   cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 $ac_includes_default
20545 int
20546 main ()
20547 {
20548
20549   /* Some versions of memcmp are not 8-bit clean.  */
20550   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20551   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20552     exit (1);
20553
20554   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20555      or more and with at least one buffer not starting on a 4-byte boundary.
20556      William Lewis provided this test program.   */
20557   {
20558     char foo[21];
20559     char bar[21];
20560     int i;
20561     for (i = 0; i < 4; i++)
20562       {
20563         char *a = foo + i;
20564         char *b = bar + i;
20565         strcpy (a, "--------01111111");
20566         strcpy (b, "--------10000000");
20567         if (memcmp (a, b, 16) >= 0)
20568           exit (1);
20569       }
20570     exit (0);
20571   }
20572
20573   ;
20574   return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579   (eval $ac_link) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
20588   ac_cv_func_memcmp_working=yes
20589 else
20590   echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594 ( exit $ac_status )
20595 ac_cv_func_memcmp_working=no
20596 fi
20597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20598 fi
20599 fi
20600 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20601 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20602 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20603     "memcmp.$ac_objext"   | \
20604   *" memcmp.$ac_objext"   | \
20605     "memcmp.$ac_objext "* | \
20606   *" memcmp.$ac_objext "* ) ;;
20607   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20608 esac
20609
20610
20611
20612
20613 for ac_header in stdlib.h unistd.h
20614 do
20615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20617   echo "$as_me:$LINENO: checking for $ac_header" >&5
20618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 fi
20622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20624 else
20625   # Is the header compilable?
20626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20628 cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h.  */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h.  */
20634 $ac_includes_default
20635 #include <$ac_header>
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639   (eval $ac_compile) 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } &&
20646          { ac_try='test -z "$ac_c_werror_flag"
20647                          || test ! -s conftest.err'
20648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649   (eval $ac_try) 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; } &&
20653          { ac_try='test -s conftest.$ac_objext'
20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655   (eval $ac_try) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; }; then
20659   ac_header_compiler=yes
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 ac_header_compiler=no
20665 fi
20666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20668 echo "${ECHO_T}$ac_header_compiler" >&6
20669
20670 # Is the header present?
20671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 #include <$ac_header>
20680 _ACEOF
20681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20683   ac_status=$?
20684   grep -v '^ *+' conftest.er1 >conftest.err
20685   rm -f conftest.er1
20686   cat conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } >/dev/null; then
20689   if test -s conftest.err; then
20690     ac_cpp_err=$ac_c_preproc_warn_flag
20691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20692   else
20693     ac_cpp_err=
20694   fi
20695 else
20696   ac_cpp_err=yes
20697 fi
20698 if test -z "$ac_cpp_err"; then
20699   ac_header_preproc=yes
20700 else
20701   echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20703
20704   ac_header_preproc=no
20705 fi
20706 rm -f conftest.err conftest.$ac_ext
20707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20708 echo "${ECHO_T}$ac_header_preproc" >&6
20709
20710 # So?  What about this header?
20711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20712   yes:no: )
20713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20717     ac_header_preproc=yes
20718     ;;
20719   no:yes:* )
20720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20732     (
20733       cat <<\_ASBOX
20734 ## ------------------------------------------ ##
20735 ## Report this to the AC_PACKAGE_NAME lists.  ##
20736 ## ------------------------------------------ ##
20737 _ASBOX
20738     ) |
20739       sed "s/^/$as_me: WARNING:     /" >&2
20740     ;;
20741 esac
20742 echo "$as_me:$LINENO: checking for $ac_header" >&5
20743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   eval "$as_ac_Header=\$ac_header_preproc"
20748 fi
20749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20751
20752 fi
20753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20754   cat >>confdefs.h <<_ACEOF
20755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20756 _ACEOF
20757
20758 fi
20759
20760 done
20761
20762
20763 for ac_func in getpagesize
20764 do
20765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20766 echo "$as_me:$LINENO: checking for $ac_func" >&5
20767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20768 if eval "test \"\${$as_ac_var+set}\" = set"; then
20769   echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771   cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20779 #define $ac_func innocuous_$ac_func
20780
20781 /* System header to define __stub macros and hopefully few prototypes,
20782     which can conflict with char $ac_func (); below.
20783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20784     <limits.h> exists even on freestanding compilers.  */
20785
20786 #ifdef __STDC__
20787 # include <limits.h>
20788 #else
20789 # include <assert.h>
20790 #endif
20791
20792 #undef $ac_func
20793
20794 /* Override any gcc2 internal prototype to avoid an error.  */
20795 #ifdef __cplusplus
20796 extern "C"
20797 {
20798 #endif
20799 /* We use char because int might match the return type of a gcc2
20800    builtin and then its argument prototype would still apply.  */
20801 char $ac_func ();
20802 /* The GNU C library defines this for functions which it implements
20803     to always fail with ENOSYS.  Some functions are actually named
20804     something starting with __ and the normal name is an alias.  */
20805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20806 choke me
20807 #else
20808 char (*f) () = $ac_func;
20809 #endif
20810 #ifdef __cplusplus
20811 }
20812 #endif
20813
20814 int
20815 main ()
20816 {
20817 return f != $ac_func;
20818   ;
20819   return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824   (eval $ac_link) 2>conftest.er1
20825   ac_status=$?
20826   grep -v '^ *+' conftest.er1 >conftest.err
20827   rm -f conftest.er1
20828   cat conftest.err >&5
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } &&
20831          { ac_try='test -z "$ac_c_werror_flag"
20832                          || test ! -s conftest.err'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; } &&
20838          { ac_try='test -s conftest$ac_exeext'
20839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840   (eval $ac_try) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   eval "$as_ac_var=yes"
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 eval "$as_ac_var=no"
20850 fi
20851 rm -f conftest.err conftest.$ac_objext \
20852       conftest$ac_exeext conftest.$ac_ext
20853 fi
20854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20856 if test `eval echo '${'$as_ac_var'}'` = yes; then
20857   cat >>confdefs.h <<_ACEOF
20858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20859 _ACEOF
20860
20861 fi
20862 done
20863
20864 echo "$as_me:$LINENO: checking for working mmap" >&5
20865 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20866 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   if test "$cross_compiling" = yes; then
20870   ac_cv_func_mmap_fixed_mapped=no
20871 else
20872   cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 $ac_includes_default
20879 /* malloc might have been renamed as rpl_malloc. */
20880 #undef malloc
20881
20882 /* Thanks to Mike Haertel and Jim Avera for this test.
20883    Here is a matrix of mmap possibilities:
20884         mmap private not fixed
20885         mmap private fixed at somewhere currently unmapped
20886         mmap private fixed at somewhere already mapped
20887         mmap shared not fixed
20888         mmap shared fixed at somewhere currently unmapped
20889         mmap shared fixed at somewhere already mapped
20890    For private mappings, we should verify that changes cannot be read()
20891    back from the file, nor mmap's back from the file at a different
20892    address.  (There have been systems where private was not correctly
20893    implemented like the infamous i386 svr4.0, and systems where the
20894    VM page cache was not coherent with the file system buffer cache
20895    like early versions of FreeBSD and possibly contemporary NetBSD.)
20896    For shared mappings, we should conversely verify that changes get
20897    propagated back to all the places they're supposed to be.
20898
20899    Grep wants private fixed already mapped.
20900    The main things grep needs to know about mmap are:
20901    * does it exist and is it safe to write into the mmap'd area
20902    * how to use it (BSD variants)  */
20903
20904 #include <fcntl.h>
20905 #include <sys/mman.h>
20906
20907 #if !STDC_HEADERS && !HAVE_STDLIB_H
20908 char *malloc ();
20909 #endif
20910
20911 /* This mess was copied from the GNU getpagesize.h.  */
20912 #if !HAVE_GETPAGESIZE
20913 /* Assume that all systems that can run configure have sys/param.h.  */
20914 # if !HAVE_SYS_PARAM_H
20915 #  define HAVE_SYS_PARAM_H 1
20916 # endif
20917
20918 # ifdef _SC_PAGESIZE
20919 #  define getpagesize() sysconf(_SC_PAGESIZE)
20920 # else /* no _SC_PAGESIZE */
20921 #  if HAVE_SYS_PARAM_H
20922 #   include <sys/param.h>
20923 #   ifdef EXEC_PAGESIZE
20924 #    define getpagesize() EXEC_PAGESIZE
20925 #   else /* no EXEC_PAGESIZE */
20926 #    ifdef NBPG
20927 #     define getpagesize() NBPG * CLSIZE
20928 #     ifndef CLSIZE
20929 #      define CLSIZE 1
20930 #     endif /* no CLSIZE */
20931 #    else /* no NBPG */
20932 #     ifdef NBPC
20933 #      define getpagesize() NBPC
20934 #     else /* no NBPC */
20935 #      ifdef PAGESIZE
20936 #       define getpagesize() PAGESIZE
20937 #      endif /* PAGESIZE */
20938 #     endif /* no NBPC */
20939 #    endif /* no NBPG */
20940 #   endif /* no EXEC_PAGESIZE */
20941 #  else /* no HAVE_SYS_PARAM_H */
20942 #   define getpagesize() 8192   /* punt totally */
20943 #  endif /* no HAVE_SYS_PARAM_H */
20944 # endif /* no _SC_PAGESIZE */
20945
20946 #endif /* no HAVE_GETPAGESIZE */
20947
20948 int
20949 main ()
20950 {
20951   char *data, *data2, *data3;
20952   int i, pagesize;
20953   int fd;
20954
20955   pagesize = getpagesize ();
20956
20957   /* First, make a file with some known garbage in it. */
20958   data = (char *) malloc (pagesize);
20959   if (!data)
20960     exit (1);
20961   for (i = 0; i < pagesize; ++i)
20962     *(data + i) = rand ();
20963   umask (0);
20964   fd = creat ("conftest.mmap", 0600);
20965   if (fd < 0)
20966     exit (1);
20967   if (write (fd, data, pagesize) != pagesize)
20968     exit (1);
20969   close (fd);
20970
20971   /* Next, try to mmap the file at a fixed address which already has
20972      something else allocated at it.  If we can, also make sure that
20973      we see the same garbage.  */
20974   fd = open ("conftest.mmap", O_RDWR);
20975   if (fd < 0)
20976     exit (1);
20977   data2 = (char *) malloc (2 * pagesize);
20978   if (!data2)
20979     exit (1);
20980   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20981   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20982                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20983     exit (1);
20984   for (i = 0; i < pagesize; ++i)
20985     if (*(data + i) != *(data2 + i))
20986       exit (1);
20987
20988   /* Finally, make sure that changes to the mapped area do not
20989      percolate back to the file as seen by read().  (This is a bug on
20990      some variants of i386 svr4.0.)  */
20991   for (i = 0; i < pagesize; ++i)
20992     *(data2 + i) = *(data2 + i) + 1;
20993   data3 = (char *) malloc (pagesize);
20994   if (!data3)
20995     exit (1);
20996   if (read (fd, data3, pagesize) != pagesize)
20997     exit (1);
20998   for (i = 0; i < pagesize; ++i)
20999     if (*(data + i) != *(data3 + i))
21000       exit (1);
21001   close (fd);
21002   exit (0);
21003 }
21004 _ACEOF
21005 rm -f conftest$ac_exeext
21006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21007   (eval $ac_link) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012   (eval $ac_try) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   ac_cv_func_mmap_fixed_mapped=yes
21017 else
21018   echo "$as_me: program exited with status $ac_status" >&5
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ( exit $ac_status )
21023 ac_cv_func_mmap_fixed_mapped=no
21024 fi
21025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21026 fi
21027 fi
21028 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21029 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21030 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21031
21032 cat >>confdefs.h <<\_ACEOF
21033 #define HAVE_MMAP 1
21034 _ACEOF
21035
21036 fi
21037 rm -f conftest.mmap
21038
21039
21040 case "$host_os" in
21041     mingw* | os2*)
21042     RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
21043     ;;
21044     *)
21045     # UNIX like-system
21046     RCPATH="$sysconfdir/chasenrc"
21047     ;;
21048 esac
21049
21050
21051 if test -n "${GCC}"; then
21052         CFLAGS="${CFLAGS} -Wall"
21053 fi
21054
21055                                                                                 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
21056           ac_config_commands="$ac_config_commands default"
21057 cat >confcache <<\_ACEOF
21058 # This file is a shell script that caches the results of configure
21059 # tests run on this system so they can be shared between configure
21060 # scripts and configure runs, see configure's option --config-cache.
21061 # It is not useful on other systems.  If it contains results you don't
21062 # want to keep, you may remove or edit it.
21063 #
21064 # config.status only pays attention to the cache file if you give it
21065 # the --recheck option to rerun configure.
21066 #
21067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21069 # following values.
21070
21071 _ACEOF
21072
21073 # The following way of writing the cache mishandles newlines in values,
21074 # but we know of no workaround that is simple, portable, and efficient.
21075 # So, don't put newlines in cache variables' values.
21076 # Ultrix sh set writes to stderr and can't be redirected directly,
21077 # and sets the high bit in the cache file unless we assign to the vars.
21078 {
21079   (set) 2>&1 |
21080     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21081     *ac_space=\ *)
21082       # `set' does not quote correctly, so add quotes (double-quote
21083       # substitution turns \\\\ into \\, and sed turns \\ into \).
21084       sed -n \
21085         "s/'/'\\\\''/g;
21086           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21087       ;;
21088     *)
21089       # `set' quotes correctly as required by POSIX, so do not add quotes.
21090       sed -n \
21091         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21092       ;;
21093     esac;
21094 } |
21095   sed '
21096      t clear
21097      : clear
21098      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21099      t end
21100      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21101      : end' >>confcache
21102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21103   if test -w $cache_file; then
21104     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21105     cat confcache >$cache_file
21106   else
21107     echo "not updating unwritable cache $cache_file"
21108   fi
21109 fi
21110 rm -f confcache
21111
21112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21113 # Let make expand exec_prefix.
21114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21115
21116 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21117 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21118 # trailing colons and then remove the whole line if VPATH becomes empty
21119 # (actually we leave an empty line to preserve line numbers).
21120 if test "x$srcdir" = x.; then
21121   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21122 s/:*\$(srcdir):*/:/;
21123 s/:*\${srcdir}:*/:/;
21124 s/:*@srcdir@:*/:/;
21125 s/^\([^=]*=[     ]*\):*/\1/;
21126 s/:*$//;
21127 s/^[^=]*=[       ]*$//;
21128 }'
21129 fi
21130
21131 DEFS=-DHAVE_CONFIG_H
21132
21133 ac_libobjs=
21134 ac_ltlibobjs=
21135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21136   # 1. Remove the extension, and $U if already installed.
21137   ac_i=`echo "$ac_i" |
21138          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21139   # 2. Add them.
21140   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21141   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21142 done
21143 LIBOBJS=$ac_libobjs
21144
21145 LTLIBOBJS=$ac_ltlibobjs
21146
21147
21148 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21149   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21150 Usually this means the macro was only invoked conditionally." >&5
21151 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21152 Usually this means the macro was only invoked conditionally." >&2;}
21153    { (exit 1); exit 1; }; }
21154 fi
21155 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21156   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21157 Usually this means the macro was only invoked conditionally." >&5
21158 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&2;}
21160    { (exit 1); exit 1; }; }
21161 fi
21162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21163   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21164 Usually this means the macro was only invoked conditionally." >&5
21165 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21166 Usually this means the macro was only invoked conditionally." >&2;}
21167    { (exit 1); exit 1; }; }
21168 fi
21169 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21170   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21171 Usually this means the macro was only invoked conditionally." >&5
21172 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21173 Usually this means the macro was only invoked conditionally." >&2;}
21174    { (exit 1); exit 1; }; }
21175 fi
21176
21177 : ${CONFIG_STATUS=./config.status}
21178 ac_clean_files_save=$ac_clean_files
21179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21180 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21181 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21182 cat >$CONFIG_STATUS <<_ACEOF
21183 #! $SHELL
21184 # Generated by $as_me.
21185 # Run this file to recreate the current configuration.
21186 # Compiler output produced by configure, useful for debugging
21187 # configure, is in config.log if it exists.
21188
21189 debug=false
21190 ac_cs_recheck=false
21191 ac_cs_silent=false
21192 SHELL=\${CONFIG_SHELL-$SHELL}
21193 _ACEOF
21194
21195 cat >>$CONFIG_STATUS <<\_ACEOF
21196 ## --------------------- ##
21197 ## M4sh Initialization.  ##
21198 ## --------------------- ##
21199
21200 # Be Bourne compatible
21201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21202   emulate sh
21203   NULLCMD=:
21204   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21205   # is contrary to our usage.  Disable this feature.
21206   alias -g '${1+"$@"}'='"$@"'
21207 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21208   set -o posix
21209 fi
21210 DUALCASE=1; export DUALCASE # for MKS sh
21211
21212 # Support unset when possible.
21213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21214   as_unset=unset
21215 else
21216   as_unset=false
21217 fi
21218
21219
21220 # Work around bugs in pre-3.0 UWIN ksh.
21221 $as_unset ENV MAIL MAILPATH
21222 PS1='$ '
21223 PS2='> '
21224 PS4='+ '
21225
21226 # NLS nuisances.
21227 for as_var in \
21228   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21229   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21230   LC_TELEPHONE LC_TIME
21231 do
21232   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21233     eval $as_var=C; export $as_var
21234   else
21235     $as_unset $as_var
21236   fi
21237 done
21238
21239 # Required to use basename.
21240 if expr a : '\(a\)' >/dev/null 2>&1; then
21241   as_expr=expr
21242 else
21243   as_expr=false
21244 fi
21245
21246 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21247   as_basename=basename
21248 else
21249   as_basename=false
21250 fi
21251
21252
21253 # Name of the executable.
21254 as_me=`$as_basename "$0" ||
21255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21256          X"$0" : 'X\(//\)$' \| \
21257          X"$0" : 'X\(/\)$' \| \
21258          .     : '\(.\)' 2>/dev/null ||
21259 echo X/"$0" |
21260     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21261           /^X\/\(\/\/\)$/{ s//\1/; q; }
21262           /^X\/\(\/\).*/{ s//\1/; q; }
21263           s/.*/./; q'`
21264
21265
21266 # PATH needs CR, and LINENO needs CR and PATH.
21267 # Avoid depending upon Character Ranges.
21268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21271 as_cr_digits='0123456789'
21272 as_cr_alnum=$as_cr_Letters$as_cr_digits
21273
21274 # The user is always right.
21275 if test "${PATH_SEPARATOR+set}" != set; then
21276   echo "#! /bin/sh" >conf$$.sh
21277   echo  "exit 0"   >>conf$$.sh
21278   chmod +x conf$$.sh
21279   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21280     PATH_SEPARATOR=';'
21281   else
21282     PATH_SEPARATOR=:
21283   fi
21284   rm -f conf$$.sh
21285 fi
21286
21287
21288   as_lineno_1=$LINENO
21289   as_lineno_2=$LINENO
21290   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21291   test "x$as_lineno_1" != "x$as_lineno_2" &&
21292   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21293   # Find who we are.  Look in the path if we contain no path at all
21294   # relative or not.
21295   case $0 in
21296     *[\\/]* ) as_myself=$0 ;;
21297     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21298 for as_dir in $PATH
21299 do
21300   IFS=$as_save_IFS
21301   test -z "$as_dir" && as_dir=.
21302   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21303 done
21304
21305        ;;
21306   esac
21307   # We did not find ourselves, most probably we were run as `sh COMMAND'
21308   # in which case we are not to be found in the path.
21309   if test "x$as_myself" = x; then
21310     as_myself=$0
21311   fi
21312   if test ! -f "$as_myself"; then
21313     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21315    { (exit 1); exit 1; }; }
21316   fi
21317   case $CONFIG_SHELL in
21318   '')
21319     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21321 do
21322   IFS=$as_save_IFS
21323   test -z "$as_dir" && as_dir=.
21324   for as_base in sh bash ksh sh5; do
21325          case $as_dir in
21326          /*)
21327            if ("$as_dir/$as_base" -c '
21328   as_lineno_1=$LINENO
21329   as_lineno_2=$LINENO
21330   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21331   test "x$as_lineno_1" != "x$as_lineno_2" &&
21332   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21333              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21334              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21335              CONFIG_SHELL=$as_dir/$as_base
21336              export CONFIG_SHELL
21337              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21338            fi;;
21339          esac
21340        done
21341 done
21342 ;;
21343   esac
21344
21345   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21346   # uniformly replaced by the line number.  The first 'sed' inserts a
21347   # line-number line before each line; the second 'sed' does the real
21348   # work.  The second script uses 'N' to pair each line-number line
21349   # with the numbered line, and appends trailing '-' during
21350   # substitution so that $LINENO is not a special case at line end.
21351   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21352   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21353   sed '=' <$as_myself |
21354     sed '
21355       N
21356       s,$,-,
21357       : loop
21358       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21359       t loop
21360       s,-$,,
21361       s,^['$as_cr_digits']*\n,,
21362     ' >$as_me.lineno &&
21363   chmod +x $as_me.lineno ||
21364     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21365 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21366    { (exit 1); exit 1; }; }
21367
21368   # Don't try to exec as it changes $[0], causing all sort of problems
21369   # (the dirname of $[0] is not the place where we might find the
21370   # original and so on.  Autoconf is especially sensible to this).
21371   . ./$as_me.lineno
21372   # Exit status is that of the last command.
21373   exit
21374 }
21375
21376
21377 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21378   *c*,-n*) ECHO_N= ECHO_C='
21379 ' ECHO_T='      ' ;;
21380   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21381   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21382 esac
21383
21384 if expr a : '\(a\)' >/dev/null 2>&1; then
21385   as_expr=expr
21386 else
21387   as_expr=false
21388 fi
21389
21390 rm -f conf$$ conf$$.exe conf$$.file
21391 echo >conf$$.file
21392 if ln -s conf$$.file conf$$ 2>/dev/null; then
21393   # We could just check for DJGPP; but this test a) works b) is more generic
21394   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21395   if test -f conf$$.exe; then
21396     # Don't use ln at all; we don't have any links
21397     as_ln_s='cp -p'
21398   else
21399     as_ln_s='ln -s'
21400   fi
21401 elif ln conf$$.file conf$$ 2>/dev/null; then
21402   as_ln_s=ln
21403 else
21404   as_ln_s='cp -p'
21405 fi
21406 rm -f conf$$ conf$$.exe conf$$.file
21407
21408 if mkdir -p . 2>/dev/null; then
21409   as_mkdir_p=:
21410 else
21411   test -d ./-p && rmdir ./-p
21412   as_mkdir_p=false
21413 fi
21414
21415 as_executable_p="test -f"
21416
21417 # Sed expression to map a string onto a valid CPP name.
21418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21419
21420 # Sed expression to map a string onto a valid variable name.
21421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21422
21423
21424 # IFS
21425 # We need space, tab and new line, in precisely that order.
21426 as_nl='
21427 '
21428 IFS="   $as_nl"
21429
21430 # CDPATH.
21431 $as_unset CDPATH
21432
21433 exec 6>&1
21434
21435 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21436 # report actual input values of CONFIG_FILES etc. instead of their
21437 # values after options handling.  Logging --version etc. is OK.
21438 exec 5>>config.log
21439 {
21440   echo
21441   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21442 ## Running $as_me. ##
21443 _ASBOX
21444 } >&5
21445 cat >&5 <<_CSEOF
21446
21447 This file was extended by $as_me, which was
21448 generated by GNU Autoconf 2.59.  Invocation command line was
21449
21450   CONFIG_FILES    = $CONFIG_FILES
21451   CONFIG_HEADERS  = $CONFIG_HEADERS
21452   CONFIG_LINKS    = $CONFIG_LINKS
21453   CONFIG_COMMANDS = $CONFIG_COMMANDS
21454   $ $0 $@
21455
21456 _CSEOF
21457 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21458 echo >&5
21459 _ACEOF
21460
21461 # Files that config.status was made for.
21462 if test -n "$ac_config_files"; then
21463   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21464 fi
21465
21466 if test -n "$ac_config_headers"; then
21467   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21468 fi
21469
21470 if test -n "$ac_config_links"; then
21471   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21472 fi
21473
21474 if test -n "$ac_config_commands"; then
21475   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21476 fi
21477
21478 cat >>$CONFIG_STATUS <<\_ACEOF
21479
21480 ac_cs_usage="\
21481 \`$as_me' instantiates files from templates according to the
21482 current configuration.
21483
21484 Usage: $0 [OPTIONS] [FILE]...
21485
21486   -h, --help       print this help, then exit
21487   -V, --version    print version number, then exit
21488   -q, --quiet      do not print progress messages
21489   -d, --debug      don't remove temporary files
21490       --recheck    update $as_me by reconfiguring in the same conditions
21491   --file=FILE[:TEMPLATE]
21492                    instantiate the configuration file FILE
21493   --header=FILE[:TEMPLATE]
21494                    instantiate the configuration header FILE
21495
21496 Configuration files:
21497 $config_files
21498
21499 Configuration headers:
21500 $config_headers
21501
21502 Configuration commands:
21503 $config_commands
21504
21505 Report bugs to <bug-autoconf@gnu.org>."
21506 _ACEOF
21507
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509 ac_cs_version="\\
21510 config.status
21511 configured by $0, generated by GNU Autoconf 2.59,
21512   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21513
21514 Copyright (C) 2003 Free Software Foundation, Inc.
21515 This config.status script is free software; the Free Software Foundation
21516 gives unlimited permission to copy, distribute and modify it."
21517 srcdir=$srcdir
21518 INSTALL="$INSTALL"
21519 _ACEOF
21520
21521 cat >>$CONFIG_STATUS <<\_ACEOF
21522 # If no file are specified by the user, then we need to provide default
21523 # value.  By we need to know if files were specified by the user.
21524 ac_need_defaults=:
21525 while test $# != 0
21526 do
21527   case $1 in
21528   --*=*)
21529     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21530     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21531     ac_shift=:
21532     ;;
21533   -*)
21534     ac_option=$1
21535     ac_optarg=$2
21536     ac_shift=shift
21537     ;;
21538   *) # This is not an option, so the user has probably given explicit
21539      # arguments.
21540      ac_option=$1
21541      ac_need_defaults=false;;
21542   esac
21543
21544   case $ac_option in
21545   # Handling of the options.
21546 _ACEOF
21547 cat >>$CONFIG_STATUS <<\_ACEOF
21548   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21549     ac_cs_recheck=: ;;
21550   --version | --vers* | -V )
21551     echo "$ac_cs_version"; exit 0 ;;
21552   --he | --h)
21553     # Conflict between --help and --header
21554     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21555 Try \`$0 --help' for more information." >&5
21556 echo "$as_me: error: ambiguous option: $1
21557 Try \`$0 --help' for more information." >&2;}
21558    { (exit 1); exit 1; }; };;
21559   --help | --hel | -h )
21560     echo "$ac_cs_usage"; exit 0 ;;
21561   --debug | --d* | -d )
21562     debug=: ;;
21563   --file | --fil | --fi | --f )
21564     $ac_shift
21565     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21566     ac_need_defaults=false;;
21567   --header | --heade | --head | --hea )
21568     $ac_shift
21569     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21570     ac_need_defaults=false;;
21571   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21572   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21573     ac_cs_silent=: ;;
21574
21575   # This is an error.
21576   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21577 Try \`$0 --help' for more information." >&5
21578 echo "$as_me: error: unrecognized option: $1
21579 Try \`$0 --help' for more information." >&2;}
21580    { (exit 1); exit 1; }; } ;;
21581
21582   *) ac_config_targets="$ac_config_targets $1" ;;
21583
21584   esac
21585   shift
21586 done
21587
21588 ac_configure_extra_args=
21589
21590 if $ac_cs_silent; then
21591   exec 6>/dev/null
21592   ac_configure_extra_args="$ac_configure_extra_args --silent"
21593 fi
21594
21595 _ACEOF
21596 cat >>$CONFIG_STATUS <<_ACEOF
21597 if \$ac_cs_recheck; then
21598   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21599   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21600 fi
21601
21602 _ACEOF
21603
21604 cat >>$CONFIG_STATUS <<_ACEOF
21605 #
21606 # INIT-COMMANDS section.
21607 #
21608
21609 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21610
21611 _ACEOF
21612
21613
21614
21615 cat >>$CONFIG_STATUS <<\_ACEOF
21616 for ac_config_target in $ac_config_targets
21617 do
21618   case "$ac_config_target" in
21619   # Handling of arguments.
21620   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21621   "chasen-config" ) CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
21622   "chasen/Makefile" ) CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
21623   "mkchadic/Makefile" ) CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
21624   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21625   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21626   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21627   "chasen.spec" ) CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
21628   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21629   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21630   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21631   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21632 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21633    { (exit 1); exit 1; }; };;
21634   esac
21635 done
21636
21637 # If the user did not use the arguments to specify the items to instantiate,
21638 # then the envvar interface is used.  Set only those that are not.
21639 # We use the long form for the default assignment because of an extremely
21640 # bizarre bug on SunOS 4.1.3.
21641 if $ac_need_defaults; then
21642   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21643   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21644   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21645 fi
21646
21647 # Have a temporary directory for convenience.  Make it in the build tree
21648 # simply because there is no reason to put it here, and in addition,
21649 # creating and moving files from /tmp can sometimes cause problems.
21650 # Create a temporary directory, and hook for its removal unless debugging.
21651 $debug ||
21652 {
21653   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21654   trap '{ (exit 1); exit 1; }' 1 2 13 15
21655 }
21656
21657 # Create a (secure) tmp directory for tmp files.
21658
21659 {
21660   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21661   test -n "$tmp" && test -d "$tmp"
21662 }  ||
21663 {
21664   tmp=./confstat$$-$RANDOM
21665   (umask 077 && mkdir $tmp)
21666 } ||
21667 {
21668    echo "$me: cannot create a temporary directory in ." >&2
21669    { (exit 1); exit 1; }
21670 }
21671
21672 _ACEOF
21673
21674 cat >>$CONFIG_STATUS <<_ACEOF
21675
21676 #
21677 # CONFIG_FILES section.
21678 #
21679
21680 # No need to generate the scripts if there are no CONFIG_FILES.
21681 # This happens for instance when ./config.status config.h
21682 if test -n "\$CONFIG_FILES"; then
21683   # Protect against being on the right side of a sed subst in config.status.
21684   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21685    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21686 s,@SHELL@,$SHELL,;t t
21687 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21688 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21689 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21690 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21691 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21692 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21693 s,@exec_prefix@,$exec_prefix,;t t
21694 s,@prefix@,$prefix,;t t
21695 s,@program_transform_name@,$program_transform_name,;t t
21696 s,@bindir@,$bindir,;t t
21697 s,@sbindir@,$sbindir,;t t
21698 s,@libexecdir@,$libexecdir,;t t
21699 s,@datadir@,$datadir,;t t
21700 s,@sysconfdir@,$sysconfdir,;t t
21701 s,@sharedstatedir@,$sharedstatedir,;t t
21702 s,@localstatedir@,$localstatedir,;t t
21703 s,@libdir@,$libdir,;t t
21704 s,@includedir@,$includedir,;t t
21705 s,@oldincludedir@,$oldincludedir,;t t
21706 s,@infodir@,$infodir,;t t
21707 s,@mandir@,$mandir,;t t
21708 s,@build_alias@,$build_alias,;t t
21709 s,@host_alias@,$host_alias,;t t
21710 s,@target_alias@,$target_alias,;t t
21711 s,@DEFS@,$DEFS,;t t
21712 s,@ECHO_C@,$ECHO_C,;t t
21713 s,@ECHO_N@,$ECHO_N,;t t
21714 s,@ECHO_T@,$ECHO_T,;t t
21715 s,@LIBS@,$LIBS,;t t
21716 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21717 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21718 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21719 s,@CYGPATH_W@,$CYGPATH_W,;t t
21720 s,@PACKAGE@,$PACKAGE,;t t
21721 s,@VERSION@,$VERSION,;t t
21722 s,@ACLOCAL@,$ACLOCAL,;t t
21723 s,@AUTOCONF@,$AUTOCONF,;t t
21724 s,@AUTOMAKE@,$AUTOMAKE,;t t
21725 s,@AUTOHEADER@,$AUTOHEADER,;t t
21726 s,@MAKEINFO@,$MAKEINFO,;t t
21727 s,@install_sh@,$install_sh,;t t
21728 s,@STRIP@,$STRIP,;t t
21729 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21730 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21731 s,@mkdir_p@,$mkdir_p,;t t
21732 s,@AWK@,$AWK,;t t
21733 s,@SET_MAKE@,$SET_MAKE,;t t
21734 s,@am__leading_dot@,$am__leading_dot,;t t
21735 s,@AMTAR@,$AMTAR,;t t
21736 s,@am__tar@,$am__tar,;t t
21737 s,@am__untar@,$am__untar,;t t
21738 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21739 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21740 s,@MAINT@,$MAINT,;t t
21741 s,@CC@,$CC,;t t
21742 s,@CFLAGS@,$CFLAGS,;t t
21743 s,@LDFLAGS@,$LDFLAGS,;t t
21744 s,@CPPFLAGS@,$CPPFLAGS,;t t
21745 s,@ac_ct_CC@,$ac_ct_CC,;t t
21746 s,@EXEEXT@,$EXEEXT,;t t
21747 s,@OBJEXT@,$OBJEXT,;t t
21748 s,@DEPDIR@,$DEPDIR,;t t
21749 s,@am__include@,$am__include,;t t
21750 s,@am__quote@,$am__quote,;t t
21751 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21752 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21753 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21754 s,@CCDEPMODE@,$CCDEPMODE,;t t
21755 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21756 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21757 s,@CXX@,$CXX,;t t
21758 s,@CXXFLAGS@,$CXXFLAGS,;t t
21759 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21760 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21761 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21762 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21763 s,@build@,$build,;t t
21764 s,@build_cpu@,$build_cpu,;t t
21765 s,@build_vendor@,$build_vendor,;t t
21766 s,@build_os@,$build_os,;t t
21767 s,@host@,$host,;t t
21768 s,@host_cpu@,$host_cpu,;t t
21769 s,@host_vendor@,$host_vendor,;t t
21770 s,@host_os@,$host_os,;t t
21771 s,@EGREP@,$EGREP,;t t
21772 s,@LN_S@,$LN_S,;t t
21773 s,@ECHO@,$ECHO,;t t
21774 s,@AR@,$AR,;t t
21775 s,@ac_ct_AR@,$ac_ct_AR,;t t
21776 s,@RANLIB@,$RANLIB,;t t
21777 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21778 s,@CPP@,$CPP,;t t
21779 s,@CXXCPP@,$CXXCPP,;t t
21780 s,@F77@,$F77,;t t
21781 s,@FFLAGS@,$FFLAGS,;t t
21782 s,@ac_ct_F77@,$ac_ct_F77,;t t
21783 s,@LIBTOOL@,$LIBTOOL,;t t
21784 s,@LTVERSION@,$LTVERSION,;t t
21785 s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
21786 s,@LIBOBJS@,$LIBOBJS,;t t
21787 s,@RCPATH@,$RCPATH,;t t
21788 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21789 CEOF
21790
21791 _ACEOF
21792
21793   cat >>$CONFIG_STATUS <<\_ACEOF
21794   # Split the substitutions into bite-sized pieces for seds with
21795   # small command number limits, like on Digital OSF/1 and HP-UX.
21796   ac_max_sed_lines=48
21797   ac_sed_frag=1 # Number of current file.
21798   ac_beg=1 # First line for current file.
21799   ac_end=$ac_max_sed_lines # Line after last line for current file.
21800   ac_more_lines=:
21801   ac_sed_cmds=
21802   while $ac_more_lines; do
21803     if test $ac_beg -gt 1; then
21804       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21805     else
21806       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21807     fi
21808     if test ! -s $tmp/subs.frag; then
21809       ac_more_lines=false
21810     else
21811       # The purpose of the label and of the branching condition is to
21812       # speed up the sed processing (if there are no `@' at all, there
21813       # is no need to browse any of the substitutions).
21814       # These are the two extra sed commands mentioned above.
21815       (echo ':t
21816   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21817       if test -z "$ac_sed_cmds"; then
21818         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21819       else
21820         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21821       fi
21822       ac_sed_frag=`expr $ac_sed_frag + 1`
21823       ac_beg=$ac_end
21824       ac_end=`expr $ac_end + $ac_max_sed_lines`
21825     fi
21826   done
21827   if test -z "$ac_sed_cmds"; then
21828     ac_sed_cmds=cat
21829   fi
21830 fi # test -n "$CONFIG_FILES"
21831
21832 _ACEOF
21833 cat >>$CONFIG_STATUS <<\_ACEOF
21834 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21835   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21836   case $ac_file in
21837   - | *:- | *:-:* ) # input from stdin
21838         cat >$tmp/stdin
21839         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21840         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21841   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21843   * )   ac_file_in=$ac_file.in ;;
21844   esac
21845
21846   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21847   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21849          X"$ac_file" : 'X\(//\)[^/]' \| \
21850          X"$ac_file" : 'X\(//\)$' \| \
21851          X"$ac_file" : 'X\(/\)' \| \
21852          .     : '\(.\)' 2>/dev/null ||
21853 echo X"$ac_file" |
21854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21856           /^X\(\/\/\)$/{ s//\1/; q; }
21857           /^X\(\/\).*/{ s//\1/; q; }
21858           s/.*/./; q'`
21859   { if $as_mkdir_p; then
21860     mkdir -p "$ac_dir"
21861   else
21862     as_dir="$ac_dir"
21863     as_dirs=
21864     while test ! -d "$as_dir"; do
21865       as_dirs="$as_dir $as_dirs"
21866       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21868          X"$as_dir" : 'X\(//\)[^/]' \| \
21869          X"$as_dir" : 'X\(//\)$' \| \
21870          X"$as_dir" : 'X\(/\)' \| \
21871          .     : '\(.\)' 2>/dev/null ||
21872 echo X"$as_dir" |
21873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21875           /^X\(\/\/\)$/{ s//\1/; q; }
21876           /^X\(\/\).*/{ s//\1/; q; }
21877           s/.*/./; q'`
21878     done
21879     test ! -n "$as_dirs" || mkdir $as_dirs
21880   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21882    { (exit 1); exit 1; }; }; }
21883
21884   ac_builddir=.
21885
21886 if test "$ac_dir" != .; then
21887   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21888   # A "../" for each directory in $ac_dir_suffix.
21889   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21890 else
21891   ac_dir_suffix= ac_top_builddir=
21892 fi
21893
21894 case $srcdir in
21895   .)  # No --srcdir option.  We are building in place.
21896     ac_srcdir=.
21897     if test -z "$ac_top_builddir"; then
21898        ac_top_srcdir=.
21899     else
21900        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21901     fi ;;
21902   [\\/]* | ?:[\\/]* )  # Absolute path.
21903     ac_srcdir=$srcdir$ac_dir_suffix;
21904     ac_top_srcdir=$srcdir ;;
21905   *) # Relative path.
21906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21908 esac
21909
21910 # Do not use `cd foo && pwd` to compute absolute paths, because
21911 # the directories may not exist.
21912 case `pwd` in
21913 .) ac_abs_builddir="$ac_dir";;
21914 *)
21915   case "$ac_dir" in
21916   .) ac_abs_builddir=`pwd`;;
21917   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21918   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21919   esac;;
21920 esac
21921 case $ac_abs_builddir in
21922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21923 *)
21924   case ${ac_top_builddir}. in
21925   .) ac_abs_top_builddir=$ac_abs_builddir;;
21926   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21927   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21928   esac;;
21929 esac
21930 case $ac_abs_builddir in
21931 .) ac_abs_srcdir=$ac_srcdir;;
21932 *)
21933   case $ac_srcdir in
21934   .) ac_abs_srcdir=$ac_abs_builddir;;
21935   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21936   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21937   esac;;
21938 esac
21939 case $ac_abs_builddir in
21940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21941 *)
21942   case $ac_top_srcdir in
21943   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21944   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21945   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21946   esac;;
21947 esac
21948
21949
21950   case $INSTALL in
21951   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21952   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21953   esac
21954
21955   if test x"$ac_file" != x-; then
21956     { echo "$as_me:$LINENO: creating $ac_file" >&5
21957 echo "$as_me: creating $ac_file" >&6;}
21958     rm -f "$ac_file"
21959   fi
21960   # Let's still pretend it is `configure' which instantiates (i.e., don't
21961   # use $as_me), people would be surprised to read:
21962   #    /* config.h.  Generated by config.status.  */
21963   if test x"$ac_file" = x-; then
21964     configure_input=
21965   else
21966     configure_input="$ac_file.  "
21967   fi
21968   configure_input=$configure_input"Generated from `echo $ac_file_in |
21969                                      sed 's,.*/,,'` by configure."
21970
21971   # First look for the input files in the build tree, otherwise in the
21972   # src tree.
21973   ac_file_inputs=`IFS=:
21974     for f in $ac_file_in; do
21975       case $f in
21976       -) echo $tmp/stdin ;;
21977       [\\/$]*)
21978          # Absolute (can't be DOS-style, as IFS=:)
21979          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21980 echo "$as_me: error: cannot find input file: $f" >&2;}
21981    { (exit 1); exit 1; }; }
21982          echo "$f";;
21983       *) # Relative
21984          if test -f "$f"; then
21985            # Build tree
21986            echo "$f"
21987          elif test -f "$srcdir/$f"; then
21988            # Source tree
21989            echo "$srcdir/$f"
21990          else
21991            # /dev/null tree
21992            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21993 echo "$as_me: error: cannot find input file: $f" >&2;}
21994    { (exit 1); exit 1; }; }
21995          fi;;
21996       esac
21997     done` || { (exit 1); exit 1; }
21998 _ACEOF
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000   sed "$ac_vpsub
22001 $extrasub
22002 _ACEOF
22003 cat >>$CONFIG_STATUS <<\_ACEOF
22004 :t
22005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22006 s,@configure_input@,$configure_input,;t t
22007 s,@srcdir@,$ac_srcdir,;t t
22008 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22009 s,@top_srcdir@,$ac_top_srcdir,;t t
22010 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22011 s,@builddir@,$ac_builddir,;t t
22012 s,@abs_builddir@,$ac_abs_builddir,;t t
22013 s,@top_builddir@,$ac_top_builddir,;t t
22014 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22015 s,@INSTALL@,$ac_INSTALL,;t t
22016 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22017   rm -f $tmp/stdin
22018   if test x"$ac_file" != x-; then
22019     mv $tmp/out $ac_file
22020   else
22021     cat $tmp/out
22022     rm -f $tmp/out
22023   fi
22024
22025 done
22026 _ACEOF
22027 cat >>$CONFIG_STATUS <<\_ACEOF
22028
22029 #
22030 # CONFIG_HEADER section.
22031 #
22032
22033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22035 #
22036 # ac_d sets the value in "#define NAME VALUE" lines.
22037 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22038 ac_dB='[         ].*$,\1#\2'
22039 ac_dC=' '
22040 ac_dD=',;t'
22041 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22042 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22043 ac_uB='$,\1#\2define\3'
22044 ac_uC=' '
22045 ac_uD=',;t'
22046
22047 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22048   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22049   case $ac_file in
22050   - | *:- | *:-:* ) # input from stdin
22051         cat >$tmp/stdin
22052         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22053         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22054   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22055         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22056   * )   ac_file_in=$ac_file.in ;;
22057   esac
22058
22059   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22060 echo "$as_me: creating $ac_file" >&6;}
22061
22062   # First look for the input files in the build tree, otherwise in the
22063   # src tree.
22064   ac_file_inputs=`IFS=:
22065     for f in $ac_file_in; do
22066       case $f in
22067       -) echo $tmp/stdin ;;
22068       [\\/$]*)
22069          # Absolute (can't be DOS-style, as IFS=:)
22070          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22071 echo "$as_me: error: cannot find input file: $f" >&2;}
22072    { (exit 1); exit 1; }; }
22073          # Do quote $f, to prevent DOS paths from being IFS'd.
22074          echo "$f";;
22075       *) # Relative
22076          if test -f "$f"; then
22077            # Build tree
22078            echo "$f"
22079          elif test -f "$srcdir/$f"; then
22080            # Source tree
22081            echo "$srcdir/$f"
22082          else
22083            # /dev/null tree
22084            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22085 echo "$as_me: error: cannot find input file: $f" >&2;}
22086    { (exit 1); exit 1; }; }
22087          fi;;
22088       esac
22089     done` || { (exit 1); exit 1; }
22090   # Remove the trailing spaces.
22091   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22092
22093 _ACEOF
22094
22095 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22096 # `conftest.undefs', that substitutes the proper values into
22097 # config.h.in to produce config.h.  The first handles `#define'
22098 # templates, and the second `#undef' templates.
22099 # And first: Protect against being on the right side of a sed subst in
22100 # config.status.  Protect against being in an unquoted here document
22101 # in config.status.
22102 rm -f conftest.defines conftest.undefs
22103 # Using a here document instead of a string reduces the quoting nightmare.
22104 # Putting comments in sed scripts is not portable.
22105 #
22106 # `end' is used to avoid that the second main sed command (meant for
22107 # 0-ary CPP macros) applies to n-ary macro definitions.
22108 # See the Autoconf documentation for `clear'.
22109 cat >confdef2sed.sed <<\_ACEOF
22110 s/[\\&,]/\\&/g
22111 s,[\\$`],\\&,g
22112 t clear
22113 : clear
22114 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22115 t end
22116 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22117 : end
22118 _ACEOF
22119 # If some macros were called several times there might be several times
22120 # the same #defines, which is useless.  Nevertheless, we may not want to
22121 # sort them, since we want the *last* AC-DEFINE to be honored.
22122 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22123 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22124 rm -f confdef2sed.sed
22125
22126 # This sed command replaces #undef with comments.  This is necessary, for
22127 # example, in the case of _POSIX_SOURCE, which is predefined and required
22128 # on some systems where configure will not decide to define it.
22129 cat >>conftest.undefs <<\_ACEOF
22130 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22131 _ACEOF
22132
22133 # Break up conftest.defines because some shells have a limit on the size
22134 # of here documents, and old seds have small limits too (100 cmds).
22135 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22136 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22137 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22138 echo '  :' >>$CONFIG_STATUS
22139 rm -f conftest.tail
22140 while grep . conftest.defines >/dev/null
22141 do
22142   # Write a limited-size here document to $tmp/defines.sed.
22143   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22144   # Speed up: don't consider the non `#define' lines.
22145   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22146   # Work around the forget-to-reset-the-flag bug.
22147   echo 't clr' >>$CONFIG_STATUS
22148   echo ': clr' >>$CONFIG_STATUS
22149   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22150   echo 'CEOF
22151   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22152   rm -f $tmp/in
22153   mv $tmp/out $tmp/in
22154 ' >>$CONFIG_STATUS
22155   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22156   rm -f conftest.defines
22157   mv conftest.tail conftest.defines
22158 done
22159 rm -f conftest.defines
22160 echo '  fi # grep' >>$CONFIG_STATUS
22161 echo >>$CONFIG_STATUS
22162
22163 # Break up conftest.undefs because some shells have a limit on the size
22164 # of here documents, and old seds have small limits too (100 cmds).
22165 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22166 rm -f conftest.tail
22167 while grep . conftest.undefs >/dev/null
22168 do
22169   # Write a limited-size here document to $tmp/undefs.sed.
22170   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22171   # Speed up: don't consider the non `#undef'
22172   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22173   # Work around the forget-to-reset-the-flag bug.
22174   echo 't clr' >>$CONFIG_STATUS
22175   echo ': clr' >>$CONFIG_STATUS
22176   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22177   echo 'CEOF
22178   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22179   rm -f $tmp/in
22180   mv $tmp/out $tmp/in
22181 ' >>$CONFIG_STATUS
22182   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22183   rm -f conftest.undefs
22184   mv conftest.tail conftest.undefs
22185 done
22186 rm -f conftest.undefs
22187
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189   # Let's still pretend it is `configure' which instantiates (i.e., don't
22190   # use $as_me), people would be surprised to read:
22191   #    /* config.h.  Generated by config.status.  */
22192   if test x"$ac_file" = x-; then
22193     echo "/* Generated by configure.  */" >$tmp/config.h
22194   else
22195     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22196   fi
22197   cat $tmp/in >>$tmp/config.h
22198   rm -f $tmp/in
22199   if test x"$ac_file" != x-; then
22200     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22201       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22202 echo "$as_me: $ac_file is unchanged" >&6;}
22203     else
22204       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22206          X"$ac_file" : 'X\(//\)[^/]' \| \
22207          X"$ac_file" : 'X\(//\)$' \| \
22208          X"$ac_file" : 'X\(/\)' \| \
22209          .     : '\(.\)' 2>/dev/null ||
22210 echo X"$ac_file" |
22211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22212           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22213           /^X\(\/\/\)$/{ s//\1/; q; }
22214           /^X\(\/\).*/{ s//\1/; q; }
22215           s/.*/./; q'`
22216       { if $as_mkdir_p; then
22217     mkdir -p "$ac_dir"
22218   else
22219     as_dir="$ac_dir"
22220     as_dirs=
22221     while test ! -d "$as_dir"; do
22222       as_dirs="$as_dir $as_dirs"
22223       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22225          X"$as_dir" : 'X\(//\)[^/]' \| \
22226          X"$as_dir" : 'X\(//\)$' \| \
22227          X"$as_dir" : 'X\(/\)' \| \
22228          .     : '\(.\)' 2>/dev/null ||
22229 echo X"$as_dir" |
22230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22232           /^X\(\/\/\)$/{ s//\1/; q; }
22233           /^X\(\/\).*/{ s//\1/; q; }
22234           s/.*/./; q'`
22235     done
22236     test ! -n "$as_dirs" || mkdir $as_dirs
22237   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22239    { (exit 1); exit 1; }; }; }
22240
22241       rm -f $ac_file
22242       mv $tmp/config.h $ac_file
22243     fi
22244   else
22245     cat $tmp/config.h
22246     rm -f $tmp/config.h
22247   fi
22248 # Compute $ac_file's index in $config_headers.
22249 _am_stamp_count=1
22250 for _am_header in $config_headers :; do
22251   case $_am_header in
22252     $ac_file | $ac_file:* )
22253       break ;;
22254     * )
22255       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22256   esac
22257 done
22258 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22259 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260          X$ac_file : 'X\(//\)[^/]' \| \
22261          X$ac_file : 'X\(//\)$' \| \
22262          X$ac_file : 'X\(/\)' \| \
22263          .     : '\(.\)' 2>/dev/null ||
22264 echo X$ac_file |
22265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22266           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22267           /^X\(\/\/\)$/{ s//\1/; q; }
22268           /^X\(\/\).*/{ s//\1/; q; }
22269           s/.*/./; q'`/stamp-h$_am_stamp_count
22270 done
22271 _ACEOF
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273
22274 #
22275 # CONFIG_COMMANDS section.
22276 #
22277 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22278   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22279   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22280   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22282          X"$ac_dest" : 'X\(//\)[^/]' \| \
22283          X"$ac_dest" : 'X\(//\)$' \| \
22284          X"$ac_dest" : 'X\(/\)' \| \
22285          .     : '\(.\)' 2>/dev/null ||
22286 echo X"$ac_dest" |
22287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22289           /^X\(\/\/\)$/{ s//\1/; q; }
22290           /^X\(\/\).*/{ s//\1/; q; }
22291           s/.*/./; q'`
22292   { if $as_mkdir_p; then
22293     mkdir -p "$ac_dir"
22294   else
22295     as_dir="$ac_dir"
22296     as_dirs=
22297     while test ! -d "$as_dir"; do
22298       as_dirs="$as_dir $as_dirs"
22299       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301          X"$as_dir" : 'X\(//\)[^/]' \| \
22302          X"$as_dir" : 'X\(//\)$' \| \
22303          X"$as_dir" : 'X\(/\)' \| \
22304          .     : '\(.\)' 2>/dev/null ||
22305 echo X"$as_dir" |
22306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22308           /^X\(\/\/\)$/{ s//\1/; q; }
22309           /^X\(\/\).*/{ s//\1/; q; }
22310           s/.*/./; q'`
22311     done
22312     test ! -n "$as_dirs" || mkdir $as_dirs
22313   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22315    { (exit 1); exit 1; }; }; }
22316
22317   ac_builddir=.
22318
22319 if test "$ac_dir" != .; then
22320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22321   # A "../" for each directory in $ac_dir_suffix.
22322   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22323 else
22324   ac_dir_suffix= ac_top_builddir=
22325 fi
22326
22327 case $srcdir in
22328   .)  # No --srcdir option.  We are building in place.
22329     ac_srcdir=.
22330     if test -z "$ac_top_builddir"; then
22331        ac_top_srcdir=.
22332     else
22333        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22334     fi ;;
22335   [\\/]* | ?:[\\/]* )  # Absolute path.
22336     ac_srcdir=$srcdir$ac_dir_suffix;
22337     ac_top_srcdir=$srcdir ;;
22338   *) # Relative path.
22339     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22340     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22341 esac
22342
22343 # Do not use `cd foo && pwd` to compute absolute paths, because
22344 # the directories may not exist.
22345 case `pwd` in
22346 .) ac_abs_builddir="$ac_dir";;
22347 *)
22348   case "$ac_dir" in
22349   .) ac_abs_builddir=`pwd`;;
22350   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22351   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22352   esac;;
22353 esac
22354 case $ac_abs_builddir in
22355 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22356 *)
22357   case ${ac_top_builddir}. in
22358   .) ac_abs_top_builddir=$ac_abs_builddir;;
22359   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22360   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22361   esac;;
22362 esac
22363 case $ac_abs_builddir in
22364 .) ac_abs_srcdir=$ac_srcdir;;
22365 *)
22366   case $ac_srcdir in
22367   .) ac_abs_srcdir=$ac_abs_builddir;;
22368   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22369   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22370   esac;;
22371 esac
22372 case $ac_abs_builddir in
22373 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22374 *)
22375   case $ac_top_srcdir in
22376   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22377   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22378   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22379   esac;;
22380 esac
22381
22382
22383   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22384 echo "$as_me: executing $ac_dest commands" >&6;}
22385   case $ac_dest in
22386     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22387   # Strip MF so we end up with the name of the file.
22388   mf=`echo "$mf" | sed -e 's/:.*$//'`
22389   # Check whether this is an Automake generated Makefile or not.
22390   # We used to match only the files named `Makefile.in', but
22391   # some people rename them; so instead we look at the file content.
22392   # Grep'ing the first line is not enough: some people post-process
22393   # each Makefile.in and add a new line on top of each file to say so.
22394   # So let's grep whole file.
22395   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22396     dirpart=`(dirname "$mf") 2>/dev/null ||
22397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22398          X"$mf" : 'X\(//\)[^/]' \| \
22399          X"$mf" : 'X\(//\)$' \| \
22400          X"$mf" : 'X\(/\)' \| \
22401          .     : '\(.\)' 2>/dev/null ||
22402 echo X"$mf" |
22403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22404           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22405           /^X\(\/\/\)$/{ s//\1/; q; }
22406           /^X\(\/\).*/{ s//\1/; q; }
22407           s/.*/./; q'`
22408   else
22409     continue
22410   fi
22411   # Extract the definition of DEPDIR, am__include, and am__quote
22412   # from the Makefile without running `make'.
22413   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22414   test -z "$DEPDIR" && continue
22415   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22416   test -z "am__include" && continue
22417   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22418   # When using ansi2knr, U may be empty or an underscore; expand it
22419   U=`sed -n 's/^U = //p' < "$mf"`
22420   # Find all dependency output files, they are included files with
22421   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22422   # simplest approach to changing $(DEPDIR) to its actual value in the
22423   # expansion.
22424   for file in `sed -n "
22425     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22426        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22427     # Make sure the directory exists.
22428     test -f "$dirpart/$file" && continue
22429     fdir=`(dirname "$file") 2>/dev/null ||
22430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22431          X"$file" : 'X\(//\)[^/]' \| \
22432          X"$file" : 'X\(//\)$' \| \
22433          X"$file" : 'X\(/\)' \| \
22434          .     : '\(.\)' 2>/dev/null ||
22435 echo X"$file" |
22436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22438           /^X\(\/\/\)$/{ s//\1/; q; }
22439           /^X\(\/\).*/{ s//\1/; q; }
22440           s/.*/./; q'`
22441     { if $as_mkdir_p; then
22442     mkdir -p $dirpart/$fdir
22443   else
22444     as_dir=$dirpart/$fdir
22445     as_dirs=
22446     while test ! -d "$as_dir"; do
22447       as_dirs="$as_dir $as_dirs"
22448       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22450          X"$as_dir" : 'X\(//\)[^/]' \| \
22451          X"$as_dir" : 'X\(//\)$' \| \
22452          X"$as_dir" : 'X\(/\)' \| \
22453          .     : '\(.\)' 2>/dev/null ||
22454 echo X"$as_dir" |
22455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22457           /^X\(\/\/\)$/{ s//\1/; q; }
22458           /^X\(\/\).*/{ s//\1/; q; }
22459           s/.*/./; q'`
22460     done
22461     test ! -n "$as_dirs" || mkdir $as_dirs
22462   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22463 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22464    { (exit 1); exit 1; }; }; }
22465
22466     # echo "creating $dirpart/$file"
22467     echo '# dummy' > "$dirpart/$file"
22468   done
22469 done
22470  ;;
22471     default ) chmod +x chasen-config ;;
22472   esac
22473 done
22474 _ACEOF
22475
22476 cat >>$CONFIG_STATUS <<\_ACEOF
22477
22478 { (exit 0); exit 0; }
22479 _ACEOF
22480 chmod +x $CONFIG_STATUS
22481 ac_clean_files=$ac_clean_files_save
22482
22483
22484 # configure is writing to config.log, and then calls config.status.
22485 # config.status does its own redirection, appending to config.log.
22486 # Unfortunately, on DOS this fails, as config.log is still kept open
22487 # by configure, so config.status won't be able to write to it; its
22488 # output is simply discarded.  So we exec the FD to /dev/null,
22489 # effectively closing config.log, so it can be properly (re)opened and
22490 # appended to by config.status.  When coming back to configure, we
22491 # need to make the FD available again.
22492 if test "$no_create" != yes; then
22493   ac_cs_success=:
22494   ac_config_status_args=
22495   test "$silent" = yes &&
22496     ac_config_status_args="$ac_config_status_args --quiet"
22497   exec 5>/dev/null
22498   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22499   exec 5>>config.log
22500   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22501   # would make configure fail if this is the last instruction.
22502   $ac_cs_success || { (exit 1); exit 1; }
22503 fi
22504
22505
22506
22507 # removed the following entry from AC_OUTPUT
22508 #           lib/Makefile.mingw32
22509
22510 # Local Variables:
22511 # mode:shell-script
22512 # sh-indentation:4
22513 # End: