pv 964111, rv lachlan - > attrname[DM_ATTR_NAME_SIZE] = '\0'; /* terminate...
[xfstests-dev.git] / dmapi / 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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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="src/common/cmd/read_invis.c"
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_default_prefix=/usr/local/dmapi_tests
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041   --with-pic              try to use only PIC/non-PIC objects [default=use
1042                           both]
1043   --with-tags[=TAGS]
1044                           include additional configurations [automatic]
1045
1046 Some influential environment variables:
1047   CC          C compiler command
1048   CFLAGS      C compiler flags
1049   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1050               nonstandard directory <lib dir>
1051   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052               headers in a nonstandard directory <include dir>
1053   CPP         C preprocessor
1054   CXX         C++ compiler command
1055   CXXFLAGS    C++ compiler flags
1056   CXXCPP      C++ preprocessor
1057   F77         Fortran 77 compiler command
1058   FFLAGS      Fortran 77 compiler flags
1059
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1062
1063 _ACEOF
1064 fi
1065
1066 if test "$ac_init_help" = "recursive"; then
1067   # If there are subdirs, report their specific --help.
1068   ac_popdir=`pwd`
1069   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070     test -d $ac_dir || continue
1071     ac_builddir=.
1072
1073 if test "$ac_dir" != .; then
1074   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075   # A "../" for each directory in $ac_dir_suffix.
1076   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 else
1078   ac_dir_suffix= ac_top_builddir=
1079 fi
1080
1081 case $srcdir in
1082   .)  # No --srcdir option.  We are building in place.
1083     ac_srcdir=.
1084     if test -z "$ac_top_builddir"; then
1085        ac_top_srcdir=.
1086     else
1087        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088     fi ;;
1089   [\\/]* | ?:[\\/]* )  # Absolute path.
1090     ac_srcdir=$srcdir$ac_dir_suffix;
1091     ac_top_srcdir=$srcdir ;;
1092   *) # Relative path.
1093     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095 esac
1096
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1099 case `pwd` in
1100 .) ac_abs_builddir="$ac_dir";;
1101 *)
1102   case "$ac_dir" in
1103   .) ac_abs_builddir=`pwd`;;
1104   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106   esac;;
1107 esac
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 *)
1111   case ${ac_top_builddir}. in
1112   .) ac_abs_top_builddir=$ac_abs_builddir;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1119 *)
1120   case $ac_srcdir in
1121   .) ac_abs_srcdir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 *)
1129   case $ac_top_srcdir in
1130   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133   esac;;
1134 esac
1135
1136     cd $ac_dir
1137     # Check for guested configure; otherwise get Cygnus style configure.
1138     if test -f $ac_srcdir/configure.gnu; then
1139       echo
1140       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1141     elif test -f $ac_srcdir/configure; then
1142       echo
1143       $SHELL $ac_srcdir/configure  --help=recursive
1144     elif test -f $ac_srcdir/configure.ac ||
1145            test -f $ac_srcdir/configure.in; then
1146       echo
1147       $ac_configure --help
1148     else
1149       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150     fi
1151     cd $ac_popdir
1152   done
1153 fi
1154
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1157   cat <<\_ACEOF
1158
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1162 _ACEOF
1163   exit 0
1164 fi
1165 exec 5>config.log
1166 cat >&5 <<_ACEOF
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1169
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59.  Invocation command line was
1172
1173   $ $0 $@
1174
1175 _ACEOF
1176 {
1177 cat <<_ASUNAME
1178 ## --------- ##
1179 ## Platform. ##
1180 ## --------- ##
1181
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1190
1191 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1192 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1195 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1196 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1197 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1198
1199 _ASUNAME
1200
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202 for as_dir in $PATH
1203 do
1204   IFS=$as_save_IFS
1205   test -z "$as_dir" && as_dir=.
1206   echo "PATH: $as_dir"
1207 done
1208
1209 } >&5
1210
1211 cat >&5 <<_ACEOF
1212
1213
1214 ## ----------- ##
1215 ## Core tests. ##
1216 ## ----------- ##
1217
1218 _ACEOF
1219
1220
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1226 ac_configure_args=
1227 ac_configure_args0=
1228 ac_configure_args1=
1229 ac_sep=
1230 ac_must_keep_next=false
1231 for ac_pass in 1 2
1232 do
1233   for ac_arg
1234   do
1235     case $ac_arg in
1236     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238     | -silent | --silent | --silen | --sile | --sil)
1239       continue ;;
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     esac
1243     case $ac_pass in
1244     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245     2)
1246       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247       if test $ac_must_keep_next = true; then
1248         ac_must_keep_next=false # Got value, back to normal.
1249       else
1250         case $ac_arg in
1251           *=* | --config-cache | -C | -disable-* | --disable-* \
1252           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254           | -with-* | --with-* | -without-* | --without-* | --x)
1255             case "$ac_configure_args0 " in
1256               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257             esac
1258             ;;
1259           -* ) ac_must_keep_next=true ;;
1260         esac
1261       fi
1262       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263       # Get rid of the leading space.
1264       ac_sep=" "
1265       ;;
1266     esac
1267   done
1268 done
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log.  We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278   # Save into config.log some information that might help in debugging.
1279   {
1280     echo
1281
1282     cat <<\_ASBOX
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1286 _ASBOX
1287     echo
1288     # The following way of writing the cache mishandles newlines in values,
1289 {
1290   (set) 2>&1 |
1291     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292     *ac_space=\ *)
1293       sed -n \
1294         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1296       ;;
1297     *)
1298       sed -n \
1299         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300       ;;
1301     esac;
1302 }
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1309 _ASBOX
1310     echo
1311     for ac_var in $ac_subst_vars
1312     do
1313       eval ac_val=$`echo $ac_var`
1314       echo "$ac_var='"'"'$ac_val'"'"'"
1315     done | sort
1316     echo
1317
1318     if test -n "$ac_subst_files"; then
1319       cat <<\_ASBOX
1320 ## ------------- ##
1321 ## Output files. ##
1322 ## ------------- ##
1323 _ASBOX
1324       echo
1325       for ac_var in $ac_subst_files
1326       do
1327         eval ac_val=$`echo $ac_var`
1328         echo "$ac_var='"'"'$ac_val'"'"'"
1329       done | sort
1330       echo
1331     fi
1332
1333     if test -s confdefs.h; then
1334       cat <<\_ASBOX
1335 ## ----------- ##
1336 ## confdefs.h. ##
1337 ## ----------- ##
1338 _ASBOX
1339       echo
1340       sed "/^$/d" confdefs.h | sort
1341       echo
1342     fi
1343     test "$ac_signal" != 0 &&
1344       echo "$as_me: caught signal $ac_signal"
1345     echo "$as_me: exit $exit_status"
1346   } >&5
1347   rm -f core *.core &&
1348   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1349     exit $exit_status
1350      ' 0
1351 for ac_signal in 1 2 13 15; do
1352   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353 done
1354 ac_signal=0
1355
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359 echo >confdefs.h
1360
1361 # Predefined preprocessor variables.
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1365 _ACEOF
1366
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370 _ACEOF
1371
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385 _ACEOF
1386
1387
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391   if test "x$prefix" != xNONE; then
1392     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393   else
1394     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395   fi
1396 fi
1397 for ac_site_file in $CONFIG_SITE; do
1398   if test -r "$ac_site_file"; then
1399     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401     sed 's/^/| /' "$ac_site_file" >&5
1402     . "$ac_site_file"
1403   fi
1404 done
1405
1406 if test -r "$cache_file"; then
1407   # Some versions of bash will fail to source /dev/null (special
1408   # files actually), so we avoid doing that.
1409   if test -f "$cache_file"; then
1410     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1412     case $cache_file in
1413       [\\/]* | ?:[\\/]* ) . $cache_file;;
1414       *)                      . ./$cache_file;;
1415     esac
1416   fi
1417 else
1418   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1420   >$cache_file
1421 fi
1422
1423 # Check that the precious variables saved in the cache have kept the same
1424 # value.
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429   eval ac_new_set=\$ac_env_${ac_var}_set
1430   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431   eval ac_new_val="\$ac_env_${ac_var}_value"
1432   case $ac_old_set,$ac_new_set in
1433     set,)
1434       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436       ac_cache_corrupted=: ;;
1437     ,set)
1438       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440       ac_cache_corrupted=: ;;
1441     ,);;
1442     *)
1443       if test "x$ac_old_val" != "x$ac_new_val"; then
1444         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1447 echo "$as_me:   former value:  $ac_old_val" >&2;}
1448         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1449 echo "$as_me:   current value: $ac_new_val" >&2;}
1450         ac_cache_corrupted=:
1451       fi;;
1452   esac
1453   # Pass precious variables to config.status.
1454   if test "$ac_new_set" = set; then
1455     case $ac_new_val in
1456     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458     *) ac_arg=$ac_var=$ac_new_val ;;
1459     esac
1460     case " $ac_configure_args " in
1461       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1462       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463     esac
1464   fi
1465 done
1466 if $ac_cache_corrupted; then
1467   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499 am__api_version="1.9"
1500 ac_aux_dir=
1501 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1502   if test -f $ac_dir/install-sh; then
1503     ac_aux_dir=$ac_dir
1504     ac_install_sh="$ac_aux_dir/install-sh -c"
1505     break
1506   elif test -f $ac_dir/install.sh; then
1507     ac_aux_dir=$ac_dir
1508     ac_install_sh="$ac_aux_dir/install.sh -c"
1509     break
1510   elif test -f $ac_dir/shtool; then
1511     ac_aux_dir=$ac_dir
1512     ac_install_sh="$ac_aux_dir/shtool install -c"
1513     break
1514   fi
1515 done
1516 if test -z "$ac_aux_dir"; then
1517   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1518 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1519    { (exit 1); exit 1; }; }
1520 fi
1521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1524
1525 # Find a good install program.  We prefer a C program (faster),
1526 # so one script is as good as another.  But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1531 # AIX /bin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542   echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1546 do
1547   IFS=$as_save_IFS
1548   test -z "$as_dir" && as_dir=.
1549   # Account for people who put trailing slashes in PATH elements.
1550 case $as_dir/ in
1551   ./ | .// | /cC/* | \
1552   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554   /usr/ucb/* ) ;;
1555   *)
1556     # OSF1 and SCO ODT 3.0 have their own names for install.
1557     # Don't use installbsd from OSF since it installs stuff as root
1558     # by default.
1559     for ac_prog in ginstall scoinst install; do
1560       for ac_exec_ext in '' $ac_executable_extensions; do
1561         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562           if test $ac_prog = install &&
1563             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564             # AIX install.  It has an incompatible calling convention.
1565             :
1566           elif test $ac_prog = install &&
1567             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568             # program-specific install script used by HP pwplus--don't use.
1569             :
1570           else
1571             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572             break 3
1573           fi
1574         fi
1575       done
1576     done
1577     ;;
1578 esac
1579 done
1580
1581
1582 fi
1583   if test "${ac_cv_path_install+set}" = set; then
1584     INSTALL=$ac_cv_path_install
1585   else
1586     # As a last resort, use the slow shell script.  We don't cache a
1587     # path for INSTALL within a source directory, because that will
1588     # break other packages using the cache if that directory is
1589     # removed, or if the path is relative.
1590     INSTALL=$ac_install_sh
1591   fi
1592 fi
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1595
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1599
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1601
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 # Just in case
1607 sleep 1
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments.  Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1613 # directory).
1614 if (
1615    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616    if test "$*" = "X"; then
1617       # -L didn't work.
1618       set X `ls -t $srcdir/configure conftest.file`
1619    fi
1620    rm -f conftest.file
1621    if test "$*" != "X $srcdir/configure conftest.file" \
1622       && test "$*" != "X conftest.file $srcdir/configure"; then
1623
1624       # If neither matched, then we have a broken ls.  This can happen
1625       # if, for instance, CONFIG_SHELL is bash and it inherits a
1626       # broken ls alias from the environment.  This has actually
1627       # happened.  Such a system could not be considered "sane".
1628       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1631 alias in your environment" >&2;}
1632    { (exit 1); exit 1; }; }
1633    fi
1634
1635    test "$2" = conftest.file
1636    )
1637 then
1638    # Ok.
1639    :
1640 else
1641    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645    { (exit 1); exit 1; }; }
1646 fi
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $.  echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1658 _ACEOF
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 rm conftest.sed
1661
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1664
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668   am_missing_run="$MISSING --run "
1669 else
1670   am_missing_run=
1671   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673 fi
1674
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676   # We used to keeping the `.' as first argument, in order to
1677   # allow $(mkdir_p) to be used without argument.  As in
1678   #   $(mkdir_p) $(somedir)
1679   # where $(somedir) is conditionally defined.  However this is wrong
1680   # for two reasons:
1681   #  1. if the package is installed by a user who cannot write `.'
1682   #     make install will fail,
1683   #  2. the above comment should most certainly read
1684   #     $(mkdir_p) $(DESTDIR)$(somedir)
1685   #     so it does not work when $(somedir) is undefined and
1686   #     $(DESTDIR) is not.
1687   #  To support the latter case, we have to write
1688   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689   #  so the `.' trick is pointless.
1690   mkdir_p='mkdir -p --'
1691 else
1692   # On NextStep and OpenStep, the `mkdir' command does not
1693   # recognize any option.  It will interpret all options as
1694   # directories to create, and then abort because `.' already
1695   # exists.
1696   for d in ./-p ./--version;
1697   do
1698     test -d $d && rmdir $d
1699   done
1700   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701   if test -f "$ac_aux_dir/mkinstalldirs"; then
1702     mkdir_p='$(mkinstalldirs)'
1703   else
1704     mkdir_p='$(install_sh) -d'
1705   fi
1706 fi
1707
1708 for ac_prog in gawk mawk nawk awk
1709 do
1710   # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   if test -n "$AWK"; then
1718   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723   IFS=$as_save_IFS
1724   test -z "$as_dir" && as_dir=.
1725   for ac_exec_ext in '' $ac_executable_extensions; do
1726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727     ac_cv_prog_AWK="$ac_prog"
1728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729     break 2
1730   fi
1731 done
1732 done
1733
1734 fi
1735 fi
1736 AWK=$ac_cv_prog_AWK
1737 if test -n "$AWK"; then
1738   echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1740 else
1741   echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745   test -n "$AWK" && break
1746 done
1747
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   cat >conftest.make <<\_ACEOF
1755 all:
1756         @echo 'ac_maketemp="$(MAKE)"'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761   eval ac_cv_prog_make_${ac_make}_set=yes
1762 else
1763   eval ac_cv_prog_make_${ac_make}_set=no
1764 fi
1765 rm -f conftest.make
1766 fi
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768   echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770   SET_MAKE=
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774   SET_MAKE="MAKE=${MAKE-make}"
1775 fi
1776
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1780   am__leading_dot=.
1781 else
1782   am__leading_dot=_
1783 fi
1784 rmdir .tst 2>/dev/null
1785
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788    test -f $srcdir/config.status; then
1789   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791    { (exit 1); exit 1; }; }
1792 fi
1793
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796   if (cygpath --version) >/dev/null 2>/dev/null; then
1797     CYGPATH_W='cygpath -w'
1798   else
1799     CYGPATH_W=echo
1800   fi
1801 fi
1802
1803
1804 # Define the identity of the package.
1805  PACKAGE=dmapi_tests
1806  VERSION=1.1
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1816 _ACEOF
1817
1818 # Some tools Automake needs.
1819
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821
1822
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824
1825
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827
1828
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830
1831
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'.  However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841   if test -n "$ac_tool_prefix"; then
1842   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test -n "$STRIP"; then
1850   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857   for ac_exec_ext in '' $ac_executable_extensions; do
1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1865
1866 fi
1867 fi
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870   echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 fi
1876
1877 fi
1878 if test -z "$ac_cv_prog_STRIP"; then
1879   ac_ct_STRIP=$STRIP
1880   # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$ac_ct_STRIP"; then
1888   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_ac_ct_STRIP="strip"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905 fi
1906 fi
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   STRIP=$ac_ct_STRIP
1917 else
1918   STRIP="$ac_cv_prog_STRIP"
1919 fi
1920
1921 fi
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923
1924 # We need awk for the "check" target.  The system "awk" is bad on
1925 # some platforms.
1926 # Always define AMTAR for backward compatibility.
1927
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1929
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1931
1932
1933
1934
1935
1936
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 if test -n "$ac_tool_prefix"; then
1943   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$CC"; then
1951   ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971   echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 fi
1979 if test -z "$ac_cv_prog_CC"; then
1980   ac_ct_CC=$CC
1981   # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   if test -n "$ac_ct_CC"; then
1989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     ac_cv_prog_ac_ct_CC="gcc"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004
2005 fi
2006 fi
2007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   CC=$ac_ct_CC
2017 else
2018   CC="$ac_cv_prog_CC"
2019 fi
2020
2021 if test -z "$CC"; then
2022   if test -n "$ac_tool_prefix"; then
2023   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$CC"; then
2031   ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040     ac_cv_prog_CC="${ac_tool_prefix}cc"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046
2047 fi
2048 fi
2049 CC=$ac_cv_prog_CC
2050 if test -n "$CC"; then
2051   echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2053 else
2054   echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2056 fi
2057
2058 fi
2059 if test -z "$ac_cv_prog_CC"; then
2060   ac_ct_CC=$CC
2061   # Extract the first word of "cc", so it can be a program name with args.
2062 set dummy cc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test -n "$ac_ct_CC"; then
2069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074   IFS=$as_save_IFS
2075   test -z "$as_dir" && as_dir=.
2076   for ac_exec_ext in '' $ac_executable_extensions; do
2077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078     ac_cv_prog_ac_ct_CC="cc"
2079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080     break 2
2081   fi
2082 done
2083 done
2084
2085 fi
2086 fi
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2091 else
2092   echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2094 fi
2095
2096   CC=$ac_ct_CC
2097 else
2098   CC="$ac_cv_prog_CC"
2099 fi
2100
2101 fi
2102 if test -z "$CC"; then
2103   # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   if test -n "$CC"; then
2111   ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113   ac_prog_rejected=no
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119   for ac_exec_ext in '' $ac_executable_extensions; do
2120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122        ac_prog_rejected=yes
2123        continue
2124      fi
2125     ac_cv_prog_CC="cc"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131
2132 if test $ac_prog_rejected = yes; then
2133   # We found a bogon in the path, so make sure we never use it.
2134   set dummy $ac_cv_prog_CC
2135   shift
2136   if test $# != 0; then
2137     # We chose a different compiler from the bogus one.
2138     # However, it has the same basename, so the bogon will be chosen
2139     # first if we set CC to just the basename; use the full file name.
2140     shift
2141     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2142   fi
2143 fi
2144 fi
2145 fi
2146 CC=$ac_cv_prog_CC
2147 if test -n "$CC"; then
2148   echo "$as_me:$LINENO: result: $CC" >&5
2149 echo "${ECHO_T}$CC" >&6
2150 else
2151   echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2153 fi
2154
2155 fi
2156 if test -z "$CC"; then
2157   if test -n "$ac_tool_prefix"; then
2158   for ac_prog in cl
2159   do
2160     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   if test -n "$CC"; then
2168   ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_exec_ext in '' $ac_executable_extensions; do
2176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179     break 2
2180   fi
2181 done
2182 done
2183
2184 fi
2185 fi
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188   echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2190 else
2191   echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2193 fi
2194
2195     test -n "$CC" && break
2196   done
2197 fi
2198 if test -z "$CC"; then
2199   ac_ct_CC=$CC
2200   for ac_prog in cl
2201 do
2202   # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2207   echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209   if test -n "$ac_ct_CC"; then
2210   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   for ac_exec_ext in '' $ac_executable_extensions; do
2218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219     ac_cv_prog_ac_ct_CC="$ac_prog"
2220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221     break 2
2222   fi
2223 done
2224 done
2225
2226 fi
2227 fi
2228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229 if test -n "$ac_ct_CC"; then
2230   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2231 echo "${ECHO_T}$ac_ct_CC" >&6
2232 else
2233   echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2235 fi
2236
2237   test -n "$ac_ct_CC" && break
2238 done
2239
2240   CC=$ac_ct_CC
2241 fi
2242
2243 fi
2244
2245
2246 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: no acceptable C compiler found in \$PATH
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251
2252 # Provide some information about the compiler.
2253 echo "$as_me:$LINENO:" \
2254      "checking for C compiler version" >&5
2255 ac_compiler=`set X $ac_compile; echo $2`
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2257   (eval $ac_compiler --version </dev/null >&5) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2262   (eval $ac_compiler -v </dev/null >&5) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2267   (eval $ac_compiler -V </dev/null >&5) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }
2271
2272 cat >conftest.$ac_ext <<_ACEOF
2273 /* confdefs.h.  */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h.  */
2278
2279 int
2280 main ()
2281 {
2282
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 ac_clean_files_save=$ac_clean_files
2288 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2289 # Try to create an executable without -o first, disregard a.out.
2290 # It will help us diagnose broken compilers, and finding out an intuition
2291 # of exeext.
2292 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2293 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2294 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2295 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2296   (eval $ac_link_default) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; then
2300   # Find the output, starting from the most likely.  This scheme is
2301 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2302 # resort.
2303
2304 # Be careful to initialize this variable, since it used to be cached.
2305 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2306 ac_cv_exeext=
2307 # b.out is created by i960 compilers.
2308 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2309 do
2310   test -f "$ac_file" || continue
2311   case $ac_file in
2312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2313         ;;
2314     conftest.$ac_ext )
2315         # This is the source file.
2316         ;;
2317     [ab].out )
2318         # We found the default executable, but exeext='' is most
2319         # certainly right.
2320         break;;
2321     *.* )
2322         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323         # FIXME: I believe we export ac_cv_exeext for Libtool,
2324         # but it would be cool to find out if it's true.  Does anybody
2325         # maintain Libtool? --akim.
2326         export ac_cv_exeext
2327         break;;
2328     * )
2329         break;;
2330   esac
2331 done
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: C compiler cannot create executables
2339 See \`config.log' for more details." >&2;}
2340    { (exit 77); exit 77; }; }
2341 fi
2342
2343 ac_exeext=$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_file" >&5
2345 echo "${ECHO_T}$ac_file" >&6
2346
2347 # Check the compiler produces executables we can run.  If not, either
2348 # the compiler is broken, or we cross compile.
2349 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2352 # If not cross compiling, check that we can run a simple program.
2353 if test "$cross_compiling" != yes; then
2354   if { ac_try='./$ac_file'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360     cross_compiling=no
2361   else
2362     if test "$cross_compiling" = maybe; then
2363         cross_compiling=yes
2364     else
2365         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot run C compiled programs.
2369 If you meant to cross compile, use \`--host'.
2370 See \`config.log' for more details." >&2;}
2371    { (exit 1); exit 1; }; }
2372     fi
2373   fi
2374 fi
2375 echo "$as_me:$LINENO: result: yes" >&5
2376 echo "${ECHO_T}yes" >&6
2377
2378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2379 ac_clean_files=$ac_clean_files_save
2380 # Check the compiler produces executables we can run.  If not, either
2381 # the compiler is broken, or we cross compile.
2382 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2384 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2385 echo "${ECHO_T}$cross_compiling" >&6
2386
2387 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390   (eval $ac_link) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; then
2394   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2395 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2396 # work properly (i.e., refer to `conftest.exe'), while it won't with
2397 # `rm'.
2398 for ac_file in conftest.exe conftest conftest.*; do
2399   test -f "$ac_file" || continue
2400   case $ac_file in
2401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2402     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2403           export ac_cv_exeext
2404           break;;
2405     * ) break;;
2406   esac
2407 done
2408 else
2409   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2410 See \`config.log' for more details." >&5
2411 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2412 See \`config.log' for more details." >&2;}
2413    { (exit 1); exit 1; }; }
2414 fi
2415
2416 rm -f conftest$ac_cv_exeext
2417 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2418 echo "${ECHO_T}$ac_cv_exeext" >&6
2419
2420 rm -f conftest.$ac_ext
2421 EXEEXT=$ac_cv_exeext
2422 ac_exeext=$EXEEXT
2423 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2424 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2425 if test "${ac_cv_objext+set}" = set; then
2426   echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428   cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h.  */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h.  */
2434
2435 int
2436 main ()
2437 {
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.o conftest.obj
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445   (eval $ac_compile) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; then
2449   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2450   case $ac_file in
2451     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2452     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2453        break;;
2454   esac
2455 done
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2463 See \`config.log' for more details." >&2;}
2464    { (exit 1); exit 1; }; }
2465 fi
2466
2467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2468 fi
2469 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2470 echo "${ECHO_T}$ac_cv_objext" >&6
2471 OBJEXT=$ac_cv_objext
2472 ac_objext=$OBJEXT
2473 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2474 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488 #ifndef __GNUC__
2489        choke me
2490 #endif
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498   (eval $ac_compile) 2>conftest.er1
2499   ac_status=$?
2500   grep -v '^ *+' conftest.er1 >conftest.err
2501   rm -f conftest.er1
2502   cat conftest.err >&5
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); } &&
2505          { ac_try='test -z "$ac_c_werror_flag"
2506                          || test ! -s conftest.err'
2507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508   (eval $ac_try) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; } &&
2512          { ac_try='test -s conftest.$ac_objext'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_compiler_gnu=yes
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 ac_compiler_gnu=no
2524 fi
2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2527
2528 fi
2529 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2530 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2531 GCC=`test $ac_compiler_gnu = yes && echo yes`
2532 ac_test_CFLAGS=${CFLAGS+set}
2533 ac_save_CFLAGS=$CFLAGS
2534 CFLAGS="-g"
2535 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2537 if test "${ac_cv_prog_cc_g+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h.  */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h.  */
2546
2547 int
2548 main ()
2549 {
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557   (eval $ac_compile) 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag"
2565                          || test ! -s conftest.err'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   ac_cv_prog_cc_g=yes
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 ac_cv_prog_cc_g=no
2583 fi
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588 if test "$ac_test_CFLAGS" = set; then
2589   CFLAGS=$ac_save_CFLAGS
2590 elif test $ac_cv_prog_cc_g = yes; then
2591   if test "$GCC" = yes; then
2592     CFLAGS="-g -O2"
2593   else
2594     CFLAGS="-g"
2595   fi
2596 else
2597   if test "$GCC" = yes; then
2598     CFLAGS="-O2"
2599   else
2600     CFLAGS=
2601   fi
2602 fi
2603 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   ac_cv_prog_cc_stdc=no
2609 ac_save_CC=$CC
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h.  */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h.  */
2616 #include <stdarg.h>
2617 #include <stdio.h>
2618 #include <sys/types.h>
2619 #include <sys/stat.h>
2620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2621 struct buf { int x; };
2622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2623 static char *e (p, i)
2624      char **p;
2625      int i;
2626 {
2627   return p[i];
2628 }
2629 static char *f (char * (*g) (char **, int), char **p, ...)
2630 {
2631   char *s;
2632   va_list v;
2633   va_start (v,p);
2634   s = g (p, va_arg (v,int));
2635   va_end (v);
2636   return s;
2637 }
2638
2639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2640    function prototypes and stuff, but not '\xHH' hex character constants.
2641    These don't provoke an error unfortunately, instead are silently treated
2642    as 'x'.  The following induces an error, until -std1 is added to get
2643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2644    array size at least.  It's necessary to write '\x00'==0 to get something
2645    that's true only with -std1.  */
2646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2647
2648 int test (int i, double x);
2649 struct s1 {int (*f) (int a);};
2650 struct s2 {int (*f) (double a);};
2651 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2652 int argc;
2653 char **argv;
2654 int
2655 main ()
2656 {
2657 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 # Don't try gcc -ansi; that turns off useful extensions and
2663 # breaks some systems' header files.
2664 # AIX                   -qlanglvl=ansi
2665 # Ultrix and OSF/1      -std1
2666 # HP-UX 10.20 and later -Ae
2667 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2668 # SVR4                  -Xc -D__EXTENSIONS__
2669 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2670 do
2671   CC="$ac_save_CC $ac_arg"
2672   rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>conftest.er1
2675   ac_status=$?
2676   grep -v '^ *+' conftest.er1 >conftest.err
2677   rm -f conftest.er1
2678   cat conftest.err >&5
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -z "$ac_c_werror_flag"
2682                          || test ! -s conftest.err'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; } &&
2688          { ac_try='test -s conftest.$ac_objext'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; }; then
2694   ac_cv_prog_cc_stdc=$ac_arg
2695 break
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 fi
2701 rm -f conftest.err conftest.$ac_objext
2702 done
2703 rm -f conftest.$ac_ext conftest.$ac_objext
2704 CC=$ac_save_CC
2705
2706 fi
2707
2708 case "x$ac_cv_prog_cc_stdc" in
2709   x|xno)
2710     echo "$as_me:$LINENO: result: none needed" >&5
2711 echo "${ECHO_T}none needed" >&6 ;;
2712   *)
2713     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2714 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2715     CC="$CC $ac_cv_prog_cc_stdc" ;;
2716 esac
2717
2718 # Some people use a C++ compiler to compile C.  Since we use `exit',
2719 # in C++ we need to declare it.  In case someone uses the same compiler
2720 # for both compiling C and C++ we need to have the C++ compiler decide
2721 # the declaration of exit, since it's the most demanding environment.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #ifndef __cplusplus
2724   choke me
2725 #endif
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_c_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   for ac_declaration in \
2750    '' \
2751    'extern "C" void std::exit (int) throw (); using std::exit;' \
2752    'extern "C" void std::exit (int); using std::exit;' \
2753    'extern "C" void exit (int) throw ();' \
2754    'extern "C" void exit (int);' \
2755    'void exit (int);'
2756 do
2757   cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 $ac_declaration
2764 #include <stdlib.h>
2765 int
2766 main ()
2767 {
2768 exit (42);
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775   (eval $ac_compile) 2>conftest.er1
2776   ac_status=$?
2777   grep -v '^ *+' conftest.er1 >conftest.err
2778   rm -f conftest.er1
2779   cat conftest.err >&5
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); } &&
2782          { ac_try='test -z "$ac_c_werror_flag"
2783                          || test ! -s conftest.err'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; } &&
2789          { ac_try='test -s conftest.$ac_objext'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; }; then
2795   :
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 continue
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803   cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h.  */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h.  */
2809 $ac_declaration
2810 int
2811 main ()
2812 {
2813 exit (42);
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820   (eval $ac_compile) 2>conftest.er1
2821   ac_status=$?
2822   grep -v '^ *+' conftest.er1 >conftest.err
2823   rm -f conftest.er1
2824   cat conftest.err >&5
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -z "$ac_c_werror_flag"
2828                          || test ! -s conftest.err'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   break
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 done
2848 rm -f conftest*
2849 if test -n "$ac_declaration"; then
2850   echo '#ifdef __cplusplus' >>confdefs.h
2851   echo $ac_declaration      >>confdefs.h
2852   echo '#endif'             >>confdefs.h
2853 fi
2854
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 DEPDIR="${am__leading_dot}deps"
2867
2868           ac_config_commands="$ac_config_commands depfiles"
2869
2870
2871 am_make=${MAKE-make}
2872 cat > confinc << 'END'
2873 am__doit:
2874         @echo done
2875 .PHONY: am__doit
2876 END
2877 # If we don't find an include directive, just comment out the code.
2878 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2879 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2880 am__include="#"
2881 am__quote=
2882 _am_result=none
2883 # First try GNU make style include.
2884 echo "include confinc" > confmf
2885 # We grep out `Entering directory' and `Leaving directory'
2886 # messages which can occur if `w' ends up in MAKEFLAGS.
2887 # In particular we don't look at `^make:' because GNU make might
2888 # be invoked under some other name (usually "gmake"), in which
2889 # case it prints its new name instead of `make'.
2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2891    am__include=include
2892    am__quote=
2893    _am_result=GNU
2894 fi
2895 # Now try BSD make style include.
2896 if test "$am__include" = "#"; then
2897    echo '.include "confinc"' > confmf
2898    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2899       am__include=.include
2900       am__quote="\""
2901       _am_result=BSD
2902    fi
2903 fi
2904
2905
2906 echo "$as_me:$LINENO: result: $_am_result" >&5
2907 echo "${ECHO_T}$_am_result" >&6
2908 rm -f confinc confmf
2909
2910 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2911 if test "${enable_dependency_tracking+set}" = set; then
2912   enableval="$enable_dependency_tracking"
2913
2914 fi;
2915 if test "x$enable_dependency_tracking" != xno; then
2916   am_depcomp="$ac_aux_dir/depcomp"
2917   AMDEPBACKSLASH='\'
2918 fi
2919
2920
2921 if test "x$enable_dependency_tracking" != xno; then
2922   AMDEP_TRUE=
2923   AMDEP_FALSE='#'
2924 else
2925   AMDEP_TRUE='#'
2926   AMDEP_FALSE=
2927 fi
2928
2929
2930
2931
2932 depcc="$CC"   am_compiler_list=
2933
2934 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940   # We make a subdir and do the tests there.  Otherwise we can end up
2941   # making bogus files that we don't know about and never remove.  For
2942   # instance it was reported that on HP-UX the gcc test will end up
2943   # making a dummy file named `D' -- because `-MD' means `put the output
2944   # in D'.
2945   mkdir conftest.dir
2946   # Copy depcomp to subdir because otherwise we won't find it if we're
2947   # using a relative directory.
2948   cp "$am_depcomp" conftest.dir
2949   cd conftest.dir
2950   # We will build objects and dependencies in a subdirectory because
2951   # it helps to detect inapplicable dependency modes.  For instance
2952   # both Tru64's cc and ICC support -MD to output dependencies as a
2953   # side effect of compilation, but ICC will put the dependencies in
2954   # the current directory while Tru64 will put them in the object
2955   # directory.
2956   mkdir sub
2957
2958   am_cv_CC_dependencies_compiler_type=none
2959   if test "$am_compiler_list" = ""; then
2960      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2961   fi
2962   for depmode in $am_compiler_list; do
2963     # Setup a source with many dependencies, because some compilers
2964     # like to wrap large dependency lists on column 80 (with \), and
2965     # we should not choose a depcomp mode which is confused by this.
2966     #
2967     # We need to recreate these files for each test, as the compiler may
2968     # overwrite some of them when testing with obscure command lines.
2969     # This happens at least with the AIX C compiler.
2970     : > sub/conftest.c
2971     for i in 1 2 3 4 5 6; do
2972       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974       # Solaris 8's {/usr,}/bin/sh.
2975       touch sub/conftst$i.h
2976     done
2977     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2978
2979     case $depmode in
2980     nosideeffect)
2981       # after this tag, mechanisms are not by side-effect, so they'll
2982       # only be used when explicitly requested
2983       if test "x$enable_dependency_tracking" = xyes; then
2984         continue
2985       else
2986         break
2987       fi
2988       ;;
2989     none) break ;;
2990     esac
2991     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992     # mode.  It turns out that the SunPro C++ compiler does not properly
2993     # handle `-M -o', and we need to detect this.
2994     if depmode=$depmode \
2995        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2996        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2997        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2998          >/dev/null 2>conftest.err &&
2999        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3000        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3001        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3002       # icc doesn't choke on unknown options, it will just issue warnings
3003       # or remarks (even with -Werror).  So we grep stderr for any message
3004       # that says an option was ignored or not supported.
3005       # When given -MP, icc 7.0 and 7.1 complain thusly:
3006       #   icc: Command line warning: ignoring option '-M'; no argument required
3007       # The diagnosis changed in icc 8.0:
3008       #   icc: Command line remark: option '-MP' not supported
3009       if (grep 'ignoring option' conftest.err ||
3010           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3011         am_cv_CC_dependencies_compiler_type=$depmode
3012         break
3013       fi
3014     fi
3015   done
3016
3017   cd ..
3018   rm -rf conftest.dir
3019 else
3020   am_cv_CC_dependencies_compiler_type=none
3021 fi
3022
3023 fi
3024 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3027
3028
3029
3030 if
3031   test "x$enable_dependency_tracking" != xno \
3032   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3033   am__fastdepCC_TRUE=
3034   am__fastdepCC_FALSE='#'
3035 else
3036   am__fastdepCC_TRUE='#'
3037   am__fastdepCC_FALSE=
3038 fi
3039
3040
3041
3042 # Check whether --enable-shared or --disable-shared was given.
3043 if test "${enable_shared+set}" = set; then
3044   enableval="$enable_shared"
3045   p=${PACKAGE-default}
3046     case $enableval in
3047     yes) enable_shared=yes ;;
3048     no) enable_shared=no ;;
3049     *)
3050       enable_shared=no
3051       # Look at the argument we got.  We use all the common list separators.
3052       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3053       for pkg in $enableval; do
3054         IFS="$lt_save_ifs"
3055         if test "X$pkg" = "X$p"; then
3056           enable_shared=yes
3057         fi
3058       done
3059       IFS="$lt_save_ifs"
3060       ;;
3061     esac
3062 else
3063   enable_shared=yes
3064 fi;
3065
3066 # Check whether --enable-static or --disable-static was given.
3067 if test "${enable_static+set}" = set; then
3068   enableval="$enable_static"
3069   p=${PACKAGE-default}
3070     case $enableval in
3071     yes) enable_static=yes ;;
3072     no) enable_static=no ;;
3073     *)
3074      enable_static=no
3075       # Look at the argument we got.  We use all the common list separators.
3076       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3077       for pkg in $enableval; do
3078         IFS="$lt_save_ifs"
3079         if test "X$pkg" = "X$p"; then
3080           enable_static=yes
3081         fi
3082       done
3083       IFS="$lt_save_ifs"
3084       ;;
3085     esac
3086 else
3087   enable_static=yes
3088 fi;
3089
3090 # Check whether --enable-fast-install or --disable-fast-install was given.
3091 if test "${enable_fast_install+set}" = set; then
3092   enableval="$enable_fast_install"
3093   p=${PACKAGE-default}
3094     case $enableval in
3095     yes) enable_fast_install=yes ;;
3096     no) enable_fast_install=no ;;
3097     *)
3098       enable_fast_install=no
3099       # Look at the argument we got.  We use all the common list separators.
3100       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3101       for pkg in $enableval; do
3102         IFS="$lt_save_ifs"
3103         if test "X$pkg" = "X$p"; then
3104           enable_fast_install=yes
3105         fi
3106       done
3107       IFS="$lt_save_ifs"
3108       ;;
3109     esac
3110 else
3111   enable_fast_install=yes
3112 fi;
3113
3114 # Make sure we can run config.sub.
3115 $ac_config_sub sun4 >/dev/null 2>&1 ||
3116   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3117 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3118    { (exit 1); exit 1; }; }
3119
3120 echo "$as_me:$LINENO: checking build system type" >&5
3121 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3122 if test "${ac_cv_build+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   ac_cv_build_alias=$build_alias
3126 test -z "$ac_cv_build_alias" &&
3127   ac_cv_build_alias=`$ac_config_guess`
3128 test -z "$ac_cv_build_alias" &&
3129   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3130 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3131    { (exit 1); exit 1; }; }
3132 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3133   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3134 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3135    { (exit 1); exit 1; }; }
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3139 echo "${ECHO_T}$ac_cv_build" >&6
3140 build=$ac_cv_build
3141 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3142 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3143 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3144
3145
3146 echo "$as_me:$LINENO: checking host system type" >&5
3147 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3148 if test "${ac_cv_host+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   ac_cv_host_alias=$host_alias
3152 test -z "$ac_cv_host_alias" &&
3153   ac_cv_host_alias=$ac_cv_build_alias
3154 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3155   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3156 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3157    { (exit 1); exit 1; }; }
3158
3159 fi
3160 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3161 echo "${ECHO_T}$ac_cv_host" >&6
3162 host=$ac_cv_host
3163 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3164 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3165 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3166
3167
3168 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3169 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3170 if test "${lt_cv_path_SED+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   # Loop through the user's path and test for sed and gsed.
3174 # Then use that list of sed's as ones to test for truncation.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180   for lt_ac_prog in sed gsed; do
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3183         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3184       fi
3185     done
3186   done
3187 done
3188 lt_ac_max=0
3189 lt_ac_count=0
3190 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3191 # along with /bin/sed that truncates output.
3192 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3193   test ! -f $lt_ac_sed && break
3194   cat /dev/null > conftest.in
3195   lt_ac_count=0
3196   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3197   # Check for GNU sed and select it if it is found.
3198   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3199     lt_cv_path_SED=$lt_ac_sed
3200     break
3201   fi
3202   while true; do
3203     cat conftest.in conftest.in >conftest.tmp
3204     mv conftest.tmp conftest.in
3205     cp conftest.in conftest.nl
3206     echo >>conftest.nl
3207     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3208     cmp -s conftest.out conftest.nl || break
3209     # 10000 chars as input seems more than enough
3210     test $lt_ac_count -gt 10 && break
3211     lt_ac_count=`expr $lt_ac_count + 1`
3212     if test $lt_ac_count -gt $lt_ac_max; then
3213       lt_ac_max=$lt_ac_count
3214       lt_cv_path_SED=$lt_ac_sed
3215     fi
3216   done
3217 done
3218
3219 fi
3220
3221 SED=$lt_cv_path_SED
3222 echo "$as_me:$LINENO: result: $SED" >&5
3223 echo "${ECHO_T}$SED" >&6
3224
3225 echo "$as_me:$LINENO: checking for egrep" >&5
3226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3227 if test "${ac_cv_prog_egrep+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3231     then ac_cv_prog_egrep='grep -E'
3232     else ac_cv_prog_egrep='egrep'
3233     fi
3234 fi
3235 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3236 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3237  EGREP=$ac_cv_prog_egrep
3238
3239
3240
3241 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3242 if test "${with_gnu_ld+set}" = set; then
3243   withval="$with_gnu_ld"
3244   test "$withval" = no || with_gnu_ld=yes
3245 else
3246   with_gnu_ld=no
3247 fi;
3248 ac_prog=ld
3249 if test "$GCC" = yes; then
3250   # Check if gcc -print-prog-name=ld gives a path.
3251   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3252 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3253   case $host in
3254   *-*-mingw*)
3255     # gcc leaves a trailing carriage return which upsets mingw
3256     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3257   *)
3258     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3259   esac
3260   case $ac_prog in
3261     # Accept absolute paths.
3262     [\\/]* | ?:[\\/]*)
3263       re_direlt='/[^/][^/]*/\.\./'
3264       # Canonicalize the pathname of ld
3265       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3266       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3267         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3268       done
3269       test -z "$LD" && LD="$ac_prog"
3270       ;;
3271   "")
3272     # If it fails, then pretend we aren't using GCC.
3273     ac_prog=ld
3274     ;;
3275   *)
3276     # If it is relative, then search for the first ld in PATH.
3277     with_gnu_ld=unknown
3278     ;;
3279   esac
3280 elif test "$with_gnu_ld" = yes; then
3281   echo "$as_me:$LINENO: checking for GNU ld" >&5
3282 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3283 else
3284   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3285 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3286 fi
3287 if test "${lt_cv_path_LD+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   if test -z "$LD"; then
3291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3292   for ac_dir in $PATH; do
3293     IFS="$lt_save_ifs"
3294     test -z "$ac_dir" && ac_dir=.
3295     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3296       lt_cv_path_LD="$ac_dir/$ac_prog"
3297       # Check to see if the program is GNU ld.  I'd rather use --version,
3298       # but apparently some GNU ld's only accept -v.
3299       # Break only if it was the GNU/non-GNU ld that we prefer.
3300       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3301       *GNU* | *'with BFD'*)
3302         test "$with_gnu_ld" != no && break
3303         ;;
3304       *)
3305         test "$with_gnu_ld" != yes && break
3306         ;;
3307       esac
3308     fi
3309   done
3310   IFS="$lt_save_ifs"
3311 else
3312   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3313 fi
3314 fi
3315
3316 LD="$lt_cv_path_LD"
3317 if test -n "$LD"; then
3318   echo "$as_me:$LINENO: result: $LD" >&5
3319 echo "${ECHO_T}$LD" >&6
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3325 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3326    { (exit 1); exit 1; }; }
3327 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3328 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3329 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3333 case `$LD -v 2>&1 </dev/null` in
3334 *GNU* | *'with BFD'*)
3335   lt_cv_prog_gnu_ld=yes
3336   ;;
3337 *)
3338   lt_cv_prog_gnu_ld=no
3339   ;;
3340 esac
3341 fi
3342 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3343 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3344 with_gnu_ld=$lt_cv_prog_gnu_ld
3345
3346
3347 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3348 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3349 if test "${lt_cv_ld_reload_flag+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   lt_cv_ld_reload_flag='-r'
3353 fi
3354 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3355 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3356 reload_flag=$lt_cv_ld_reload_flag
3357 case $reload_flag in
3358 "" | " "*) ;;
3359 *) reload_flag=" $reload_flag" ;;
3360 esac
3361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3362 case $host_os in
3363   darwin*)
3364     if test "$GCC" = yes; then
3365       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3366     else
3367       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3368     fi
3369     ;;
3370 esac
3371
3372 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3373 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3374 if test "${lt_cv_path_NM+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   if test -n "$NM"; then
3378   # Let the user override the test.
3379   lt_cv_path_NM="$NM"
3380 else
3381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3382   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3383     IFS="$lt_save_ifs"
3384     test -z "$ac_dir" && ac_dir=.
3385     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3386     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3387       # Check to see if the nm accepts a BSD-compat flag.
3388       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3389       #   nm: unknown option "B" ignored
3390       # Tru64's nm complains that /dev/null is an invalid object file
3391       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3392       */dev/null* | *'Invalid file or object type'*)
3393         lt_cv_path_NM="$tmp_nm -B"
3394         break
3395         ;;
3396       *)
3397         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3398         */dev/null*)
3399           lt_cv_path_NM="$tmp_nm -p"
3400           break
3401           ;;
3402         *)
3403           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3404           continue # so that we can try to find one that supports BSD flags
3405           ;;
3406         esac
3407       esac
3408     fi
3409   done
3410   IFS="$lt_save_ifs"
3411   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3412 fi
3413 fi
3414 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3415 echo "${ECHO_T}$lt_cv_path_NM" >&6
3416 NM="$lt_cv_path_NM"
3417
3418 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3420 LN_S=$as_ln_s
3421 if test "$LN_S" = "ln -s"; then
3422   echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6
3424 else
3425   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3426 echo "${ECHO_T}no, using $LN_S" >&6
3427 fi
3428
3429 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3430 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3431 if test "${lt_cv_deplibs_check_method+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   lt_cv_file_magic_cmd='$MAGIC_CMD'
3435 lt_cv_file_magic_test_file=
3436 lt_cv_deplibs_check_method='unknown'
3437 # Need to set the preceding variable on all platforms that support
3438 # interlibrary dependencies.
3439 # 'none' -- dependencies not supported.
3440 # `unknown' -- same as none, but documents that we really don't know.
3441 # 'pass_all' -- all dependencies passed with no checks.
3442 # 'test_compile' -- check by making test program.
3443 # 'file_magic [[regex]]' -- check by looking for files in library path
3444 # which responds to the $file_magic_cmd with a given extended regex.
3445 # If you have `file' or equivalent on your system and you're not sure
3446 # whether `pass_all' will *always* work, you probably want this one.
3447
3448 case $host_os in
3449 aix4* | aix5*)
3450   lt_cv_deplibs_check_method=pass_all
3451   ;;
3452
3453 beos*)
3454   lt_cv_deplibs_check_method=pass_all
3455   ;;
3456
3457 bsdi[45]*)
3458   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3459   lt_cv_file_magic_cmd='/usr/bin/file -L'
3460   lt_cv_file_magic_test_file=/shlib/libc.so
3461   ;;
3462
3463 cygwin*)
3464   # func_win32_libid is a shell function defined in ltmain.sh
3465   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3466   lt_cv_file_magic_cmd='func_win32_libid'
3467   ;;
3468
3469 mingw* | pw32*)
3470   # Base MSYS/MinGW do not provide the 'file' command needed by
3471   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3472   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3473   lt_cv_file_magic_cmd='$OBJDUMP -f'
3474   ;;
3475
3476 darwin* | rhapsody*)
3477   lt_cv_deplibs_check_method=pass_all
3478   ;;
3479
3480 freebsd* | kfreebsd*-gnu)
3481   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3482     case $host_cpu in
3483     i*86 )
3484       # Not sure whether the presence of OpenBSD here was a mistake.
3485       # Let's accept both of them until this is cleared up.
3486       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3487       lt_cv_file_magic_cmd=/usr/bin/file
3488       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3489       ;;
3490     esac
3491   else
3492     lt_cv_deplibs_check_method=pass_all
3493   fi
3494   ;;
3495
3496 gnu*)
3497   lt_cv_deplibs_check_method=pass_all
3498   ;;
3499
3500 hpux10.20* | hpux11*)
3501   lt_cv_file_magic_cmd=/usr/bin/file
3502   case "$host_cpu" in
3503   ia64*)
3504     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3505     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3506     ;;
3507   hppa*64*)
3508     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]'
3509     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3510     ;;
3511   *)
3512     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3513     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3514     ;;
3515   esac
3516   ;;
3517
3518 irix5* | irix6* | nonstopux*)
3519   case $LD in
3520   *-32|*"-32 ") libmagic=32-bit;;
3521   *-n32|*"-n32 ") libmagic=N32;;
3522   *-64|*"-64 ") libmagic=64-bit;;
3523   *) libmagic=never-match;;
3524   esac
3525   lt_cv_deplibs_check_method=pass_all
3526   ;;
3527
3528 # This must be Linux ELF.
3529 linux*)
3530   case $host_cpu in
3531   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64)
3532     lt_cv_deplibs_check_method=pass_all ;;
3533   *)
3534     # glibc up to 2.1.1 does not perform some relocations on ARM
3535     # this will be overridden with pass_all, but let us keep it just in case
3536     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3537   esac
3538   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3539   lt_cv_deplibs_check_method=pass_all
3540   ;;
3541
3542 netbsd*)
3543   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3544     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3545   else
3546     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3547   fi
3548   ;;
3549
3550 newos6*)
3551   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3552   lt_cv_file_magic_cmd=/usr/bin/file
3553   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3554   ;;
3555
3556 nto-qnx*)
3557   lt_cv_deplibs_check_method=unknown
3558   ;;
3559
3560 openbsd*)
3561   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3562     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3563   else
3564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3565   fi
3566   ;;
3567
3568 osf3* | osf4* | osf5*)
3569   lt_cv_deplibs_check_method=pass_all
3570   ;;
3571
3572 sco3.2v5*)
3573   lt_cv_deplibs_check_method=pass_all
3574   ;;
3575
3576 solaris*)
3577   lt_cv_deplibs_check_method=pass_all
3578   ;;
3579
3580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3581   case $host_vendor in
3582   motorola)
3583     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]'
3584     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3585     ;;
3586   ncr)
3587     lt_cv_deplibs_check_method=pass_all
3588     ;;
3589   sequent)
3590     lt_cv_file_magic_cmd='/bin/file'
3591     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3592     ;;
3593   sni)
3594     lt_cv_file_magic_cmd='/bin/file'
3595     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3596     lt_cv_file_magic_test_file=/lib/libc.so
3597     ;;
3598   siemens)
3599     lt_cv_deplibs_check_method=pass_all
3600     ;;
3601   esac
3602   ;;
3603
3604 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3605   lt_cv_deplibs_check_method=pass_all
3606   ;;
3607 esac
3608
3609 fi
3610 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3611 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3612 file_magic_cmd=$lt_cv_file_magic_cmd
3613 deplibs_check_method=$lt_cv_deplibs_check_method
3614 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3615
3616
3617
3618
3619 # If no C compiler was specified, use CC.
3620 LTCC=${LTCC-"$CC"}
3621
3622 # Allow CC to be a program name with arguments.
3623 compiler=$CC
3624
3625
3626 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3627 if test "${enable_libtool_lock+set}" = set; then
3628   enableval="$enable_libtool_lock"
3629
3630 fi;
3631 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3632
3633 # Some flags need to be propagated to the compiler or linker for good
3634 # libtool support.
3635 case $host in
3636 ia64-*-hpux*)
3637   # Find out which ABI we are using.
3638   echo 'int i;' > conftest.$ac_ext
3639   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640   (eval $ac_compile) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; then
3644     case `/usr/bin/file conftest.$ac_objext` in
3645     *ELF-32*)
3646       HPUX_IA64_MODE="32"
3647       ;;
3648     *ELF-64*)
3649       HPUX_IA64_MODE="64"
3650       ;;
3651     esac
3652   fi
3653   rm -rf conftest*
3654   ;;
3655 *-*-irix6*)
3656   # Find out which ABI we are using.
3657   echo '#line 3657 "configure"' > conftest.$ac_ext
3658   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659   (eval $ac_compile) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; then
3663    if test "$lt_cv_prog_gnu_ld" = yes; then
3664     case `/usr/bin/file conftest.$ac_objext` in
3665     *32-bit*)
3666       LD="${LD-ld} -melf32bsmip"
3667       ;;
3668     *N32*)
3669       LD="${LD-ld} -melf32bmipn32"
3670       ;;
3671     *64-bit*)
3672       LD="${LD-ld} -melf64bmip"
3673       ;;
3674     esac
3675    else
3676     case `/usr/bin/file conftest.$ac_objext` in
3677     *32-bit*)
3678       LD="${LD-ld} -32"
3679       ;;
3680     *N32*)
3681       LD="${LD-ld} -n32"
3682       ;;
3683     *64-bit*)
3684       LD="${LD-ld} -64"
3685       ;;
3686     esac
3687    fi
3688   fi
3689   rm -rf conftest*
3690   ;;
3691
3692 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3693   # Find out which ABI we are using.
3694   echo 'int i;' > conftest.$ac_ext
3695   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696   (eval $ac_compile) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; then
3700     case "`/usr/bin/file conftest.o`" in
3701     *32-bit*)
3702       case $host in
3703         x86_64-*linux*)
3704           LD="${LD-ld} -m elf_i386"
3705           ;;
3706         ppc64-*linux*|powerpc64-*linux*)
3707           LD="${LD-ld} -m elf32ppclinux"
3708           ;;
3709         s390x-*linux*)
3710           LD="${LD-ld} -m elf_s390"
3711           ;;
3712         sparc64-*linux*)
3713           LD="${LD-ld} -m elf32_sparc"
3714           ;;
3715       esac
3716       ;;
3717     *64-bit*)
3718       case $host in
3719         x86_64-*linux*)
3720           LD="${LD-ld} -m elf_x86_64"
3721           ;;
3722         ppc*-*linux*|powerpc*-*linux*)
3723           LD="${LD-ld} -m elf64ppc"
3724           ;;
3725         s390*-*linux*)
3726           LD="${LD-ld} -m elf64_s390"
3727           ;;
3728         sparc*-*linux*)
3729           LD="${LD-ld} -m elf64_sparc"
3730           ;;
3731       esac
3732       ;;
3733     esac
3734   fi
3735   rm -rf conftest*
3736   ;;
3737
3738 *-*-sco3.2v5*)
3739   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3740   SAVE_CFLAGS="$CFLAGS"
3741   CFLAGS="$CFLAGS -belf"
3742   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3743 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3744 if test "${lt_cv_cc_needs_belf+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753      cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h.  */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h.  */
3759
3760 int
3761 main ()
3762 {
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770   (eval $ac_link) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag"
3778                          || test ! -s conftest.err'
3779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780   (eval $ac_try) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }; } &&
3784          { ac_try='test -s conftest$ac_exeext'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; }; then
3790   lt_cv_cc_needs_belf=yes
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 lt_cv_cc_needs_belf=no
3796 fi
3797 rm -f conftest.err conftest.$ac_objext \
3798       conftest$ac_exeext conftest.$ac_ext
3799      ac_ext=c
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804
3805 fi
3806 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3807 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3808   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3809     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3810     CFLAGS="$SAVE_CFLAGS"
3811   fi
3812   ;;
3813
3814 esac
3815
3816 need_locks="$enable_libtool_lock"
3817
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3828   CPP=
3829 fi
3830 if test -z "$CPP"; then
3831   if test "${ac_cv_prog_CPP+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834       # Double quotes because CPP needs to be expanded
3835     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3836     do
3837       ac_preproc_ok=false
3838 for ac_c_preproc_warn_flag in '' yes
3839 do
3840   # Use a header file that comes with gcc, so configuring glibc
3841   # with a fresh cross-compiler works.
3842   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843   # <limits.h> exists even on freestanding compilers.
3844   # On the NeXT, cc -E runs the code through the compiler's parser,
3845   # not just through cpp. "Syntax error" is here to catch this case.
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #ifdef __STDC__
3853 # include <limits.h>
3854 #else
3855 # include <assert.h>
3856 #endif
3857                      Syntax error
3858 _ACEOF
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } >/dev/null; then
3867   if test -s conftest.err; then
3868     ac_cpp_err=$ac_c_preproc_warn_flag
3869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3870   else
3871     ac_cpp_err=
3872   fi
3873 else
3874   ac_cpp_err=yes
3875 fi
3876 if test -z "$ac_cpp_err"; then
3877   :
3878 else
3879   echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882   # Broken: fails on valid input.
3883 continue
3884 fi
3885 rm -f conftest.err conftest.$ac_ext
3886
3887   # OK, works on sane cases.  Now check whether non-existent headers
3888   # can be detected and how.
3889   cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 #include <ac_nonexistent.h>
3896 _ACEOF
3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } >/dev/null; then
3905   if test -s conftest.err; then
3906     ac_cpp_err=$ac_c_preproc_warn_flag
3907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3908   else
3909     ac_cpp_err=
3910   fi
3911 else
3912   ac_cpp_err=yes
3913 fi
3914 if test -z "$ac_cpp_err"; then
3915   # Broken: success on invalid input.
3916 continue
3917 else
3918   echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921   # Passes both tests.
3922 ac_preproc_ok=:
3923 break
3924 fi
3925 rm -f conftest.err conftest.$ac_ext
3926
3927 done
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.$ac_ext
3930 if $ac_preproc_ok; then
3931   break
3932 fi
3933
3934     done
3935     ac_cv_prog_CPP=$CPP
3936
3937 fi
3938   CPP=$ac_cv_prog_CPP
3939 else
3940   ac_cv_prog_CPP=$CPP
3941 fi
3942 echo "$as_me:$LINENO: result: $CPP" >&5
3943 echo "${ECHO_T}$CPP" >&6
3944 ac_preproc_ok=false
3945 for ac_c_preproc_warn_flag in '' yes
3946 do
3947   # Use a header file that comes with gcc, so configuring glibc
3948   # with a fresh cross-compiler works.
3949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3950   # <limits.h> exists even on freestanding compilers.
3951   # On the NeXT, cc -E runs the code through the compiler's parser,
3952   # not just through cpp. "Syntax error" is here to catch this case.
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959 #ifdef __STDC__
3960 # include <limits.h>
3961 #else
3962 # include <assert.h>
3963 #endif
3964                      Syntax error
3965 _ACEOF
3966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3968   ac_status=$?
3969   grep -v '^ *+' conftest.er1 >conftest.err
3970   rm -f conftest.er1
3971   cat conftest.err >&5
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } >/dev/null; then
3974   if test -s conftest.err; then
3975     ac_cpp_err=$ac_c_preproc_warn_flag
3976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3977   else
3978     ac_cpp_err=
3979   fi
3980 else
3981   ac_cpp_err=yes
3982 fi
3983 if test -z "$ac_cpp_err"; then
3984   :
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989   # Broken: fails on valid input.
3990 continue
3991 fi
3992 rm -f conftest.err conftest.$ac_ext
3993
3994   # OK, works on sane cases.  Now check whether non-existent headers
3995   # can be detected and how.
3996   cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h.  */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h.  */
4002 #include <ac_nonexistent.h>
4003 _ACEOF
4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } >/dev/null; then
4012   if test -s conftest.err; then
4013     ac_cpp_err=$ac_c_preproc_warn_flag
4014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4015   else
4016     ac_cpp_err=
4017   fi
4018 else
4019   ac_cpp_err=yes
4020 fi
4021 if test -z "$ac_cpp_err"; then
4022   # Broken: success on invalid input.
4023 continue
4024 else
4025   echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028   # Passes both tests.
4029 ac_preproc_ok=:
4030 break
4031 fi
4032 rm -f conftest.err conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then
4038   :
4039 else
4040   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4041 See \`config.log' for more details." >&5
4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4043 See \`config.log' for more details." >&2;}
4044    { (exit 1); exit 1; }; }
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053
4054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4056 if test "${ac_cv_header_stdc+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <stdlib.h>
4066 #include <stdarg.h>
4067 #include <string.h>
4068 #include <float.h>
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080   (eval $ac_compile) 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } &&
4087          { ac_try='test -z "$ac_c_werror_flag"
4088                          || test ! -s conftest.err'
4089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090   (eval $ac_try) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_cv_header_stdc=yes
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 ac_cv_header_stdc=no
4106 fi
4107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108
4109 if test $ac_cv_header_stdc = yes; then
4110   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 #include <string.h>
4118
4119 _ACEOF
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121   $EGREP "memchr" >/dev/null 2>&1; then
4122   :
4123 else
4124   ac_cv_header_stdc=no
4125 fi
4126 rm -f conftest*
4127
4128 fi
4129
4130 if test $ac_cv_header_stdc = yes; then
4131   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <stdlib.h>
4139
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142   $EGREP "free" >/dev/null 2>&1; then
4143   :
4144 else
4145   ac_cv_header_stdc=no
4146 fi
4147 rm -f conftest*
4148
4149 fi
4150
4151 if test $ac_cv_header_stdc = yes; then
4152   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153   if test "$cross_compiling" = yes; then
4154   :
4155 else
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <ctype.h>
4163 #if ((' ' & 0x0FF) == 0x020)
4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4166 #else
4167 # define ISLOWER(c) \
4168                    (('a' <= (c) && (c) <= 'i') \
4169                      || ('j' <= (c) && (c) <= 'r') \
4170                      || ('s' <= (c) && (c) <= 'z'))
4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4172 #endif
4173
4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4175 int
4176 main ()
4177 {
4178   int i;
4179   for (i = 0; i < 256; i++)
4180     if (XOR (islower (i), ISLOWER (i))
4181         || toupper (i) != TOUPPER (i))
4182       exit(2);
4183   exit (0);
4184 }
4185 _ACEOF
4186 rm -f conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188   (eval $ac_link) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193   (eval $ac_try) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; }; then
4197   :
4198 else
4199   echo "$as_me: program exited with status $ac_status" >&5
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 ( exit $ac_status )
4204 ac_cv_header_stdc=no
4205 fi
4206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4207 fi
4208 fi
4209 fi
4210 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4211 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4212 if test $ac_cv_header_stdc = yes; then
4213
4214 cat >>confdefs.h <<\_ACEOF
4215 #define STDC_HEADERS 1
4216 _ACEOF
4217
4218 fi
4219
4220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231                   inttypes.h stdint.h unistd.h
4232 do
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 echo "$as_me:$LINENO: checking for $ac_header" >&5
4235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 $ac_includes_default
4246
4247 #include <$ac_header>
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251   (eval $ac_compile) 2>conftest.er1
4252   ac_status=$?
4253   grep -v '^ *+' conftest.er1 >conftest.err
4254   rm -f conftest.er1
4255   cat conftest.err >&5
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); } &&
4258          { ac_try='test -z "$ac_c_werror_flag"
4259                          || test ! -s conftest.err'
4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261   (eval $ac_try) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; } &&
4265          { ac_try='test -s conftest.$ac_objext'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   eval "$as_ac_Header=yes"
4272 else
4273   echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 eval "$as_ac_Header=no"
4277 fi
4278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279 fi
4280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283   cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285 _ACEOF
4286
4287 fi
4288
4289 done
4290
4291
4292
4293 for ac_header in dlfcn.h
4294 do
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4297   echo "$as_me:$LINENO: checking for $ac_header" >&5
4298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 fi
4302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4304 else
4305   # Is the header compilable?
4306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 $ac_includes_default
4315 #include <$ac_header>
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319   (eval $ac_compile) 2>conftest.er1
4320   ac_status=$?
4321   grep -v '^ *+' conftest.er1 >conftest.err
4322   rm -f conftest.er1
4323   cat conftest.err >&5
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); } &&
4326          { ac_try='test -z "$ac_c_werror_flag"
4327                          || test ! -s conftest.err'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest.$ac_objext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_header_compiler=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_header_compiler=no
4345 fi
4346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4348 echo "${ECHO_T}$ac_header_compiler" >&6
4349
4350 # Is the header present?
4351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <$ac_header>
4360 _ACEOF
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } >/dev/null; then
4369   if test -s conftest.err; then
4370     ac_cpp_err=$ac_c_preproc_warn_flag
4371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4372   else
4373     ac_cpp_err=
4374   fi
4375 else
4376   ac_cpp_err=yes
4377 fi
4378 if test -z "$ac_cpp_err"; then
4379   ac_header_preproc=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384   ac_header_preproc=no
4385 fi
4386 rm -f conftest.err conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4388 echo "${ECHO_T}$ac_header_preproc" >&6
4389
4390 # So?  What about this header?
4391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4392   yes:no: )
4393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4397     ac_header_preproc=yes
4398     ;;
4399   no:yes:* )
4400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4412     (
4413       cat <<\_ASBOX
4414 ## ------------------------------------------ ##
4415 ## Report this to the AC_PACKAGE_NAME lists.  ##
4416 ## ------------------------------------------ ##
4417 _ASBOX
4418     ) |
4419       sed "s/^/$as_me: WARNING:     /" >&2
4420     ;;
4421 esac
4422 echo "$as_me:$LINENO: checking for $ac_header" >&5
4423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   eval "$as_ac_Header=\$ac_header_preproc"
4428 fi
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4431
4432 fi
4433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4434   cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 _ACEOF
4437
4438 fi
4439
4440 done
4441
4442 ac_ext=cc
4443 ac_cpp='$CXXCPP $CPPFLAGS'
4444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4449   do
4450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_CXX+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   if test -n "$CXX"; then
4458   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_exec_ext in '' $ac_executable_extensions; do
4466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473
4474 fi
4475 fi
4476 CXX=$ac_cv_prog_CXX
4477 if test -n "$CXX"; then
4478   echo "$as_me:$LINENO: result: $CXX" >&5
4479 echo "${ECHO_T}$CXX" >&6
4480 else
4481   echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484
4485     test -n "$CXX" && break
4486   done
4487 fi
4488 if test -z "$CXX"; then
4489   ac_ct_CXX=$CXX
4490   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4491 do
4492   # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   if test -n "$ac_ct_CXX"; then
4500   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509     ac_cv_prog_ac_ct_CXX="$ac_prog"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515
4516 fi
4517 fi
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4521 echo "${ECHO_T}$ac_ct_CXX" >&6
4522 else
4523   echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4525 fi
4526
4527   test -n "$ac_ct_CXX" && break
4528 done
4529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4530
4531   CXX=$ac_ct_CXX
4532 fi
4533
4534
4535 # Provide some information about the compiler.
4536 echo "$as_me:$LINENO:" \
4537      "checking for C++ compiler version" >&5
4538 ac_compiler=`set X $ac_compile; echo $2`
4539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4540   (eval $ac_compiler --version </dev/null >&5) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4545   (eval $ac_compiler -v </dev/null >&5) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4550   (eval $ac_compiler -V </dev/null >&5) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }
4554
4555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570 #ifndef __GNUC__
4571        choke me
4572 #endif
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580   (eval $ac_compile) 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -z "$ac_cxx_werror_flag"
4588                          || test ! -s conftest.err'
4589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590   (eval $ac_try) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; } &&
4594          { ac_try='test -s conftest.$ac_objext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   ac_compiler_gnu=yes
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 ac_compiler_gnu=no
4606 fi
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4609
4610 fi
4611 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4612 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4613 GXX=`test $ac_compiler_gnu = yes && echo yes`
4614 ac_test_CXXFLAGS=${CXXFLAGS+set}
4615 ac_save_CXXFLAGS=$CXXFLAGS
4616 CXXFLAGS="-g"
4617 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4618 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4619 if test "${ac_cv_prog_cxx_g+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628
4629 int
4630 main ()
4631 {
4632
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639   (eval $ac_compile) 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } &&
4646          { ac_try='test -z "$ac_cxx_werror_flag"
4647                          || test ! -s conftest.err'
4648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649   (eval $ac_try) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; } &&
4653          { ac_try='test -s conftest.$ac_objext'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   ac_cv_prog_cxx_g=yes
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_cv_prog_cxx_g=no
4665 fi
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667 fi
4668 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4670 if test "$ac_test_CXXFLAGS" = set; then
4671   CXXFLAGS=$ac_save_CXXFLAGS
4672 elif test $ac_cv_prog_cxx_g = yes; then
4673   if test "$GXX" = yes; then
4674     CXXFLAGS="-g -O2"
4675   else
4676     CXXFLAGS="-g"
4677   fi
4678 else
4679   if test "$GXX" = yes; then
4680     CXXFLAGS="-O2"
4681   else
4682     CXXFLAGS=
4683   fi
4684 fi
4685 for ac_declaration in \
4686    '' \
4687    'extern "C" void std::exit (int) throw (); using std::exit;' \
4688    'extern "C" void std::exit (int); using std::exit;' \
4689    'extern "C" void exit (int) throw ();' \
4690    'extern "C" void exit (int);' \
4691    'void exit (int);'
4692 do
4693   cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 $ac_declaration
4700 #include <stdlib.h>
4701 int
4702 main ()
4703 {
4704 exit (42);
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711   (eval $ac_compile) 2>conftest.er1
4712   ac_status=$?
4713   grep -v '^ *+' conftest.er1 >conftest.err
4714   rm -f conftest.er1
4715   cat conftest.err >&5
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } &&
4718          { ac_try='test -z "$ac_cxx_werror_flag"
4719                          || test ! -s conftest.err'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; } &&
4725          { ac_try='test -s conftest.$ac_objext'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; }; then
4731   :
4732 else
4733   echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 continue
4737 fi
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739   cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 $ac_declaration
4746 int
4747 main ()
4748 {
4749 exit (42);
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756   (eval $ac_compile) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -z "$ac_cxx_werror_flag"
4764                          || test ! -s conftest.err'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; } &&
4770          { ac_try='test -s conftest.$ac_objext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   break
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 fi
4782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 done
4784 rm -f conftest*
4785 if test -n "$ac_declaration"; then
4786   echo '#ifdef __cplusplus' >>confdefs.h
4787   echo $ac_declaration      >>confdefs.h
4788   echo '#endif'             >>confdefs.h
4789 fi
4790
4791 ac_ext=cc
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796
4797 depcc="$CXX"  am_compiler_list=
4798
4799 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4801 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4805   # We make a subdir and do the tests there.  Otherwise we can end up
4806   # making bogus files that we don't know about and never remove.  For
4807   # instance it was reported that on HP-UX the gcc test will end up
4808   # making a dummy file named `D' -- because `-MD' means `put the output
4809   # in D'.
4810   mkdir conftest.dir
4811   # Copy depcomp to subdir because otherwise we won't find it if we're
4812   # using a relative directory.
4813   cp "$am_depcomp" conftest.dir
4814   cd conftest.dir
4815   # We will build objects and dependencies in a subdirectory because
4816   # it helps to detect inapplicable dependency modes.  For instance
4817   # both Tru64's cc and ICC support -MD to output dependencies as a
4818   # side effect of compilation, but ICC will put the dependencies in
4819   # the current directory while Tru64 will put them in the object
4820   # directory.
4821   mkdir sub
4822
4823   am_cv_CXX_dependencies_compiler_type=none
4824   if test "$am_compiler_list" = ""; then
4825      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826   fi
4827   for depmode in $am_compiler_list; do
4828     # Setup a source with many dependencies, because some compilers
4829     # like to wrap large dependency lists on column 80 (with \), and
4830     # we should not choose a depcomp mode which is confused by this.
4831     #
4832     # We need to recreate these files for each test, as the compiler may
4833     # overwrite some of them when testing with obscure command lines.
4834     # This happens at least with the AIX C compiler.
4835     : > sub/conftest.c
4836     for i in 1 2 3 4 5 6; do
4837       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4838       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4839       # Solaris 8's {/usr,}/bin/sh.
4840       touch sub/conftst$i.h
4841     done
4842     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4843
4844     case $depmode in
4845     nosideeffect)
4846       # after this tag, mechanisms are not by side-effect, so they'll
4847       # only be used when explicitly requested
4848       if test "x$enable_dependency_tracking" = xyes; then
4849         continue
4850       else
4851         break
4852       fi
4853       ;;
4854     none) break ;;
4855     esac
4856     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4857     # mode.  It turns out that the SunPro C++ compiler does not properly
4858     # handle `-M -o', and we need to detect this.
4859     if depmode=$depmode \
4860        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4861        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4862        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4863          >/dev/null 2>conftest.err &&
4864        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4865        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4866        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4867       # icc doesn't choke on unknown options, it will just issue warnings
4868       # or remarks (even with -Werror).  So we grep stderr for any message
4869       # that says an option was ignored or not supported.
4870       # When given -MP, icc 7.0 and 7.1 complain thusly:
4871       #   icc: Command line warning: ignoring option '-M'; no argument required
4872       # The diagnosis changed in icc 8.0:
4873       #   icc: Command line remark: option '-MP' not supported
4874       if (grep 'ignoring option' conftest.err ||
4875           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4876         am_cv_CXX_dependencies_compiler_type=$depmode
4877         break
4878       fi
4879     fi
4880   done
4881
4882   cd ..
4883   rm -rf conftest.dir
4884 else
4885   am_cv_CXX_dependencies_compiler_type=none
4886 fi
4887
4888 fi
4889 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4890 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4891 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4892
4893
4894
4895 if
4896   test "x$enable_dependency_tracking" != xno \
4897   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4898   am__fastdepCXX_TRUE=
4899   am__fastdepCXX_FALSE='#'
4900 else
4901   am__fastdepCXX_TRUE='#'
4902   am__fastdepCXX_FALSE=
4903 fi
4904
4905
4906 ac_ext=cc
4907 ac_cpp='$CXXCPP $CPPFLAGS'
4908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4911 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4913 if test -z "$CXXCPP"; then
4914   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917       # Double quotes because CXXCPP needs to be expanded
4918     for CXXCPP in "$CXX -E" "/lib/cpp"
4919     do
4920       ac_preproc_ok=false
4921 for ac_cxx_preproc_warn_flag in '' yes
4922 do
4923   # Use a header file that comes with gcc, so configuring glibc
4924   # with a fresh cross-compiler works.
4925   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926   # <limits.h> exists even on freestanding compilers.
4927   # On the NeXT, cc -E runs the code through the compiler's parser,
4928   # not just through cpp. "Syntax error" is here to catch this case.
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940                      Syntax error
4941 _ACEOF
4942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4944   ac_status=$?
4945   grep -v '^ *+' conftest.er1 >conftest.err
4946   rm -f conftest.er1
4947   cat conftest.err >&5
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); } >/dev/null; then
4950   if test -s conftest.err; then
4951     ac_cpp_err=$ac_cxx_preproc_warn_flag
4952     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4953   else
4954     ac_cpp_err=
4955   fi
4956 else
4957   ac_cpp_err=yes
4958 fi
4959 if test -z "$ac_cpp_err"; then
4960   :
4961 else
4962   echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965   # Broken: fails on valid input.
4966 continue
4967 fi
4968 rm -f conftest.err conftest.$ac_ext
4969
4970   # OK, works on sane cases.  Now check whether non-existent headers
4971   # can be detected and how.
4972   cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 #include <ac_nonexistent.h>
4979 _ACEOF
4980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } >/dev/null; then
4988   if test -s conftest.err; then
4989     ac_cpp_err=$ac_cxx_preproc_warn_flag
4990     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991   else
4992     ac_cpp_err=
4993   fi
4994 else
4995   ac_cpp_err=yes
4996 fi
4997 if test -z "$ac_cpp_err"; then
4998   # Broken: success on invalid input.
4999 continue
5000 else
5001   echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004   # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5007 fi
5008 rm -f conftest.err conftest.$ac_ext
5009
5010 done
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then
5014   break
5015 fi
5016
5017     done
5018     ac_cv_prog_CXXCPP=$CXXCPP
5019
5020 fi
5021   CXXCPP=$ac_cv_prog_CXXCPP
5022 else
5023   ac_cv_prog_CXXCPP=$CXXCPP
5024 fi
5025 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5026 echo "${ECHO_T}$CXXCPP" >&6
5027 ac_preproc_ok=false
5028 for ac_cxx_preproc_warn_flag in '' yes
5029 do
5030   # Use a header file that comes with gcc, so configuring glibc
5031   # with a fresh cross-compiler works.
5032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033   # <limits.h> exists even on freestanding compilers.
5034   # On the NeXT, cc -E runs the code through the compiler's parser,
5035   # not just through cpp. "Syntax error" is here to catch this case.
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047                      Syntax error
5048 _ACEOF
5049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051   ac_status=$?
5052   grep -v '^ *+' conftest.er1 >conftest.err
5053   rm -f conftest.er1
5054   cat conftest.err >&5
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } >/dev/null; then
5057   if test -s conftest.err; then
5058     ac_cpp_err=$ac_cxx_preproc_warn_flag
5059     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5060   else
5061     ac_cpp_err=
5062   fi
5063 else
5064   ac_cpp_err=yes
5065 fi
5066 if test -z "$ac_cpp_err"; then
5067   :
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072   # Broken: fails on valid input.
5073 continue
5074 fi
5075 rm -f conftest.err conftest.$ac_ext
5076
5077   # OK, works on sane cases.  Now check whether non-existent headers
5078   # can be detected and how.
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } >/dev/null; then
5095   if test -s conftest.err; then
5096     ac_cpp_err=$ac_cxx_preproc_warn_flag
5097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098   else
5099     ac_cpp_err=
5100   fi
5101 else
5102   ac_cpp_err=yes
5103 fi
5104 if test -z "$ac_cpp_err"; then
5105   # Broken: success on invalid input.
5106 continue
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111   # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5114 fi
5115 rm -f conftest.err conftest.$ac_ext
5116
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5121   :
5122 else
5123   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&5
5125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126 See \`config.log' for more details." >&2;}
5127    { (exit 1); exit 1; }; }
5128 fi
5129
5130 ac_ext=cc
5131 ac_cpp='$CXXCPP $CPPFLAGS'
5132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135
5136
5137 ac_ext=f
5138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5141 if test -n "$ac_tool_prefix"; then
5142   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5143   do
5144     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_F77+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   if test -n "$F77"; then
5152   ac_cv_prog_F77="$F77" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159   for ac_exec_ext in '' $ac_executable_extensions; do
5160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166 done
5167
5168 fi
5169 fi
5170 F77=$ac_cv_prog_F77
5171 if test -n "$F77"; then
5172   echo "$as_me:$LINENO: result: $F77" >&5
5173 echo "${ECHO_T}$F77" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179     test -n "$F77" && break
5180   done
5181 fi
5182 if test -z "$F77"; then
5183   ac_ct_F77=$F77
5184   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5185 do
5186   # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   if test -n "$ac_ct_F77"; then
5194   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   for ac_exec_ext in '' $ac_executable_extensions; do
5202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203     ac_cv_prog_ac_ct_F77="$ac_prog"
5204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208 done
5209
5210 fi
5211 fi
5212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5213 if test -n "$ac_ct_F77"; then
5214   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5215 echo "${ECHO_T}$ac_ct_F77" >&6
5216 else
5217   echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5219 fi
5220
5221   test -n "$ac_ct_F77" && break
5222 done
5223
5224   F77=$ac_ct_F77
5225 fi
5226
5227
5228 # Provide some information about the compiler.
5229 echo "$as_me:5229:" \
5230      "checking for Fortran 77 compiler version" >&5
5231 ac_compiler=`set X $ac_compile; echo $2`
5232 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5233   (eval $ac_compiler --version </dev/null >&5) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }
5237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5238   (eval $ac_compiler -v </dev/null >&5) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }
5242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5243   (eval $ac_compiler -V </dev/null >&5) 2>&5
5244   ac_status=$?
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); }
5247 rm -f a.out
5248
5249 # If we don't use `.F' as extension, the preprocessor is not run on the
5250 # input file.  (Note that this only needs to work for GNU compilers.)
5251 ac_save_ext=$ac_ext
5252 ac_ext=F
5253 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   cat >conftest.$ac_ext <<_ACEOF
5259       program main
5260 #ifndef __GNUC__
5261        choke me
5262 #endif
5263
5264       end
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268   (eval $ac_compile) 2>conftest.er1
5269   ac_status=$?
5270   grep -v '^ *+' conftest.er1 >conftest.err
5271   rm -f conftest.er1
5272   cat conftest.err >&5
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -z "$ac_f77_werror_flag"
5276                          || test ! -s conftest.err'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_compiler_gnu=yes
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 ac_compiler_gnu=no
5294 fi
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5297
5298 fi
5299 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5300 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5301 ac_ext=$ac_save_ext
5302 ac_test_FFLAGS=${FFLAGS+set}
5303 ac_save_FFLAGS=$FFLAGS
5304 FFLAGS=
5305 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5306 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5307 if test "${ac_cv_prog_f77_g+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   FFLAGS=-g
5311 cat >conftest.$ac_ext <<_ACEOF
5312       program main
5313
5314       end
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318   (eval $ac_compile) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } &&
5325          { ac_try='test -z "$ac_f77_werror_flag"
5326                          || test ! -s conftest.err'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; } &&
5332          { ac_try='test -s conftest.$ac_objext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_cv_prog_f77_g=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_cv_prog_f77_g=no
5344 fi
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5349 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5350 if test "$ac_test_FFLAGS" = set; then
5351   FFLAGS=$ac_save_FFLAGS
5352 elif test $ac_cv_prog_f77_g = yes; then
5353   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5354     FFLAGS="-g -O2"
5355   else
5356     FFLAGS="-g"
5357   fi
5358 else
5359   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5360     FFLAGS="-O2"
5361   else
5362     FFLAGS=
5363   fi
5364 fi
5365
5366 G77=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373
5374
5375 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376
5377 # find the maximum length of command line arguments
5378 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383     i=0
5384   teststring="ABCD"
5385
5386   case $build_os in
5387   msdosdjgpp*)
5388     # On DJGPP, this test can blow up pretty badly due to problems in libc
5389     # (any single argument exceeding 2000 bytes causes a buffer overrun
5390     # during glob expansion).  Even if it were fixed, the result of this
5391     # check would be larger than it should be.
5392     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5393     ;;
5394
5395   gnu*)
5396     # Under GNU Hurd, this test is not required because there is
5397     # no limit to the length of command line arguments.
5398     # Libtool will interpret -1 as no limit whatsoever
5399     lt_cv_sys_max_cmd_len=-1;
5400     ;;
5401
5402   cygwin* | mingw*)
5403     # On Win9x/ME, this test blows up -- it succeeds, but takes
5404     # about 5 minutes as the teststring grows exponentially.
5405     # Worse, since 9x/ME are not pre-emptively multitasking,
5406     # you end up with a "frozen" computer, even though with patience
5407     # the test eventually succeeds (with a max line length of 256k).
5408     # Instead, let's just punt: use the minimum linelength reported by
5409     # all of the supported platforms: 8192 (on NT/2K/XP).
5410     lt_cv_sys_max_cmd_len=8192;
5411     ;;
5412
5413   amigaos*)
5414     # On AmigaOS with pdksh, this test takes hours, literally.
5415     # So we just punt and use a minimum line length of 8192.
5416     lt_cv_sys_max_cmd_len=8192;
5417     ;;
5418
5419   netbsd* | freebsd* | openbsd* | darwin* )
5420     # This has been around since 386BSD, at least.  Likely further.
5421     if test -x /sbin/sysctl; then
5422       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5423     elif test -x /usr/sbin/sysctl; then
5424       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5425     else
5426       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5427     fi
5428     # And add a safety zone
5429     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5430     ;;
5431
5432  *)
5433     # If test is not a shell built-in, we'll probably end up computing a
5434     # maximum length that is only half of the actual maximum length, but
5435     # we can't tell.
5436     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5438                = "XX$teststring") >/dev/null 2>&1 &&
5439             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5440             lt_cv_sys_max_cmd_len=$new_result &&
5441             test $i != 17 # 1/2 MB should be enough
5442     do
5443       i=`expr $i + 1`
5444       teststring=$teststring$teststring
5445     done
5446     teststring=
5447     # Add a significant safety factor because C++ compilers can tack on massive
5448     # amounts of additional arguments before passing them to the linker.
5449     # It appears as though 1/2 is a usable value.
5450     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5451     ;;
5452   esac
5453
5454 fi
5455
5456 if test -n $lt_cv_sys_max_cmd_len ; then
5457   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5458 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5459 else
5460   echo "$as_me:$LINENO: result: none" >&5
5461 echo "${ECHO_T}none" >&6
5462 fi
5463
5464
5465
5466
5467 # Check for command to grab the raw symbol name followed by C symbol from nm.
5468 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5469 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5470 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473
5474 # These are sane defaults that work on at least a few old systems.
5475 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5476
5477 # Character class describing NM global symbol codes.
5478 symcode='[BCDEGRST]'
5479
5480 # Regexp to match symbols that can be accessed directly from C.
5481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5482
5483 # Transform the above into a raw symbol and a C symbol.
5484 symxfrm='\1 \2\3 \3'
5485
5486 # Transform an extracted symbol line into a proper C declaration
5487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5488
5489 # Transform an extracted symbol line into symbol name and symbol address
5490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5491
5492 # Define system-specific variables.
5493 case $host_os in
5494 aix*)
5495   symcode='[BCDT]'
5496   ;;
5497 cygwin* | mingw* | pw32*)
5498   symcode='[ABCDGISTW]'
5499   ;;
5500 hpux*) # Its linker distinguishes data from code symbols
5501   if test "$host_cpu" = ia64; then
5502     symcode='[ABCDEGRST]'
5503   fi
5504   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5505   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'"
5506   ;;
5507 irix* | nonstopux*)
5508   symcode='[BCDEGRST]'
5509   ;;
5510 osf*)
5511   symcode='[BCDEGQRST]'
5512   ;;
5513 solaris* | sysv5*)
5514   symcode='[BDRT]'
5515   ;;
5516 sysv4)
5517   symcode='[DFNSTU]'
5518   ;;
5519 esac
5520
5521 # Handle CRLF in mingw tool chain
5522 opt_cr=
5523 case $build_os in
5524 mingw*)
5525   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5526   ;;
5527 esac
5528
5529 # If we're using GNU nm, then use its standard symbol codes.
5530 case `$NM -V 2>&1` in
5531 *GNU* | *'with BFD'*)
5532   symcode='[ABCDGIRSTW]' ;;
5533 esac
5534
5535 # Try without a prefix undercore, then with it.
5536 for ac_symprfx in "" "_"; do
5537
5538   # Write the raw and C identifiers.
5539   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5540
5541   # Check to see that the pipe works correctly.
5542   pipe_works=no
5543
5544   rm -f conftest*
5545   cat > conftest.$ac_ext <<EOF
5546 #ifdef __cplusplus
5547 extern "C" {
5548 #endif
5549 char nm_test_var;
5550 void nm_test_func(){}
5551 #ifdef __cplusplus
5552 }
5553 #endif
5554 int main(){nm_test_var='a';nm_test_func();return(0);}
5555 EOF
5556
5557   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; then
5562     # Now try to grab the symbols.
5563     nlist=conftest.nm
5564     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5565   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); } && test -s "$nlist"; then
5569       # Try sorting and uniquifying the output.
5570       if sort "$nlist" | uniq > "$nlist"T; then
5571         mv -f "$nlist"T "$nlist"
5572       else
5573         rm -f "$nlist"T
5574       fi
5575
5576       # Make sure that we snagged all the symbols we need.
5577       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5578         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5579           cat <<EOF > conftest.$ac_ext
5580 #ifdef __cplusplus
5581 extern "C" {
5582 #endif
5583
5584 EOF
5585           # Now generate the symbol file.
5586           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5587
5588           cat <<EOF >> conftest.$ac_ext
5589 #if defined (__STDC__) && __STDC__
5590 # define lt_ptr_t void *
5591 #else
5592 # define lt_ptr_t char *
5593 # define const
5594 #endif
5595
5596 /* The mapping between symbol names and symbols. */
5597 const struct {
5598   const char *name;
5599   lt_ptr_t address;
5600 }
5601 lt_preloaded_symbols[] =
5602 {
5603 EOF
5604           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5605           cat <<\EOF >> conftest.$ac_ext
5606   {0, (lt_ptr_t) 0}
5607 };
5608
5609 #ifdef __cplusplus
5610 }
5611 #endif
5612 EOF
5613           # Now try linking the two files.
5614           mv conftest.$ac_objext conftstm.$ac_objext
5615           lt_save_LIBS="$LIBS"
5616           lt_save_CFLAGS="$CFLAGS"
5617           LIBS="conftstm.$ac_objext"
5618           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5619           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620   (eval $ac_link) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5624             pipe_works=yes
5625           fi
5626           LIBS="$lt_save_LIBS"
5627           CFLAGS="$lt_save_CFLAGS"
5628         else
5629           echo "cannot find nm_test_func in $nlist" >&5
5630         fi
5631       else
5632         echo "cannot find nm_test_var in $nlist" >&5
5633       fi
5634     else
5635       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5636     fi
5637   else
5638     echo "$progname: failed program was:" >&5
5639     cat conftest.$ac_ext >&5
5640   fi
5641   rm -f conftest* conftst*
5642
5643   # Do not use the global_symbol_pipe unless it works.
5644   if test "$pipe_works" = yes; then
5645     break
5646   else
5647     lt_cv_sys_global_symbol_pipe=
5648   fi
5649 done
5650
5651 fi
5652
5653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5654   lt_cv_sys_global_symbol_to_cdecl=
5655 fi
5656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5657   echo "$as_me:$LINENO: result: failed" >&5
5658 echo "${ECHO_T}failed" >&6
5659 else
5660   echo "$as_me:$LINENO: result: ok" >&5
5661 echo "${ECHO_T}ok" >&6
5662 fi
5663
5664 echo "$as_me:$LINENO: checking for objdir" >&5
5665 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5666 if test "${lt_cv_objdir+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   rm -f .libs 2>/dev/null
5670 mkdir .libs 2>/dev/null
5671 if test -d .libs; then
5672   lt_cv_objdir=.libs
5673 else
5674   # MS-DOS does not allow filenames that begin with a dot.
5675   lt_cv_objdir=_libs
5676 fi
5677 rmdir .libs 2>/dev/null
5678 fi
5679 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5680 echo "${ECHO_T}$lt_cv_objdir" >&6
5681 objdir=$lt_cv_objdir
5682
5683
5684
5685
5686
5687 case $host_os in
5688 aix3*)
5689   # AIX sometimes has problems with the GCC collect2 program.  For some
5690   # reason, if we set the COLLECT_NAMES environment variable, the problems
5691   # vanish in a puff of smoke.
5692   if test "X${COLLECT_NAMES+set}" != Xset; then
5693     COLLECT_NAMES=
5694     export COLLECT_NAMES
5695   fi
5696   ;;
5697 esac
5698
5699 # Sed substitution that helps us do robust quoting.  It backslashifies
5700 # metacharacters that are still active within double-quoted strings.
5701 Xsed='sed -e s/^X//'
5702 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5703
5704 # Same as above, but do not quote variable references.
5705 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5706
5707 # Sed substitution to delay expansion of an escaped shell variable in a
5708 # double_quote_subst'ed string.
5709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5710
5711 # Sed substitution to avoid accidental globbing in evaled expressions
5712 no_glob_subst='s/\*/\\\*/g'
5713
5714 # Constants:
5715 rm="rm -f"
5716
5717 # Global variables:
5718 default_ofile=libtool
5719 can_build_shared=yes
5720
5721 # All known linkers require a `.a' archive for static linking (except M$VC,
5722 # which needs '.lib').
5723 libext=a
5724 ltmain="$ac_aux_dir/ltmain.sh"
5725 ofile="$default_ofile"
5726 with_gnu_ld="$lt_cv_prog_gnu_ld"
5727
5728 if test -n "$ac_tool_prefix"; then
5729   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5730 set dummy ${ac_tool_prefix}ar; ac_word=$2
5731 echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733 if test "${ac_cv_prog_AR+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   if test -n "$AR"; then
5737   ac_cv_prog_AR="$AR" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744   for ac_exec_ext in '' $ac_executable_extensions; do
5745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746     ac_cv_prog_AR="${ac_tool_prefix}ar"
5747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748     break 2
5749   fi
5750 done
5751 done
5752
5753 fi
5754 fi
5755 AR=$ac_cv_prog_AR
5756 if test -n "$AR"; then
5757   echo "$as_me:$LINENO: result: $AR" >&5
5758 echo "${ECHO_T}$AR" >&6
5759 else
5760   echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5762 fi
5763
5764 fi
5765 if test -z "$ac_cv_prog_AR"; then
5766   ac_ct_AR=$AR
5767   # Extract the first word of "ar", so it can be a program name with args.
5768 set dummy ar; ac_word=$2
5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   if test -n "$ac_ct_AR"; then
5775   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782   for ac_exec_ext in '' $ac_executable_extensions; do
5783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784     ac_cv_prog_ac_ct_AR="ar"
5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789 done
5790
5791   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5792 fi
5793 fi
5794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5795 if test -n "$ac_ct_AR"; then
5796   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5797 echo "${ECHO_T}$ac_ct_AR" >&6
5798 else
5799   echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5801 fi
5802
5803   AR=$ac_ct_AR
5804 else
5805   AR="$ac_cv_prog_AR"
5806 fi
5807
5808 if test -n "$ac_tool_prefix"; then
5809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_RANLIB+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   if test -n "$RANLIB"; then
5817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832
5833 fi
5834 fi
5835 RANLIB=$ac_cv_prog_RANLIB
5836 if test -n "$RANLIB"; then
5837   echo "$as_me:$LINENO: result: $RANLIB" >&5
5838 echo "${ECHO_T}$RANLIB" >&6
5839 else
5840   echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5842 fi
5843
5844 fi
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846   ac_ct_RANLIB=$RANLIB
5847   # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$ac_ct_RANLIB"; then
5855   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_ac_ct_RANLIB="ranlib"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5872 fi
5873 fi
5874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875 if test -n "$ac_ct_RANLIB"; then
5876   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5878 else
5879   echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882
5883   RANLIB=$ac_ct_RANLIB
5884 else
5885   RANLIB="$ac_cv_prog_RANLIB"
5886 fi
5887
5888 if test -n "$ac_tool_prefix"; then
5889   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}strip; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_STRIP+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   if test -n "$STRIP"; then
5897   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912
5913 fi
5914 fi
5915 STRIP=$ac_cv_prog_STRIP
5916 if test -n "$STRIP"; then
5917   echo "$as_me:$LINENO: result: $STRIP" >&5
5918 echo "${ECHO_T}$STRIP" >&6
5919 else
5920   echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5922 fi
5923
5924 fi
5925 if test -z "$ac_cv_prog_STRIP"; then
5926   ac_ct_STRIP=$STRIP
5927   # Extract the first word of "strip", so it can be a program name with args.
5928 set dummy strip; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$ac_ct_STRIP"; then
5935   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_ac_ct_STRIP="strip"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5952 fi
5953 fi
5954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5955 if test -n "$ac_ct_STRIP"; then
5956   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5957 echo "${ECHO_T}$ac_ct_STRIP" >&6
5958 else
5959   echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961 fi
5962
5963   STRIP=$ac_ct_STRIP
5964 else
5965   STRIP="$ac_cv_prog_STRIP"
5966 fi
5967
5968
5969 old_CC="$CC"
5970 old_CFLAGS="$CFLAGS"
5971
5972 # Set sane defaults for various variables
5973 test -z "$AR" && AR=ar
5974 test -z "$AR_FLAGS" && AR_FLAGS=cru
5975 test -z "$AS" && AS=as
5976 test -z "$CC" && CC=cc
5977 test -z "$LTCC" && LTCC=$CC
5978 test -z "$DLLTOOL" && DLLTOOL=dlltool
5979 test -z "$LD" && LD=ld
5980 test -z "$LN_S" && LN_S="ln -s"
5981 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5982 test -z "$NM" && NM=nm
5983 test -z "$SED" && SED=sed
5984 test -z "$OBJDUMP" && OBJDUMP=objdump
5985 test -z "$RANLIB" && RANLIB=:
5986 test -z "$STRIP" && STRIP=:
5987 test -z "$ac_objext" && ac_objext=o
5988
5989 # Determine commands to create old-style static archives.
5990 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5991 old_postinstall_cmds='chmod 644 $oldlib'
5992 old_postuninstall_cmds=
5993
5994 if test -n "$RANLIB"; then
5995   case $host_os in
5996   openbsd*)
5997     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5998     ;;
5999   *)
6000     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6001     ;;
6002   esac
6003   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6004 fi
6005
6006 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6007
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6010 file_magic*)
6011   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   case $MAGIC_CMD in
6018 [\\/*] |  ?:[\\/]*)
6019   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6020   ;;
6021 *)
6022   lt_save_MAGIC_CMD="$MAGIC_CMD"
6023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025   for ac_dir in $ac_dummy; do
6026     IFS="$lt_save_ifs"
6027     test -z "$ac_dir" && ac_dir=.
6028     if test -f $ac_dir/${ac_tool_prefix}file; then
6029       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030       if test -n "$file_magic_test_file"; then
6031         case $deplibs_check_method in
6032         "file_magic "*)
6033           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036             $EGREP "$file_magic_regex" > /dev/null; then
6037             :
6038           else
6039             cat <<EOF 1>&2
6040
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such.  This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem.  Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6049
6050 EOF
6051           fi ;;
6052         esac
6053       fi
6054       break
6055     fi
6056   done
6057   IFS="$lt_save_ifs"
6058   MAGIC_CMD="$lt_save_MAGIC_CMD"
6059   ;;
6060 esac
6061 fi
6062
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6067 else
6068   echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6070 fi
6071
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073   if test -n "$ac_tool_prefix"; then
6074     echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   case $MAGIC_CMD in
6080 [\\/*] |  ?:[\\/]*)
6081   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6082   ;;
6083 *)
6084   lt_save_MAGIC_CMD="$MAGIC_CMD"
6085   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087   for ac_dir in $ac_dummy; do
6088     IFS="$lt_save_ifs"
6089     test -z "$ac_dir" && ac_dir=.
6090     if test -f $ac_dir/file; then
6091       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092       if test -n "$file_magic_test_file"; then
6093         case $deplibs_check_method in
6094         "file_magic "*)
6095           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098             $EGREP "$file_magic_regex" > /dev/null; then
6099             :
6100           else
6101             cat <<EOF 1>&2
6102
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such.  This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem.  Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6111
6112 EOF
6113           fi ;;
6114         esac
6115       fi
6116       break
6117     fi
6118   done
6119   IFS="$lt_save_ifs"
6120   MAGIC_CMD="$lt_save_MAGIC_CMD"
6121   ;;
6122 esac
6123 fi
6124
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6129 else
6130   echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6132 fi
6133
6134   else
6135     MAGIC_CMD=:
6136   fi
6137 fi
6138
6139   fi
6140   ;;
6141 esac
6142
6143 enable_dlopen=no
6144 enable_win32_dll=no
6145
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148   enableval="$enable_libtool_lock"
6149
6150 fi;
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6152
6153
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6156   withval="$with_pic"
6157   pic_mode="$withval"
6158 else
6159   pic_mode=default
6160 fi;
6161 test -z "$pic_mode" && pic_mode=default
6162
6163 # Use C for the default configuration in the libtool script
6164 tagname=
6165 lt_save_CC="$CC"
6166 ac_ext=c
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
6172
6173 # Source file extension for C test sources.
6174 ac_ext=c
6175
6176 # Object file extension for compiled C test sources.
6177 objext=o
6178 objext=$objext
6179
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code="int some_variable = 0;\n"
6182
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code='int main(){return(0);}\n'
6185
6186
6187 # If no C compiler was specified, use CC.
6188 LTCC=${LTCC-"$CC"}
6189
6190 # Allow CC to be a program name with arguments.
6191 compiler=$CC
6192
6193
6194 #
6195 # Check for any special shared library compilation flags.
6196 #
6197 lt_prog_cc_shlib=
6198 if test "$GCC" = no; then
6199   case $host_os in
6200   sco3.2v5*)
6201     lt_prog_cc_shlib='-belf'
6202     ;;
6203   esac
6204 fi
6205 if test -n "$lt_prog_cc_shlib"; then
6206   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6209   else
6210     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212     lt_cv_prog_cc_can_build_shared=no
6213   fi
6214 fi
6215
6216
6217 #
6218 # Check to make sure the static flag actually works.
6219 #
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   lt_prog_compiler_static_works=no
6226    save_LDFLAGS="$LDFLAGS"
6227    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230      # The compiler can only warn and ignore the option if not recognized
6231      # So say no if there are warnings
6232      if test -s conftest.err; then
6233        # Append any errors to the config.log.
6234        cat conftest.err 1>&5
6235      else
6236        lt_prog_compiler_static_works=yes
6237      fi
6238    fi
6239    $rm conftest*
6240    LDFLAGS="$save_LDFLAGS"
6241
6242 fi
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6245
6246 if test x"$lt_prog_compiler_static_works" = xyes; then
6247     :
6248 else
6249     lt_prog_compiler_static=
6250 fi
6251
6252
6253
6254
6255 lt_prog_compiler_no_builtin_flag=
6256
6257 if test "$GCC" = yes; then
6258   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6259
6260
6261 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6262 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6263 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   lt_cv_prog_compiler_rtti_exceptions=no
6267   ac_outfile=conftest.$ac_objext
6268    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269    lt_compiler_flag="-fno-rtti -fno-exceptions"
6270    # Insert the option either (1) after the last *FLAGS variable, or
6271    # (2) before a word containing "conftest.", or (3) at the end.
6272    # Note that $ac_compile itself does not contain backslashes and begins
6273    # with a dollar sign (not a hyphen), so the echo should work correctly.
6274    # The option is referenced via a variable to avoid confusing sed.
6275    lt_compile=`echo "$ac_compile" | $SED \
6276    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278    -e 's:$: $lt_compiler_flag:'`
6279    (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280    (eval "$lt_compile" 2>conftest.err)
6281    ac_status=$?
6282    cat conftest.err >&5
6283    echo "$as_me:6283: \$? = $ac_status" >&5
6284    if (exit $ac_status) && test -s "$ac_outfile"; then
6285      # The compiler can only warn and ignore the option if not recognized
6286      # So say no if there are warnings
6287      if test ! -s conftest.err; then
6288        lt_cv_prog_compiler_rtti_exceptions=yes
6289      fi
6290    fi
6291    $rm conftest*
6292
6293 fi
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6296
6297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6299 else
6300     :
6301 fi
6302
6303 fi
6304
6305 lt_prog_compiler_wl=
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_static=
6308
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6311
6312   if test "$GCC" = yes; then
6313     lt_prog_compiler_wl='-Wl,'
6314     lt_prog_compiler_static='-static'
6315
6316     case $host_os in
6317       aix*)
6318       # All AIX code is PIC.
6319       if test "$host_cpu" = ia64; then
6320         # AIX 5 now supports IA64 processor
6321         lt_prog_compiler_static='-Bstatic'
6322       fi
6323       ;;
6324
6325     amigaos*)
6326       # FIXME: we need at least 68020 code to build shared libraries, but
6327       # adding the `-m68020' flag to GCC prevents building anything better,
6328       # like `-m68040'.
6329       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6330       ;;
6331
6332     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6333       # PIC is the default for these OSes.
6334       ;;
6335
6336     mingw* | pw32* | os2*)
6337       # This hack is so that the source file can tell whether it is being
6338       # built for inclusion in a dll (and should export symbols for example).
6339       lt_prog_compiler_pic='-DDLL_EXPORT'
6340       ;;
6341
6342     darwin* | rhapsody*)
6343       # PIC is the default on this platform
6344       # Common symbols not allowed in MH_DYLIB files
6345       lt_prog_compiler_pic='-fno-common'
6346       ;;
6347
6348     msdosdjgpp*)
6349       # Just because we use GCC doesn't mean we suddenly get shared libraries
6350       # on systems that don't support them.
6351       lt_prog_compiler_can_build_shared=no
6352       enable_shared=no
6353       ;;
6354
6355     sysv4*MP*)
6356       if test -d /usr/nec; then
6357         lt_prog_compiler_pic=-Kconform_pic
6358       fi
6359       ;;
6360
6361     hpux*)
6362       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6363       # not for PA HP-UX.
6364       case "$host_cpu" in
6365       hppa*64*|ia64*)
6366         # +Z the default
6367         ;;
6368       *)
6369         lt_prog_compiler_pic='-fPIC'
6370         ;;
6371       esac
6372       ;;
6373
6374     *)
6375       lt_prog_compiler_pic='-fPIC'
6376       ;;
6377     esac
6378   else
6379     # PORTME Check for flag to pass linker flags through the system compiler.
6380     case $host_os in
6381     aix*)
6382       lt_prog_compiler_wl='-Wl,'
6383       if test "$host_cpu" = ia64; then
6384         # AIX 5 now supports IA64 processor
6385         lt_prog_compiler_static='-Bstatic'
6386       else
6387         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6388       fi
6389       ;;
6390       darwin*)
6391         # PIC is the default on this platform
6392         # Common symbols not allowed in MH_DYLIB files
6393        case "$cc_basename" in
6394          xlc*)
6395          lt_prog_compiler_pic='-qnocommon'
6396          lt_prog_compiler_wl='-Wl,'
6397          ;;
6398        esac
6399        ;;
6400
6401     mingw* | pw32* | os2*)
6402       # This hack is so that the source file can tell whether it is being
6403       # built for inclusion in a dll (and should export symbols for example).
6404       lt_prog_compiler_pic='-DDLL_EXPORT'
6405       ;;
6406
6407     hpux9* | hpux10* | hpux11*)
6408       lt_prog_compiler_wl='-Wl,'
6409       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6410       # not for PA HP-UX.
6411       case "$host_cpu" in
6412       hppa*64*|ia64*)
6413         # +Z the default
6414         ;;
6415       *)
6416         lt_prog_compiler_pic='+Z'
6417         ;;
6418       esac
6419       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6420       lt_prog_compiler_static='${wl}-a ${wl}archive'
6421       ;;
6422
6423     irix5* | irix6* | nonstopux*)
6424       lt_prog_compiler_wl='-Wl,'
6425       # PIC (with -KPIC) is the default.
6426       lt_prog_compiler_static='-non_shared'
6427       ;;
6428
6429     newsos6)
6430       lt_prog_compiler_pic='-KPIC'
6431       lt_prog_compiler_static='-Bstatic'
6432       ;;
6433
6434     linux*)
6435       case $CC in
6436       icc* | ecc*)
6437         lt_prog_compiler_wl='-Wl,'
6438         lt_prog_compiler_pic='-KPIC'
6439         lt_prog_compiler_static='-static'
6440         ;;
6441       ccc*)
6442         lt_prog_compiler_wl='-Wl,'
6443         # All Alpha code is PIC.
6444         lt_prog_compiler_static='-non_shared'
6445         ;;
6446       esac
6447       ;;
6448
6449     osf3* | osf4* | osf5*)
6450       lt_prog_compiler_wl='-Wl,'
6451       # All OSF/1 code is PIC.
6452       lt_prog_compiler_static='-non_shared'
6453       ;;
6454
6455     sco3.2v5*)
6456       lt_prog_compiler_pic='-Kpic'
6457       lt_prog_compiler_static='-dn'
6458       ;;
6459
6460     solaris*)
6461       lt_prog_compiler_wl='-Wl,'
6462       lt_prog_compiler_pic='-KPIC'
6463       lt_prog_compiler_static='-Bstatic'
6464       ;;
6465
6466     sunos4*)
6467       lt_prog_compiler_wl='-Qoption ld '
6468       lt_prog_compiler_pic='-PIC'
6469       lt_prog_compiler_static='-Bstatic'
6470       ;;
6471
6472     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6473       lt_prog_compiler_wl='-Wl,'
6474       lt_prog_compiler_pic='-KPIC'
6475       lt_prog_compiler_static='-Bstatic'
6476       ;;
6477
6478     sysv4*MP*)
6479       if test -d /usr/nec ;then
6480         lt_prog_compiler_pic='-Kconform_pic'
6481         lt_prog_compiler_static='-Bstatic'
6482       fi
6483       ;;
6484
6485     uts4*)
6486       lt_prog_compiler_pic='-pic'
6487       lt_prog_compiler_static='-Bstatic'
6488       ;;
6489
6490     *)
6491       lt_prog_compiler_can_build_shared=no
6492       ;;
6493     esac
6494   fi
6495
6496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6497 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6498
6499 #
6500 # Check to make sure the PIC flag actually works.
6501 #
6502 if test -n "$lt_prog_compiler_pic"; then
6503
6504 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6505 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6506 if test "${lt_prog_compiler_pic_works+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   lt_prog_compiler_pic_works=no
6510   ac_outfile=conftest.$ac_objext
6511    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6512    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6513    # Insert the option either (1) after the last *FLAGS variable, or
6514    # (2) before a word containing "conftest.", or (3) at the end.
6515    # Note that $ac_compile itself does not contain backslashes and begins
6516    # with a dollar sign (not a hyphen), so the echo should work correctly.
6517    # The option is referenced via a variable to avoid confusing sed.
6518    lt_compile=`echo "$ac_compile" | $SED \
6519    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6521    -e 's:$: $lt_compiler_flag:'`
6522    (eval echo "\"\$as_me:6522: $lt_compile\"" >&5)
6523    (eval "$lt_compile" 2>conftest.err)
6524    ac_status=$?
6525    cat conftest.err >&5
6526    echo "$as_me:6526: \$? = $ac_status" >&5
6527    if (exit $ac_status) && test -s "$ac_outfile"; then
6528      # The compiler can only warn and ignore the option if not recognized
6529      # So say no if there are warnings
6530      if test ! -s conftest.err; then
6531        lt_prog_compiler_pic_works=yes
6532      fi
6533    fi
6534    $rm conftest*
6535
6536 fi
6537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6538 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6539
6540 if test x"$lt_prog_compiler_pic_works" = xyes; then
6541     case $lt_prog_compiler_pic in
6542      "" | " "*) ;;
6543      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6544      esac
6545 else
6546     lt_prog_compiler_pic=
6547      lt_prog_compiler_can_build_shared=no
6548 fi
6549
6550 fi
6551 case "$host_os" in
6552   # For platforms which do not support PIC, -DPIC is meaningless:
6553   *djgpp*)
6554     lt_prog_compiler_pic=
6555     ;;
6556   *)
6557     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6558     ;;
6559 esac
6560
6561 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6562 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6563 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   lt_cv_prog_compiler_c_o=no
6567    $rm -r conftest 2>/dev/null
6568    mkdir conftest
6569    cd conftest
6570    mkdir out
6571    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6572
6573    lt_compiler_flag="-o out/conftest2.$ac_objext"
6574    # Insert the option either (1) after the last *FLAGS variable, or
6575    # (2) before a word containing "conftest.", or (3) at the end.
6576    # Note that $ac_compile itself does not contain backslashes and begins
6577    # with a dollar sign (not a hyphen), so the echo should work correctly.
6578    lt_compile=`echo "$ac_compile" | $SED \
6579    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6580    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6581    -e 's:$: $lt_compiler_flag:'`
6582    (eval echo "\"\$as_me:6582: $lt_compile\"" >&5)
6583    (eval "$lt_compile" 2>out/conftest.err)
6584    ac_status=$?
6585    cat out/conftest.err >&5
6586    echo "$as_me:6586: \$? = $ac_status" >&5
6587    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6588    then
6589      # The compiler can only warn and ignore the option if not recognized
6590      # So say no if there are warnings
6591      if test ! -s out/conftest.err; then
6592        lt_cv_prog_compiler_c_o=yes
6593      fi
6594    fi
6595    chmod u+w .
6596    $rm conftest*
6597    # SGI C++ compiler will create directory out/ii_files/ for
6598    # template instantiation
6599    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6600    $rm out/* && rmdir out
6601    cd ..
6602    rmdir conftest
6603    $rm conftest*
6604
6605 fi
6606 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6608
6609
6610 hard_links="nottested"
6611 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6612   # do not overwrite the value of need_locks provided by the user
6613   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6615   hard_links=yes
6616   $rm conftest*
6617   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6618   touch conftest.a
6619   ln conftest.a conftest.b 2>&5 || hard_links=no
6620   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6621   echo "$as_me:$LINENO: result: $hard_links" >&5
6622 echo "${ECHO_T}$hard_links" >&6
6623   if test "$hard_links" = no; then
6624     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6626     need_locks=warn
6627   fi
6628 else
6629   need_locks=no
6630 fi
6631
6632 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6634
6635   runpath_var=
6636   allow_undefined_flag=
6637   enable_shared_with_static_runtimes=no
6638   archive_cmds=
6639   archive_expsym_cmds=
6640   old_archive_From_new_cmds=
6641   old_archive_from_expsyms_cmds=
6642   export_dynamic_flag_spec=
6643   whole_archive_flag_spec=
6644   thread_safe_flag_spec=
6645   hardcode_libdir_flag_spec=
6646   hardcode_libdir_flag_spec_ld=
6647   hardcode_libdir_separator=
6648   hardcode_direct=no
6649   hardcode_minus_L=no
6650   hardcode_shlibpath_var=unsupported
6651   link_all_deplibs=unknown
6652   hardcode_automatic=no
6653   module_cmds=
6654   module_expsym_cmds=
6655   always_export_symbols=no
6656   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6657   # include_expsyms should be a list of space-separated symbols to be *always*
6658   # included in the symbol list
6659   include_expsyms=
6660   # exclude_expsyms can be an extended regexp of symbols to exclude
6661   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6662   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6663   # as well as any symbol that contains `d'.
6664   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6665   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6666   # platforms (ab)use it in PIC code, but their linkers get confused if
6667   # the symbol is explicitly referenced.  Since portable code cannot
6668   # rely on this symbol name, it's probably fine to never include it in
6669   # preloaded symbol tables.
6670   extract_expsyms_cmds=
6671
6672   case $host_os in
6673   cygwin* | mingw* | pw32*)
6674     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6675     # When not using gcc, we currently assume that we are using
6676     # Microsoft Visual C++.
6677     if test "$GCC" != yes; then
6678       with_gnu_ld=no
6679     fi
6680     ;;
6681   openbsd*)
6682     with_gnu_ld=no
6683     ;;
6684   esac
6685
6686   ld_shlibs=yes
6687   if test "$with_gnu_ld" = yes; then
6688     # If archive_cmds runs LD, not CC, wlarc should be empty
6689     wlarc='${wl}'
6690
6691     # See if GNU ld supports shared libraries.
6692     case $host_os in
6693     aix3* | aix4* | aix5*)
6694       # On AIX/PPC, the GNU linker is very broken
6695       if test "$host_cpu" != ia64; then
6696         ld_shlibs=no
6697         cat <<EOF 1>&2
6698
6699 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6700 *** to be unable to reliably create shared libraries on AIX.
6701 *** Therefore, libtool is disabling shared libraries support.  If you
6702 *** really care for shared libraries, you may want to modify your PATH
6703 *** so that a non-GNU linker is found, and then restart.
6704
6705 EOF
6706       fi
6707       ;;
6708
6709     amigaos*)
6710       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)'
6711       hardcode_libdir_flag_spec='-L$libdir'
6712       hardcode_minus_L=yes
6713
6714       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6715       # that the semantics of dynamic libraries on AmigaOS, at least up
6716       # to version 4, is to share data among multiple programs linked
6717       # with the same dynamic library.  Since this doesn't match the
6718       # behavior of shared libraries on other platforms, we can't use
6719       # them.
6720       ld_shlibs=no
6721       ;;
6722
6723     beos*)
6724       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6725         allow_undefined_flag=unsupported
6726         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6727         # support --undefined.  This deserves some investigation.  FIXME
6728         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6729       else
6730         ld_shlibs=no
6731       fi
6732       ;;
6733
6734     cygwin* | mingw* | pw32*)
6735       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6736       # as there is no search path for DLLs.
6737       hardcode_libdir_flag_spec='-L$libdir'
6738       allow_undefined_flag=unsupported
6739       always_export_symbols=no
6740       enable_shared_with_static_runtimes=yes
6741       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6742
6743       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6744         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6745         # If the export-symbols file already is a .def file (1st line
6746         # is EXPORTS), use it as is; otherwise, prepend...
6747         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6748           cp $export_symbols $output_objdir/$soname.def;
6749         else
6750           echo EXPORTS > $output_objdir/$soname.def;
6751           cat $export_symbols >> $output_objdir/$soname.def;
6752         fi~
6753         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6754       else
6755         ld_shlibs=no
6756       fi
6757       ;;
6758
6759     netbsd*)
6760       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6761         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6762         wlarc=
6763       else
6764         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6766       fi
6767       ;;
6768
6769     solaris* | sysv5*)
6770       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6771         ld_shlibs=no
6772         cat <<EOF 1>&2
6773
6774 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6775 *** create shared libraries on Solaris systems.  Therefore, libtool
6776 *** is disabling shared libraries support.  We urge you to upgrade GNU
6777 *** binutils to release 2.9.1 or newer.  Another option is to modify
6778 *** your PATH or compiler configuration so that the native linker is
6779 *** used, and then restart.
6780
6781 EOF
6782       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6783         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6785       else
6786         ld_shlibs=no
6787       fi
6788       ;;
6789
6790     sunos4*)
6791       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6792       wlarc=
6793       hardcode_direct=yes
6794       hardcode_shlibpath_var=no
6795       ;;
6796
6797   linux*)
6798     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6799         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800         archive_cmds="$tmp_archive_cmds"
6801       supports_anon_versioning=no
6802       case `$LD -v 2>/dev/null` in
6803         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6804         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6805         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6806         *\ 2.11.*) ;; # other 2.11 versions
6807         *) supports_anon_versioning=yes ;;
6808       esac
6809       if test $supports_anon_versioning = yes; then
6810         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6812 $echo "local: *; };" >> $output_objdir/$libname.ver~
6813         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6814       else
6815         archive_expsym_cmds="$tmp_archive_cmds"
6816       fi
6817     else
6818       ld_shlibs=no
6819     fi
6820     ;;
6821
6822     *)
6823       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6826       else
6827         ld_shlibs=no
6828       fi
6829       ;;
6830     esac
6831
6832     if test "$ld_shlibs" = yes; then
6833       runpath_var=LD_RUN_PATH
6834       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6835       export_dynamic_flag_spec='${wl}--export-dynamic'
6836       # ancient GNU ld didn't support --whole-archive et. al.
6837       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6838         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6839       else
6840         whole_archive_flag_spec=
6841       fi
6842     fi
6843   else
6844     # PORTME fill in a description of your system's linker (not GNU ld)
6845     case $host_os in
6846     aix3*)
6847       allow_undefined_flag=unsupported
6848       always_export_symbols=yes
6849       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'
6850       # Note: this linker hardcodes the directories in LIBPATH if there
6851       # are no directories specified by -L.
6852       hardcode_minus_L=yes
6853       if test "$GCC" = yes && test -z "$link_static_flag"; then
6854         # Neither direct hardcoding nor static linking is supported with a
6855         # broken collect2.
6856         hardcode_direct=unsupported
6857       fi
6858       ;;
6859
6860     aix4* | aix5*)
6861       if test "$host_cpu" = ia64; then
6862         # On IA64, the linker does run time linking by default, so we don't
6863         # have to do anything special.
6864         aix_use_runtimelinking=no
6865         exp_sym_flag='-Bexport'
6866         no_entry_flag=""
6867       else
6868         # If we're using GNU nm, then we don't want the "-C" option.
6869         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6870         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6871           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'
6872         else
6873           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'
6874         fi
6875         aix_use_runtimelinking=no
6876
6877         # Test if we are trying to use run time linking or normal
6878         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6879         # need to do runtime linking.
6880         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6881           for ld_flag in $LDFLAGS; do
6882           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6883             aix_use_runtimelinking=yes
6884             break
6885           fi
6886           done
6887         esac
6888
6889         exp_sym_flag='-bexport'
6890         no_entry_flag='-bnoentry'
6891       fi
6892
6893       # When large executables or shared objects are built, AIX ld can
6894       # have problems creating the table of contents.  If linking a library
6895       # or program results in "error TOC overflow" add -mminimal-toc to
6896       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6897       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6898
6899       archive_cmds=''
6900       hardcode_direct=yes
6901       hardcode_libdir_separator=':'
6902       link_all_deplibs=yes
6903
6904       if test "$GCC" = yes; then
6905         case $host_os in aix4.012|aix4.012.*)
6906         # We only want to do this on AIX 4.2 and lower, the check
6907         # below for broken collect2 doesn't work under 4.3+
6908           collect2name=`${CC} -print-prog-name=collect2`
6909           if test -f "$collect2name" && \
6910            strings "$collect2name" | grep resolve_lib_name >/dev/null
6911           then
6912           # We have reworked collect2
6913           hardcode_direct=yes
6914           else
6915           # We have old collect2
6916           hardcode_direct=unsupported
6917           # It fails to find uninstalled libraries when the uninstalled
6918           # path is not listed in the libpath.  Setting hardcode_minus_L
6919           # to unsupported forces relinking
6920           hardcode_minus_L=yes
6921           hardcode_libdir_flag_spec='-L$libdir'
6922           hardcode_libdir_separator=
6923           fi
6924         esac
6925         shared_flag='-shared'
6926       else
6927         # not using gcc
6928         if test "$host_cpu" = ia64; then
6929         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6930         # chokes on -Wl,-G. The following line is correct:
6931           shared_flag='-G'
6932         else
6933         if test "$aix_use_runtimelinking" = yes; then
6934             shared_flag='${wl}-G'
6935           else
6936             shared_flag='${wl}-bM:SRE'
6937         fi
6938         fi
6939       fi
6940
6941       # It seems that -bexpall does not export symbols beginning with
6942       # underscore (_), so it is better to generate a list of symbols to export.
6943       always_export_symbols=yes
6944       if test "$aix_use_runtimelinking" = yes; then
6945         # Warning - without using the other runtime loading flags (-brtl),
6946         # -berok will link without error, but may produce a broken library.
6947         allow_undefined_flag='-berok'
6948        # Determine the default libpath from the value encoded in an empty executable.
6949        cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext conftest$ac_exeext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6966   (eval $ac_link) 2>conftest.er1
6967   ac_status=$?
6968   grep -v '^ *+' conftest.er1 >conftest.err
6969   rm -f conftest.er1
6970   cat conftest.err >&5
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); } &&
6973          { ac_try='test -z "$ac_c_werror_flag"
6974                          || test ! -s conftest.err'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest$ac_exeext'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986
6987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6988 }'`
6989 # Check for a 64-bit object if we didn't find anything.
6990 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; }
6991 }'`; fi
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 fi
6997 rm -f conftest.err conftest.$ac_objext \
6998       conftest$ac_exeext conftest.$ac_ext
6999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7000
7001        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7002         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"
7003        else
7004         if test "$host_cpu" = ia64; then
7005           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7006           allow_undefined_flag="-z nodefs"
7007           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"
7008         else
7009          # Determine the default libpath from the value encoded in an empty executable.
7010          cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h.  */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h.  */
7016
7017 int
7018 main ()
7019 {
7020
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027   (eval $ac_link) 2>conftest.er1
7028   ac_status=$?
7029   grep -v '^ *+' conftest.er1 >conftest.err
7030   rm -f conftest.er1
7031   cat conftest.err >&5
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } &&
7034          { ac_try='test -z "$ac_c_werror_flag"
7035                          || test ! -s conftest.err'
7036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; } &&
7041          { ac_try='test -s conftest$ac_exeext'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; }; then
7047
7048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7049 }'`
7050 # Check for a 64-bit object if we didn't find anything.
7051 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; }
7052 }'`; fi
7053 else
7054   echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 fi
7058 rm -f conftest.err conftest.$ac_objext \
7059       conftest$ac_exeext conftest.$ac_ext
7060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7061
7062          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7063           # Warning - without using the other run time loading flags,
7064           # -berok will link without error, but may produce a broken library.
7065           no_undefined_flag=' ${wl}-bernotok'
7066           allow_undefined_flag=' ${wl}-berok'
7067           # -bexpall does not export symbols beginning with underscore (_)
7068           always_export_symbols=yes
7069           # Exported symbols can be pulled into shared objects from archives
7070           whole_archive_flag_spec=' '
7071           archive_cmds_need_lc=yes
7072           # This is similar to how AIX traditionally builds it's shared libraries.
7073           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'
7074         fi
7075       fi
7076       ;;
7077
7078     amigaos*)
7079       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)'
7080       hardcode_libdir_flag_spec='-L$libdir'
7081       hardcode_minus_L=yes
7082       # see comment about different semantics on the GNU ld section
7083       ld_shlibs=no
7084       ;;
7085
7086     bsdi[45]*)
7087       export_dynamic_flag_spec=-rdynamic
7088       ;;
7089
7090     cygwin* | mingw* | pw32*)
7091       # When not using gcc, we currently assume that we are using
7092       # Microsoft Visual C++.
7093       # hardcode_libdir_flag_spec is actually meaningless, as there is
7094       # no search path for DLLs.
7095       hardcode_libdir_flag_spec=' '
7096       allow_undefined_flag=unsupported
7097       # Tell ltmain to make .lib files, not .a files.
7098       libext=lib
7099       # Tell ltmain to make .dll files, not .so files.
7100       shrext_cmds=".dll"
7101       # FIXME: Setting linknames here is a bad hack.
7102       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7103       # The linker will automatically build a .lib file if we build a DLL.
7104       old_archive_From_new_cmds='true'
7105       # FIXME: Should let the user specify the lib program.
7106       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7107       fix_srcfile_path='`cygpath -w "$srcfile"`'
7108       enable_shared_with_static_runtimes=yes
7109       ;;
7110
7111     darwin* | rhapsody*)
7112       case "$host_os" in
7113         rhapsody* | darwin1.[012])
7114          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7115          ;;
7116        *) # Darwin 1.3 on
7117          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7118            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7119          else
7120            case ${MACOSX_DEPLOYMENT_TARGET} in
7121              10.[012])
7122                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7123                ;;
7124              10.*)
7125                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7126                ;;
7127            esac
7128          fi
7129          ;;
7130       esac
7131       archive_cmds_need_lc=no
7132       hardcode_direct=no
7133       hardcode_automatic=yes
7134       hardcode_shlibpath_var=unsupported
7135       whole_archive_flag_spec=''
7136       link_all_deplibs=yes
7137     if test "$GCC" = yes ; then
7138         output_verbose_link_cmd='echo'
7139         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7140       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7141       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7142       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}'
7143       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}'
7144     else
7145       case "$cc_basename" in
7146         xlc*)
7147          output_verbose_link_cmd='echo'
7148          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7149          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7150           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7151          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7152           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}'
7153           ;;
7154        *)
7155          ld_shlibs=no
7156           ;;
7157       esac
7158     fi
7159       ;;
7160
7161     dgux*)
7162       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7163       hardcode_libdir_flag_spec='-L$libdir'
7164       hardcode_shlibpath_var=no
7165       ;;
7166
7167     freebsd1*)
7168       ld_shlibs=no
7169       ;;
7170
7171     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7172     # support.  Future versions do this automatically, but an explicit c++rt0.o
7173     # does not break anything, and helps significantly (at the cost of a little
7174     # extra space).
7175     freebsd2.2*)
7176       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7177       hardcode_libdir_flag_spec='-R$libdir'
7178       hardcode_direct=yes
7179       hardcode_shlibpath_var=no
7180       ;;
7181
7182     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7183     freebsd2*)
7184       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7185       hardcode_direct=yes
7186       hardcode_minus_L=yes
7187       hardcode_shlibpath_var=no
7188       ;;
7189
7190     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7191     freebsd* | kfreebsd*-gnu)
7192       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7193       hardcode_libdir_flag_spec='-R$libdir'
7194       hardcode_direct=yes
7195       hardcode_shlibpath_var=no
7196       ;;
7197
7198     hpux9*)
7199       if test "$GCC" = yes; then
7200         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'
7201       else
7202         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'
7203       fi
7204       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7205       hardcode_libdir_separator=:
7206       hardcode_direct=yes
7207
7208       # hardcode_minus_L: Not really in the search PATH,
7209       # but as the default location of the library.
7210       hardcode_minus_L=yes
7211       export_dynamic_flag_spec='${wl}-E'
7212       ;;
7213
7214     hpux10* | hpux11*)
7215       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7216         case "$host_cpu" in
7217         hppa*64*|ia64*)
7218           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219           ;;
7220         *)
7221           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7222           ;;
7223         esac
7224       else
7225         case "$host_cpu" in
7226         hppa*64*|ia64*)
7227           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7228           ;;
7229         *)
7230           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7231           ;;
7232         esac
7233       fi
7234       if test "$with_gnu_ld" = no; then
7235         case "$host_cpu" in
7236         hppa*64*)
7237           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7238           hardcode_libdir_flag_spec_ld='+b $libdir'
7239           hardcode_libdir_separator=:
7240           hardcode_direct=no
7241           hardcode_shlibpath_var=no
7242           ;;
7243         ia64*)
7244           hardcode_libdir_flag_spec='-L$libdir'
7245           hardcode_direct=no
7246           hardcode_shlibpath_var=no
7247
7248           # hardcode_minus_L: Not really in the search PATH,
7249           # but as the default location of the library.
7250           hardcode_minus_L=yes
7251           ;;
7252         *)
7253           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7254           hardcode_libdir_separator=:
7255           hardcode_direct=yes
7256           export_dynamic_flag_spec='${wl}-E'
7257
7258           # hardcode_minus_L: Not really in the search PATH,
7259           # but as the default location of the library.
7260           hardcode_minus_L=yes
7261           ;;
7262         esac
7263       fi
7264       ;;
7265
7266     irix5* | irix6* | nonstopux*)
7267       if test "$GCC" = yes; then
7268         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'
7269       else
7270         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'
7271         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7272       fi
7273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274       hardcode_libdir_separator=:
7275       link_all_deplibs=yes
7276       ;;
7277
7278     netbsd*)
7279       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7280         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7281       else
7282         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7283       fi
7284       hardcode_libdir_flag_spec='-R$libdir'
7285       hardcode_direct=yes
7286       hardcode_shlibpath_var=no
7287       ;;
7288
7289     newsos6)
7290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291       hardcode_direct=yes
7292       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293       hardcode_libdir_separator=:
7294       hardcode_shlibpath_var=no
7295       ;;
7296
7297     openbsd*)
7298       hardcode_direct=yes
7299       hardcode_shlibpath_var=no
7300       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7302         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7303         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7304         export_dynamic_flag_spec='${wl}-E'
7305       else
7306        case $host_os in
7307          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7308            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7309            hardcode_libdir_flag_spec='-R$libdir'
7310            ;;
7311          *)
7312            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7313            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7314            ;;
7315        esac
7316       fi
7317       ;;
7318
7319     os2*)
7320       hardcode_libdir_flag_spec='-L$libdir'
7321       hardcode_minus_L=yes
7322       allow_undefined_flag=unsupported
7323       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'
7324       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7325       ;;
7326
7327     osf3*)
7328       if test "$GCC" = yes; then
7329         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7330         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'
7331       else
7332         allow_undefined_flag=' -expect_unresolved \*'
7333         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'
7334       fi
7335       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7336       hardcode_libdir_separator=:
7337       ;;
7338
7339     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7340       if test "$GCC" = yes; then
7341         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7342         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'
7343         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7344       else
7345         allow_undefined_flag=' -expect_unresolved \*'
7346         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'
7347         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7348         $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'
7349
7350         # Both c and cxx compiler support -rpath directly
7351         hardcode_libdir_flag_spec='-rpath $libdir'
7352       fi
7353       hardcode_libdir_separator=:
7354       ;;
7355
7356     sco3.2v5*)
7357       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358       hardcode_shlibpath_var=no
7359       export_dynamic_flag_spec='${wl}-Bexport'
7360       runpath_var=LD_RUN_PATH
7361       hardcode_runpath_var=yes
7362       ;;
7363
7364     solaris*)
7365       no_undefined_flag=' -z text'
7366       if test "$GCC" = yes; then
7367         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7368         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7370       else
7371         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7373         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7374       fi
7375       hardcode_libdir_flag_spec='-R$libdir'
7376       hardcode_shlibpath_var=no
7377       case $host_os in
7378       solaris2.[0-5] | solaris2.[0-5].*) ;;
7379       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7380         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7381       esac
7382       link_all_deplibs=yes
7383       ;;
7384
7385     sunos4*)
7386       if test "x$host_vendor" = xsequent; then
7387         # Use $CC to link under sequent, because it throws in some extra .o
7388         # files that make .init and .fini sections work.
7389         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7390       else
7391         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7392       fi
7393       hardcode_libdir_flag_spec='-L$libdir'
7394       hardcode_direct=yes
7395       hardcode_minus_L=yes
7396       hardcode_shlibpath_var=no
7397       ;;
7398
7399     sysv4)
7400       case $host_vendor in
7401         sni)
7402           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403           hardcode_direct=yes # is this really true???
7404         ;;
7405         siemens)
7406           ## LD is ld it makes a PLAMLIB
7407           ## CC just makes a GrossModule.
7408           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7409           reload_cmds='$CC -r -o $output$reload_objs'
7410           hardcode_direct=no
7411         ;;
7412         motorola)
7413           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7415         ;;
7416       esac
7417       runpath_var='LD_RUN_PATH'
7418       hardcode_shlibpath_var=no
7419       ;;
7420
7421     sysv4.3*)
7422       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423       hardcode_shlibpath_var=no
7424       export_dynamic_flag_spec='-Bexport'
7425       ;;
7426
7427     sysv4*MP*)
7428       if test -d /usr/nec; then
7429         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7430         hardcode_shlibpath_var=no
7431         runpath_var=LD_RUN_PATH
7432         hardcode_runpath_var=yes
7433         ld_shlibs=yes
7434       fi
7435       ;;
7436
7437     sysv4.2uw2*)
7438       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7439       hardcode_direct=yes
7440       hardcode_minus_L=no
7441       hardcode_shlibpath_var=no
7442       hardcode_runpath_var=yes
7443       runpath_var=LD_RUN_PATH
7444       ;;
7445
7446    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7447       no_undefined_flag='${wl}-z ${wl}text'
7448       if test "$GCC" = yes; then
7449         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450       else
7451         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7452       fi
7453       runpath_var='LD_RUN_PATH'
7454       hardcode_shlibpath_var=no
7455       ;;
7456
7457     sysv5*)
7458       no_undefined_flag=' -z text'
7459       # $CC -shared without GNU ld will not create a library from C++
7460       # object files and a static libstdc++, better avoid it by now
7461       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7462       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7463                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7464       hardcode_libdir_flag_spec=
7465       hardcode_shlibpath_var=no
7466       runpath_var='LD_RUN_PATH'
7467       ;;
7468
7469     uts4*)
7470       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471       hardcode_libdir_flag_spec='-L$libdir'
7472       hardcode_shlibpath_var=no
7473       ;;
7474
7475     *)
7476       ld_shlibs=no
7477       ;;
7478     esac
7479   fi
7480
7481 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7482 echo "${ECHO_T}$ld_shlibs" >&6
7483 test "$ld_shlibs" = no && can_build_shared=no
7484
7485 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7486 if test "$GCC" = yes; then
7487   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7488 fi
7489
7490 #
7491 # Do we need to explicitly link libc?
7492 #
7493 case "x$archive_cmds_need_lc" in
7494 x|xyes)
7495   # Assume -lc should be added
7496   archive_cmds_need_lc=yes
7497
7498   if test "$enable_shared" = yes && test "$GCC" = yes; then
7499     case $archive_cmds in
7500     *'~'*)
7501       # FIXME: we may have to deal with multi-command sequences.
7502       ;;
7503     '$CC '*)
7504       # Test whether the compiler implicitly links with -lc since on some
7505       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7506       # to ld, don't add -lc before -lgcc.
7507       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7508 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7509       $rm conftest*
7510       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7511
7512       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513   (eval $ac_compile) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } 2>conftest.err; then
7517         soname=conftest
7518         lib=conftest
7519         libobjs=conftest.$ac_objext
7520         deplibs=
7521         wl=$lt_prog_compiler_wl
7522         compiler_flags=-v
7523         linker_flags=-v
7524         verstring=
7525         output_objdir=.
7526         libname=conftest
7527         lt_save_allow_undefined_flag=$allow_undefined_flag
7528         allow_undefined_flag=
7529         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7530   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7531   ac_status=$?
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); }
7534         then
7535           archive_cmds_need_lc=no
7536         else
7537           archive_cmds_need_lc=yes
7538         fi
7539         allow_undefined_flag=$lt_save_allow_undefined_flag
7540       else
7541         cat conftest.err 1>&5
7542       fi
7543       $rm conftest*
7544       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7545 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7546       ;;
7547     esac
7548   fi
7549   ;;
7550 esac
7551
7552 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7554 library_names_spec=
7555 libname_spec='lib$name'
7556 soname_spec=
7557 shrext_cmds=".so"
7558 postinstall_cmds=
7559 postuninstall_cmds=
7560 finish_cmds=
7561 finish_eval=
7562 shlibpath_var=
7563 shlibpath_overrides_runpath=unknown
7564 version_type=none
7565 dynamic_linker="$host_os ld.so"
7566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7567 if test "$GCC" = yes; then
7568   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7569   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7570     # if the path contains ";" then we assume it to be the separator
7571     # otherwise default to the standard path separator (i.e. ":") - it is
7572     # assumed that no part of a normal pathname contains ";" but that should
7573     # okay in the real world where ";" in dirpaths is itself problematic.
7574     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7575   else
7576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7577   fi
7578 else
7579   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7580 fi
7581 need_lib_prefix=unknown
7582 hardcode_into_libs=no
7583
7584 # when you set need_version to no, make sure it does not cause -set_version
7585 # flags to be left without arguments
7586 need_version=unknown
7587
7588 case $host_os in
7589 aix3*)
7590   version_type=linux
7591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7592   shlibpath_var=LIBPATH
7593
7594   # AIX 3 has no versioning support, so we append a major version to the name.
7595   soname_spec='${libname}${release}${shared_ext}$major'
7596   ;;
7597
7598 aix4* | aix5*)
7599   version_type=linux
7600   need_lib_prefix=no
7601   need_version=no
7602   hardcode_into_libs=yes
7603   if test "$host_cpu" = ia64; then
7604     # AIX 5 supports IA64
7605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7606     shlibpath_var=LD_LIBRARY_PATH
7607   else
7608     # With GCC up to 2.95.x, collect2 would create an import file
7609     # for dependence libraries.  The import file would start with
7610     # the line `#! .'.  This would cause the generated library to
7611     # depend on `.', always an invalid library.  This was fixed in
7612     # development snapshots of GCC prior to 3.0.
7613     case $host_os in
7614       aix4 | aix4.[01] | aix4.[01].*)
7615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7616            echo ' yes '
7617            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7618         :
7619       else
7620         can_build_shared=no
7621       fi
7622       ;;
7623     esac
7624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7625     # soname into executable. Probably we can add versioning support to
7626     # collect2, so additional links can be useful in future.
7627     if test "$aix_use_runtimelinking" = yes; then
7628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7629       # instead of lib<name>.a to let people know that these are not
7630       # typical AIX shared libraries.
7631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632     else
7633       # We preserve .a as extension for shared libraries through AIX4.2
7634       # and later when we are not doing run time linking.
7635       library_names_spec='${libname}${release}.a $libname.a'
7636       soname_spec='${libname}${release}${shared_ext}$major'
7637     fi
7638     shlibpath_var=LIBPATH
7639   fi
7640   ;;
7641
7642 amigaos*)
7643   library_names_spec='$libname.ixlibrary $libname.a'
7644   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7645   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'
7646   ;;
7647
7648 beos*)
7649   library_names_spec='${libname}${shared_ext}'
7650   dynamic_linker="$host_os ld.so"
7651   shlibpath_var=LIBRARY_PATH
7652   ;;
7653
7654 bsdi[45]*)
7655   version_type=linux
7656   need_version=no
7657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658   soname_spec='${libname}${release}${shared_ext}$major'
7659   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7660   shlibpath_var=LD_LIBRARY_PATH
7661   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7662   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7663   # the default ld.so.conf also contains /usr/contrib/lib and
7664   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7665   # libtool to hard-code these into programs
7666   ;;
7667
7668 cygwin* | mingw* | pw32*)
7669   version_type=windows
7670   shrext_cmds=".dll"
7671   need_version=no
7672   need_lib_prefix=no
7673
7674   case $GCC,$host_os in
7675   yes,cygwin* | yes,mingw* | yes,pw32*)
7676     library_names_spec='$libname.dll.a'
7677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7678     postinstall_cmds='base_file=`basename \${file}`~
7679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7680       dldir=$destdir/`dirname \$dlpath`~
7681       test -d \$dldir || mkdir -p \$dldir~
7682       $install_prog $dir/$dlname \$dldir/$dlname'
7683     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7684       dlpath=$dir/\$dldll~
7685        $rm \$dlpath'
7686     shlibpath_overrides_runpath=yes
7687
7688     case $host_os in
7689     cygwin*)
7690       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7691       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7692       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7693       ;;
7694     mingw*)
7695       # MinGW DLLs use traditional 'lib' prefix
7696       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7697       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7698       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7699         # It is most probably a Windows format PATH printed by
7700         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7701         # path with ; separators, and with drive letters. We can handle the
7702         # drive letters (cygwin fileutils understands them), so leave them,
7703         # especially as we might pass files found there to a mingw objdump,
7704         # which wouldn't understand a cygwinified path. Ahh.
7705         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7706       else
7707         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7708       fi
7709       ;;
7710     pw32*)
7711       # pw32 DLLs use 'pw' prefix rather than 'lib'
7712       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7713       ;;
7714     esac
7715     ;;
7716
7717   *)
7718     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7719     ;;
7720   esac
7721   dynamic_linker='Win32 ld.exe'
7722   # FIXME: first we should search . and the directory the executable is in
7723   shlibpath_var=PATH
7724   ;;
7725
7726 darwin* | rhapsody*)
7727   dynamic_linker="$host_os dyld"
7728   version_type=darwin
7729   need_lib_prefix=no
7730   need_version=no
7731   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7732   soname_spec='${libname}${release}${major}$shared_ext'
7733   shlibpath_overrides_runpath=yes
7734   shlibpath_var=DYLD_LIBRARY_PATH
7735   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7736   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7737   if test "$GCC" = yes; then
7738     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"`
7739   else
7740     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7741   fi
7742   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7743   ;;
7744
7745 dgux*)
7746   version_type=linux
7747   need_lib_prefix=no
7748   need_version=no
7749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7750   soname_spec='${libname}${release}${shared_ext}$major'
7751   shlibpath_var=LD_LIBRARY_PATH
7752   ;;
7753
7754 freebsd1*)
7755   dynamic_linker=no
7756   ;;
7757
7758 kfreebsd*-gnu)
7759   version_type=linux
7760   need_lib_prefix=no
7761   need_version=no
7762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7763   soname_spec='${libname}${release}${shared_ext}$major'
7764   shlibpath_var=LD_LIBRARY_PATH
7765   shlibpath_overrides_runpath=no
7766   hardcode_into_libs=yes
7767   dynamic_linker='GNU ld.so'
7768   ;;
7769
7770 freebsd*)
7771   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7772   version_type=freebsd-$objformat
7773   case $version_type in
7774     freebsd-elf*)
7775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7776       need_version=no
7777       need_lib_prefix=no
7778       ;;
7779     freebsd-*)
7780       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7781       need_version=yes
7782       ;;
7783   esac
7784   shlibpath_var=LD_LIBRARY_PATH
7785   case $host_os in
7786   freebsd2*)
7787     shlibpath_overrides_runpath=yes
7788     ;;
7789   freebsd3.01* | freebsdelf3.01*)
7790     shlibpath_overrides_runpath=yes
7791     hardcode_into_libs=yes
7792     ;;
7793   *) # from 3.2 on
7794     shlibpath_overrides_runpath=no
7795     hardcode_into_libs=yes
7796     ;;
7797   esac
7798   ;;
7799
7800 gnu*)
7801   version_type=linux
7802   need_lib_prefix=no
7803   need_version=no
7804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7805   soname_spec='${libname}${release}${shared_ext}$major'
7806   shlibpath_var=LD_LIBRARY_PATH
7807   hardcode_into_libs=yes
7808   ;;
7809
7810 hpux9* | hpux10* | hpux11*)
7811   # Give a soname corresponding to the major version so that dld.sl refuses to
7812   # link against other versions.
7813   version_type=sunos
7814   need_lib_prefix=no
7815   need_version=no
7816   case "$host_cpu" in
7817   ia64*)
7818     shrext_cmds='.so'
7819     hardcode_into_libs=yes
7820     dynamic_linker="$host_os dld.so"
7821     shlibpath_var=LD_LIBRARY_PATH
7822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824     soname_spec='${libname}${release}${shared_ext}$major'
7825     if test "X$HPUX_IA64_MODE" = X32; then
7826       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7827     else
7828       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7829     fi
7830     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7831     ;;
7832    hppa*64*)
7833      shrext_cmds='.sl'
7834      hardcode_into_libs=yes
7835      dynamic_linker="$host_os dld.sl"
7836      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7837      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839      soname_spec='${libname}${release}${shared_ext}$major'
7840      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7841      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7842      ;;
7843    *)
7844     shrext_cmds='.sl'
7845     dynamic_linker="$host_os dld.sl"
7846     shlibpath_var=SHLIB_PATH
7847     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849     soname_spec='${libname}${release}${shared_ext}$major'
7850     ;;
7851   esac
7852   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7853   postinstall_cmds='chmod 555 $lib'
7854   ;;
7855
7856 irix5* | irix6* | nonstopux*)
7857   case $host_os in
7858     nonstopux*) version_type=nonstopux ;;
7859     *)
7860         if test "$lt_cv_prog_gnu_ld" = yes; then
7861                 version_type=linux
7862         else
7863                 version_type=irix
7864         fi ;;
7865   esac
7866   need_lib_prefix=no
7867   need_version=no
7868   soname_spec='${libname}${release}${shared_ext}$major'
7869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7870   case $host_os in
7871   irix5* | nonstopux*)
7872     libsuff= shlibsuff=
7873     ;;
7874   *)
7875     case $LD in # libtool.m4 will add one of these switches to LD
7876     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7877       libsuff= shlibsuff= libmagic=32-bit;;
7878     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7879       libsuff=32 shlibsuff=N32 libmagic=N32;;
7880     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7881       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7882     *) libsuff= shlibsuff= libmagic=never-match;;
7883     esac
7884     ;;
7885   esac
7886   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7887   shlibpath_overrides_runpath=no
7888   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7889   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7890   hardcode_into_libs=yes
7891   ;;
7892
7893 # No shared lib support for Linux oldld, aout, or coff.
7894 linux*oldld* | linux*aout* | linux*coff*)
7895   dynamic_linker=no
7896   ;;
7897
7898 # This must be Linux ELF.
7899 linux*)
7900   version_type=linux
7901   need_lib_prefix=no
7902   need_version=no
7903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7904   soname_spec='${libname}${release}${shared_ext}$major'
7905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7906   shlibpath_var=LD_LIBRARY_PATH
7907   shlibpath_overrides_runpath=no
7908   # This implies no fast_install, which is unacceptable.
7909   # Some rework will be needed to allow for fast_install
7910   # before this can be enabled.
7911   hardcode_into_libs=yes
7912
7913   # Append ld.so.conf contents to the search path
7914   if test -f /etc/ld.so.conf; then
7915     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7916     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7917   fi
7918
7919   # We used to test for /lib/ld.so.1 and disable shared libraries on
7920   # powerpc, because MkLinux only supported shared libraries with the
7921   # GNU dynamic linker.  Since this was broken with cross compilers,
7922   # most powerpc-linux boxes support dynamic linking these days and
7923   # people can always --disable-shared, the test was removed, and we
7924   # assume the GNU/Linux dynamic linker is in use.
7925   dynamic_linker='GNU/Linux ld.so'
7926   ;;
7927
7928 knetbsd*-gnu)
7929   version_type=linux
7930   need_lib_prefix=no
7931   need_version=no
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7933   soname_spec='${libname}${release}${shared_ext}$major'
7934   shlibpath_var=LD_LIBRARY_PATH
7935   shlibpath_overrides_runpath=no
7936   hardcode_into_libs=yes
7937   dynamic_linker='GNU ld.so'
7938   ;;
7939
7940 netbsd*)
7941   version_type=sunos
7942   need_lib_prefix=no
7943   need_version=no
7944   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7946     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7947     dynamic_linker='NetBSD (a.out) ld.so'
7948   else
7949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7950     soname_spec='${libname}${release}${shared_ext}$major'
7951     dynamic_linker='NetBSD ld.elf_so'
7952   fi
7953   shlibpath_var=LD_LIBRARY_PATH
7954   shlibpath_overrides_runpath=yes
7955   hardcode_into_libs=yes
7956   ;;
7957
7958 newsos6)
7959   version_type=linux
7960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961   shlibpath_var=LD_LIBRARY_PATH
7962   shlibpath_overrides_runpath=yes
7963   ;;
7964
7965 nto-qnx*)
7966   version_type=linux
7967   need_lib_prefix=no
7968   need_version=no
7969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970   soname_spec='${libname}${release}${shared_ext}$major'
7971   shlibpath_var=LD_LIBRARY_PATH
7972   shlibpath_overrides_runpath=yes
7973   ;;
7974
7975 openbsd*)
7976   version_type=sunos
7977   need_lib_prefix=no
7978   need_version=no
7979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7980   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7981   shlibpath_var=LD_LIBRARY_PATH
7982   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7983     case $host_os in
7984       openbsd2.[89] | openbsd2.[89].*)
7985         shlibpath_overrides_runpath=no
7986         ;;
7987       *)
7988         shlibpath_overrides_runpath=yes
7989         ;;
7990       esac
7991   else
7992     shlibpath_overrides_runpath=yes
7993   fi
7994   ;;
7995
7996 os2*)
7997   libname_spec='$name'
7998   shrext_cmds=".dll"
7999   need_lib_prefix=no
8000   library_names_spec='$libname${shared_ext} $libname.a'
8001   dynamic_linker='OS/2 ld.exe'
8002   shlibpath_var=LIBPATH
8003   ;;
8004
8005 osf3* | osf4* | osf5*)
8006   version_type=osf
8007   need_lib_prefix=no
8008   need_version=no
8009   soname_spec='${libname}${release}${shared_ext}$major'
8010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011   shlibpath_var=LD_LIBRARY_PATH
8012   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8013   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8014   ;;
8015
8016 sco3.2v5*)
8017   version_type=osf
8018   soname_spec='${libname}${release}${shared_ext}$major'
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020   shlibpath_var=LD_LIBRARY_PATH
8021   ;;
8022
8023 solaris*)
8024   version_type=linux
8025   need_lib_prefix=no
8026   need_version=no
8027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8028   soname_spec='${libname}${release}${shared_ext}$major'
8029   shlibpath_var=LD_LIBRARY_PATH
8030   shlibpath_overrides_runpath=yes
8031   hardcode_into_libs=yes
8032   # ldd complains unless libraries are executable
8033   postinstall_cmds='chmod +x $lib'
8034   ;;
8035
8036 sunos4*)
8037   version_type=sunos
8038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8039   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8040   shlibpath_var=LD_LIBRARY_PATH
8041   shlibpath_overrides_runpath=yes
8042   if test "$with_gnu_ld" = yes; then
8043     need_lib_prefix=no
8044   fi
8045   need_version=yes
8046   ;;
8047
8048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8049   version_type=linux
8050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8051   soname_spec='${libname}${release}${shared_ext}$major'
8052   shlibpath_var=LD_LIBRARY_PATH
8053   case $host_vendor in
8054     sni)
8055       shlibpath_overrides_runpath=no
8056       need_lib_prefix=no
8057       export_dynamic_flag_spec='${wl}-Blargedynsym'
8058       runpath_var=LD_RUN_PATH
8059       ;;
8060     siemens)
8061       need_lib_prefix=no
8062       ;;
8063     motorola)
8064       need_lib_prefix=no
8065       need_version=no
8066       shlibpath_overrides_runpath=no
8067       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8068       ;;
8069   esac
8070   ;;
8071
8072 sysv4*MP*)
8073   if test -d /usr/nec ;then
8074     version_type=linux
8075     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8076     soname_spec='$libname${shared_ext}.$major'
8077     shlibpath_var=LD_LIBRARY_PATH
8078   fi
8079   ;;
8080
8081 uts4*)
8082   version_type=linux
8083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084   soname_spec='${libname}${release}${shared_ext}$major'
8085   shlibpath_var=LD_LIBRARY_PATH
8086   ;;
8087
8088 *)
8089   dynamic_linker=no
8090   ;;
8091 esac
8092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8093 echo "${ECHO_T}$dynamic_linker" >&6
8094 test "$dynamic_linker" = no && can_build_shared=no
8095
8096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8098 hardcode_action=
8099 if test -n "$hardcode_libdir_flag_spec" || \
8100    test -n "$runpath_var" || \
8101    test "X$hardcode_automatic" = "Xyes" ; then
8102
8103   # We can hardcode non-existant directories.
8104   if test "$hardcode_direct" != no &&
8105      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8106      # have to relink, otherwise we might link with an installed library
8107      # when we should be linking with a yet-to-be-installed one
8108      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8109      test "$hardcode_minus_L" != no; then
8110     # Linking always hardcodes the temporary library directory.
8111     hardcode_action=relink
8112   else
8113     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8114     hardcode_action=immediate
8115   fi
8116 else
8117   # We cannot hardcode anything, or else we can only hardcode existing
8118   # directories.
8119   hardcode_action=unsupported
8120 fi
8121 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8122 echo "${ECHO_T}$hardcode_action" >&6
8123
8124 if test "$hardcode_action" = relink; then
8125   # Fast installation is not supported
8126   enable_fast_install=no
8127 elif test "$shlibpath_overrides_runpath" = yes ||
8128      test "$enable_shared" = no; then
8129   # Fast installation is not necessary
8130   enable_fast_install=needless
8131 fi
8132
8133 striplib=
8134 old_striplib=
8135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8138   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8139   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8140   echo "$as_me:$LINENO: result: yes" >&5
8141 echo "${ECHO_T}yes" >&6
8142 else
8143 # FIXME - insert some real tests, host_os isn't really good enough
8144   case $host_os in
8145    darwin*)
8146        if test -n "$STRIP" ; then
8147          striplib="$STRIP -x"
8148          echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8150        else
8151   echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6
8153 fi
8154        ;;
8155    *)
8156   echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8158     ;;
8159   esac
8160 fi
8161
8162 if test "x$enable_dlopen" != xyes; then
8163   enable_dlopen=unknown
8164   enable_dlopen_self=unknown
8165   enable_dlopen_self_static=unknown
8166 else
8167   lt_cv_dlopen=no
8168   lt_cv_dlopen_libs=
8169
8170   case $host_os in
8171   beos*)
8172     lt_cv_dlopen="load_add_on"
8173     lt_cv_dlopen_libs=
8174     lt_cv_dlopen_self=yes
8175     ;;
8176
8177   mingw* | pw32*)
8178     lt_cv_dlopen="LoadLibrary"
8179     lt_cv_dlopen_libs=
8180    ;;
8181
8182   cygwin*)
8183     lt_cv_dlopen="dlopen"
8184     lt_cv_dlopen_libs=
8185    ;;
8186
8187   darwin*)
8188   # if libdl is installed we need to link against it
8189     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-ldl  $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 /* Override any gcc2 internal prototype to avoid an error.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char dlopen ();
8210 int
8211 main ()
8212 {
8213 dlopen ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220   (eval $ac_link) 2>conftest.er1
8221   ac_status=$?
8222   grep -v '^ *+' conftest.er1 >conftest.err
8223   rm -f conftest.er1
8224   cat conftest.err >&5
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -z "$ac_c_werror_flag"
8228                          || test ! -s conftest.err'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; } &&
8234          { ac_try='test -s conftest$ac_exeext'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_cv_lib_dl_dlopen=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_lib_dl_dlopen=no
8246 fi
8247 rm -f conftest.err conftest.$ac_objext \
8248       conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8250 fi
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8253 if test $ac_cv_lib_dl_dlopen = yes; then
8254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8255 else
8256
8257     lt_cv_dlopen="dyld"
8258     lt_cv_dlopen_libs=
8259     lt_cv_dlopen_self=yes
8260
8261 fi
8262
8263    ;;
8264
8265   *)
8266     echo "$as_me:$LINENO: checking for shl_load" >&5
8267 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8268 if test "${ac_cv_func_shl_load+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8279 #define shl_load innocuous_shl_load
8280
8281 /* System header to define __stub macros and hopefully few prototypes,
8282     which can conflict with char shl_load (); below.
8283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284     <limits.h> exists even on freestanding compilers.  */
8285
8286 #ifdef __STDC__
8287 # include <limits.h>
8288 #else
8289 # include <assert.h>
8290 #endif
8291
8292 #undef shl_load
8293
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 #ifdef __cplusplus
8296 extern "C"
8297 {
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300    builtin and then its argument prototype would still apply.  */
8301 char shl_load ();
8302 /* The GNU C library defines this for functions which it implements
8303     to always fail with ENOSYS.  Some functions are actually named
8304     something starting with __ and the normal name is an alias.  */
8305 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8306 choke me
8307 #else
8308 char (*f) () = shl_load;
8309 #endif
8310 #ifdef __cplusplus
8311 }
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 return f != shl_load;
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324   (eval $ac_link) 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } &&
8331          { ac_try='test -z "$ac_c_werror_flag"
8332                          || test ! -s conftest.err'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest$ac_exeext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   ac_cv_func_shl_load=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_cv_func_shl_load=no
8350 fi
8351 rm -f conftest.err conftest.$ac_objext \
8352       conftest$ac_exeext conftest.$ac_ext
8353 fi
8354 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8355 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8356 if test $ac_cv_func_shl_load = yes; then
8357   lt_cv_dlopen="shl_load"
8358 else
8359   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8360 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8361 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   ac_check_lib_save_LIBS=$LIBS
8365 LIBS="-ldld  $LIBS"
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372
8373 /* Override any gcc2 internal prototype to avoid an error.  */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 /* We use char because int might match the return type of a gcc2
8378    builtin and then its argument prototype would still apply.  */
8379 char shl_load ();
8380 int
8381 main ()
8382 {
8383 shl_load ();
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390   (eval $ac_link) 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag"
8398                          || test ! -s conftest.err'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   ac_cv_lib_dld_shl_load=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_lib_dld_shl_load=no
8416 fi
8417 rm -f conftest.err conftest.$ac_objext \
8418       conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8423 if test $ac_cv_lib_dld_shl_load = yes; then
8424   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8425 else
8426   echo "$as_me:$LINENO: checking for dlopen" >&5
8427 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8428 if test "${ac_cv_func_dlopen+set}" = set; then
8429   echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431   cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8439 #define dlopen innocuous_dlopen
8440
8441 /* System header to define __stub macros and hopefully few prototypes,
8442     which can conflict with char dlopen (); below.
8443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8444     <limits.h> exists even on freestanding compilers.  */
8445
8446 #ifdef __STDC__
8447 # include <limits.h>
8448 #else
8449 # include <assert.h>
8450 #endif
8451
8452 #undef dlopen
8453
8454 /* Override any gcc2 internal prototype to avoid an error.  */
8455 #ifdef __cplusplus
8456 extern "C"
8457 {
8458 #endif
8459 /* We use char because int might match the return type of a gcc2
8460    builtin and then its argument prototype would still apply.  */
8461 char dlopen ();
8462 /* The GNU C library defines this for functions which it implements
8463     to always fail with ENOSYS.  Some functions are actually named
8464     something starting with __ and the normal name is an alias.  */
8465 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8466 choke me
8467 #else
8468 char (*f) () = dlopen;
8469 #endif
8470 #ifdef __cplusplus
8471 }
8472 #endif
8473
8474 int
8475 main ()
8476 {
8477 return f != dlopen;
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484   (eval $ac_link) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest$ac_exeext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_func_dlopen=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_cv_func_dlopen=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext conftest.$ac_ext
8513 fi
8514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8516 if test $ac_cv_func_dlopen = yes; then
8517   lt_cv_dlopen="dlopen"
8518 else
8519   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-ldl  $LIBS"
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char dlopen ();
8540 int
8541 main ()
8542 {
8543 dlopen ();
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550   (eval $ac_link) 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag"
8558                          || test ! -s conftest.err'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest$ac_exeext'
8565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566   (eval $ac_try) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; }; then
8570   ac_cv_lib_dl_dlopen=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_cv_lib_dl_dlopen=no
8576 fi
8577 rm -f conftest.err conftest.$ac_objext \
8578       conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8583 if test $ac_cv_lib_dl_dlopen = yes; then
8584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8585 else
8586   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8587 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8588 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   ac_check_lib_save_LIBS=$LIBS
8592 LIBS="-lsvld  $LIBS"
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 /* Override any gcc2 internal prototype to avoid an error.  */
8601 #ifdef __cplusplus
8602 extern "C"
8603 #endif
8604 /* We use char because int might match the return type of a gcc2
8605    builtin and then its argument prototype would still apply.  */
8606 char dlopen ();
8607 int
8608 main ()
8609 {
8610 dlopen ();
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617   (eval $ac_link) 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -z "$ac_c_werror_flag"
8625                          || test ! -s conftest.err'
8626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627   (eval $ac_try) 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); }; } &&
8631          { ac_try='test -s conftest$ac_exeext'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   ac_cv_lib_svld_dlopen=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 ac_cv_lib_svld_dlopen=no
8643 fi
8644 rm -f conftest.err conftest.$ac_objext \
8645       conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8647 fi
8648 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8649 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8650 if test $ac_cv_lib_svld_dlopen = yes; then
8651   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8652 else
8653   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8654 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8655 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-ldld  $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666
8667 /* Override any gcc2 internal prototype to avoid an error.  */
8668 #ifdef __cplusplus
8669 extern "C"
8670 #endif
8671 /* We use char because int might match the return type of a gcc2
8672    builtin and then its argument prototype would still apply.  */
8673 char dld_link ();
8674 int
8675 main ()
8676 {
8677 dld_link ();
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684   (eval $ac_link) 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -z "$ac_c_werror_flag"
8692                          || test ! -s conftest.err'
8693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; } &&
8698          { ac_try='test -s conftest$ac_exeext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_cv_lib_dld_dld_link=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 ac_cv_lib_dld_dld_link=no
8710 fi
8711 rm -f conftest.err conftest.$ac_objext \
8712       conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8714 fi
8715 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8717 if test $ac_cv_lib_dld_dld_link = yes; then
8718   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8719 fi
8720
8721
8722 fi
8723
8724
8725 fi
8726
8727
8728 fi
8729
8730
8731 fi
8732
8733
8734 fi
8735
8736     ;;
8737   esac
8738
8739   if test "x$lt_cv_dlopen" != xno; then
8740     enable_dlopen=yes
8741   else
8742     enable_dlopen=no
8743   fi
8744
8745   case $lt_cv_dlopen in
8746   dlopen)
8747     save_CPPFLAGS="$CPPFLAGS"
8748     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8749
8750     save_LDFLAGS="$LDFLAGS"
8751     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8752
8753     save_LIBS="$LIBS"
8754     LIBS="$lt_cv_dlopen_libs $LIBS"
8755
8756     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8758 if test "${lt_cv_dlopen_self+set}" = set; then
8759   echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761           if test "$cross_compiling" = yes; then :
8762   lt_cv_dlopen_self=cross
8763 else
8764   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8765   lt_status=$lt_dlunknown
8766   cat > conftest.$ac_ext <<EOF
8767 #line 8767 "configure"
8768 #include "confdefs.h"
8769
8770 #if HAVE_DLFCN_H
8771 #include <dlfcn.h>
8772 #endif
8773
8774 #include <stdio.h>
8775
8776 #ifdef RTLD_GLOBAL
8777 #  define LT_DLGLOBAL           RTLD_GLOBAL
8778 #else
8779 #  ifdef DL_GLOBAL
8780 #    define LT_DLGLOBAL         DL_GLOBAL
8781 #  else
8782 #    define LT_DLGLOBAL         0
8783 #  endif
8784 #endif
8785
8786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8787    find out it does not work in some platform. */
8788 #ifndef LT_DLLAZY_OR_NOW
8789 #  ifdef RTLD_LAZY
8790 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8791 #  else
8792 #    ifdef DL_LAZY
8793 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8794 #    else
8795 #      ifdef RTLD_NOW
8796 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8797 #      else
8798 #        ifdef DL_NOW
8799 #          define LT_DLLAZY_OR_NOW      DL_NOW
8800 #        else
8801 #          define LT_DLLAZY_OR_NOW      0
8802 #        endif
8803 #      endif
8804 #    endif
8805 #  endif
8806 #endif
8807
8808 #ifdef __cplusplus
8809 extern "C" void exit (int);
8810 #endif
8811
8812 void fnord() { int i=42;}
8813 int main ()
8814 {
8815   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8816   int status = $lt_dlunknown;
8817
8818   if (self)
8819     {
8820       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8821       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8822       /* dlclose (self); */
8823     }
8824
8825     exit (status);
8826 }
8827 EOF
8828   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829   (eval $ac_link) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8833     (./conftest; exit; ) 2>/dev/null
8834     lt_status=$?
8835     case x$lt_status in
8836       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8837       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8838       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8839     esac
8840   else :
8841     # compilation failed
8842     lt_cv_dlopen_self=no
8843   fi
8844 fi
8845 rm -fr conftest*
8846
8847
8848 fi
8849 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8850 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8851
8852     if test "x$lt_cv_dlopen_self" = xyes; then
8853       LDFLAGS="$LDFLAGS $link_static_flag"
8854       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8855 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8856 if test "${lt_cv_dlopen_self_static+set}" = set; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859           if test "$cross_compiling" = yes; then :
8860   lt_cv_dlopen_self_static=cross
8861 else
8862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8863   lt_status=$lt_dlunknown
8864   cat > conftest.$ac_ext <<EOF
8865 #line 8865 "configure"
8866 #include "confdefs.h"
8867
8868 #if HAVE_DLFCN_H
8869 #include <dlfcn.h>
8870 #endif
8871
8872 #include <stdio.h>
8873
8874 #ifdef RTLD_GLOBAL
8875 #  define LT_DLGLOBAL           RTLD_GLOBAL
8876 #else
8877 #  ifdef DL_GLOBAL
8878 #    define LT_DLGLOBAL         DL_GLOBAL
8879 #  else
8880 #    define LT_DLGLOBAL         0
8881 #  endif
8882 #endif
8883
8884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8885    find out it does not work in some platform. */
8886 #ifndef LT_DLLAZY_OR_NOW
8887 #  ifdef RTLD_LAZY
8888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8889 #  else
8890 #    ifdef DL_LAZY
8891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8892 #    else
8893 #      ifdef RTLD_NOW
8894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8895 #      else
8896 #        ifdef DL_NOW
8897 #          define LT_DLLAZY_OR_NOW      DL_NOW
8898 #        else
8899 #          define LT_DLLAZY_OR_NOW      0
8900 #        endif
8901 #      endif
8902 #    endif
8903 #  endif
8904 #endif
8905
8906 #ifdef __cplusplus
8907 extern "C" void exit (int);
8908 #endif
8909
8910 void fnord() { int i=42;}
8911 int main ()
8912 {
8913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8914   int status = $lt_dlunknown;
8915
8916   if (self)
8917     {
8918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8920       /* dlclose (self); */
8921     }
8922
8923     exit (status);
8924 }
8925 EOF
8926   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927   (eval $ac_link) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8931     (./conftest; exit; ) 2>/dev/null
8932     lt_status=$?
8933     case x$lt_status in
8934       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8935       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8936       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8937     esac
8938   else :
8939     # compilation failed
8940     lt_cv_dlopen_self_static=no
8941   fi
8942 fi
8943 rm -fr conftest*
8944
8945
8946 fi
8947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8948 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8949     fi
8950
8951     CPPFLAGS="$save_CPPFLAGS"
8952     LDFLAGS="$save_LDFLAGS"
8953     LIBS="$save_LIBS"
8954     ;;
8955   esac
8956
8957   case $lt_cv_dlopen_self in
8958   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8959   *) enable_dlopen_self=unknown ;;
8960   esac
8961
8962   case $lt_cv_dlopen_self_static in
8963   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8964   *) enable_dlopen_self_static=unknown ;;
8965   esac
8966 fi
8967
8968
8969 # Report which librarie types wil actually be built
8970 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8971 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8972 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8973 echo "${ECHO_T}$can_build_shared" >&6
8974
8975 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8976 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8977 test "$can_build_shared" = "no" && enable_shared=no
8978
8979 # On AIX, shared libraries and static libraries use the same namespace, and
8980 # are all built from PIC.
8981 case "$host_os" in
8982 aix3*)
8983   test "$enable_shared" = yes && enable_static=no
8984   if test -n "$RANLIB"; then
8985     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8986     postinstall_cmds='$RANLIB $lib'
8987   fi
8988   ;;
8989
8990 aix4* | aix5*)
8991   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8992     test "$enable_shared" = yes && enable_static=no
8993   fi
8994     ;;
8995 esac
8996 echo "$as_me:$LINENO: result: $enable_shared" >&5
8997 echo "${ECHO_T}$enable_shared" >&6
8998
8999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9001 # Make sure either enable_shared or enable_static is yes.
9002 test "$enable_shared" = yes || enable_static=yes
9003 echo "$as_me:$LINENO: result: $enable_static" >&5
9004 echo "${ECHO_T}$enable_static" >&6
9005
9006 # The else clause should only fire when bootstrapping the
9007 # libtool distribution, otherwise you forgot to ship ltmain.sh
9008 # with your package, and you will get complaints that there are
9009 # no rules to generate ltmain.sh.
9010 if test -f "$ltmain"; then
9011   # See if we are running on zsh, and set the options which allow our commands through
9012   # without removal of \ escapes.
9013   if test -n "${ZSH_VERSION+set}" ; then
9014     setopt NO_GLOB_SUBST
9015   fi
9016   # Now quote all the things that may contain metacharacters while being
9017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9018   # variables and quote the copies for generation of the libtool script.
9019   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
9020     SED SHELL STRIP \
9021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9023     deplibs_check_method reload_flag reload_cmds need_locks \
9024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9025     lt_cv_sys_global_symbol_to_c_name_address \
9026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9027     old_postinstall_cmds old_postuninstall_cmds \
9028     compiler \
9029     CC \
9030     LD \
9031     lt_prog_compiler_wl \
9032     lt_prog_compiler_pic \
9033     lt_prog_compiler_static \
9034     lt_prog_compiler_no_builtin_flag \
9035     export_dynamic_flag_spec \
9036     thread_safe_flag_spec \
9037     whole_archive_flag_spec \
9038     enable_shared_with_static_runtimes \
9039     old_archive_cmds \
9040     old_archive_from_new_cmds \
9041     predep_objects \
9042     postdep_objects \
9043     predeps \
9044     postdeps \
9045     compiler_lib_search_path \
9046     archive_cmds \
9047     archive_expsym_cmds \
9048     postinstall_cmds \
9049     postuninstall_cmds \
9050     old_archive_from_expsyms_cmds \
9051     allow_undefined_flag \
9052     no_undefined_flag \
9053     export_symbols_cmds \
9054     hardcode_libdir_flag_spec \
9055     hardcode_libdir_flag_spec_ld \
9056     hardcode_libdir_separator \
9057     hardcode_automatic \
9058     module_cmds \
9059     module_expsym_cmds \
9060     lt_cv_prog_compiler_c_o \
9061     exclude_expsyms \
9062     include_expsyms; do
9063
9064     case $var in
9065     old_archive_cmds | \
9066     old_archive_from_new_cmds | \
9067     archive_cmds | \
9068     archive_expsym_cmds | \
9069     module_cmds | \
9070     module_expsym_cmds | \
9071     old_archive_from_expsyms_cmds | \
9072     export_symbols_cmds | \
9073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9074     postinstall_cmds | postuninstall_cmds | \
9075     old_postinstall_cmds | old_postuninstall_cmds | \
9076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9077       # Double-quote double-evaled strings.
9078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9079       ;;
9080     *)
9081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9082       ;;
9083     esac
9084   done
9085
9086   case $lt_echo in
9087   *'\$0 --fallback-echo"')
9088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9089     ;;
9090   esac
9091
9092 cfgfile="${ofile}T"
9093   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9094   $rm -f "$cfgfile"
9095   { echo "$as_me:$LINENO: creating $ofile" >&5
9096 echo "$as_me: creating $ofile" >&6;}
9097
9098   cat <<__EOF__ >> "$cfgfile"
9099 #! $SHELL
9100
9101 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9102 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9103 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9104 #
9105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9106 # Free Software Foundation, Inc.
9107 #
9108 # This file is part of GNU Libtool:
9109 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9110 #
9111 # This program is free software; you can redistribute it and/or modify
9112 # it under the terms of the GNU General Public License as published by
9113 # the Free Software Foundation; either version 2 of the License, or
9114 # (at your option) any later version.
9115 #
9116 # This program is distributed in the hope that it will be useful, but
9117 # WITHOUT ANY WARRANTY; without even the implied warranty of
9118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9119 # General Public License for more details.
9120 #
9121 # You should have received a copy of the GNU General Public License
9122 # along with this program; if not, write to the Free Software
9123 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9124 #
9125 # As a special exception to the GNU General Public License, if you
9126 # distribute this file as part of a program that contains a
9127 # configuration script generated by Autoconf, you may include it under
9128 # the same distribution terms that you use for the rest of that program.
9129
9130 # A sed program that does not truncate output.
9131 SED=$lt_SED
9132
9133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9134 Xsed="$SED -e s/^X//"
9135
9136 # The HP-UX ksh and POSIX shell print the target directory to stdout
9137 # if CDPATH is set.
9138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9139
9140 # The names of the tagged configurations supported by this script.
9141 available_tags=
9142
9143 # ### BEGIN LIBTOOL CONFIG
9144
9145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9146
9147 # Shell to use when invoking shell scripts.
9148 SHELL=$lt_SHELL
9149
9150 # Whether or not to build shared libraries.
9151 build_libtool_libs=$enable_shared
9152
9153 # Whether or not to build static libraries.
9154 build_old_libs=$enable_static
9155
9156 # Whether or not to add -lc for building shared libraries.
9157 build_libtool_need_lc=$archive_cmds_need_lc
9158
9159 # Whether or not to disallow shared libs when runtime libs are static
9160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9161
9162 # Whether or not to optimize for fast installation.
9163 fast_install=$enable_fast_install
9164
9165 # The host system.
9166 host_alias=$host_alias
9167 host=$host
9168
9169 # An echo program that does not interpret backslashes.
9170 echo=$lt_echo
9171
9172 # The archiver.
9173 AR=$lt_AR
9174 AR_FLAGS=$lt_AR_FLAGS
9175
9176 # A C compiler.
9177 LTCC=$lt_LTCC
9178
9179 # A language-specific compiler.
9180 CC=$lt_compiler
9181
9182 # Is the compiler the GNU C compiler?
9183 with_gcc=$GCC
9184
9185 # An ERE matcher.
9186 EGREP=$lt_EGREP
9187
9188 # The linker used to build libraries.
9189 LD=$lt_LD
9190
9191 # Whether we need hard or soft links.
9192 LN_S=$lt_LN_S
9193
9194 # A BSD-compatible nm program.
9195 NM=$lt_NM
9196
9197 # A symbol stripping program
9198 STRIP=$lt_STRIP
9199
9200 # Used to examine libraries when file_magic_cmd begins "file"
9201 MAGIC_CMD=$MAGIC_CMD
9202
9203 # Used on cygwin: DLL creation program.
9204 DLLTOOL="$DLLTOOL"
9205
9206 # Used on cygwin: object dumper.
9207 OBJDUMP="$OBJDUMP"
9208
9209 # Used on cygwin: assembler.
9210 AS=$lt_AS
9211
9212 # The name of the directory that contains temporary libtool files.
9213 objdir=$objdir
9214
9215 # How to create reloadable object files.
9216 reload_flag=$lt_reload_flag
9217 reload_cmds=$lt_reload_cmds
9218
9219 # How to pass a linker flag through the compiler.
9220 wl=$lt_lt_prog_compiler_wl
9221
9222 # Object file suffix (normally "o").
9223 objext="$ac_objext"
9224
9225 # Old archive suffix (normally "a").
9226 libext="$libext"
9227
9228 # Shared library suffix (normally ".so").
9229 shrext_cmds='$shrext_cmds'
9230
9231 # Executable file suffix (normally "").
9232 exeext="$exeext"
9233
9234 # Additional compiler flags for building library objects.
9235 pic_flag=$lt_lt_prog_compiler_pic
9236 pic_mode=$pic_mode
9237
9238 # What is the maximum length of a command?
9239 max_cmd_len=$lt_cv_sys_max_cmd_len
9240
9241 # Does compiler simultaneously support -c and -o options?
9242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9243
9244 # Must we lock files when doing compilation ?
9245 need_locks=$lt_need_locks
9246
9247 # Do we need the lib prefix for modules?
9248 need_lib_prefix=$need_lib_prefix
9249
9250 # Do we need a version for libraries?
9251 need_version=$need_version
9252
9253 # Whether dlopen is supported.
9254 dlopen_support=$enable_dlopen
9255
9256 # Whether dlopen of programs is supported.
9257 dlopen_self=$enable_dlopen_self
9258
9259 # Whether dlopen of statically linked programs is supported.
9260 dlopen_self_static=$enable_dlopen_self_static
9261
9262 # Compiler flag to prevent dynamic linking.
9263 link_static_flag=$lt_lt_prog_compiler_static
9264
9265 # Compiler flag to turn off builtin functions.
9266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9267
9268 # Compiler flag to allow reflexive dlopens.
9269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9270
9271 # Compiler flag to generate shared objects directly from archives.
9272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9273
9274 # Compiler flag to generate thread-safe objects.
9275 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9276
9277 # Library versioning type.
9278 version_type=$version_type
9279
9280 # Format of library name prefix.
9281 libname_spec=$lt_libname_spec
9282
9283 # List of archive names.  First name is the real one, the rest are links.
9284 # The last name is the one that the linker finds with -lNAME.
9285 library_names_spec=$lt_library_names_spec
9286
9287 # The coded name of the library, if different from the real name.
9288 soname_spec=$lt_soname_spec
9289
9290 # Commands used to build and install an old-style archive.
9291 RANLIB=$lt_RANLIB
9292 old_archive_cmds=$lt_old_archive_cmds
9293 old_postinstall_cmds=$lt_old_postinstall_cmds
9294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9295
9296 # Create an old-style archive from a shared archive.
9297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9298
9299 # Create a temporary old-style archive to link instead of a shared archive.
9300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9301
9302 # Commands used to build and install a shared archive.
9303 archive_cmds=$lt_archive_cmds
9304 archive_expsym_cmds=$lt_archive_expsym_cmds
9305 postinstall_cmds=$lt_postinstall_cmds
9306 postuninstall_cmds=$lt_postuninstall_cmds
9307
9308 # Commands used to build a loadable module (assumed same as above if empty)
9309 module_cmds=$lt_module_cmds
9310 module_expsym_cmds=$lt_module_expsym_cmds
9311
9312 # Commands to strip libraries.
9313 old_striplib=$lt_old_striplib
9314 striplib=$lt_striplib
9315
9316 # Dependencies to place before the objects being linked to create a
9317 # shared library.
9318 predep_objects=$lt_predep_objects
9319
9320 # Dependencies to place after the objects being linked to create a
9321 # shared library.
9322 postdep_objects=$lt_postdep_objects
9323
9324 # Dependencies to place before the objects being linked to create a
9325 # shared library.
9326 predeps=$lt_predeps
9327
9328 # Dependencies to place after the objects being linked to create a
9329 # shared library.
9330 postdeps=$lt_postdeps
9331
9332 # The library search path used internally by the compiler when linking
9333 # a shared library.
9334 compiler_lib_search_path=$lt_compiler_lib_search_path
9335
9336 # Method to check whether dependent libraries are shared objects.
9337 deplibs_check_method=$lt_deplibs_check_method
9338
9339 # Command to use when deplibs_check_method == file_magic.
9340 file_magic_cmd=$lt_file_magic_cmd
9341
9342 # Flag that allows shared libraries with undefined symbols to be built.
9343 allow_undefined_flag=$lt_allow_undefined_flag
9344
9345 # Flag that forces no undefined symbols.
9346 no_undefined_flag=$lt_no_undefined_flag
9347
9348 # Commands used to finish a libtool library installation in a directory.
9349 finish_cmds=$lt_finish_cmds
9350
9351 # Same as above, but a single script fragment to be evaled but not shown.
9352 finish_eval=$lt_finish_eval
9353
9354 # Take the output of nm and produce a listing of raw symbols and C names.
9355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9356
9357 # Transform the output of nm in a proper C declaration
9358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9359
9360 # Transform the output of nm in a C name address pair
9361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9362
9363 # This is the shared library runtime path variable.
9364 runpath_var=$runpath_var
9365
9366 # This is the shared library path variable.
9367 shlibpath_var=$shlibpath_var
9368
9369 # Is shlibpath searched before the hard-coded library search path?
9370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9371
9372 # How to hardcode a shared library path into an executable.
9373 hardcode_action=$hardcode_action
9374
9375 # Whether we should hardcode library paths into libraries.
9376 hardcode_into_libs=$hardcode_into_libs
9377
9378 # Flag to hardcode \$libdir into a binary during linking.
9379 # This must work even if \$libdir does not exist.
9380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9381
9382 # If ld is used when linking, flag to hardcode \$libdir into
9383 # a binary during linking. This must work even if \$libdir does
9384 # not exist.
9385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9386
9387 # Whether we need a single -rpath flag with a separated argument.
9388 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9389
9390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9391 # resulting binary.
9392 hardcode_direct=$hardcode_direct
9393
9394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9395 # resulting binary.
9396 hardcode_minus_L=$hardcode_minus_L
9397
9398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9399 # the resulting binary.
9400 hardcode_shlibpath_var=$hardcode_shlibpath_var
9401
9402 # Set to yes if building a shared library automatically hardcodes DIR into the library
9403 # and all subsequent libraries and executables linked against it.
9404 hardcode_automatic=$hardcode_automatic
9405
9406 # Variables whose values should be saved in libtool wrapper scripts and
9407 # restored at relink time.
9408 variables_saved_for_relink="$variables_saved_for_relink"
9409
9410 # Whether libtool must link a program against all its dependency libraries.
9411 link_all_deplibs=$link_all_deplibs
9412
9413 # Compile-time system search path for libraries
9414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9415
9416 # Run-time system search path for libraries
9417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9418
9419 # Fix the shell variable \$srcfile for the compiler.
9420 fix_srcfile_path="$fix_srcfile_path"
9421
9422 # Set to yes if exported symbols are required.
9423 always_export_symbols=$always_export_symbols
9424
9425 # The commands to list exported symbols.
9426 export_symbols_cmds=$lt_export_symbols_cmds
9427
9428 # The commands to extract the exported symbol list from a shared archive.
9429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9430
9431 # Symbols that should not be listed in the preloaded symbols.
9432 exclude_expsyms=$lt_exclude_expsyms
9433
9434 # Symbols that must always be exported.
9435 include_expsyms=$lt_include_expsyms
9436
9437 # ### END LIBTOOL CONFIG
9438
9439 __EOF__
9440
9441
9442   case $host_os in
9443   aix3*)
9444     cat <<\EOF >> "$cfgfile"
9445
9446 # AIX sometimes has problems with the GCC collect2 program.  For some
9447 # reason, if we set the COLLECT_NAMES environment variable, the problems
9448 # vanish in a puff of smoke.
9449 if test "X${COLLECT_NAMES+set}" != Xset; then
9450   COLLECT_NAMES=
9451   export COLLECT_NAMES
9452 fi
9453 EOF
9454     ;;
9455   esac
9456
9457   # We use sed instead of cat because bash on DJGPP gets confused if
9458   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9459   # text mode, it properly converts lines to CR/LF.  This bash problem
9460   # is reportedly fixed, but why not run on old versions too?
9461   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9462
9463   mv -f "$cfgfile" "$ofile" || \
9464     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9465   chmod +x "$ofile"
9466
9467 else
9468   # If there is no Makefile yet, we rely on a make rule to execute
9469   # `config.status --recheck' to rerun these tests and create the
9470   # libtool script then.
9471   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9472   if test -f "$ltmain_in"; then
9473     test -f Makefile && make "$ltmain"
9474   fi
9475 fi
9476
9477
9478 ac_ext=c
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484 CC="$lt_save_CC"
9485
9486
9487 # Check whether --with-tags or --without-tags was given.
9488 if test "${with_tags+set}" = set; then
9489   withval="$with_tags"
9490   tagnames="$withval"
9491 fi;
9492
9493 if test -f "$ltmain" && test -n "$tagnames"; then
9494   if test ! -f "${ofile}"; then
9495     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9496 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9497   fi
9498
9499   if test -z "$LTCC"; then
9500     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9501     if test -z "$LTCC"; then
9502       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9503 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9504     else
9505       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9506 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9507     fi
9508   fi
9509
9510   # Extract list of available tagged configurations in $ofile.
9511   # Note that this assumes the entire list is on one line.
9512   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9513
9514   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9515   for tagname in $tagnames; do
9516     IFS="$lt_save_ifs"
9517     # Check whether tagname contains only valid characters
9518     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9519     "") ;;
9520     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9521 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9522    { (exit 1); exit 1; }; }
9523         ;;
9524     esac
9525
9526     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9527     then
9528       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9529 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9530    { (exit 1); exit 1; }; }
9531     fi
9532
9533     # Update the list of available tags.
9534     if test -n "$tagname"; then
9535       echo appending configuration tag \"$tagname\" to $ofile
9536
9537       case $tagname in
9538       CXX)
9539         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9540           ac_ext=cc
9541 ac_cpp='$CXXCPP $CPPFLAGS'
9542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9545
9546
9547
9548
9549 archive_cmds_need_lc_CXX=no
9550 allow_undefined_flag_CXX=
9551 always_export_symbols_CXX=no
9552 archive_expsym_cmds_CXX=
9553 export_dynamic_flag_spec_CXX=
9554 hardcode_direct_CXX=no
9555 hardcode_libdir_flag_spec_CXX=
9556 hardcode_libdir_flag_spec_ld_CXX=
9557 hardcode_libdir_separator_CXX=
9558 hardcode_minus_L_CXX=no
9559 hardcode_automatic_CXX=no
9560 module_cmds_CXX=
9561 module_expsym_cmds_CXX=
9562 link_all_deplibs_CXX=unknown
9563 old_archive_cmds_CXX=$old_archive_cmds
9564 no_undefined_flag_CXX=
9565 whole_archive_flag_spec_CXX=
9566 enable_shared_with_static_runtimes_CXX=no
9567
9568 # Dependencies to place before and after the object being linked:
9569 predep_objects_CXX=
9570 postdep_objects_CXX=
9571 predeps_CXX=
9572 postdeps_CXX=
9573 compiler_lib_search_path_CXX=
9574
9575 # Source file extension for C++ test sources.
9576 ac_ext=cc
9577
9578 # Object file extension for compiled C++ test sources.
9579 objext=o
9580 objext_CXX=$objext
9581
9582 # Code to be used in simple compile tests
9583 lt_simple_compile_test_code="int some_variable = 0;\n"
9584
9585 # Code to be used in simple link tests
9586 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9587
9588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9589
9590 # If no C compiler was specified, use CC.
9591 LTCC=${LTCC-"$CC"}
9592
9593 # Allow CC to be a program name with arguments.
9594 compiler=$CC
9595
9596
9597 # Allow CC to be a program name with arguments.
9598 lt_save_CC=$CC
9599 lt_save_LD=$LD
9600 lt_save_GCC=$GCC
9601 GCC=$GXX
9602 lt_save_with_gnu_ld=$with_gnu_ld
9603 lt_save_path_LD=$lt_cv_path_LD
9604 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9605   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9606 else
9607   unset lt_cv_prog_gnu_ld
9608 fi
9609 if test -n "${lt_cv_path_LDCXX+set}"; then
9610   lt_cv_path_LD=$lt_cv_path_LDCXX
9611 else
9612   unset lt_cv_path_LD
9613 fi
9614 test -z "${LDCXX+set}" || LD=$LDCXX
9615 CC=${CXX-"c++"}
9616 compiler=$CC
9617 compiler_CXX=$CC
9618 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9619
9620 # We don't want -fno-exception wen compiling C++ code, so set the
9621 # no_builtin_flag separately
9622 if test "$GXX" = yes; then
9623   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9624 else
9625   lt_prog_compiler_no_builtin_flag_CXX=
9626 fi
9627
9628 if test "$GXX" = yes; then
9629   # Set up default GNU C++ configuration
9630
9631
9632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then
9634   withval="$with_gnu_ld"
9635   test "$withval" = no || with_gnu_ld=yes
9636 else
9637   with_gnu_ld=no
9638 fi;
9639 ac_prog=ld
9640 if test "$GCC" = yes; then
9641   # Check if gcc -print-prog-name=ld gives a path.
9642   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9644   case $host in
9645   *-*-mingw*)
9646     # gcc leaves a trailing carriage return which upsets mingw
9647     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9648   *)
9649     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9650   esac
9651   case $ac_prog in
9652     # Accept absolute paths.
9653     [\\/]* | ?:[\\/]*)
9654       re_direlt='/[^/][^/]*/\.\./'
9655       # Canonicalize the pathname of ld
9656       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9657       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9658         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9659       done
9660       test -z "$LD" && LD="$ac_prog"
9661       ;;
9662   "")
9663     # If it fails, then pretend we aren't using GCC.
9664     ac_prog=ld
9665     ;;
9666   *)
9667     # If it is relative, then search for the first ld in PATH.
9668     with_gnu_ld=unknown
9669     ;;
9670   esac
9671 elif test "$with_gnu_ld" = yes; then
9672   echo "$as_me:$LINENO: checking for GNU ld" >&5
9673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9674 else
9675   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9677 fi
9678 if test "${lt_cv_path_LD+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681   if test -z "$LD"; then
9682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9683   for ac_dir in $PATH; do
9684     IFS="$lt_save_ifs"
9685     test -z "$ac_dir" && ac_dir=.
9686     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9687       lt_cv_path_LD="$ac_dir/$ac_prog"
9688       # Check to see if the program is GNU ld.  I'd rather use --version,
9689       # but apparently some GNU ld's only accept -v.
9690       # Break only if it was the GNU/non-GNU ld that we prefer.
9691       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9692       *GNU* | *'with BFD'*)
9693         test "$with_gnu_ld" != no && break
9694         ;;
9695       *)
9696         test "$with_gnu_ld" != yes && break
9697         ;;
9698       esac
9699     fi
9700   done
9701   IFS="$lt_save_ifs"
9702 else
9703   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9704 fi
9705 fi
9706
9707 LD="$lt_cv_path_LD"
9708 if test -n "$LD"; then
9709   echo "$as_me:$LINENO: result: $LD" >&5
9710 echo "${ECHO_T}$LD" >&6
9711 else
9712   echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9714 fi
9715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9717    { (exit 1); exit 1; }; }
9718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 case `$LD -v 2>&1 </dev/null` in
9725 *GNU* | *'with BFD'*)
9726   lt_cv_prog_gnu_ld=yes
9727   ;;
9728 *)
9729   lt_cv_prog_gnu_ld=no
9730   ;;
9731 esac
9732 fi
9733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9735 with_gnu_ld=$lt_cv_prog_gnu_ld
9736
9737
9738
9739   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9740   # archiving commands below assume that GNU ld is being used.
9741   if test "$with_gnu_ld" = yes; then
9742     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743     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'
9744
9745     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9746     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9747
9748     # If archive_cmds runs LD, not CC, wlarc should be empty
9749     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9750     #     investigate it a little bit more. (MM)
9751     wlarc='${wl}'
9752
9753     # ancient GNU ld didn't support --whole-archive et. al.
9754     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9755         grep 'no-whole-archive' > /dev/null; then
9756       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9757     else
9758       whole_archive_flag_spec_CXX=
9759     fi
9760   else
9761     with_gnu_ld=no
9762     wlarc=
9763
9764     # A generic and very simple default shared library creation
9765     # command for GNU C++ for the case where it uses the native
9766     # linker, instead of GNU ld.  If possible, this setting should
9767     # overridden to take advantage of the native linker features on
9768     # the platform it is being used on.
9769     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9770   fi
9771
9772   # Commands to make compiler produce verbose output that lists
9773   # what "hidden" libraries, object files and flags are used when
9774   # linking a shared library.
9775   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9776
9777 else
9778   GXX=no
9779   with_gnu_ld=no
9780   wlarc=
9781 fi
9782
9783 # PORTME: fill in a description of your system's C++ link characteristics
9784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9786 ld_shlibs_CXX=yes
9787 case $host_os in
9788   aix3*)
9789     # FIXME: insert proper C++ library support
9790     ld_shlibs_CXX=no
9791     ;;
9792   aix4* | aix5*)
9793     if test "$host_cpu" = ia64; then
9794       # On IA64, the linker does run time linking by default, so we don't
9795       # have to do anything special.
9796       aix_use_runtimelinking=no
9797       exp_sym_flag='-Bexport'
9798       no_entry_flag=""
9799     else
9800       aix_use_runtimelinking=no
9801
9802       # Test if we are trying to use run time linking or normal
9803       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9804       # need to do runtime linking.
9805       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9806         for ld_flag in $LDFLAGS; do
9807           case $ld_flag in
9808           *-brtl*)
9809             aix_use_runtimelinking=yes
9810             break
9811             ;;
9812           esac
9813         done
9814       esac
9815
9816       exp_sym_flag='-bexport'
9817       no_entry_flag='-bnoentry'
9818     fi
9819
9820     # When large executables or shared objects are built, AIX ld can
9821     # have problems creating the table of contents.  If linking a library
9822     # or program results in "error TOC overflow" add -mminimal-toc to
9823     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9824     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9825
9826     archive_cmds_CXX=''
9827     hardcode_direct_CXX=yes
9828     hardcode_libdir_separator_CXX=':'
9829     link_all_deplibs_CXX=yes
9830
9831     if test "$GXX" = yes; then
9832       case $host_os in aix4.012|aix4.012.*)
9833       # We only want to do this on AIX 4.2 and lower, the check
9834       # below for broken collect2 doesn't work under 4.3+
9835         collect2name=`${CC} -print-prog-name=collect2`
9836         if test -f "$collect2name" && \
9837            strings "$collect2name" | grep resolve_lib_name >/dev/null
9838         then
9839           # We have reworked collect2
9840           hardcode_direct_CXX=yes
9841         else
9842           # We have old collect2
9843           hardcode_direct_CXX=unsupported
9844           # It fails to find uninstalled libraries when the uninstalled
9845           # path is not listed in the libpath.  Setting hardcode_minus_L
9846           # to unsupported forces relinking
9847           hardcode_minus_L_CXX=yes
9848           hardcode_libdir_flag_spec_CXX='-L$libdir'
9849           hardcode_libdir_separator_CXX=
9850         fi
9851       esac
9852       shared_flag='-shared'
9853     else
9854       # not using gcc
9855       if test "$host_cpu" = ia64; then
9856         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857         # chokes on -Wl,-G. The following line is correct:
9858         shared_flag='-G'
9859       else
9860         if test "$aix_use_runtimelinking" = yes; then
9861           shared_flag='${wl}-G'
9862         else
9863           shared_flag='${wl}-bM:SRE'
9864         fi
9865       fi
9866     fi
9867
9868     # It seems that -bexpall does not export symbols beginning with
9869     # underscore (_), so it is better to generate a list of symbols to export.
9870     always_export_symbols_CXX=yes
9871     if test "$aix_use_runtimelinking" = yes; then
9872       # Warning - without using the other runtime loading flags (-brtl),
9873       # -berok will link without error, but may produce a broken library.
9874       allow_undefined_flag_CXX='-berok'
9875       # Determine the default libpath from the value encoded in an empty executable.
9876       cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 int
9884 main ()
9885 {
9886
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_cxx_werror_flag"
9901                          || test ! -s conftest.err'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; } &&
9907          { ac_try='test -s conftest$ac_exeext'
9908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909   (eval $ac_try) 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; }; then
9913
9914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9915 }'`
9916 # Check for a 64-bit object if we didn't find anything.
9917 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; }
9918 }'`; fi
9919 else
9920   echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9922
9923 fi
9924 rm -f conftest.err conftest.$ac_objext \
9925       conftest$ac_exeext conftest.$ac_ext
9926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9927
9928       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9929
9930       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"
9931      else
9932       if test "$host_cpu" = ia64; then
9933         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9934         allow_undefined_flag_CXX="-z nodefs"
9935         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"
9936       else
9937         # Determine the default libpath from the value encoded in an empty executable.
9938         cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944
9945 int
9946 main ()
9947 {
9948
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955   (eval $ac_link) 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_cxx_werror_flag"
9963                          || test ! -s conftest.err'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest$ac_exeext'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975
9976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9977 }'`
9978 # Check for a 64-bit object if we didn't find anything.
9979 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; }
9980 }'`; fi
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 fi
9986 rm -f conftest.err conftest.$ac_objext \
9987       conftest$ac_exeext conftest.$ac_ext
9988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9989
9990         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9991         # Warning - without using the other run time loading flags,
9992         # -berok will link without error, but may produce a broken library.
9993         no_undefined_flag_CXX=' ${wl}-bernotok'
9994         allow_undefined_flag_CXX=' ${wl}-berok'
9995         # -bexpall does not export symbols beginning with underscore (_)
9996         always_export_symbols_CXX=yes
9997         # Exported symbols can be pulled into shared objects from archives
9998         whole_archive_flag_spec_CXX=' '
9999         archive_cmds_need_lc_CXX=yes
10000         # This is similar to how AIX traditionally builds it's shared libraries.
10001         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'
10002       fi
10003     fi
10004     ;;
10005   chorus*)
10006     case $cc_basename in
10007       *)
10008         # FIXME: insert proper C++ library support
10009         ld_shlibs_CXX=no
10010         ;;
10011     esac
10012     ;;
10013
10014
10015   cygwin* | mingw* | pw32*)
10016     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10017     # as there is no search path for DLLs.
10018     hardcode_libdir_flag_spec_CXX='-L$libdir'
10019     allow_undefined_flag_CXX=unsupported
10020     always_export_symbols_CXX=no
10021     enable_shared_with_static_runtimes_CXX=yes
10022
10023     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10024       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'
10025       # If the export-symbols file already is a .def file (1st line
10026       # is EXPORTS), use it as is; otherwise, prepend...
10027       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10028         cp $export_symbols $output_objdir/$soname.def;
10029       else
10030         echo EXPORTS > $output_objdir/$soname.def;
10031         cat $export_symbols >> $output_objdir/$soname.def;
10032       fi~
10033       $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'
10034     else
10035       ld_shlibs_CXX=no
10036     fi
10037   ;;
10038       darwin* | rhapsody*)
10039         case "$host_os" in
10040         rhapsody* | darwin1.[012])
10041          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10042          ;;
10043        *) # Darwin 1.3 on
10044          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10045            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10046          else
10047            case ${MACOSX_DEPLOYMENT_TARGET} in
10048              10.[012])
10049                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10050                ;;
10051              10.*)
10052                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10053                ;;
10054            esac
10055          fi
10056          ;;
10057         esac
10058       archive_cmds_need_lc_CXX=no
10059       hardcode_direct_CXX=no
10060       hardcode_automatic_CXX=yes
10061       hardcode_shlibpath_var_CXX=unsupported
10062       whole_archive_flag_spec_CXX=''
10063       link_all_deplibs_CXX=yes
10064
10065     if test "$GXX" = yes ; then
10066       lt_int_apple_cc_single_mod=no
10067       output_verbose_link_cmd='echo'
10068       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10069        lt_int_apple_cc_single_mod=yes
10070       fi
10071       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10072        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10073       else
10074           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10075         fi
10076         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10077         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10078           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10079             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}'
10080           else
10081             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10082           fi
10083             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}'
10084       else
10085       case "$cc_basename" in
10086         xlc*)
10087          output_verbose_link_cmd='echo'
10088           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10089           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10090           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10091           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10092           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}'
10093           ;;
10094        *)
10095          ld_shlibs_CXX=no
10096           ;;
10097       esac
10098       fi
10099         ;;
10100
10101   dgux*)
10102     case $cc_basename in
10103       ec++)
10104         # FIXME: insert proper C++ library support
10105         ld_shlibs_CXX=no
10106         ;;
10107       ghcx)
10108         # Green Hills C++ Compiler
10109         # FIXME: insert proper C++ library support
10110         ld_shlibs_CXX=no
10111         ;;
10112       *)
10113         # FIXME: insert proper C++ library support
10114         ld_shlibs_CXX=no
10115         ;;
10116     esac
10117     ;;
10118   freebsd12*)
10119     # C++ shared libraries reported to be fairly broken before switch to ELF
10120     ld_shlibs_CXX=no
10121     ;;
10122   freebsd-elf*)
10123     archive_cmds_need_lc_CXX=no
10124     ;;
10125   freebsd* | kfreebsd*-gnu)
10126     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10127     # conventions
10128     ld_shlibs_CXX=yes
10129     ;;
10130   gnu*)
10131     ;;
10132   hpux9*)
10133     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10134     hardcode_libdir_separator_CXX=:
10135     export_dynamic_flag_spec_CXX='${wl}-E'
10136     hardcode_direct_CXX=yes
10137     hardcode_minus_L_CXX=yes # Not in the search PATH,
10138                                 # but as the default
10139                                 # location of the library.
10140
10141     case $cc_basename in
10142     CC)
10143       # FIXME: insert proper C++ library support
10144       ld_shlibs_CXX=no
10145       ;;
10146     aCC)
10147       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'
10148       # Commands to make compiler produce verbose output that lists
10149       # what "hidden" libraries, object files and flags are used when
10150       # linking a shared library.
10151       #
10152       # There doesn't appear to be a way to prevent this compiler from
10153       # explicitly linking system object files so we need to strip them
10154       # from the output so that they don't get included in the library
10155       # dependencies.
10156       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'
10157       ;;
10158     *)
10159       if test "$GXX" = yes; then
10160         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'
10161       else
10162         # FIXME: insert proper C++ library support
10163         ld_shlibs_CXX=no
10164       fi
10165       ;;
10166     esac
10167     ;;
10168   hpux10*|hpux11*)
10169     if test $with_gnu_ld = no; then
10170       case "$host_cpu" in
10171       hppa*64*)
10172         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10173         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10174         hardcode_libdir_separator_CXX=:
10175         ;;
10176       ia64*)
10177         hardcode_libdir_flag_spec_CXX='-L$libdir'
10178         ;;
10179       *)
10180         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181         hardcode_libdir_separator_CXX=:
10182         export_dynamic_flag_spec_CXX='${wl}-E'
10183         ;;
10184       esac
10185     fi
10186     case "$host_cpu" in
10187     hppa*64*)
10188       hardcode_direct_CXX=no
10189       hardcode_shlibpath_var_CXX=no
10190       ;;
10191     ia64*)
10192       hardcode_direct_CXX=no
10193       hardcode_shlibpath_var_CXX=no
10194       hardcode_minus_L_CXX=yes # Not in the search PATH,
10195                                               # but as the default
10196                                               # location of the library.
10197       ;;
10198     *)
10199       hardcode_direct_CXX=yes
10200       hardcode_minus_L_CXX=yes # Not in the search PATH,
10201                                               # but as the default
10202                                               # location of the library.
10203       ;;
10204     esac
10205
10206     case $cc_basename in
10207       CC)
10208         # FIXME: insert proper C++ library support
10209         ld_shlibs_CXX=no
10210         ;;
10211       aCC)
10212         case "$host_cpu" in
10213         hppa*64*|ia64*)
10214           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10215           ;;
10216         *)
10217           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10218           ;;
10219         esac
10220         # Commands to make compiler produce verbose output that lists
10221         # what "hidden" libraries, object files and flags are used when
10222         # linking a shared library.
10223         #
10224         # There doesn't appear to be a way to prevent this compiler from
10225         # explicitly linking system object files so we need to strip them
10226         # from the output so that they don't get included in the library
10227         # dependencies.
10228         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'
10229         ;;
10230       *)
10231         if test "$GXX" = yes; then
10232           if test $with_gnu_ld = no; then
10233             case "$host_cpu" in
10234             ia64*|hppa*64*)
10235               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10236               ;;
10237             *)
10238               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'
10239               ;;
10240             esac
10241           fi
10242         else
10243           # FIXME: insert proper C++ library support
10244           ld_shlibs_CXX=no
10245         fi
10246         ;;
10247     esac
10248     ;;
10249   irix5* | irix6*)
10250     case $cc_basename in
10251       CC)
10252         # SGI C++
10253         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'
10254
10255         # Archives containing C++ object files must be created using
10256         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10257         # necessary to make sure instantiated templates are included
10258         # in the archive.
10259         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10260         ;;
10261       *)
10262         if test "$GXX" = yes; then
10263           if test "$with_gnu_ld" = no; then
10264             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'
10265           else
10266             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'
10267           fi
10268         fi
10269         link_all_deplibs_CXX=yes
10270         ;;
10271     esac
10272     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273     hardcode_libdir_separator_CXX=:
10274     ;;
10275   linux*)
10276     case $cc_basename in
10277       KCC)
10278         # Kuck and Associates, Inc. (KAI) C++ Compiler
10279
10280         # KCC will only create a shared library if the output file
10281         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10282         # to its proper name (with version) after linking.
10283         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'
10284         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'
10285         # Commands to make compiler produce verbose output that lists
10286         # what "hidden" libraries, object files and flags are used when
10287         # linking a shared library.
10288         #
10289         # There doesn't appear to be a way to prevent this compiler from
10290         # explicitly linking system object files so we need to strip them
10291         # from the output so that they don't get included in the library
10292         # dependencies.
10293         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'
10294
10295         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10296         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10297
10298         # Archives containing C++ object files must be created using
10299         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10300         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10301         ;;
10302       icpc)
10303         # Intel C++
10304         with_gnu_ld=yes
10305         # version 8.0 and above of icpc choke on multiply defined symbols
10306         # if we add $predep_objects and $postdep_objects, however 7.1 and
10307         # earlier do not add the objects themselves.
10308         case `$CC -V 2>&1` in
10309         *"Version 7."*)
10310           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311           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'
10312           ;;
10313         *)  # Version 8.0 or newer
10314           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316           ;;
10317         esac
10318         archive_cmds_need_lc_CXX=no
10319         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10320         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10321         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10322         ;;
10323       cxx)
10324         # Compaq C++
10325         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10326         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'
10327
10328         runpath_var=LD_RUN_PATH
10329         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10330         hardcode_libdir_separator_CXX=:
10331
10332         # Commands to make compiler produce verbose output that lists
10333         # what "hidden" libraries, object files and flags are used when
10334         # linking a shared library.
10335         #
10336         # There doesn't appear to be a way to prevent this compiler from
10337         # explicitly linking system object files so we need to strip them
10338         # from the output so that they don't get included in the library
10339         # dependencies.
10340         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'
10341         ;;
10342     esac
10343     ;;
10344   lynxos*)
10345     # FIXME: insert proper C++ library support
10346     ld_shlibs_CXX=no
10347     ;;
10348   m88k*)
10349     # FIXME: insert proper C++ library support
10350     ld_shlibs_CXX=no
10351     ;;
10352   mvs*)
10353     case $cc_basename in
10354       cxx)
10355         # FIXME: insert proper C++ library support
10356         ld_shlibs_CXX=no
10357         ;;
10358       *)
10359         # FIXME: insert proper C++ library support
10360         ld_shlibs_CXX=no
10361         ;;
10362     esac
10363     ;;
10364   netbsd*)
10365     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10366       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10367       wlarc=
10368       hardcode_libdir_flag_spec_CXX='-R$libdir'
10369       hardcode_direct_CXX=yes
10370       hardcode_shlibpath_var_CXX=no
10371     fi
10372     # Workaround some broken pre-1.5 toolchains
10373     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10374     ;;
10375   openbsd2*)
10376     # C++ shared libraries are fairly broken
10377     ld_shlibs_CXX=no
10378     ;;
10379   openbsd*)
10380     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10381     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10382     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10383       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10384       export_dynamic_flag_spec_CXX='${wl}-E'
10385       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10386     fi
10387     output_verbose_link_cmd='echo'
10388     ;;
10389   osf3*)
10390     case $cc_basename in
10391       KCC)
10392         # Kuck and Associates, Inc. (KAI) C++ Compiler
10393
10394         # KCC will only create a shared library if the output file
10395         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10396         # to its proper name (with version) after linking.
10397         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'
10398
10399         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10400         hardcode_libdir_separator_CXX=:
10401
10402         # Archives containing C++ object files must be created using
10403         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10404         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10405
10406         ;;
10407       RCC)
10408         # Rational C++ 2.4.1
10409         # FIXME: insert proper C++ library support
10410         ld_shlibs_CXX=no
10411         ;;
10412       cxx)
10413         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10414         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'
10415
10416         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10417         hardcode_libdir_separator_CXX=:
10418
10419         # Commands to make compiler produce verbose output that lists
10420         # what "hidden" libraries, object files and flags are used when
10421         # linking a shared library.
10422         #
10423         # There doesn't appear to be a way to prevent this compiler from
10424         # explicitly linking system object files so we need to strip them
10425         # from the output so that they don't get included in the library
10426         # dependencies.
10427         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'
10428         ;;
10429       *)
10430         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10431           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10432           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'
10433
10434           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10435           hardcode_libdir_separator_CXX=:
10436
10437           # Commands to make compiler produce verbose output that lists
10438           # what "hidden" libraries, object files and flags are used when
10439           # linking a shared library.
10440           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10441
10442         else
10443           # FIXME: insert proper C++ library support
10444           ld_shlibs_CXX=no
10445         fi
10446         ;;
10447     esac
10448     ;;
10449   osf4* | osf5*)
10450     case $cc_basename in
10451       KCC)
10452         # Kuck and Associates, Inc. (KAI) C++ Compiler
10453
10454         # KCC will only create a shared library if the output file
10455         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10456         # to its proper name (with version) after linking.
10457         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'
10458
10459         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10460         hardcode_libdir_separator_CXX=:
10461
10462         # Archives containing C++ object files must be created using
10463         # the KAI C++ compiler.
10464         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10465         ;;
10466       RCC)
10467         # Rational C++ 2.4.1
10468         # FIXME: insert proper C++ library support
10469         ld_shlibs_CXX=no
10470         ;;
10471       cxx)
10472         allow_undefined_flag_CXX=' -expect_unresolved \*'
10473         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'
10474         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10475           echo "-hidden">> $lib.exp~
10476           $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~
10477           $rm $lib.exp'
10478
10479         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10480         hardcode_libdir_separator_CXX=:
10481
10482         # Commands to make compiler produce verbose output that lists
10483         # what "hidden" libraries, object files and flags are used when
10484         # linking a shared library.
10485         #
10486         # There doesn't appear to be a way to prevent this compiler from
10487         # explicitly linking system object files so we need to strip them
10488         # from the output so that they don't get included in the library
10489         # dependencies.
10490         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'
10491         ;;
10492       *)
10493         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10494           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10495          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'
10496
10497           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10498           hardcode_libdir_separator_CXX=:
10499
10500           # Commands to make compiler produce verbose output that lists
10501           # what "hidden" libraries, object files and flags are used when
10502           # linking a shared library.
10503           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10504
10505         else
10506           # FIXME: insert proper C++ library support
10507           ld_shlibs_CXX=no
10508         fi
10509         ;;
10510     esac
10511     ;;
10512   psos*)
10513     # FIXME: insert proper C++ library support
10514     ld_shlibs_CXX=no
10515     ;;
10516   sco*)
10517     archive_cmds_need_lc_CXX=no
10518     case $cc_basename in
10519       CC)
10520         # FIXME: insert proper C++ library support
10521         ld_shlibs_CXX=no
10522         ;;
10523       *)
10524         # FIXME: insert proper C++ library support
10525         ld_shlibs_CXX=no
10526         ;;
10527     esac
10528     ;;
10529   sunos4*)
10530     case $cc_basename in
10531       CC)
10532         # Sun C++ 4.x
10533         # FIXME: insert proper C++ library support
10534         ld_shlibs_CXX=no
10535         ;;
10536       lcc)
10537         # Lucid
10538         # FIXME: insert proper C++ library support
10539         ld_shlibs_CXX=no
10540         ;;
10541       *)
10542         # FIXME: insert proper C++ library support
10543         ld_shlibs_CXX=no
10544         ;;
10545     esac
10546     ;;
10547   solaris*)
10548     case $cc_basename in
10549       CC)
10550         # Sun C++ 4.2, 5.x and Centerline C++
10551         no_undefined_flag_CXX=' -zdefs'
10552         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10553         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10554         $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'
10555
10556         hardcode_libdir_flag_spec_CXX='-R$libdir'
10557         hardcode_shlibpath_var_CXX=no
10558         case $host_os in
10559           solaris2.0-5 | solaris2.0-5.*) ;;
10560           *)
10561             # The C++ compiler is used as linker so we must use $wl
10562             # flag to pass the commands to the underlying system
10563             # linker.
10564             # Supported since Solaris 2.6 (maybe 2.5.1?)
10565             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10566             ;;
10567         esac
10568         link_all_deplibs_CXX=yes
10569
10570         # Commands to make compiler produce verbose output that lists
10571         # what "hidden" libraries, object files and flags are used when
10572         # linking a shared library.
10573         #
10574         # There doesn't appear to be a way to prevent this compiler from
10575         # explicitly linking system object files so we need to strip them
10576         # from the output so that they don't get included in the library
10577         # dependencies.
10578         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'
10579
10580         # Archives containing C++ object files must be created using
10581         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10582         # necessary to make sure instantiated templates are included
10583         # in the archive.
10584         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10585         ;;
10586       gcx)
10587         # Green Hills C++ Compiler
10588         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10589
10590         # The C++ compiler must be used to create the archive.
10591         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10592         ;;
10593       *)
10594         # GNU C++ compiler with Solaris linker
10595         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10596           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10597           if $CC --version | grep -v '^2\.7' > /dev/null; then
10598             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10599             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10600                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10601
10602             # Commands to make compiler produce verbose output that lists
10603             # what "hidden" libraries, object files and flags are used when
10604             # linking a shared library.
10605             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10606           else
10607             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10608             # platform.
10609             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10610             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10611                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10612
10613             # Commands to make compiler produce verbose output that lists
10614             # what "hidden" libraries, object files and flags are used when
10615             # linking a shared library.
10616             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10617           fi
10618
10619           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10620         fi
10621         ;;
10622     esac
10623     ;;
10624   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10625     archive_cmds_need_lc_CXX=no
10626     ;;
10627   tandem*)
10628     case $cc_basename in
10629       NCC)
10630         # NonStop-UX NCC 3.20
10631         # FIXME: insert proper C++ library support
10632         ld_shlibs_CXX=no
10633         ;;
10634       *)
10635         # FIXME: insert proper C++ library support
10636         ld_shlibs_CXX=no
10637         ;;
10638     esac
10639     ;;
10640   vxworks*)
10641     # FIXME: insert proper C++ library support
10642     ld_shlibs_CXX=no
10643     ;;
10644   *)
10645     # FIXME: insert proper C++ library support
10646     ld_shlibs_CXX=no
10647     ;;
10648 esac
10649 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10650 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10651 test "$ld_shlibs_CXX" = no && can_build_shared=no
10652
10653 GCC_CXX="$GXX"
10654 LD_CXX="$LD"
10655
10656
10657 cat > conftest.$ac_ext <<EOF
10658 class Foo
10659 {
10660 public:
10661   Foo (void) { a = 0; }
10662 private:
10663   int a;
10664 };
10665 EOF
10666
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668   (eval $ac_compile) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; then
10672   # Parse the compiler output and extract the necessary
10673   # objects, libraries and library flags.
10674
10675   # Sentinel used to keep track of whether or not we are before
10676   # the conftest object file.
10677   pre_test_object_deps_done=no
10678
10679   # The `*' in the case matches for architectures that use `case' in
10680   # $output_verbose_cmd can trigger glob expansion during the loop
10681   # eval without this substitution.
10682   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10683
10684   for p in `eval $output_verbose_link_cmd`; do
10685     case $p in
10686
10687     -L* | -R* | -l*)
10688        # Some compilers place space between "-{L,R}" and the path.
10689        # Remove the space.
10690        if test $p = "-L" \
10691           || test $p = "-R"; then
10692          prev=$p
10693          continue
10694        else
10695          prev=
10696        fi
10697
10698        if test "$pre_test_object_deps_done" = no; then
10699          case $p in
10700          -L* | -R*)
10701            # Internal compiler library paths should come after those
10702            # provided the user.  The postdeps already come after the
10703            # user supplied libs so there is no need to process them.
10704            if test -z "$compiler_lib_search_path_CXX"; then
10705              compiler_lib_search_path_CXX="${prev}${p}"
10706            else
10707              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10708            fi
10709            ;;
10710          # The "-l" case would never come before the object being
10711          # linked, so don't bother handling this case.
10712          esac
10713        else
10714          if test -z "$postdeps_CXX"; then
10715            postdeps_CXX="${prev}${p}"
10716          else
10717            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10718          fi
10719        fi
10720        ;;
10721
10722     *.$objext)
10723        # This assumes that the test object file only shows up
10724        # once in the compiler output.
10725        if test "$p" = "conftest.$objext"; then
10726          pre_test_object_deps_done=yes
10727          continue
10728        fi
10729
10730        if test "$pre_test_object_deps_done" = no; then
10731          if test -z "$predep_objects_CXX"; then
10732            predep_objects_CXX="$p"
10733          else
10734            predep_objects_CXX="$predep_objects_CXX $p"
10735          fi
10736        else
10737          if test -z "$postdep_objects_CXX"; then
10738            postdep_objects_CXX="$p"
10739          else
10740            postdep_objects_CXX="$postdep_objects_CXX $p"
10741          fi
10742        fi
10743        ;;
10744
10745     *) ;; # Ignore the rest.
10746
10747     esac
10748   done
10749
10750   # Clean up.
10751   rm -f a.out a.exe
10752 else
10753   echo "libtool.m4: error: problem compiling CXX test program"
10754 fi
10755
10756 $rm -f confest.$objext
10757
10758 case " $postdeps_CXX " in
10759 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10760 esac
10761
10762 lt_prog_compiler_wl_CXX=
10763 lt_prog_compiler_pic_CXX=
10764 lt_prog_compiler_static_CXX=
10765
10766 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10768
10769   # C++ specific cases for pic, static, wl, etc.
10770   if test "$GXX" = yes; then
10771     lt_prog_compiler_wl_CXX='-Wl,'
10772     lt_prog_compiler_static_CXX='-static'
10773
10774     case $host_os in
10775     aix*)
10776       # All AIX code is PIC.
10777       if test "$host_cpu" = ia64; then
10778         # AIX 5 now supports IA64 processor
10779         lt_prog_compiler_static_CXX='-Bstatic'
10780       fi
10781       ;;
10782     amigaos*)
10783       # FIXME: we need at least 68020 code to build shared libraries, but
10784       # adding the `-m68020' flag to GCC prevents building anything better,
10785       # like `-m68040'.
10786       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10787       ;;
10788     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10789       # PIC is the default for these OSes.
10790       ;;
10791     mingw* | os2* | pw32*)
10792       # This hack is so that the source file can tell whether it is being
10793       # built for inclusion in a dll (and should export symbols for example).
10794       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10795       ;;
10796     darwin* | rhapsody*)
10797       # PIC is the default on this platform
10798       # Common symbols not allowed in MH_DYLIB files
10799       lt_prog_compiler_pic_CXX='-fno-common'
10800       ;;
10801     *djgpp*)
10802       # DJGPP does not support shared libraries at all
10803       lt_prog_compiler_pic_CXX=
10804       ;;
10805     sysv4*MP*)
10806       if test -d /usr/nec; then
10807         lt_prog_compiler_pic_CXX=-Kconform_pic
10808       fi
10809       ;;
10810     hpux*)
10811       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10812       # not for PA HP-UX.
10813       case "$host_cpu" in
10814       hppa*64*|ia64*)
10815         ;;
10816       *)
10817         lt_prog_compiler_pic_CXX='-fPIC'
10818         ;;
10819       esac
10820       ;;
10821     *)
10822       lt_prog_compiler_pic_CXX='-fPIC'
10823       ;;
10824     esac
10825   else
10826     case $host_os in
10827       aix4* | aix5*)
10828         # All AIX code is PIC.
10829         if test "$host_cpu" = ia64; then
10830           # AIX 5 now supports IA64 processor
10831           lt_prog_compiler_static_CXX='-Bstatic'
10832         else
10833           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10834         fi
10835         ;;
10836       chorus*)
10837         case $cc_basename in
10838         cxch68)
10839           # Green Hills C++ Compiler
10840           # _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"
10841           ;;
10842         esac
10843         ;;
10844        darwin*)
10845          # PIC is the default on this platform
10846          # Common symbols not allowed in MH_DYLIB files
10847          case "$cc_basename" in
10848            xlc*)
10849            lt_prog_compiler_pic_CXX='-qnocommon'
10850            lt_prog_compiler_wl_CXX='-Wl,'
10851            ;;
10852          esac
10853        ;;
10854       dgux*)
10855         case $cc_basename in
10856           ec++)
10857             lt_prog_compiler_pic_CXX='-KPIC'
10858             ;;
10859           ghcx)
10860             # Green Hills C++ Compiler
10861             lt_prog_compiler_pic_CXX='-pic'
10862             ;;
10863           *)
10864             ;;
10865         esac
10866         ;;
10867       freebsd* | kfreebsd*-gnu)
10868         # FreeBSD uses GNU C++
10869         ;;
10870       hpux9* | hpux10* | hpux11*)
10871         case $cc_basename in
10872           CC)
10873             lt_prog_compiler_wl_CXX='-Wl,'
10874             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10875             if test "$host_cpu" != ia64; then
10876               lt_prog_compiler_pic_CXX='+Z'
10877             fi
10878             ;;
10879           aCC)
10880             lt_prog_compiler_wl_CXX='-Wl,'
10881             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10882             case "$host_cpu" in
10883             hppa*64*|ia64*)
10884               # +Z the default
10885               ;;
10886             *)
10887               lt_prog_compiler_pic_CXX='+Z'
10888               ;;
10889             esac
10890             ;;
10891           *)
10892             ;;
10893         esac
10894         ;;
10895       irix5* | irix6* | nonstopux*)
10896         case $cc_basename in
10897           CC)
10898             lt_prog_compiler_wl_CXX='-Wl,'
10899             lt_prog_compiler_static_CXX='-non_shared'
10900             # CC pic flag -KPIC is the default.
10901             ;;
10902           *)
10903             ;;
10904         esac
10905         ;;
10906       linux*)
10907         case $cc_basename in
10908           KCC)
10909             # KAI C++ Compiler
10910             lt_prog_compiler_wl_CXX='--backend -Wl,'
10911             lt_prog_compiler_pic_CXX='-fPIC'
10912             ;;
10913           icpc)
10914             # Intel C++
10915             lt_prog_compiler_wl_CXX='-Wl,'
10916             lt_prog_compiler_pic_CXX='-KPIC'
10917             lt_prog_compiler_static_CXX='-static'
10918             ;;
10919           cxx)
10920             # Compaq C++
10921             # Make sure the PIC flag is empty.  It appears that all Alpha
10922             # Linux and Compaq Tru64 Unix objects are PIC.
10923             lt_prog_compiler_pic_CXX=
10924             lt_prog_compiler_static_CXX='-non_shared'
10925             ;;
10926           *)
10927             ;;
10928         esac
10929         ;;
10930       lynxos*)
10931         ;;
10932       m88k*)
10933         ;;
10934       mvs*)
10935         case $cc_basename in
10936           cxx)
10937             lt_prog_compiler_pic_CXX='-W c,exportall'
10938             ;;
10939           *)
10940             ;;
10941         esac
10942         ;;
10943       netbsd*)
10944         ;;
10945       osf3* | osf4* | osf5*)
10946         case $cc_basename in
10947           KCC)
10948             lt_prog_compiler_wl_CXX='--backend -Wl,'
10949             ;;
10950           RCC)
10951             # Rational C++ 2.4.1
10952             lt_prog_compiler_pic_CXX='-pic'
10953             ;;
10954           cxx)
10955             # Digital/Compaq C++
10956             lt_prog_compiler_wl_CXX='-Wl,'
10957             # Make sure the PIC flag is empty.  It appears that all Alpha
10958             # Linux and Compaq Tru64 Unix objects are PIC.
10959             lt_prog_compiler_pic_CXX=
10960             lt_prog_compiler_static_CXX='-non_shared'
10961             ;;
10962           *)
10963             ;;
10964         esac
10965         ;;
10966       psos*)
10967         ;;
10968       sco*)
10969         case $cc_basename in
10970           CC)
10971             lt_prog_compiler_pic_CXX='-fPIC'
10972             ;;
10973           *)
10974             ;;
10975         esac
10976         ;;
10977       solaris*)
10978         case $cc_basename in
10979           CC)
10980             # Sun C++ 4.2, 5.x and Centerline C++
10981             lt_prog_compiler_pic_CXX='-KPIC'
10982             lt_prog_compiler_static_CXX='-Bstatic'
10983             lt_prog_compiler_wl_CXX='-Qoption ld '
10984             ;;
10985           gcx)
10986             # Green Hills C++ Compiler
10987             lt_prog_compiler_pic_CXX='-PIC'
10988             ;;
10989           *)
10990             ;;
10991         esac
10992         ;;
10993       sunos4*)
10994         case $cc_basename in
10995           CC)
10996             # Sun C++ 4.x
10997             lt_prog_compiler_pic_CXX='-pic'
10998             lt_prog_compiler_static_CXX='-Bstatic'
10999             ;;
11000           lcc)
11001             # Lucid
11002             lt_prog_compiler_pic_CXX='-pic'
11003             ;;
11004           *)
11005             ;;
11006         esac
11007         ;;
11008       tandem*)
11009         case $cc_basename in
11010           NCC)
11011             # NonStop-UX NCC 3.20
11012             lt_prog_compiler_pic_CXX='-KPIC'
11013             ;;
11014           *)
11015             ;;
11016         esac
11017         ;;
11018       unixware*)
11019         ;;
11020       vxworks*)
11021         ;;
11022       *)
11023         lt_prog_compiler_can_build_shared_CXX=no
11024         ;;
11025     esac
11026   fi
11027
11028 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11029 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11030
11031 #
11032 # Check to make sure the PIC flag actually works.
11033 #
11034 if test -n "$lt_prog_compiler_pic_CXX"; then
11035
11036 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11037 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11038 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041   lt_prog_compiler_pic_works_CXX=no
11042   ac_outfile=conftest.$ac_objext
11043    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11044    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11045    # Insert the option either (1) after the last *FLAGS variable, or
11046    # (2) before a word containing "conftest.", or (3) at the end.
11047    # Note that $ac_compile itself does not contain backslashes and begins
11048    # with a dollar sign (not a hyphen), so the echo should work correctly.
11049    # The option is referenced via a variable to avoid confusing sed.
11050    lt_compile=`echo "$ac_compile" | $SED \
11051    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11053    -e 's:$: $lt_compiler_flag:'`
11054    (eval echo "\"\$as_me:11054: $lt_compile\"" >&5)
11055    (eval "$lt_compile" 2>conftest.err)
11056    ac_status=$?
11057    cat conftest.err >&5
11058    echo "$as_me:11058: \$? = $ac_status" >&5
11059    if (exit $ac_status) && test -s "$ac_outfile"; then
11060      # The compiler can only warn and ignore the option if not recognized
11061      # So say no if there are warnings
11062      if test ! -s conftest.err; then
11063        lt_prog_compiler_pic_works_CXX=yes
11064      fi
11065    fi
11066    $rm conftest*
11067
11068 fi
11069 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11070 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11071
11072 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11073     case $lt_prog_compiler_pic_CXX in
11074      "" | " "*) ;;
11075      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11076      esac
11077 else
11078     lt_prog_compiler_pic_CXX=
11079      lt_prog_compiler_can_build_shared_CXX=no
11080 fi
11081
11082 fi
11083 case "$host_os" in
11084   # For platforms which do not support PIC, -DPIC is meaningless:
11085   *djgpp*)
11086     lt_prog_compiler_pic_CXX=
11087     ;;
11088   *)
11089     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11090     ;;
11091 esac
11092
11093 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11095 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   lt_cv_prog_compiler_c_o_CXX=no
11099    $rm -r conftest 2>/dev/null
11100    mkdir conftest
11101    cd conftest
11102    mkdir out
11103    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11104
11105    lt_compiler_flag="-o out/conftest2.$ac_objext"
11106    # Insert the option either (1) after the last *FLAGS variable, or
11107    # (2) before a word containing "conftest.", or (3) at the end.
11108    # Note that $ac_compile itself does not contain backslashes and begins
11109    # with a dollar sign (not a hyphen), so the echo should work correctly.
11110    lt_compile=`echo "$ac_compile" | $SED \
11111    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11113    -e 's:$: $lt_compiler_flag:'`
11114    (eval echo "\"\$as_me:11114: $lt_compile\"" >&5)
11115    (eval "$lt_compile" 2>out/conftest.err)
11116    ac_status=$?
11117    cat out/conftest.err >&5
11118    echo "$as_me:11118: \$? = $ac_status" >&5
11119    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11120    then
11121      # The compiler can only warn and ignore the option if not recognized
11122      # So say no if there are warnings
11123      if test ! -s out/conftest.err; then
11124        lt_cv_prog_compiler_c_o_CXX=yes
11125      fi
11126    fi
11127    chmod u+w .
11128    $rm conftest*
11129    # SGI C++ compiler will create directory out/ii_files/ for
11130    # template instantiation
11131    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11132    $rm out/* && rmdir out
11133    cd ..
11134    rmdir conftest
11135    $rm conftest*
11136
11137 fi
11138 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11140
11141
11142 hard_links="nottested"
11143 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11144   # do not overwrite the value of need_locks provided by the user
11145   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11147   hard_links=yes
11148   $rm conftest*
11149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11150   touch conftest.a
11151   ln conftest.a conftest.b 2>&5 || hard_links=no
11152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11153   echo "$as_me:$LINENO: result: $hard_links" >&5
11154 echo "${ECHO_T}$hard_links" >&6
11155   if test "$hard_links" = no; then
11156     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11158     need_locks=warn
11159   fi
11160 else
11161   need_locks=no
11162 fi
11163
11164 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11166
11167   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11168   case $host_os in
11169   aix4* | aix5*)
11170     # If we're using GNU nm, then we don't want the "-C" option.
11171     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11172     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11173       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'
11174     else
11175       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'
11176     fi
11177     ;;
11178   pw32*)
11179     export_symbols_cmds_CXX="$ltdll_cmds"
11180   ;;
11181   cygwin* | mingw*)
11182     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11183   ;;
11184   *)
11185     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11186   ;;
11187   esac
11188
11189 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11190 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11191 test "$ld_shlibs_CXX" = no && can_build_shared=no
11192
11193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11194 if test "$GCC" = yes; then
11195   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11196 fi
11197
11198 #
11199 # Do we need to explicitly link libc?
11200 #
11201 case "x$archive_cmds_need_lc_CXX" in
11202 x|xyes)
11203   # Assume -lc should be added
11204   archive_cmds_need_lc_CXX=yes
11205
11206   if test "$enable_shared" = yes && test "$GCC" = yes; then
11207     case $archive_cmds_CXX in
11208     *'~'*)
11209       # FIXME: we may have to deal with multi-command sequences.
11210       ;;
11211     '$CC '*)
11212       # Test whether the compiler implicitly links with -lc since on some
11213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11214       # to ld, don't add -lc before -lgcc.
11215       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11217       $rm conftest*
11218       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11219
11220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221   (eval $ac_compile) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } 2>conftest.err; then
11225         soname=conftest
11226         lib=conftest
11227         libobjs=conftest.$ac_objext
11228         deplibs=
11229         wl=$lt_prog_compiler_wl_CXX
11230         compiler_flags=-v
11231         linker_flags=-v
11232         verstring=
11233         output_objdir=.
11234         libname=conftest
11235         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11236         allow_undefined_flag_CXX=
11237         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11238   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }
11242         then
11243           archive_cmds_need_lc_CXX=no
11244         else
11245           archive_cmds_need_lc_CXX=yes
11246         fi
11247         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11248       else
11249         cat conftest.err 1>&5
11250       fi
11251       $rm conftest*
11252       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11253 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11254       ;;
11255     esac
11256   fi
11257   ;;
11258 esac
11259
11260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11262 library_names_spec=
11263 libname_spec='lib$name'
11264 soname_spec=
11265 shrext_cmds=".so"
11266 postinstall_cmds=
11267 postuninstall_cmds=
11268 finish_cmds=
11269 finish_eval=
11270 shlibpath_var=
11271 shlibpath_overrides_runpath=unknown
11272 version_type=none
11273 dynamic_linker="$host_os ld.so"
11274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11275 if test "$GCC" = yes; then
11276   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11277   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11278     # if the path contains ";" then we assume it to be the separator
11279     # otherwise default to the standard path separator (i.e. ":") - it is
11280     # assumed that no part of a normal pathname contains ";" but that should
11281     # okay in the real world where ";" in dirpaths is itself problematic.
11282     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11283   else
11284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11285   fi
11286 else
11287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288 fi
11289 need_lib_prefix=unknown
11290 hardcode_into_libs=no
11291
11292 # when you set need_version to no, make sure it does not cause -set_version
11293 # flags to be left without arguments
11294 need_version=unknown
11295
11296 case $host_os in
11297 aix3*)
11298   version_type=linux
11299   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11300   shlibpath_var=LIBPATH
11301
11302   # AIX 3 has no versioning support, so we append a major version to the name.
11303   soname_spec='${libname}${release}${shared_ext}$major'
11304   ;;
11305
11306 aix4* | aix5*)
11307   version_type=linux
11308   need_lib_prefix=no
11309   need_version=no
11310   hardcode_into_libs=yes
11311   if test "$host_cpu" = ia64; then
11312     # AIX 5 supports IA64
11313     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11314     shlibpath_var=LD_LIBRARY_PATH
11315   else
11316     # With GCC up to 2.95.x, collect2 would create an import file
11317     # for dependence libraries.  The import file would start with
11318     # the line `#! .'.  This would cause the generated library to
11319     # depend on `.', always an invalid library.  This was fixed in
11320     # development snapshots of GCC prior to 3.0.
11321     case $host_os in
11322       aix4 | aix4.[01] | aix4.[01].*)
11323       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11324            echo ' yes '
11325            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11326         :
11327       else
11328         can_build_shared=no
11329       fi
11330       ;;
11331     esac
11332     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11333     # soname into executable. Probably we can add versioning support to
11334     # collect2, so additional links can be useful in future.
11335     if test "$aix_use_runtimelinking" = yes; then
11336       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337       # instead of lib<name>.a to let people know that these are not
11338       # typical AIX shared libraries.
11339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340     else
11341       # We preserve .a as extension for shared libraries through AIX4.2
11342       # and later when we are not doing run time linking.
11343       library_names_spec='${libname}${release}.a $libname.a'
11344       soname_spec='${libname}${release}${shared_ext}$major'
11345     fi
11346     shlibpath_var=LIBPATH
11347   fi
11348   ;;
11349
11350 amigaos*)
11351   library_names_spec='$libname.ixlibrary $libname.a'
11352   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11353   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'
11354   ;;
11355
11356 beos*)
11357   library_names_spec='${libname}${shared_ext}'
11358   dynamic_linker="$host_os ld.so"
11359   shlibpath_var=LIBRARY_PATH
11360   ;;
11361
11362 bsdi[45]*)
11363   version_type=linux
11364   need_version=no
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366   soname_spec='${libname}${release}${shared_ext}$major'
11367   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11368   shlibpath_var=LD_LIBRARY_PATH
11369   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11370   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11371   # the default ld.so.conf also contains /usr/contrib/lib and
11372   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11373   # libtool to hard-code these into programs
11374   ;;
11375
11376 cygwin* | mingw* | pw32*)
11377   version_type=windows
11378   shrext_cmds=".dll"
11379   need_version=no
11380   need_lib_prefix=no
11381
11382   case $GCC,$host_os in
11383   yes,cygwin* | yes,mingw* | yes,pw32*)
11384     library_names_spec='$libname.dll.a'
11385     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11386     postinstall_cmds='base_file=`basename \${file}`~
11387       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11388       dldir=$destdir/`dirname \$dlpath`~
11389       test -d \$dldir || mkdir -p \$dldir~
11390       $install_prog $dir/$dlname \$dldir/$dlname'
11391     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392       dlpath=$dir/\$dldll~
11393        $rm \$dlpath'
11394     shlibpath_overrides_runpath=yes
11395
11396     case $host_os in
11397     cygwin*)
11398       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11399       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11400       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11401       ;;
11402     mingw*)
11403       # MinGW DLLs use traditional 'lib' prefix
11404       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11406       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11407         # It is most probably a Windows format PATH printed by
11408         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11409         # path with ; separators, and with drive letters. We can handle the
11410         # drive letters (cygwin fileutils understands them), so leave them,
11411         # especially as we might pass files found there to a mingw objdump,
11412         # which wouldn't understand a cygwinified path. Ahh.
11413         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11414       else
11415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11416       fi
11417       ;;
11418     pw32*)
11419       # pw32 DLLs use 'pw' prefix rather than 'lib'
11420       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11421       ;;
11422     esac
11423     ;;
11424
11425   *)
11426     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11427     ;;
11428   esac
11429   dynamic_linker='Win32 ld.exe'
11430   # FIXME: first we should search . and the directory the executable is in
11431   shlibpath_var=PATH
11432   ;;
11433
11434 darwin* | rhapsody*)
11435   dynamic_linker="$host_os dyld"
11436   version_type=darwin
11437   need_lib_prefix=no
11438   need_version=no
11439   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11440   soname_spec='${libname}${release}${major}$shared_ext'
11441   shlibpath_overrides_runpath=yes
11442   shlibpath_var=DYLD_LIBRARY_PATH
11443   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11444   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11445   if test "$GCC" = yes; then
11446     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"`
11447   else
11448     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11449   fi
11450   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11451   ;;
11452
11453 dgux*)
11454   version_type=linux
11455   need_lib_prefix=no
11456   need_version=no
11457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11458   soname_spec='${libname}${release}${shared_ext}$major'
11459   shlibpath_var=LD_LIBRARY_PATH
11460   ;;
11461
11462 freebsd1*)
11463   dynamic_linker=no
11464   ;;
11465
11466 kfreebsd*-gnu)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=no
11474   hardcode_into_libs=yes
11475   dynamic_linker='GNU ld.so'
11476   ;;
11477
11478 freebsd*)
11479   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11480   version_type=freebsd-$objformat
11481   case $version_type in
11482     freebsd-elf*)
11483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11484       need_version=no
11485       need_lib_prefix=no
11486       ;;
11487     freebsd-*)
11488       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11489       need_version=yes
11490       ;;
11491   esac
11492   shlibpath_var=LD_LIBRARY_PATH
11493   case $host_os in
11494   freebsd2*)
11495     shlibpath_overrides_runpath=yes
11496     ;;
11497   freebsd3.01* | freebsdelf3.01*)
11498     shlibpath_overrides_runpath=yes
11499     hardcode_into_libs=yes
11500     ;;
11501   *) # from 3.2 on
11502     shlibpath_overrides_runpath=no
11503     hardcode_into_libs=yes
11504     ;;
11505   esac
11506   ;;
11507
11508 gnu*)
11509   version_type=linux
11510   need_lib_prefix=no
11511   need_version=no
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11513   soname_spec='${libname}${release}${shared_ext}$major'
11514   shlibpath_var=LD_LIBRARY_PATH
11515   hardcode_into_libs=yes
11516   ;;
11517
11518 hpux9* | hpux10* | hpux11*)
11519   # Give a soname corresponding to the major version so that dld.sl refuses to
11520   # link against other versions.
11521   version_type=sunos
11522   need_lib_prefix=no
11523   need_version=no
11524   case "$host_cpu" in
11525   ia64*)
11526     shrext_cmds='.so'
11527     hardcode_into_libs=yes
11528     dynamic_linker="$host_os dld.so"
11529     shlibpath_var=LD_LIBRARY_PATH
11530     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532     soname_spec='${libname}${release}${shared_ext}$major'
11533     if test "X$HPUX_IA64_MODE" = X32; then
11534       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11535     else
11536       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11537     fi
11538     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11539     ;;
11540    hppa*64*)
11541      shrext_cmds='.sl'
11542      hardcode_into_libs=yes
11543      dynamic_linker="$host_os dld.sl"
11544      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11545      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547      soname_spec='${libname}${release}${shared_ext}$major'
11548      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11549      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11550      ;;
11551    *)
11552     shrext_cmds='.sl'
11553     dynamic_linker="$host_os dld.sl"
11554     shlibpath_var=SHLIB_PATH
11555     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557     soname_spec='${libname}${release}${shared_ext}$major'
11558     ;;
11559   esac
11560   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11561   postinstall_cmds='chmod 555 $lib'
11562   ;;
11563
11564 irix5* | irix6* | nonstopux*)
11565   case $host_os in
11566     nonstopux*) version_type=nonstopux ;;
11567     *)
11568         if test "$lt_cv_prog_gnu_ld" = yes; then
11569                 version_type=linux
11570         else
11571                 version_type=irix
11572         fi ;;
11573   esac
11574   need_lib_prefix=no
11575   need_version=no
11576   soname_spec='${libname}${release}${shared_ext}$major'
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11578   case $host_os in
11579   irix5* | nonstopux*)
11580     libsuff= shlibsuff=
11581     ;;
11582   *)
11583     case $LD in # libtool.m4 will add one of these switches to LD
11584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11585       libsuff= shlibsuff= libmagic=32-bit;;
11586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11587       libsuff=32 shlibsuff=N32 libmagic=N32;;
11588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11590     *) libsuff= shlibsuff= libmagic=never-match;;
11591     esac
11592     ;;
11593   esac
11594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11595   shlibpath_overrides_runpath=no
11596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11598   hardcode_into_libs=yes
11599   ;;
11600
11601 # No shared lib support for Linux oldld, aout, or coff.
11602 linux*oldld* | linux*aout* | linux*coff*)
11603   dynamic_linker=no
11604   ;;
11605
11606 # This must be Linux ELF.
11607 linux*)
11608   version_type=linux
11609   need_lib_prefix=no
11610   need_version=no
11611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612   soname_spec='${libname}${release}${shared_ext}$major'
11613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614   shlibpath_var=LD_LIBRARY_PATH
11615   shlibpath_overrides_runpath=no
11616   # This implies no fast_install, which is unacceptable.
11617   # Some rework will be needed to allow for fast_install
11618   # before this can be enabled.
11619   hardcode_into_libs=yes
11620
11621   # Append ld.so.conf contents to the search path
11622   if test -f /etc/ld.so.conf; then
11623     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11625   fi
11626
11627   # We used to test for /lib/ld.so.1 and disable shared libraries on
11628   # powerpc, because MkLinux only supported shared libraries with the
11629   # GNU dynamic linker.  Since this was broken with cross compilers,
11630   # most powerpc-linux boxes support dynamic linking these days and
11631   # people can always --disable-shared, the test was removed, and we
11632   # assume the GNU/Linux dynamic linker is in use.
11633   dynamic_linker='GNU/Linux ld.so'
11634   ;;
11635
11636 knetbsd*-gnu)
11637   version_type=linux
11638   need_lib_prefix=no
11639   need_version=no
11640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11641   soname_spec='${libname}${release}${shared_ext}$major'
11642   shlibpath_var=LD_LIBRARY_PATH
11643   shlibpath_overrides_runpath=no
11644   hardcode_into_libs=yes
11645   dynamic_linker='GNU ld.so'
11646   ;;
11647
11648 netbsd*)
11649   version_type=sunos
11650   need_lib_prefix=no
11651   need_version=no
11652   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655     dynamic_linker='NetBSD (a.out) ld.so'
11656   else
11657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658     soname_spec='${libname}${release}${shared_ext}$major'
11659     dynamic_linker='NetBSD ld.elf_so'
11660   fi
11661   shlibpath_var=LD_LIBRARY_PATH
11662   shlibpath_overrides_runpath=yes
11663   hardcode_into_libs=yes
11664   ;;
11665
11666 newsos6)
11667   version_type=linux
11668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669   shlibpath_var=LD_LIBRARY_PATH
11670   shlibpath_overrides_runpath=yes
11671   ;;
11672
11673 nto-qnx*)
11674   version_type=linux
11675   need_lib_prefix=no
11676   need_version=no
11677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678   soname_spec='${libname}${release}${shared_ext}$major'
11679   shlibpath_var=LD_LIBRARY_PATH
11680   shlibpath_overrides_runpath=yes
11681   ;;
11682
11683 openbsd*)
11684   version_type=sunos
11685   need_lib_prefix=no
11686   need_version=no
11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11689   shlibpath_var=LD_LIBRARY_PATH
11690   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11691     case $host_os in
11692       openbsd2.[89] | openbsd2.[89].*)
11693         shlibpath_overrides_runpath=no
11694         ;;
11695       *)
11696         shlibpath_overrides_runpath=yes
11697         ;;
11698       esac
11699   else
11700     shlibpath_overrides_runpath=yes
11701   fi
11702   ;;
11703
11704 os2*)
11705   libname_spec='$name'
11706   shrext_cmds=".dll"
11707   need_lib_prefix=no
11708   library_names_spec='$libname${shared_ext} $libname.a'
11709   dynamic_linker='OS/2 ld.exe'
11710   shlibpath_var=LIBPATH
11711   ;;
11712
11713 osf3* | osf4* | osf5*)
11714   version_type=osf
11715   need_lib_prefix=no
11716   need_version=no
11717   soname_spec='${libname}${release}${shared_ext}$major'
11718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719   shlibpath_var=LD_LIBRARY_PATH
11720   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11721   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11722   ;;
11723
11724 sco3.2v5*)
11725   version_type=osf
11726   soname_spec='${libname}${release}${shared_ext}$major'
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   ;;
11730
11731 solaris*)
11732   version_type=linux
11733   need_lib_prefix=no
11734   need_version=no
11735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736   soname_spec='${libname}${release}${shared_ext}$major'
11737   shlibpath_var=LD_LIBRARY_PATH
11738   shlibpath_overrides_runpath=yes
11739   hardcode_into_libs=yes
11740   # ldd complains unless libraries are executable
11741   postinstall_cmds='chmod +x $lib'
11742   ;;
11743
11744 sunos4*)
11745   version_type=sunos
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   shlibpath_overrides_runpath=yes
11750   if test "$with_gnu_ld" = yes; then
11751     need_lib_prefix=no
11752   fi
11753   need_version=yes
11754   ;;
11755
11756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11757   version_type=linux
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759   soname_spec='${libname}${release}${shared_ext}$major'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   case $host_vendor in
11762     sni)
11763       shlibpath_overrides_runpath=no
11764       need_lib_prefix=no
11765       export_dynamic_flag_spec='${wl}-Blargedynsym'
11766       runpath_var=LD_RUN_PATH
11767       ;;
11768     siemens)
11769       need_lib_prefix=no
11770       ;;
11771     motorola)
11772       need_lib_prefix=no
11773       need_version=no
11774       shlibpath_overrides_runpath=no
11775       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11776       ;;
11777   esac
11778   ;;
11779
11780 sysv4*MP*)
11781   if test -d /usr/nec ;then
11782     version_type=linux
11783     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11784     soname_spec='$libname${shared_ext}.$major'
11785     shlibpath_var=LD_LIBRARY_PATH
11786   fi
11787   ;;
11788
11789 uts4*)
11790   version_type=linux
11791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792   soname_spec='${libname}${release}${shared_ext}$major'
11793   shlibpath_var=LD_LIBRARY_PATH
11794   ;;
11795
11796 *)
11797   dynamic_linker=no
11798   ;;
11799 esac
11800 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11801 echo "${ECHO_T}$dynamic_linker" >&6
11802 test "$dynamic_linker" = no && can_build_shared=no
11803
11804 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11806 hardcode_action_CXX=
11807 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11808    test -n "$runpath_var_CXX" || \
11809    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11810
11811   # We can hardcode non-existant directories.
11812   if test "$hardcode_direct_CXX" != no &&
11813      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11814      # have to relink, otherwise we might link with an installed library
11815      # when we should be linking with a yet-to-be-installed one
11816      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11817      test "$hardcode_minus_L_CXX" != no; then
11818     # Linking always hardcodes the temporary library directory.
11819     hardcode_action_CXX=relink
11820   else
11821     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11822     hardcode_action_CXX=immediate
11823   fi
11824 else
11825   # We cannot hardcode anything, or else we can only hardcode existing
11826   # directories.
11827   hardcode_action_CXX=unsupported
11828 fi
11829 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11830 echo "${ECHO_T}$hardcode_action_CXX" >&6
11831
11832 if test "$hardcode_action_CXX" = relink; then
11833   # Fast installation is not supported
11834   enable_fast_install=no
11835 elif test "$shlibpath_overrides_runpath" = yes ||
11836      test "$enable_shared" = no; then
11837   # Fast installation is not necessary
11838   enable_fast_install=needless
11839 fi
11840
11841 striplib=
11842 old_striplib=
11843 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11846   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11847   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11848   echo "$as_me:$LINENO: result: yes" >&5
11849 echo "${ECHO_T}yes" >&6
11850 else
11851 # FIXME - insert some real tests, host_os isn't really good enough
11852   case $host_os in
11853    darwin*)
11854        if test -n "$STRIP" ; then
11855          striplib="$STRIP -x"
11856          echo "$as_me:$LINENO: result: yes" >&5
11857 echo "${ECHO_T}yes" >&6
11858        else
11859   echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11861 fi
11862        ;;
11863    *)
11864   echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11866     ;;
11867   esac
11868 fi
11869
11870 if test "x$enable_dlopen" != xyes; then
11871   enable_dlopen=unknown
11872   enable_dlopen_self=unknown
11873   enable_dlopen_self_static=unknown
11874 else
11875   lt_cv_dlopen=no
11876   lt_cv_dlopen_libs=
11877
11878   case $host_os in
11879   beos*)
11880     lt_cv_dlopen="load_add_on"
11881     lt_cv_dlopen_libs=
11882     lt_cv_dlopen_self=yes
11883     ;;
11884
11885   mingw* | pw32*)
11886     lt_cv_dlopen="LoadLibrary"
11887     lt_cv_dlopen_libs=
11888    ;;
11889
11890   cygwin*)
11891     lt_cv_dlopen="dlopen"
11892     lt_cv_dlopen_libs=
11893    ;;
11894
11895   darwin*)
11896   # if libdl is installed we need to link against it
11897     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   ac_check_lib_save_LIBS=$LIBS
11903 LIBS="-ldl  $LIBS"
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h.  */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h.  */
11910
11911 /* Override any gcc2 internal prototype to avoid an error.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 /* We use char because int might match the return type of a gcc2
11916    builtin and then its argument prototype would still apply.  */
11917 char dlopen ();
11918 int
11919 main ()
11920 {
11921 dlopen ();
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928   (eval $ac_link) 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
11932   cat conftest.err >&5
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } &&
11935          { ac_try='test -z "$ac_cxx_werror_flag"
11936                          || test ! -s conftest.err'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_cv_lib_dl_dlopen=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_cv_lib_dl_dlopen=no
11954 fi
11955 rm -f conftest.err conftest.$ac_objext \
11956       conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11958 fi
11959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11961 if test $ac_cv_lib_dl_dlopen = yes; then
11962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11963 else
11964
11965     lt_cv_dlopen="dyld"
11966     lt_cv_dlopen_libs=
11967     lt_cv_dlopen_self=yes
11968
11969 fi
11970
11971    ;;
11972
11973   *)
11974     echo "$as_me:$LINENO: checking for shl_load" >&5
11975 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11976 if test "${ac_cv_func_shl_load+set}" = set; then
11977   echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979   cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h.  */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h.  */
11985 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11987 #define shl_load innocuous_shl_load
11988
11989 /* System header to define __stub macros and hopefully few prototypes,
11990     which can conflict with char shl_load (); below.
11991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11992     <limits.h> exists even on freestanding compilers.  */
11993
11994 #ifdef __STDC__
11995 # include <limits.h>
11996 #else
11997 # include <assert.h>
11998 #endif
11999
12000 #undef shl_load
12001
12002 /* Override any gcc2 internal prototype to avoid an error.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 {
12006 #endif
12007 /* We use char because int might match the return type of a gcc2
12008    builtin and then its argument prototype would still apply.  */
12009 char shl_load ();
12010 /* The GNU C library defines this for functions which it implements
12011     to always fail with ENOSYS.  Some functions are actually named
12012     something starting with __ and the normal name is an alias.  */
12013 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12014 choke me
12015 #else
12016 char (*f) () = shl_load;
12017 #endif
12018 #ifdef __cplusplus
12019 }
12020 #endif
12021
12022 int
12023 main ()
12024 {
12025 return f != shl_load;
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032   (eval $ac_link) 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -z "$ac_cxx_werror_flag"
12040                          || test ! -s conftest.err'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest$ac_exeext'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   ac_cv_func_shl_load=yes
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 ac_cv_func_shl_load=no
12058 fi
12059 rm -f conftest.err conftest.$ac_objext \
12060       conftest$ac_exeext conftest.$ac_ext
12061 fi
12062 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12063 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12064 if test $ac_cv_func_shl_load = yes; then
12065   lt_cv_dlopen="shl_load"
12066 else
12067   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12068 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12069 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072   ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-ldld  $LIBS"
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h.  */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h.  */
12080
12081 /* Override any gcc2 internal prototype to avoid an error.  */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 /* We use char because int might match the return type of a gcc2
12086    builtin and then its argument prototype would still apply.  */
12087 char shl_load ();
12088 int
12089 main ()
12090 {
12091 shl_load ();
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098   (eval $ac_link) 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -z "$ac_cxx_werror_flag"
12106                          || test ! -s conftest.err'
12107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108   (eval $ac_try) 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); }; } &&
12112          { ac_try='test -s conftest$ac_exeext'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; }; then
12118   ac_cv_lib_dld_shl_load=yes
12119 else
12120   echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12122
12123 ac_cv_lib_dld_shl_load=no
12124 fi
12125 rm -f conftest.err conftest.$ac_objext \
12126       conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12128 fi
12129 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12130 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12131 if test $ac_cv_lib_dld_shl_load = yes; then
12132   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12133 else
12134   echo "$as_me:$LINENO: checking for dlopen" >&5
12135 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12136 if test "${ac_cv_func_dlopen+set}" = set; then
12137   echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139   cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12147 #define dlopen innocuous_dlopen
12148
12149 /* System header to define __stub macros and hopefully few prototypes,
12150     which can conflict with char dlopen (); below.
12151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152     <limits.h> exists even on freestanding compilers.  */
12153
12154 #ifdef __STDC__
12155 # include <limits.h>
12156 #else
12157 # include <assert.h>
12158 #endif
12159
12160 #undef dlopen
12161
12162 /* Override any gcc2 internal prototype to avoid an error.  */
12163 #ifdef __cplusplus
12164 extern "C"
12165 {
12166 #endif
12167 /* We use char because int might match the return type of a gcc2
12168    builtin and then its argument prototype would still apply.  */
12169 char dlopen ();
12170 /* The GNU C library defines this for functions which it implements
12171     to always fail with ENOSYS.  Some functions are actually named
12172     something starting with __ and the normal name is an alias.  */
12173 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12174 choke me
12175 #else
12176 char (*f) () = dlopen;
12177 #endif
12178 #ifdef __cplusplus
12179 }
12180 #endif
12181
12182 int
12183 main ()
12184 {
12185 return f != dlopen;
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192   (eval $ac_link) 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } &&
12199          { ac_try='test -z "$ac_cxx_werror_flag"
12200                          || test ! -s conftest.err'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   ac_cv_func_dlopen=yes
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 ac_cv_func_dlopen=no
12218 fi
12219 rm -f conftest.err conftest.$ac_objext \
12220       conftest$ac_exeext conftest.$ac_ext
12221 fi
12222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224 if test $ac_cv_func_dlopen = yes; then
12225   lt_cv_dlopen="dlopen"
12226 else
12227   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-ldl  $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241 /* Override any gcc2 internal prototype to avoid an error.  */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 /* We use char because int might match the return type of a gcc2
12246    builtin and then its argument prototype would still apply.  */
12247 char dlopen ();
12248 int
12249 main ()
12250 {
12251 dlopen ();
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258   (eval $ac_link) 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } &&
12265          { ac_try='test -z "$ac_cxx_werror_flag"
12266                          || test ! -s conftest.err'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; } &&
12272          { ac_try='test -s conftest$ac_exeext'
12273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274   (eval $ac_try) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   ac_cv_lib_dl_dlopen=yes
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_cv_lib_dl_dlopen=no
12284 fi
12285 rm -f conftest.err conftest.$ac_objext \
12286       conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12288 fi
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12290 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12291 if test $ac_cv_lib_dl_dlopen = yes; then
12292   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12293 else
12294   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12295 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12296 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-lsvld  $LIBS"
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307
12308 /* Override any gcc2 internal prototype to avoid an error.  */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 /* We use char because int might match the return type of a gcc2
12313    builtin and then its argument prototype would still apply.  */
12314 char dlopen ();
12315 int
12316 main ()
12317 {
12318 dlopen ();
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12325   (eval $ac_link) 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_cxx_werror_flag"
12333                          || test ! -s conftest.err'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; } &&
12339          { ac_try='test -s conftest$ac_exeext'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   ac_cv_lib_svld_dlopen=yes
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 ac_cv_lib_svld_dlopen=no
12351 fi
12352 rm -f conftest.err conftest.$ac_objext \
12353       conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12355 fi
12356 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12358 if test $ac_cv_lib_svld_dlopen = yes; then
12359   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12360 else
12361   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-ldld  $LIBS"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374
12375 /* Override any gcc2 internal prototype to avoid an error.  */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 /* We use char because int might match the return type of a gcc2
12380    builtin and then its argument prototype would still apply.  */
12381 char dld_link ();
12382 int
12383 main ()
12384 {
12385 dld_link ();
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392   (eval $ac_link) 2>conftest.er1
12393   ac_status=$?
12394   grep -v '^ *+' conftest.er1 >conftest.err
12395   rm -f conftest.er1
12396   cat conftest.err >&5
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } &&
12399          { ac_try='test -z "$ac_cxx_werror_flag"
12400                          || test ! -s conftest.err'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; } &&
12406          { ac_try='test -s conftest$ac_exeext'
12407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408   (eval $ac_try) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   ac_cv_lib_dld_dld_link=yes
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 ac_cv_lib_dld_dld_link=no
12418 fi
12419 rm -f conftest.err conftest.$ac_objext \
12420       conftest$ac_exeext conftest.$ac_ext
12421 LIBS=$ac_check_lib_save_LIBS
12422 fi
12423 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12424 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12425 if test $ac_cv_lib_dld_dld_link = yes; then
12426   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12427 fi
12428
12429
12430 fi
12431
12432
12433 fi
12434
12435
12436 fi
12437
12438
12439 fi
12440
12441
12442 fi
12443
12444     ;;
12445   esac
12446
12447   if test "x$lt_cv_dlopen" != xno; then
12448     enable_dlopen=yes
12449   else
12450     enable_dlopen=no
12451   fi
12452
12453   case $lt_cv_dlopen in
12454   dlopen)
12455     save_CPPFLAGS="$CPPFLAGS"
12456     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12457
12458     save_LDFLAGS="$LDFLAGS"
12459     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12460
12461     save_LIBS="$LIBS"
12462     LIBS="$lt_cv_dlopen_libs $LIBS"
12463
12464     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12465 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12466 if test "${lt_cv_dlopen_self+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469           if test "$cross_compiling" = yes; then :
12470   lt_cv_dlopen_self=cross
12471 else
12472   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12473   lt_status=$lt_dlunknown
12474   cat > conftest.$ac_ext <<EOF
12475 #line 12475 "configure"
12476 #include "confdefs.h"
12477
12478 #if HAVE_DLFCN_H
12479 #include <dlfcn.h>
12480 #endif
12481
12482 #include <stdio.h>
12483
12484 #ifdef RTLD_GLOBAL
12485 #  define LT_DLGLOBAL           RTLD_GLOBAL
12486 #else
12487 #  ifdef DL_GLOBAL
12488 #    define LT_DLGLOBAL         DL_GLOBAL
12489 #  else
12490 #    define LT_DLGLOBAL         0
12491 #  endif
12492 #endif
12493
12494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12495    find out it does not work in some platform. */
12496 #ifndef LT_DLLAZY_OR_NOW
12497 #  ifdef RTLD_LAZY
12498 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12499 #  else
12500 #    ifdef DL_LAZY
12501 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12502 #    else
12503 #      ifdef RTLD_NOW
12504 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12505 #      else
12506 #        ifdef DL_NOW
12507 #          define LT_DLLAZY_OR_NOW      DL_NOW
12508 #        else
12509 #          define LT_DLLAZY_OR_NOW      0
12510 #        endif
12511 #      endif
12512 #    endif
12513 #  endif
12514 #endif
12515
12516 #ifdef __cplusplus
12517 extern "C" void exit (int);
12518 #endif
12519
12520 void fnord() { int i=42;}
12521 int main ()
12522 {
12523   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12524   int status = $lt_dlunknown;
12525
12526   if (self)
12527     {
12528       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12529       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12530       /* dlclose (self); */
12531     }
12532
12533     exit (status);
12534 }
12535 EOF
12536   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537   (eval $ac_link) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12541     (./conftest; exit; ) 2>/dev/null
12542     lt_status=$?
12543     case x$lt_status in
12544       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12545       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12546       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12547     esac
12548   else :
12549     # compilation failed
12550     lt_cv_dlopen_self=no
12551   fi
12552 fi
12553 rm -fr conftest*
12554
12555
12556 fi
12557 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12559
12560     if test "x$lt_cv_dlopen_self" = xyes; then
12561       LDFLAGS="$LDFLAGS $link_static_flag"
12562       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12564 if test "${lt_cv_dlopen_self_static+set}" = set; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567           if test "$cross_compiling" = yes; then :
12568   lt_cv_dlopen_self_static=cross
12569 else
12570   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12571   lt_status=$lt_dlunknown
12572   cat > conftest.$ac_ext <<EOF
12573 #line 12573 "configure"
12574 #include "confdefs.h"
12575
12576 #if HAVE_DLFCN_H
12577 #include <dlfcn.h>
12578 #endif
12579
12580 #include <stdio.h>
12581
12582 #ifdef RTLD_GLOBAL
12583 #  define LT_DLGLOBAL           RTLD_GLOBAL
12584 #else
12585 #  ifdef DL_GLOBAL
12586 #    define LT_DLGLOBAL         DL_GLOBAL
12587 #  else
12588 #    define LT_DLGLOBAL         0
12589 #  endif
12590 #endif
12591
12592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12593    find out it does not work in some platform. */
12594 #ifndef LT_DLLAZY_OR_NOW
12595 #  ifdef RTLD_LAZY
12596 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12597 #  else
12598 #    ifdef DL_LAZY
12599 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12600 #    else
12601 #      ifdef RTLD_NOW
12602 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12603 #      else
12604 #        ifdef DL_NOW
12605 #          define LT_DLLAZY_OR_NOW      DL_NOW
12606 #        else
12607 #          define LT_DLLAZY_OR_NOW      0
12608 #        endif
12609 #      endif
12610 #    endif
12611 #  endif
12612 #endif
12613
12614 #ifdef __cplusplus
12615 extern "C" void exit (int);
12616 #endif
12617
12618 void fnord() { int i=42;}
12619 int main ()
12620 {
12621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622   int status = $lt_dlunknown;
12623
12624   if (self)
12625     {
12626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12627       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12628       /* dlclose (self); */
12629     }
12630
12631     exit (status);
12632 }
12633 EOF
12634   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12635   (eval $ac_link) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12639     (./conftest; exit; ) 2>/dev/null
12640     lt_status=$?
12641     case x$lt_status in
12642       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12643       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12644       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12645     esac
12646   else :
12647     # compilation failed
12648     lt_cv_dlopen_self_static=no
12649   fi
12650 fi
12651 rm -fr conftest*
12652
12653
12654 fi
12655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12657     fi
12658
12659     CPPFLAGS="$save_CPPFLAGS"
12660     LDFLAGS="$save_LDFLAGS"
12661     LIBS="$save_LIBS"
12662     ;;
12663   esac
12664
12665   case $lt_cv_dlopen_self in
12666   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12667   *) enable_dlopen_self=unknown ;;
12668   esac
12669
12670   case $lt_cv_dlopen_self_static in
12671   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12672   *) enable_dlopen_self_static=unknown ;;
12673   esac
12674 fi
12675
12676
12677 # The else clause should only fire when bootstrapping the
12678 # libtool distribution, otherwise you forgot to ship ltmain.sh
12679 # with your package, and you will get complaints that there are
12680 # no rules to generate ltmain.sh.
12681 if test -f "$ltmain"; then
12682   # See if we are running on zsh, and set the options which allow our commands through
12683   # without removal of \ escapes.
12684   if test -n "${ZSH_VERSION+set}" ; then
12685     setopt NO_GLOB_SUBST
12686   fi
12687   # Now quote all the things that may contain metacharacters while being
12688   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12689   # variables and quote the copies for generation of the libtool script.
12690   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
12691     SED SHELL STRIP \
12692     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12693     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12694     deplibs_check_method reload_flag reload_cmds need_locks \
12695     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12696     lt_cv_sys_global_symbol_to_c_name_address \
12697     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12698     old_postinstall_cmds old_postuninstall_cmds \
12699     compiler_CXX \
12700     CC_CXX \
12701     LD_CXX \
12702     lt_prog_compiler_wl_CXX \
12703     lt_prog_compiler_pic_CXX \
12704     lt_prog_compiler_static_CXX \
12705     lt_prog_compiler_no_builtin_flag_CXX \
12706     export_dynamic_flag_spec_CXX \
12707     thread_safe_flag_spec_CXX \
12708     whole_archive_flag_spec_CXX \
12709     enable_shared_with_static_runtimes_CXX \
12710     old_archive_cmds_CXX \
12711     old_archive_from_new_cmds_CXX \
12712     predep_objects_CXX \
12713     postdep_objects_CXX \
12714     predeps_CXX \
12715     postdeps_CXX \
12716     compiler_lib_search_path_CXX \
12717     archive_cmds_CXX \
12718     archive_expsym_cmds_CXX \
12719     postinstall_cmds_CXX \
12720     postuninstall_cmds_CXX \
12721     old_archive_from_expsyms_cmds_CXX \
12722     allow_undefined_flag_CXX \
12723     no_undefined_flag_CXX \
12724     export_symbols_cmds_CXX \
12725     hardcode_libdir_flag_spec_CXX \
12726     hardcode_libdir_flag_spec_ld_CXX \
12727     hardcode_libdir_separator_CXX \
12728     hardcode_automatic_CXX \
12729     module_cmds_CXX \
12730     module_expsym_cmds_CXX \
12731     lt_cv_prog_compiler_c_o_CXX \
12732     exclude_expsyms_CXX \
12733     include_expsyms_CXX; do
12734
12735     case $var in
12736     old_archive_cmds_CXX | \
12737     old_archive_from_new_cmds_CXX | \
12738     archive_cmds_CXX | \
12739     archive_expsym_cmds_CXX | \
12740     module_cmds_CXX | \
12741     module_expsym_cmds_CXX | \
12742     old_archive_from_expsyms_cmds_CXX | \
12743     export_symbols_cmds_CXX | \
12744     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12745     postinstall_cmds | postuninstall_cmds | \
12746     old_postinstall_cmds | old_postuninstall_cmds | \
12747     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12748       # Double-quote double-evaled strings.
12749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12750       ;;
12751     *)
12752       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12753       ;;
12754     esac
12755   done
12756
12757   case $lt_echo in
12758   *'\$0 --fallback-echo"')
12759     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12760     ;;
12761   esac
12762
12763 cfgfile="$ofile"
12764
12765   cat <<__EOF__ >> "$cfgfile"
12766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12767
12768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12769
12770 # Shell to use when invoking shell scripts.
12771 SHELL=$lt_SHELL
12772
12773 # Whether or not to build shared libraries.
12774 build_libtool_libs=$enable_shared
12775
12776 # Whether or not to build static libraries.
12777 build_old_libs=$enable_static
12778
12779 # Whether or not to add -lc for building shared libraries.
12780 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12781
12782 # Whether or not to disallow shared libs when runtime libs are static
12783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12784
12785 # Whether or not to optimize for fast installation.
12786 fast_install=$enable_fast_install
12787
12788 # The host system.
12789 host_alias=$host_alias
12790 host=$host
12791
12792 # An echo program that does not interpret backslashes.
12793 echo=$lt_echo
12794
12795 # The archiver.
12796 AR=$lt_AR
12797 AR_FLAGS=$lt_AR_FLAGS
12798
12799 # A C compiler.
12800 LTCC=$lt_LTCC
12801
12802 # A language-specific compiler.
12803 CC=$lt_compiler_CXX
12804
12805 # Is the compiler the GNU C compiler?
12806 with_gcc=$GCC_CXX
12807
12808 # An ERE matcher.
12809 EGREP=$lt_EGREP
12810
12811 # The linker used to build libraries.
12812 LD=$lt_LD_CXX
12813
12814 # Whether we need hard or soft links.
12815 LN_S=$lt_LN_S
12816
12817 # A BSD-compatible nm program.
12818 NM=$lt_NM
12819
12820 # A symbol stripping program
12821 STRIP=$lt_STRIP
12822
12823 # Used to examine libraries when file_magic_cmd begins "file"
12824 MAGIC_CMD=$MAGIC_CMD
12825
12826 # Used on cygwin: DLL creation program.
12827 DLLTOOL="$DLLTOOL"
12828
12829 # Used on cygwin: object dumper.
12830 OBJDUMP="$OBJDUMP"
12831
12832 # Used on cygwin: assembler.
12833 AS=$lt_AS
12834
12835 # The name of the directory that contains temporary libtool files.
12836 objdir=$objdir
12837
12838 # How to create reloadable object files.
12839 reload_flag=$lt_reload_flag
12840 reload_cmds=$lt_reload_cmds
12841
12842 # How to pass a linker flag through the compiler.
12843 wl=$lt_lt_prog_compiler_wl_CXX
12844
12845 # Object file suffix (normally "o").
12846 objext="$ac_objext"
12847
12848 # Old archive suffix (normally "a").
12849 libext="$libext"
12850
12851 # Shared library suffix (normally ".so").
12852 shrext_cmds='$shrext_cmds'
12853
12854 # Executable file suffix (normally "").
12855 exeext="$exeext"
12856
12857 # Additional compiler flags for building library objects.
12858 pic_flag=$lt_lt_prog_compiler_pic_CXX
12859 pic_mode=$pic_mode
12860
12861 # What is the maximum length of a command?
12862 max_cmd_len=$lt_cv_sys_max_cmd_len
12863
12864 # Does compiler simultaneously support -c and -o options?
12865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12866
12867 # Must we lock files when doing compilation ?
12868 need_locks=$lt_need_locks
12869
12870 # Do we need the lib prefix for modules?
12871 need_lib_prefix=$need_lib_prefix
12872
12873 # Do we need a version for libraries?
12874 need_version=$need_version
12875
12876 # Whether dlopen is supported.
12877 dlopen_support=$enable_dlopen
12878
12879 # Whether dlopen of programs is supported.
12880 dlopen_self=$enable_dlopen_self
12881
12882 # Whether dlopen of statically linked programs is supported.
12883 dlopen_self_static=$enable_dlopen_self_static
12884
12885 # Compiler flag to prevent dynamic linking.
12886 link_static_flag=$lt_lt_prog_compiler_static_CXX
12887
12888 # Compiler flag to turn off builtin functions.
12889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12890
12891 # Compiler flag to allow reflexive dlopens.
12892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12893
12894 # Compiler flag to generate shared objects directly from archives.
12895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12896
12897 # Compiler flag to generate thread-safe objects.
12898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12899
12900 # Library versioning type.
12901 version_type=$version_type
12902
12903 # Format of library name prefix.
12904 libname_spec=$lt_libname_spec
12905
12906 # List of archive names.  First name is the real one, the rest are links.
12907 # The last name is the one that the linker finds with -lNAME.
12908 library_names_spec=$lt_library_names_spec
12909
12910 # The coded name of the library, if different from the real name.
12911 soname_spec=$lt_soname_spec
12912
12913 # Commands used to build and install an old-style archive.
12914 RANLIB=$lt_RANLIB
12915 old_archive_cmds=$lt_old_archive_cmds_CXX
12916 old_postinstall_cmds=$lt_old_postinstall_cmds
12917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12918
12919 # Create an old-style archive from a shared archive.
12920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12921
12922 # Create a temporary old-style archive to link instead of a shared archive.
12923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12924
12925 # Commands used to build and install a shared archive.
12926 archive_cmds=$lt_archive_cmds_CXX
12927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12928 postinstall_cmds=$lt_postinstall_cmds
12929 postuninstall_cmds=$lt_postuninstall_cmds
12930
12931 # Commands used to build a loadable module (assumed same as above if empty)
12932 module_cmds=$lt_module_cmds_CXX
12933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12934
12935 # Commands to strip libraries.
12936 old_striplib=$lt_old_striplib
12937 striplib=$lt_striplib
12938
12939 # Dependencies to place before the objects being linked to create a
12940 # shared library.
12941 predep_objects=$lt_predep_objects_CXX
12942
12943 # Dependencies to place after the objects being linked to create a
12944 # shared library.
12945 postdep_objects=$lt_postdep_objects_CXX
12946
12947 # Dependencies to place before the objects being linked to create a
12948 # shared library.
12949 predeps=$lt_predeps_CXX
12950
12951 # Dependencies to place after the objects being linked to create a
12952 # shared library.
12953 postdeps=$lt_postdeps_CXX
12954
12955 # The library search path used internally by the compiler when linking
12956 # a shared library.
12957 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12958
12959 # Method to check whether dependent libraries are shared objects.
12960 deplibs_check_method=$lt_deplibs_check_method
12961
12962 # Command to use when deplibs_check_method == file_magic.
12963 file_magic_cmd=$lt_file_magic_cmd
12964
12965 # Flag that allows shared libraries with undefined symbols to be built.
12966 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12967
12968 # Flag that forces no undefined symbols.
12969 no_undefined_flag=$lt_no_undefined_flag_CXX
12970
12971 # Commands used to finish a libtool library installation in a directory.
12972 finish_cmds=$lt_finish_cmds
12973
12974 # Same as above, but a single script fragment to be evaled but not shown.
12975 finish_eval=$lt_finish_eval
12976
12977 # Take the output of nm and produce a listing of raw symbols and C names.
12978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12979
12980 # Transform the output of nm in a proper C declaration
12981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12982
12983 # Transform the output of nm in a C name address pair
12984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12985
12986 # This is the shared library runtime path variable.
12987 runpath_var=$runpath_var
12988
12989 # This is the shared library path variable.
12990 shlibpath_var=$shlibpath_var
12991
12992 # Is shlibpath searched before the hard-coded library search path?
12993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12994
12995 # How to hardcode a shared library path into an executable.
12996 hardcode_action=$hardcode_action_CXX
12997
12998 # Whether we should hardcode library paths into libraries.
12999 hardcode_into_libs=$hardcode_into_libs
13000
13001 # Flag to hardcode \$libdir into a binary during linking.
13002 # This must work even if \$libdir does not exist.
13003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13004
13005 # If ld is used when linking, flag to hardcode \$libdir into
13006 # a binary during linking. This must work even if \$libdir does
13007 # not exist.
13008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13009
13010 # Whether we need a single -rpath flag with a separated argument.
13011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13012
13013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13014 # resulting binary.
13015 hardcode_direct=$hardcode_direct_CXX
13016
13017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13018 # resulting binary.
13019 hardcode_minus_L=$hardcode_minus_L_CXX
13020
13021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13022 # the resulting binary.
13023 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13024
13025 # Set to yes if building a shared library automatically hardcodes DIR into the library
13026 # and all subsequent libraries and executables linked against it.
13027 hardcode_automatic=$hardcode_automatic_CXX
13028
13029 # Variables whose values should be saved in libtool wrapper scripts and
13030 # restored at relink time.
13031 variables_saved_for_relink="$variables_saved_for_relink"
13032
13033 # Whether libtool must link a program against all its dependency libraries.
13034 link_all_deplibs=$link_all_deplibs_CXX
13035
13036 # Compile-time system search path for libraries
13037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13038
13039 # Run-time system search path for libraries
13040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13041
13042 # Fix the shell variable \$srcfile for the compiler.
13043 fix_srcfile_path="$fix_srcfile_path_CXX"
13044
13045 # Set to yes if exported symbols are required.
13046 always_export_symbols=$always_export_symbols_CXX
13047
13048 # The commands to list exported symbols.
13049 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13050
13051 # The commands to extract the exported symbol list from a shared archive.
13052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13053
13054 # Symbols that should not be listed in the preloaded symbols.
13055 exclude_expsyms=$lt_exclude_expsyms_CXX
13056
13057 # Symbols that must always be exported.
13058 include_expsyms=$lt_include_expsyms_CXX
13059
13060 # ### END LIBTOOL TAG CONFIG: $tagname
13061
13062 __EOF__
13063
13064
13065 else
13066   # If there is no Makefile yet, we rely on a make rule to execute
13067   # `config.status --recheck' to rerun these tests and create the
13068   # libtool script then.
13069   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13070   if test -f "$ltmain_in"; then
13071     test -f Makefile && make "$ltmain"
13072   fi
13073 fi
13074
13075
13076 ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082 CC=$lt_save_CC
13083 LDCXX=$LD
13084 LD=$lt_save_LD
13085 GCC=$lt_save_GCC
13086 with_gnu_ldcxx=$with_gnu_ld
13087 with_gnu_ld=$lt_save_with_gnu_ld
13088 lt_cv_path_LDCXX=$lt_cv_path_LD
13089 lt_cv_path_LD=$lt_save_path_LD
13090 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13091 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13092
13093         else
13094           tagname=""
13095         fi
13096         ;;
13097
13098       F77)
13099         if test -n "$F77" && test "X$F77" != "Xno"; then
13100
13101 ac_ext=f
13102 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13103 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13105
13106
13107 archive_cmds_need_lc_F77=no
13108 allow_undefined_flag_F77=
13109 always_export_symbols_F77=no
13110 archive_expsym_cmds_F77=
13111 export_dynamic_flag_spec_F77=
13112 hardcode_direct_F77=no
13113 hardcode_libdir_flag_spec_F77=
13114 hardcode_libdir_flag_spec_ld_F77=
13115 hardcode_libdir_separator_F77=
13116 hardcode_minus_L_F77=no
13117 hardcode_automatic_F77=no
13118 module_cmds_F77=
13119 module_expsym_cmds_F77=
13120 link_all_deplibs_F77=unknown
13121 old_archive_cmds_F77=$old_archive_cmds
13122 no_undefined_flag_F77=
13123 whole_archive_flag_spec_F77=
13124 enable_shared_with_static_runtimes_F77=no
13125
13126 # Source file extension for f77 test sources.
13127 ac_ext=f
13128
13129 # Object file extension for compiled f77 test sources.
13130 objext=o
13131 objext_F77=$objext
13132
13133 # Code to be used in simple compile tests
13134 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13135
13136 # Code to be used in simple link tests
13137 lt_simple_link_test_code="      program t\n      end\n"
13138
13139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13140
13141 # If no C compiler was specified, use CC.
13142 LTCC=${LTCC-"$CC"}
13143
13144 # Allow CC to be a program name with arguments.
13145 compiler=$CC
13146
13147
13148 # Allow CC to be a program name with arguments.
13149 lt_save_CC="$CC"
13150 CC=${F77-"f77"}
13151 compiler=$CC
13152 compiler_F77=$CC
13153 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13154
13155 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13156 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13157 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13158 echo "${ECHO_T}$can_build_shared" >&6
13159
13160 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13161 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13162 test "$can_build_shared" = "no" && enable_shared=no
13163
13164 # On AIX, shared libraries and static libraries use the same namespace, and
13165 # are all built from PIC.
13166 case "$host_os" in
13167 aix3*)
13168   test "$enable_shared" = yes && enable_static=no
13169   if test -n "$RANLIB"; then
13170     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13171     postinstall_cmds='$RANLIB $lib'
13172   fi
13173   ;;
13174 aix4* | aix5*)
13175   test "$enable_shared" = yes && enable_static=no
13176   ;;
13177 esac
13178 echo "$as_me:$LINENO: result: $enable_shared" >&5
13179 echo "${ECHO_T}$enable_shared" >&6
13180
13181 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13183 # Make sure either enable_shared or enable_static is yes.
13184 test "$enable_shared" = yes || enable_static=yes
13185 echo "$as_me:$LINENO: result: $enable_static" >&5
13186 echo "${ECHO_T}$enable_static" >&6
13187
13188 test "$ld_shlibs_F77" = no && can_build_shared=no
13189
13190 GCC_F77="$G77"
13191 LD_F77="$LD"
13192
13193 lt_prog_compiler_wl_F77=
13194 lt_prog_compiler_pic_F77=
13195 lt_prog_compiler_static_F77=
13196
13197 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13199
13200   if test "$GCC" = yes; then
13201     lt_prog_compiler_wl_F77='-Wl,'
13202     lt_prog_compiler_static_F77='-static'
13203
13204     case $host_os in
13205       aix*)
13206       # All AIX code is PIC.
13207       if test "$host_cpu" = ia64; then
13208         # AIX 5 now supports IA64 processor
13209         lt_prog_compiler_static_F77='-Bstatic'
13210       fi
13211       ;;
13212
13213     amigaos*)
13214       # FIXME: we need at least 68020 code to build shared libraries, but
13215       # adding the `-m68020' flag to GCC prevents building anything better,
13216       # like `-m68040'.
13217       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13218       ;;
13219
13220     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13221       # PIC is the default for these OSes.
13222       ;;
13223
13224     mingw* | pw32* | os2*)
13225       # This hack is so that the source file can tell whether it is being
13226       # built for inclusion in a dll (and should export symbols for example).
13227       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13228       ;;
13229
13230     darwin* | rhapsody*)
13231       # PIC is the default on this platform
13232       # Common symbols not allowed in MH_DYLIB files
13233       lt_prog_compiler_pic_F77='-fno-common'
13234       ;;
13235
13236     msdosdjgpp*)
13237       # Just because we use GCC doesn't mean we suddenly get shared libraries
13238       # on systems that don't support them.
13239       lt_prog_compiler_can_build_shared_F77=no
13240       enable_shared=no
13241       ;;
13242
13243     sysv4*MP*)
13244       if test -d /usr/nec; then
13245         lt_prog_compiler_pic_F77=-Kconform_pic
13246       fi
13247       ;;
13248
13249     hpux*)
13250       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13251       # not for PA HP-UX.
13252       case "$host_cpu" in
13253       hppa*64*|ia64*)
13254         # +Z the default
13255         ;;
13256       *)
13257         lt_prog_compiler_pic_F77='-fPIC'
13258         ;;
13259       esac
13260       ;;
13261
13262     *)
13263       lt_prog_compiler_pic_F77='-fPIC'
13264       ;;
13265     esac
13266   else
13267     # PORTME Check for flag to pass linker flags through the system compiler.
13268     case $host_os in
13269     aix*)
13270       lt_prog_compiler_wl_F77='-Wl,'
13271       if test "$host_cpu" = ia64; then
13272         # AIX 5 now supports IA64 processor
13273         lt_prog_compiler_static_F77='-Bstatic'
13274       else
13275         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13276       fi
13277       ;;
13278       darwin*)
13279         # PIC is the default on this platform
13280         # Common symbols not allowed in MH_DYLIB files
13281        case "$cc_basename" in
13282          xlc*)
13283          lt_prog_compiler_pic_F77='-qnocommon'
13284          lt_prog_compiler_wl_F77='-Wl,'
13285          ;;
13286        esac
13287        ;;
13288
13289     mingw* | pw32* | os2*)
13290       # This hack is so that the source file can tell whether it is being
13291       # built for inclusion in a dll (and should export symbols for example).
13292       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13293       ;;
13294
13295     hpux9* | hpux10* | hpux11*)
13296       lt_prog_compiler_wl_F77='-Wl,'
13297       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13298       # not for PA HP-UX.
13299       case "$host_cpu" in
13300       hppa*64*|ia64*)
13301         # +Z the default
13302         ;;
13303       *)
13304         lt_prog_compiler_pic_F77='+Z'
13305         ;;
13306       esac
13307       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13308       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13309       ;;
13310
13311     irix5* | irix6* | nonstopux*)
13312       lt_prog_compiler_wl_F77='-Wl,'
13313       # PIC (with -KPIC) is the default.
13314       lt_prog_compiler_static_F77='-non_shared'
13315       ;;
13316
13317     newsos6)
13318       lt_prog_compiler_pic_F77='-KPIC'
13319       lt_prog_compiler_static_F77='-Bstatic'
13320       ;;
13321
13322     linux*)
13323       case $CC in
13324       icc* | ecc*)
13325         lt_prog_compiler_wl_F77='-Wl,'
13326         lt_prog_compiler_pic_F77='-KPIC'
13327         lt_prog_compiler_static_F77='-static'
13328         ;;
13329       ccc*)
13330         lt_prog_compiler_wl_F77='-Wl,'
13331         # All Alpha code is PIC.
13332         lt_prog_compiler_static_F77='-non_shared'
13333         ;;
13334       esac
13335       ;;
13336
13337     osf3* | osf4* | osf5*)
13338       lt_prog_compiler_wl_F77='-Wl,'
13339       # All OSF/1 code is PIC.
13340       lt_prog_compiler_static_F77='-non_shared'
13341       ;;
13342
13343     sco3.2v5*)
13344       lt_prog_compiler_pic_F77='-Kpic'
13345       lt_prog_compiler_static_F77='-dn'
13346       ;;
13347
13348     solaris*)
13349       lt_prog_compiler_wl_F77='-Wl,'
13350       lt_prog_compiler_pic_F77='-KPIC'
13351       lt_prog_compiler_static_F77='-Bstatic'
13352       ;;
13353
13354     sunos4*)
13355       lt_prog_compiler_wl_F77='-Qoption ld '
13356       lt_prog_compiler_pic_F77='-PIC'
13357       lt_prog_compiler_static_F77='-Bstatic'
13358       ;;
13359
13360     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13361       lt_prog_compiler_wl_F77='-Wl,'
13362       lt_prog_compiler_pic_F77='-KPIC'
13363       lt_prog_compiler_static_F77='-Bstatic'
13364       ;;
13365
13366     sysv4*MP*)
13367       if test -d /usr/nec ;then
13368         lt_prog_compiler_pic_F77='-Kconform_pic'
13369         lt_prog_compiler_static_F77='-Bstatic'
13370       fi
13371       ;;
13372
13373     uts4*)
13374       lt_prog_compiler_pic_F77='-pic'
13375       lt_prog_compiler_static_F77='-Bstatic'
13376       ;;
13377
13378     *)
13379       lt_prog_compiler_can_build_shared_F77=no
13380       ;;
13381     esac
13382   fi
13383
13384 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13385 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13386
13387 #
13388 # Check to make sure the PIC flag actually works.
13389 #
13390 if test -n "$lt_prog_compiler_pic_F77"; then
13391
13392 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13394 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397   lt_prog_compiler_pic_works_F77=no
13398   ac_outfile=conftest.$ac_objext
13399    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13400    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13401    # Insert the option either (1) after the last *FLAGS variable, or
13402    # (2) before a word containing "conftest.", or (3) at the end.
13403    # Note that $ac_compile itself does not contain backslashes and begins
13404    # with a dollar sign (not a hyphen), so the echo should work correctly.
13405    # The option is referenced via a variable to avoid confusing sed.
13406    lt_compile=`echo "$ac_compile" | $SED \
13407    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13408    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13409    -e 's:$: $lt_compiler_flag:'`
13410    (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
13411    (eval "$lt_compile" 2>conftest.err)
13412    ac_status=$?
13413    cat conftest.err >&5
13414    echo "$as_me:13414: \$? = $ac_status" >&5
13415    if (exit $ac_status) && test -s "$ac_outfile"; then
13416      # The compiler can only warn and ignore the option if not recognized
13417      # So say no if there are warnings
13418      if test ! -s conftest.err; then
13419        lt_prog_compiler_pic_works_F77=yes
13420      fi
13421    fi
13422    $rm conftest*
13423
13424 fi
13425 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13426 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13427
13428 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13429     case $lt_prog_compiler_pic_F77 in
13430      "" | " "*) ;;
13431      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13432      esac
13433 else
13434     lt_prog_compiler_pic_F77=
13435      lt_prog_compiler_can_build_shared_F77=no
13436 fi
13437
13438 fi
13439 case "$host_os" in
13440   # For platforms which do not support PIC, -DPIC is meaningless:
13441   *djgpp*)
13442     lt_prog_compiler_pic_F77=
13443     ;;
13444   *)
13445     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13446     ;;
13447 esac
13448
13449 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13450 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13451 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   lt_cv_prog_compiler_c_o_F77=no
13455    $rm -r conftest 2>/dev/null
13456    mkdir conftest
13457    cd conftest
13458    mkdir out
13459    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13460
13461    lt_compiler_flag="-o out/conftest2.$ac_objext"
13462    # Insert the option either (1) after the last *FLAGS variable, or
13463    # (2) before a word containing "conftest.", or (3) at the end.
13464    # Note that $ac_compile itself does not contain backslashes and begins
13465    # with a dollar sign (not a hyphen), so the echo should work correctly.
13466    lt_compile=`echo "$ac_compile" | $SED \
13467    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13469    -e 's:$: $lt_compiler_flag:'`
13470    (eval echo "\"\$as_me:13470: $lt_compile\"" >&5)
13471    (eval "$lt_compile" 2>out/conftest.err)
13472    ac_status=$?
13473    cat out/conftest.err >&5
13474    echo "$as_me:13474: \$? = $ac_status" >&5
13475    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13476    then
13477      # The compiler can only warn and ignore the option if not recognized
13478      # So say no if there are warnings
13479      if test ! -s out/conftest.err; then
13480        lt_cv_prog_compiler_c_o_F77=yes
13481      fi
13482    fi
13483    chmod u+w .
13484    $rm conftest*
13485    # SGI C++ compiler will create directory out/ii_files/ for
13486    # template instantiation
13487    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13488    $rm out/* && rmdir out
13489    cd ..
13490    rmdir conftest
13491    $rm conftest*
13492
13493 fi
13494 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13495 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13496
13497
13498 hard_links="nottested"
13499 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13500   # do not overwrite the value of need_locks provided by the user
13501   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13502 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13503   hard_links=yes
13504   $rm conftest*
13505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13506   touch conftest.a
13507   ln conftest.a conftest.b 2>&5 || hard_links=no
13508   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13509   echo "$as_me:$LINENO: result: $hard_links" >&5
13510 echo "${ECHO_T}$hard_links" >&6
13511   if test "$hard_links" = no; then
13512     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13513 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13514     need_locks=warn
13515   fi
13516 else
13517   need_locks=no
13518 fi
13519
13520 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13522
13523   runpath_var=
13524   allow_undefined_flag_F77=
13525   enable_shared_with_static_runtimes_F77=no
13526   archive_cmds_F77=
13527   archive_expsym_cmds_F77=
13528   old_archive_From_new_cmds_F77=
13529   old_archive_from_expsyms_cmds_F77=
13530   export_dynamic_flag_spec_F77=
13531   whole_archive_flag_spec_F77=
13532   thread_safe_flag_spec_F77=
13533   hardcode_libdir_flag_spec_F77=
13534   hardcode_libdir_flag_spec_ld_F77=
13535   hardcode_libdir_separator_F77=
13536   hardcode_direct_F77=no
13537   hardcode_minus_L_F77=no
13538   hardcode_shlibpath_var_F77=unsupported
13539   link_all_deplibs_F77=unknown
13540   hardcode_automatic_F77=no
13541   module_cmds_F77=
13542   module_expsym_cmds_F77=
13543   always_export_symbols_F77=no
13544   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13545   # include_expsyms should be a list of space-separated symbols to be *always*
13546   # included in the symbol list
13547   include_expsyms_F77=
13548   # exclude_expsyms can be an extended regexp of symbols to exclude
13549   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13550   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13551   # as well as any symbol that contains `d'.
13552   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13553   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13554   # platforms (ab)use it in PIC code, but their linkers get confused if
13555   # the symbol is explicitly referenced.  Since portable code cannot
13556   # rely on this symbol name, it's probably fine to never include it in
13557   # preloaded symbol tables.
13558   extract_expsyms_cmds=
13559
13560   case $host_os in
13561   cygwin* | mingw* | pw32*)
13562     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13563     # When not using gcc, we currently assume that we are using
13564     # Microsoft Visual C++.
13565     if test "$GCC" != yes; then
13566       with_gnu_ld=no
13567     fi
13568     ;;
13569   openbsd*)
13570     with_gnu_ld=no
13571     ;;
13572   esac
13573
13574   ld_shlibs_F77=yes
13575   if test "$with_gnu_ld" = yes; then
13576     # If archive_cmds runs LD, not CC, wlarc should be empty
13577     wlarc='${wl}'
13578
13579     # See if GNU ld supports shared libraries.
13580     case $host_os in
13581     aix3* | aix4* | aix5*)
13582       # On AIX/PPC, the GNU linker is very broken
13583       if test "$host_cpu" != ia64; then
13584         ld_shlibs_F77=no
13585         cat <<EOF 1>&2
13586
13587 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13588 *** to be unable to reliably create shared libraries on AIX.
13589 *** Therefore, libtool is disabling shared libraries support.  If you
13590 *** really care for shared libraries, you may want to modify your PATH
13591 *** so that a non-GNU linker is found, and then restart.
13592
13593 EOF
13594       fi
13595       ;;
13596
13597     amigaos*)
13598       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)'
13599       hardcode_libdir_flag_spec_F77='-L$libdir'
13600       hardcode_minus_L_F77=yes
13601
13602       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13603       # that the semantics of dynamic libraries on AmigaOS, at least up
13604       # to version 4, is to share data among multiple programs linked
13605       # with the same dynamic library.  Since this doesn't match the
13606       # behavior of shared libraries on other platforms, we can't use
13607       # them.
13608       ld_shlibs_F77=no
13609       ;;
13610
13611     beos*)
13612       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613         allow_undefined_flag_F77=unsupported
13614         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13615         # support --undefined.  This deserves some investigation.  FIXME
13616         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617       else
13618         ld_shlibs_F77=no
13619       fi
13620       ;;
13621
13622     cygwin* | mingw* | pw32*)
13623       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13624       # as there is no search path for DLLs.
13625       hardcode_libdir_flag_spec_F77='-L$libdir'
13626       allow_undefined_flag_F77=unsupported
13627       always_export_symbols_F77=no
13628       enable_shared_with_static_runtimes_F77=yes
13629       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13630
13631       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13632         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13633         # If the export-symbols file already is a .def file (1st line
13634         # is EXPORTS), use it as is; otherwise, prepend...
13635         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13636           cp $export_symbols $output_objdir/$soname.def;
13637         else
13638           echo EXPORTS > $output_objdir/$soname.def;
13639           cat $export_symbols >> $output_objdir/$soname.def;
13640         fi~
13641         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13642       else
13643         ld_shlibs=no
13644       fi
13645       ;;
13646
13647     netbsd*)
13648       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13649         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13650         wlarc=
13651       else
13652         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13654       fi
13655       ;;
13656
13657     solaris* | sysv5*)
13658       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13659         ld_shlibs_F77=no
13660         cat <<EOF 1>&2
13661
13662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13663 *** create shared libraries on Solaris systems.  Therefore, libtool
13664 *** is disabling shared libraries support.  We urge you to upgrade GNU
13665 *** binutils to release 2.9.1 or newer.  Another option is to modify
13666 *** your PATH or compiler configuration so that the native linker is
13667 *** used, and then restart.
13668
13669 EOF
13670       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13671         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13673       else
13674         ld_shlibs_F77=no
13675       fi
13676       ;;
13677
13678     sunos4*)
13679       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13680       wlarc=
13681       hardcode_direct_F77=yes
13682       hardcode_shlibpath_var_F77=no
13683       ;;
13684
13685   linux*)
13686     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688         archive_cmds_F77="$tmp_archive_cmds"
13689       supports_anon_versioning=no
13690       case `$LD -v 2>/dev/null` in
13691         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13692         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13693         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13694         *\ 2.11.*) ;; # other 2.11 versions
13695         *) supports_anon_versioning=yes ;;
13696       esac
13697       if test $supports_anon_versioning = yes; then
13698         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13700 $echo "local: *; };" >> $output_objdir/$libname.ver~
13701         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13702       else
13703         archive_expsym_cmds_F77="$tmp_archive_cmds"
13704       fi
13705     else
13706       ld_shlibs_F77=no
13707     fi
13708     ;;
13709
13710     *)
13711       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13712         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13713         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13714       else
13715         ld_shlibs_F77=no
13716       fi
13717       ;;
13718     esac
13719
13720     if test "$ld_shlibs_F77" = yes; then
13721       runpath_var=LD_RUN_PATH
13722       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13723       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13724       # ancient GNU ld didn't support --whole-archive et. al.
13725       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13726         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13727       else
13728         whole_archive_flag_spec_F77=
13729       fi
13730     fi
13731   else
13732     # PORTME fill in a description of your system's linker (not GNU ld)
13733     case $host_os in
13734     aix3*)
13735       allow_undefined_flag_F77=unsupported
13736       always_export_symbols_F77=yes
13737       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'
13738       # Note: this linker hardcodes the directories in LIBPATH if there
13739       # are no directories specified by -L.
13740       hardcode_minus_L_F77=yes
13741       if test "$GCC" = yes && test -z "$link_static_flag"; then
13742         # Neither direct hardcoding nor static linking is supported with a
13743         # broken collect2.
13744         hardcode_direct_F77=unsupported
13745       fi
13746       ;;
13747
13748     aix4* | aix5*)
13749       if test "$host_cpu" = ia64; then
13750         # On IA64, the linker does run time linking by default, so we don't
13751         # have to do anything special.
13752         aix_use_runtimelinking=no
13753         exp_sym_flag='-Bexport'
13754         no_entry_flag=""
13755       else
13756         # If we're using GNU nm, then we don't want the "-C" option.
13757         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13758         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13759           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'
13760         else
13761           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'
13762         fi
13763         aix_use_runtimelinking=no
13764
13765         # Test if we are trying to use run time linking or normal
13766         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13767         # need to do runtime linking.
13768         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13769           for ld_flag in $LDFLAGS; do
13770           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13771             aix_use_runtimelinking=yes
13772             break
13773           fi
13774           done
13775         esac
13776
13777         exp_sym_flag='-bexport'
13778         no_entry_flag='-bnoentry'
13779       fi
13780
13781       # When large executables or shared objects are built, AIX ld can
13782       # have problems creating the table of contents.  If linking a library
13783       # or program results in "error TOC overflow" add -mminimal-toc to
13784       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13785       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13786
13787       archive_cmds_F77=''
13788       hardcode_direct_F77=yes
13789       hardcode_libdir_separator_F77=':'
13790       link_all_deplibs_F77=yes
13791
13792       if test "$GCC" = yes; then
13793         case $host_os in aix4.012|aix4.012.*)
13794         # We only want to do this on AIX 4.2 and lower, the check
13795         # below for broken collect2 doesn't work under 4.3+
13796           collect2name=`${CC} -print-prog-name=collect2`
13797           if test -f "$collect2name" && \
13798            strings "$collect2name" | grep resolve_lib_name >/dev/null
13799           then
13800           # We have reworked collect2
13801           hardcode_direct_F77=yes
13802           else
13803           # We have old collect2
13804           hardcode_direct_F77=unsupported
13805           # It fails to find uninstalled libraries when the uninstalled
13806           # path is not listed in the libpath.  Setting hardcode_minus_L
13807           # to unsupported forces relinking
13808           hardcode_minus_L_F77=yes
13809           hardcode_libdir_flag_spec_F77='-L$libdir'
13810           hardcode_libdir_separator_F77=
13811           fi
13812         esac
13813         shared_flag='-shared'
13814       else
13815         # not using gcc
13816         if test "$host_cpu" = ia64; then
13817         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13818         # chokes on -Wl,-G. The following line is correct:
13819           shared_flag='-G'
13820         else
13821         if test "$aix_use_runtimelinking" = yes; then
13822             shared_flag='${wl}-G'
13823           else
13824             shared_flag='${wl}-bM:SRE'
13825         fi
13826         fi
13827       fi
13828
13829       # It seems that -bexpall does not export symbols beginning with
13830       # underscore (_), so it is better to generate a list of symbols to export.
13831       always_export_symbols_F77=yes
13832       if test "$aix_use_runtimelinking" = yes; then
13833         # Warning - without using the other runtime loading flags (-brtl),
13834         # -berok will link without error, but may produce a broken library.
13835         allow_undefined_flag_F77='-berok'
13836        # Determine the default libpath from the value encoded in an empty executable.
13837        cat >conftest.$ac_ext <<_ACEOF
13838       program main
13839
13840       end
13841 _ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844   (eval $ac_link) 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_f77_werror_flag"
13852                          || test ! -s conftest.err'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; } &&
13858          { ac_try='test -s conftest$ac_exeext'
13859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860   (eval $ac_try) 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; }; then
13864
13865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13866 }'`
13867 # Check for a 64-bit object if we didn't find anything.
13868 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; }
13869 }'`; fi
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 fi
13875 rm -f conftest.err conftest.$ac_objext \
13876       conftest$ac_exeext conftest.$ac_ext
13877 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13878
13879        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880         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"
13881        else
13882         if test "$host_cpu" = ia64; then
13883           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13884           allow_undefined_flag_F77="-z nodefs"
13885           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"
13886         else
13887          # Determine the default libpath from the value encoded in an empty executable.
13888          cat >conftest.$ac_ext <<_ACEOF
13889       program main
13890
13891       end
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895   (eval $ac_link) 2>conftest.er1
13896   ac_status=$?
13897   grep -v '^ *+' conftest.er1 >conftest.err
13898   rm -f conftest.er1
13899   cat conftest.err >&5
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } &&
13902          { ac_try='test -z "$ac_f77_werror_flag"
13903                          || test ! -s conftest.err'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; } &&
13909          { ac_try='test -s conftest$ac_exeext'
13910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911   (eval $ac_try) 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); }; }; then
13915
13916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13917 }'`
13918 # Check for a 64-bit object if we didn't find anything.
13919 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; }
13920 }'`; fi
13921 else
13922   echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13924
13925 fi
13926 rm -f conftest.err conftest.$ac_objext \
13927       conftest$ac_exeext conftest.$ac_ext
13928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13929
13930          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13931           # Warning - without using the other run time loading flags,
13932           # -berok will link without error, but may produce a broken library.
13933           no_undefined_flag_F77=' ${wl}-bernotok'
13934           allow_undefined_flag_F77=' ${wl}-berok'
13935           # -bexpall does not export symbols beginning with underscore (_)
13936           always_export_symbols_F77=yes
13937           # Exported symbols can be pulled into shared objects from archives
13938           whole_archive_flag_spec_F77=' '
13939           archive_cmds_need_lc_F77=yes
13940           # This is similar to how AIX traditionally builds it's shared libraries.
13941           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'
13942         fi
13943       fi
13944       ;;
13945
13946     amigaos*)
13947       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)'
13948       hardcode_libdir_flag_spec_F77='-L$libdir'
13949       hardcode_minus_L_F77=yes
13950       # see comment about different semantics on the GNU ld section
13951       ld_shlibs_F77=no
13952       ;;
13953
13954     bsdi[45]*)
13955       export_dynamic_flag_spec_F77=-rdynamic
13956       ;;
13957
13958     cygwin* | mingw* | pw32*)
13959       # When not using gcc, we currently assume that we are using
13960       # Microsoft Visual C++.
13961       # hardcode_libdir_flag_spec is actually meaningless, as there is
13962       # no search path for DLLs.
13963       hardcode_libdir_flag_spec_F77=' '
13964       allow_undefined_flag_F77=unsupported
13965       # Tell ltmain to make .lib files, not .a files.
13966       libext=lib
13967       # Tell ltmain to make .dll files, not .so files.
13968       shrext_cmds=".dll"
13969       # FIXME: Setting linknames here is a bad hack.
13970       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13971       # The linker will automatically build a .lib file if we build a DLL.
13972       old_archive_From_new_cmds_F77='true'
13973       # FIXME: Should let the user specify the lib program.
13974       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13975       fix_srcfile_path='`cygpath -w "$srcfile"`'
13976       enable_shared_with_static_runtimes_F77=yes
13977       ;;
13978
13979     darwin* | rhapsody*)
13980       case "$host_os" in
13981         rhapsody* | darwin1.[012])
13982          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13983          ;;
13984        *) # Darwin 1.3 on
13985          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13986            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13987          else
13988            case ${MACOSX_DEPLOYMENT_TARGET} in
13989              10.[012])
13990                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13991                ;;
13992              10.*)
13993                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13994                ;;
13995            esac
13996          fi
13997          ;;
13998       esac
13999       archive_cmds_need_lc_F77=no
14000       hardcode_direct_F77=no
14001       hardcode_automatic_F77=yes
14002       hardcode_shlibpath_var_F77=unsupported
14003       whole_archive_flag_spec_F77=''
14004       link_all_deplibs_F77=yes
14005     if test "$GCC" = yes ; then
14006         output_verbose_link_cmd='echo'
14007         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14008       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14009       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14010       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14011       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}'
14012     else
14013       case "$cc_basename" in
14014         xlc*)
14015          output_verbose_link_cmd='echo'
14016          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14017          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14019          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14020           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14021           ;;
14022        *)
14023          ld_shlibs_F77=no
14024           ;;
14025       esac
14026     fi
14027       ;;
14028
14029     dgux*)
14030       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14031       hardcode_libdir_flag_spec_F77='-L$libdir'
14032       hardcode_shlibpath_var_F77=no
14033       ;;
14034
14035     freebsd1*)
14036       ld_shlibs_F77=no
14037       ;;
14038
14039     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14040     # support.  Future versions do this automatically, but an explicit c++rt0.o
14041     # does not break anything, and helps significantly (at the cost of a little
14042     # extra space).
14043     freebsd2.2*)
14044       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14045       hardcode_libdir_flag_spec_F77='-R$libdir'
14046       hardcode_direct_F77=yes
14047       hardcode_shlibpath_var_F77=no
14048       ;;
14049
14050     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14051     freebsd2*)
14052       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14053       hardcode_direct_F77=yes
14054       hardcode_minus_L_F77=yes
14055       hardcode_shlibpath_var_F77=no
14056       ;;
14057
14058     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14059     freebsd* | kfreebsd*-gnu)
14060       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14061       hardcode_libdir_flag_spec_F77='-R$libdir'
14062       hardcode_direct_F77=yes
14063       hardcode_shlibpath_var_F77=no
14064       ;;
14065
14066     hpux9*)
14067       if test "$GCC" = yes; then
14068         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'
14069       else
14070         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'
14071       fi
14072       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14073       hardcode_libdir_separator_F77=:
14074       hardcode_direct_F77=yes
14075
14076       # hardcode_minus_L: Not really in the search PATH,
14077       # but as the default location of the library.
14078       hardcode_minus_L_F77=yes
14079       export_dynamic_flag_spec_F77='${wl}-E'
14080       ;;
14081
14082     hpux10* | hpux11*)
14083       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14084         case "$host_cpu" in
14085         hppa*64*|ia64*)
14086           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14087           ;;
14088         *)
14089           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14090           ;;
14091         esac
14092       else
14093         case "$host_cpu" in
14094         hppa*64*|ia64*)
14095           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14096           ;;
14097         *)
14098           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14099           ;;
14100         esac
14101       fi
14102       if test "$with_gnu_ld" = no; then
14103         case "$host_cpu" in
14104         hppa*64*)
14105           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14106           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14107           hardcode_libdir_separator_F77=:
14108           hardcode_direct_F77=no
14109           hardcode_shlibpath_var_F77=no
14110           ;;
14111         ia64*)
14112           hardcode_libdir_flag_spec_F77='-L$libdir'
14113           hardcode_direct_F77=no
14114           hardcode_shlibpath_var_F77=no
14115
14116           # hardcode_minus_L: Not really in the search PATH,
14117           # but as the default location of the library.
14118           hardcode_minus_L_F77=yes
14119           ;;
14120         *)
14121           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14122           hardcode_libdir_separator_F77=:
14123           hardcode_direct_F77=yes
14124           export_dynamic_flag_spec_F77='${wl}-E'
14125
14126           # hardcode_minus_L: Not really in the search PATH,
14127           # but as the default location of the library.
14128           hardcode_minus_L_F77=yes
14129           ;;
14130         esac
14131       fi
14132       ;;
14133
14134     irix5* | irix6* | nonstopux*)
14135       if test "$GCC" = yes; then
14136         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'
14137       else
14138         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'
14139         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14140       fi
14141       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142       hardcode_libdir_separator_F77=:
14143       link_all_deplibs_F77=yes
14144       ;;
14145
14146     netbsd*)
14147       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14149       else
14150         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14151       fi
14152       hardcode_libdir_flag_spec_F77='-R$libdir'
14153       hardcode_direct_F77=yes
14154       hardcode_shlibpath_var_F77=no
14155       ;;
14156
14157     newsos6)
14158       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159       hardcode_direct_F77=yes
14160       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161       hardcode_libdir_separator_F77=:
14162       hardcode_shlibpath_var_F77=no
14163       ;;
14164
14165     openbsd*)
14166       hardcode_direct_F77=yes
14167       hardcode_shlibpath_var_F77=no
14168       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14170         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14171         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14172         export_dynamic_flag_spec_F77='${wl}-E'
14173       else
14174        case $host_os in
14175          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14176            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14177            hardcode_libdir_flag_spec_F77='-R$libdir'
14178            ;;
14179          *)
14180            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14181            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14182            ;;
14183        esac
14184       fi
14185       ;;
14186
14187     os2*)
14188       hardcode_libdir_flag_spec_F77='-L$libdir'
14189       hardcode_minus_L_F77=yes
14190       allow_undefined_flag_F77=unsupported
14191       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'
14192       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14193       ;;
14194
14195     osf3*)
14196       if test "$GCC" = yes; then
14197         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14198         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'
14199       else
14200         allow_undefined_flag_F77=' -expect_unresolved \*'
14201         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'
14202       fi
14203       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14204       hardcode_libdir_separator_F77=:
14205       ;;
14206
14207     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14208       if test "$GCC" = yes; then
14209         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14210         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'
14211         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14212       else
14213         allow_undefined_flag_F77=' -expect_unresolved \*'
14214         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'
14215         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~
14216         $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'
14217
14218         # Both c and cxx compiler support -rpath directly
14219         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14220       fi
14221       hardcode_libdir_separator_F77=:
14222       ;;
14223
14224     sco3.2v5*)
14225       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14226       hardcode_shlibpath_var_F77=no
14227       export_dynamic_flag_spec_F77='${wl}-Bexport'
14228       runpath_var=LD_RUN_PATH
14229       hardcode_runpath_var=yes
14230       ;;
14231
14232     solaris*)
14233       no_undefined_flag_F77=' -z text'
14234       if test "$GCC" = yes; then
14235         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14236         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14237           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14238       else
14239         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14240         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14241         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14242       fi
14243       hardcode_libdir_flag_spec_F77='-R$libdir'
14244       hardcode_shlibpath_var_F77=no
14245       case $host_os in
14246       solaris2.[0-5] | solaris2.[0-5].*) ;;
14247       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14248         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14249       esac
14250       link_all_deplibs_F77=yes
14251       ;;
14252
14253     sunos4*)
14254       if test "x$host_vendor" = xsequent; then
14255         # Use $CC to link under sequent, because it throws in some extra .o
14256         # files that make .init and .fini sections work.
14257         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14258       else
14259         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14260       fi
14261       hardcode_libdir_flag_spec_F77='-L$libdir'
14262       hardcode_direct_F77=yes
14263       hardcode_minus_L_F77=yes
14264       hardcode_shlibpath_var_F77=no
14265       ;;
14266
14267     sysv4)
14268       case $host_vendor in
14269         sni)
14270           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271           hardcode_direct_F77=yes # is this really true???
14272         ;;
14273         siemens)
14274           ## LD is ld it makes a PLAMLIB
14275           ## CC just makes a GrossModule.
14276           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14277           reload_cmds_F77='$CC -r -o $output$reload_objs'
14278           hardcode_direct_F77=no
14279         ;;
14280         motorola)
14281           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14282           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14283         ;;
14284       esac
14285       runpath_var='LD_RUN_PATH'
14286       hardcode_shlibpath_var_F77=no
14287       ;;
14288
14289     sysv4.3*)
14290       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14291       hardcode_shlibpath_var_F77=no
14292       export_dynamic_flag_spec_F77='-Bexport'
14293       ;;
14294
14295     sysv4*MP*)
14296       if test -d /usr/nec; then
14297         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14298         hardcode_shlibpath_var_F77=no
14299         runpath_var=LD_RUN_PATH
14300         hardcode_runpath_var=yes
14301         ld_shlibs_F77=yes
14302       fi
14303       ;;
14304
14305     sysv4.2uw2*)
14306       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14307       hardcode_direct_F77=yes
14308       hardcode_minus_L_F77=no
14309       hardcode_shlibpath_var_F77=no
14310       hardcode_runpath_var=yes
14311       runpath_var=LD_RUN_PATH
14312       ;;
14313
14314    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14315       no_undefined_flag_F77='${wl}-z ${wl}text'
14316       if test "$GCC" = yes; then
14317         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14318       else
14319         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320       fi
14321       runpath_var='LD_RUN_PATH'
14322       hardcode_shlibpath_var_F77=no
14323       ;;
14324
14325     sysv5*)
14326       no_undefined_flag_F77=' -z text'
14327       # $CC -shared without GNU ld will not create a library from C++
14328       # object files and a static libstdc++, better avoid it by now
14329       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14331                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14332       hardcode_libdir_flag_spec_F77=
14333       hardcode_shlibpath_var_F77=no
14334       runpath_var='LD_RUN_PATH'
14335       ;;
14336
14337     uts4*)
14338       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14339       hardcode_libdir_flag_spec_F77='-L$libdir'
14340       hardcode_shlibpath_var_F77=no
14341       ;;
14342
14343     *)
14344       ld_shlibs_F77=no
14345       ;;
14346     esac
14347   fi
14348
14349 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14350 echo "${ECHO_T}$ld_shlibs_F77" >&6
14351 test "$ld_shlibs_F77" = no && can_build_shared=no
14352
14353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14354 if test "$GCC" = yes; then
14355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14356 fi
14357
14358 #
14359 # Do we need to explicitly link libc?
14360 #
14361 case "x$archive_cmds_need_lc_F77" in
14362 x|xyes)
14363   # Assume -lc should be added
14364   archive_cmds_need_lc_F77=yes
14365
14366   if test "$enable_shared" = yes && test "$GCC" = yes; then
14367     case $archive_cmds_F77 in
14368     *'~'*)
14369       # FIXME: we may have to deal with multi-command sequences.
14370       ;;
14371     '$CC '*)
14372       # Test whether the compiler implicitly links with -lc since on some
14373       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14374       # to ld, don't add -lc before -lgcc.
14375       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14377       $rm conftest*
14378       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14379
14380       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381   (eval $ac_compile) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } 2>conftest.err; then
14385         soname=conftest
14386         lib=conftest
14387         libobjs=conftest.$ac_objext
14388         deplibs=
14389         wl=$lt_prog_compiler_wl_F77
14390         compiler_flags=-v
14391         linker_flags=-v
14392         verstring=
14393         output_objdir=.
14394         libname=conftest
14395         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14396         allow_undefined_flag_F77=
14397         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14398   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }
14402         then
14403           archive_cmds_need_lc_F77=no
14404         else
14405           archive_cmds_need_lc_F77=yes
14406         fi
14407         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14408       else
14409         cat conftest.err 1>&5
14410       fi
14411       $rm conftest*
14412       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14413 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14414       ;;
14415     esac
14416   fi
14417   ;;
14418 esac
14419
14420 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14421 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14422 library_names_spec=
14423 libname_spec='lib$name'
14424 soname_spec=
14425 shrext_cmds=".so"
14426 postinstall_cmds=
14427 postuninstall_cmds=
14428 finish_cmds=
14429 finish_eval=
14430 shlibpath_var=
14431 shlibpath_overrides_runpath=unknown
14432 version_type=none
14433 dynamic_linker="$host_os ld.so"
14434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14435 if test "$GCC" = yes; then
14436   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14437   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14438     # if the path contains ";" then we assume it to be the separator
14439     # otherwise default to the standard path separator (i.e. ":") - it is
14440     # assumed that no part of a normal pathname contains ";" but that should
14441     # okay in the real world where ";" in dirpaths is itself problematic.
14442     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14443   else
14444     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14445   fi
14446 else
14447   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14448 fi
14449 need_lib_prefix=unknown
14450 hardcode_into_libs=no
14451
14452 # when you set need_version to no, make sure it does not cause -set_version
14453 # flags to be left without arguments
14454 need_version=unknown
14455
14456 case $host_os in
14457 aix3*)
14458   version_type=linux
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14460   shlibpath_var=LIBPATH
14461
14462   # AIX 3 has no versioning support, so we append a major version to the name.
14463   soname_spec='${libname}${release}${shared_ext}$major'
14464   ;;
14465
14466 aix4* | aix5*)
14467   version_type=linux
14468   need_lib_prefix=no
14469   need_version=no
14470   hardcode_into_libs=yes
14471   if test "$host_cpu" = ia64; then
14472     # AIX 5 supports IA64
14473     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14474     shlibpath_var=LD_LIBRARY_PATH
14475   else
14476     # With GCC up to 2.95.x, collect2 would create an import file
14477     # for dependence libraries.  The import file would start with
14478     # the line `#! .'.  This would cause the generated library to
14479     # depend on `.', always an invalid library.  This was fixed in
14480     # development snapshots of GCC prior to 3.0.
14481     case $host_os in
14482       aix4 | aix4.[01] | aix4.[01].*)
14483       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14484            echo ' yes '
14485            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14486         :
14487       else
14488         can_build_shared=no
14489       fi
14490       ;;
14491     esac
14492     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14493     # soname into executable. Probably we can add versioning support to
14494     # collect2, so additional links can be useful in future.
14495     if test "$aix_use_runtimelinking" = yes; then
14496       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14497       # instead of lib<name>.a to let people know that these are not
14498       # typical AIX shared libraries.
14499       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500     else
14501       # We preserve .a as extension for shared libraries through AIX4.2
14502       # and later when we are not doing run time linking.
14503       library_names_spec='${libname}${release}.a $libname.a'
14504       soname_spec='${libname}${release}${shared_ext}$major'
14505     fi
14506     shlibpath_var=LIBPATH
14507   fi
14508   ;;
14509
14510 amigaos*)
14511   library_names_spec='$libname.ixlibrary $libname.a'
14512   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14513   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'
14514   ;;
14515
14516 beos*)
14517   library_names_spec='${libname}${shared_ext}'
14518   dynamic_linker="$host_os ld.so"
14519   shlibpath_var=LIBRARY_PATH
14520   ;;
14521
14522 bsdi[45]*)
14523   version_type=linux
14524   need_version=no
14525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526   soname_spec='${libname}${release}${shared_ext}$major'
14527   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14528   shlibpath_var=LD_LIBRARY_PATH
14529   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14530   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14531   # the default ld.so.conf also contains /usr/contrib/lib and
14532   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14533   # libtool to hard-code these into programs
14534   ;;
14535
14536 cygwin* | mingw* | pw32*)
14537   version_type=windows
14538   shrext_cmds=".dll"
14539   need_version=no
14540   need_lib_prefix=no
14541
14542   case $GCC,$host_os in
14543   yes,cygwin* | yes,mingw* | yes,pw32*)
14544     library_names_spec='$libname.dll.a'
14545     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14546     postinstall_cmds='base_file=`basename \${file}`~
14547       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14548       dldir=$destdir/`dirname \$dlpath`~
14549       test -d \$dldir || mkdir -p \$dldir~
14550       $install_prog $dir/$dlname \$dldir/$dlname'
14551     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14552       dlpath=$dir/\$dldll~
14553        $rm \$dlpath'
14554     shlibpath_overrides_runpath=yes
14555
14556     case $host_os in
14557     cygwin*)
14558       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14559       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14561       ;;
14562     mingw*)
14563       # MinGW DLLs use traditional 'lib' prefix
14564       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14566       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14567         # It is most probably a Windows format PATH printed by
14568         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14569         # path with ; separators, and with drive letters. We can handle the
14570         # drive letters (cygwin fileutils understands them), so leave them,
14571         # especially as we might pass files found there to a mingw objdump,
14572         # which wouldn't understand a cygwinified path. Ahh.
14573         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14574       else
14575         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14576       fi
14577       ;;
14578     pw32*)
14579       # pw32 DLLs use 'pw' prefix rather than 'lib'
14580       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14581       ;;
14582     esac
14583     ;;
14584
14585   *)
14586     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14587     ;;
14588   esac
14589   dynamic_linker='Win32 ld.exe'
14590   # FIXME: first we should search . and the directory the executable is in
14591   shlibpath_var=PATH
14592   ;;
14593
14594 darwin* | rhapsody*)
14595   dynamic_linker="$host_os dyld"
14596   version_type=darwin
14597   need_lib_prefix=no
14598   need_version=no
14599   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14600   soname_spec='${libname}${release}${major}$shared_ext'
14601   shlibpath_overrides_runpath=yes
14602   shlibpath_var=DYLD_LIBRARY_PATH
14603   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14604   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14605   if test "$GCC" = yes; then
14606     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"`
14607   else
14608     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14609   fi
14610   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14611   ;;
14612
14613 dgux*)
14614   version_type=linux
14615   need_lib_prefix=no
14616   need_version=no
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14618   soname_spec='${libname}${release}${shared_ext}$major'
14619   shlibpath_var=LD_LIBRARY_PATH
14620   ;;
14621
14622 freebsd1*)
14623   dynamic_linker=no
14624   ;;
14625
14626 kfreebsd*-gnu)
14627   version_type=linux
14628   need_lib_prefix=no
14629   need_version=no
14630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14631   soname_spec='${libname}${release}${shared_ext}$major'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   shlibpath_overrides_runpath=no
14634   hardcode_into_libs=yes
14635   dynamic_linker='GNU ld.so'
14636   ;;
14637
14638 freebsd*)
14639   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14640   version_type=freebsd-$objformat
14641   case $version_type in
14642     freebsd-elf*)
14643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14644       need_version=no
14645       need_lib_prefix=no
14646       ;;
14647     freebsd-*)
14648       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14649       need_version=yes
14650       ;;
14651   esac
14652   shlibpath_var=LD_LIBRARY_PATH
14653   case $host_os in
14654   freebsd2*)
14655     shlibpath_overrides_runpath=yes
14656     ;;
14657   freebsd3.01* | freebsdelf3.01*)
14658     shlibpath_overrides_runpath=yes
14659     hardcode_into_libs=yes
14660     ;;
14661   *) # from 3.2 on
14662     shlibpath_overrides_runpath=no
14663     hardcode_into_libs=yes
14664     ;;
14665   esac
14666   ;;
14667
14668 gnu*)
14669   version_type=linux
14670   need_lib_prefix=no
14671   need_version=no
14672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14673   soname_spec='${libname}${release}${shared_ext}$major'
14674   shlibpath_var=LD_LIBRARY_PATH
14675   hardcode_into_libs=yes
14676   ;;
14677
14678 hpux9* | hpux10* | hpux11*)
14679   # Give a soname corresponding to the major version so that dld.sl refuses to
14680   # link against other versions.
14681   version_type=sunos
14682   need_lib_prefix=no
14683   need_version=no
14684   case "$host_cpu" in
14685   ia64*)
14686     shrext_cmds='.so'
14687     hardcode_into_libs=yes
14688     dynamic_linker="$host_os dld.so"
14689     shlibpath_var=LD_LIBRARY_PATH
14690     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692     soname_spec='${libname}${release}${shared_ext}$major'
14693     if test "X$HPUX_IA64_MODE" = X32; then
14694       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14695     else
14696       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14697     fi
14698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699     ;;
14700    hppa*64*)
14701      shrext_cmds='.sl'
14702      hardcode_into_libs=yes
14703      dynamic_linker="$host_os dld.sl"
14704      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14709      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14710      ;;
14711    *)
14712     shrext_cmds='.sl'
14713     dynamic_linker="$host_os dld.sl"
14714     shlibpath_var=SHLIB_PATH
14715     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717     soname_spec='${libname}${release}${shared_ext}$major'
14718     ;;
14719   esac
14720   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14721   postinstall_cmds='chmod 555 $lib'
14722   ;;
14723
14724 irix5* | irix6* | nonstopux*)
14725   case $host_os in
14726     nonstopux*) version_type=nonstopux ;;
14727     *)
14728         if test "$lt_cv_prog_gnu_ld" = yes; then
14729                 version_type=linux
14730         else
14731                 version_type=irix
14732         fi ;;
14733   esac
14734   need_lib_prefix=no
14735   need_version=no
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14738   case $host_os in
14739   irix5* | nonstopux*)
14740     libsuff= shlibsuff=
14741     ;;
14742   *)
14743     case $LD in # libtool.m4 will add one of these switches to LD
14744     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14745       libsuff= shlibsuff= libmagic=32-bit;;
14746     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14747       libsuff=32 shlibsuff=N32 libmagic=N32;;
14748     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14749       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14750     *) libsuff= shlibsuff= libmagic=never-match;;
14751     esac
14752     ;;
14753   esac
14754   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14755   shlibpath_overrides_runpath=no
14756   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14757   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14758   hardcode_into_libs=yes
14759   ;;
14760
14761 # No shared lib support for Linux oldld, aout, or coff.
14762 linux*oldld* | linux*aout* | linux*coff*)
14763   dynamic_linker=no
14764   ;;
14765
14766 # This must be Linux ELF.
14767 linux*)
14768   version_type=linux
14769   need_lib_prefix=no
14770   need_version=no
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772   soname_spec='${libname}${release}${shared_ext}$major'
14773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   shlibpath_overrides_runpath=no
14776   # This implies no fast_install, which is unacceptable.
14777   # Some rework will be needed to allow for fast_install
14778   # before this can be enabled.
14779   hardcode_into_libs=yes
14780
14781   # Append ld.so.conf contents to the search path
14782   if test -f /etc/ld.so.conf; then
14783     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14784     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14785   fi
14786
14787   # We used to test for /lib/ld.so.1 and disable shared libraries on
14788   # powerpc, because MkLinux only supported shared libraries with the
14789   # GNU dynamic linker.  Since this was broken with cross compilers,
14790   # most powerpc-linux boxes support dynamic linking these days and
14791   # people can always --disable-shared, the test was removed, and we
14792   # assume the GNU/Linux dynamic linker is in use.
14793   dynamic_linker='GNU/Linux ld.so'
14794   ;;
14795
14796 knetbsd*-gnu)
14797   version_type=linux
14798   need_lib_prefix=no
14799   need_version=no
14800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14801   soname_spec='${libname}${release}${shared_ext}$major'
14802   shlibpath_var=LD_LIBRARY_PATH
14803   shlibpath_overrides_runpath=no
14804   hardcode_into_libs=yes
14805   dynamic_linker='GNU ld.so'
14806   ;;
14807
14808 netbsd*)
14809   version_type=sunos
14810   need_lib_prefix=no
14811   need_version=no
14812   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14815     dynamic_linker='NetBSD (a.out) ld.so'
14816   else
14817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818     soname_spec='${libname}${release}${shared_ext}$major'
14819     dynamic_linker='NetBSD ld.elf_so'
14820   fi
14821   shlibpath_var=LD_LIBRARY_PATH
14822   shlibpath_overrides_runpath=yes
14823   hardcode_into_libs=yes
14824   ;;
14825
14826 newsos6)
14827   version_type=linux
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829   shlibpath_var=LD_LIBRARY_PATH
14830   shlibpath_overrides_runpath=yes
14831   ;;
14832
14833 nto-qnx*)
14834   version_type=linux
14835   need_lib_prefix=no
14836   need_version=no
14837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838   soname_spec='${libname}${release}${shared_ext}$major'
14839   shlibpath_var=LD_LIBRARY_PATH
14840   shlibpath_overrides_runpath=yes
14841   ;;
14842
14843 openbsd*)
14844   version_type=sunos
14845   need_lib_prefix=no
14846   need_version=no
14847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14849   shlibpath_var=LD_LIBRARY_PATH
14850   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14851     case $host_os in
14852       openbsd2.[89] | openbsd2.[89].*)
14853         shlibpath_overrides_runpath=no
14854         ;;
14855       *)
14856         shlibpath_overrides_runpath=yes
14857         ;;
14858       esac
14859   else
14860     shlibpath_overrides_runpath=yes
14861   fi
14862   ;;
14863
14864 os2*)
14865   libname_spec='$name'
14866   shrext_cmds=".dll"
14867   need_lib_prefix=no
14868   library_names_spec='$libname${shared_ext} $libname.a'
14869   dynamic_linker='OS/2 ld.exe'
14870   shlibpath_var=LIBPATH
14871   ;;
14872
14873 osf3* | osf4* | osf5*)
14874   version_type=osf
14875   need_lib_prefix=no
14876   need_version=no
14877   soname_spec='${libname}${release}${shared_ext}$major'
14878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879   shlibpath_var=LD_LIBRARY_PATH
14880   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14881   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14882   ;;
14883
14884 sco3.2v5*)
14885   version_type=osf
14886   soname_spec='${libname}${release}${shared_ext}$major'
14887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   ;;
14890
14891 solaris*)
14892   version_type=linux
14893   need_lib_prefix=no
14894   need_version=no
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896   soname_spec='${libname}${release}${shared_ext}$major'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   shlibpath_overrides_runpath=yes
14899   hardcode_into_libs=yes
14900   # ldd complains unless libraries are executable
14901   postinstall_cmds='chmod +x $lib'
14902   ;;
14903
14904 sunos4*)
14905   version_type=sunos
14906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14908   shlibpath_var=LD_LIBRARY_PATH
14909   shlibpath_overrides_runpath=yes
14910   if test "$with_gnu_ld" = yes; then
14911     need_lib_prefix=no
14912   fi
14913   need_version=yes
14914   ;;
14915
14916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14917   version_type=linux
14918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919   soname_spec='${libname}${release}${shared_ext}$major'
14920   shlibpath_var=LD_LIBRARY_PATH
14921   case $host_vendor in
14922     sni)
14923       shlibpath_overrides_runpath=no
14924       need_lib_prefix=no
14925       export_dynamic_flag_spec='${wl}-Blargedynsym'
14926       runpath_var=LD_RUN_PATH
14927       ;;
14928     siemens)
14929       need_lib_prefix=no
14930       ;;
14931     motorola)
14932       need_lib_prefix=no
14933       need_version=no
14934       shlibpath_overrides_runpath=no
14935       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14936       ;;
14937   esac
14938   ;;
14939
14940 sysv4*MP*)
14941   if test -d /usr/nec ;then
14942     version_type=linux
14943     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14944     soname_spec='$libname${shared_ext}.$major'
14945     shlibpath_var=LD_LIBRARY_PATH
14946   fi
14947   ;;
14948
14949 uts4*)
14950   version_type=linux
14951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952   soname_spec='${libname}${release}${shared_ext}$major'
14953   shlibpath_var=LD_LIBRARY_PATH
14954   ;;
14955
14956 *)
14957   dynamic_linker=no
14958   ;;
14959 esac
14960 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14961 echo "${ECHO_T}$dynamic_linker" >&6
14962 test "$dynamic_linker" = no && can_build_shared=no
14963
14964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14966 hardcode_action_F77=
14967 if test -n "$hardcode_libdir_flag_spec_F77" || \
14968    test -n "$runpath_var_F77" || \
14969    test "X$hardcode_automatic_F77" = "Xyes" ; then
14970
14971   # We can hardcode non-existant directories.
14972   if test "$hardcode_direct_F77" != no &&
14973      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14974      # have to relink, otherwise we might link with an installed library
14975      # when we should be linking with a yet-to-be-installed one
14976      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14977      test "$hardcode_minus_L_F77" != no; then
14978     # Linking always hardcodes the temporary library directory.
14979     hardcode_action_F77=relink
14980   else
14981     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14982     hardcode_action_F77=immediate
14983   fi
14984 else
14985   # We cannot hardcode anything, or else we can only hardcode existing
14986   # directories.
14987   hardcode_action_F77=unsupported
14988 fi
14989 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14990 echo "${ECHO_T}$hardcode_action_F77" >&6
14991
14992 if test "$hardcode_action_F77" = relink; then
14993   # Fast installation is not supported
14994   enable_fast_install=no
14995 elif test "$shlibpath_overrides_runpath" = yes ||
14996      test "$enable_shared" = no; then
14997   # Fast installation is not necessary
14998   enable_fast_install=needless
14999 fi
15000
15001 striplib=
15002 old_striplib=
15003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15006   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15007   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15008   echo "$as_me:$LINENO: result: yes" >&5
15009 echo "${ECHO_T}yes" >&6
15010 else
15011 # FIXME - insert some real tests, host_os isn't really good enough
15012   case $host_os in
15013    darwin*)
15014        if test -n "$STRIP" ; then
15015          striplib="$STRIP -x"
15016          echo "$as_me:$LINENO: result: yes" >&5
15017 echo "${ECHO_T}yes" >&6
15018        else
15019   echo "$as_me:$LINENO: result: no" >&5
15020 echo "${ECHO_T}no" >&6
15021 fi
15022        ;;
15023    *)
15024   echo "$as_me:$LINENO: result: no" >&5
15025 echo "${ECHO_T}no" >&6
15026     ;;
15027   esac
15028 fi
15029
15030
15031
15032 # The else clause should only fire when bootstrapping the
15033 # libtool distribution, otherwise you forgot to ship ltmain.sh
15034 # with your package, and you will get complaints that there are
15035 # no rules to generate ltmain.sh.
15036 if test -f "$ltmain"; then
15037   # See if we are running on zsh, and set the options which allow our commands through
15038   # without removal of \ escapes.
15039   if test -n "${ZSH_VERSION+set}" ; then
15040     setopt NO_GLOB_SUBST
15041   fi
15042   # Now quote all the things that may contain metacharacters while being
15043   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15044   # variables and quote the copies for generation of the libtool script.
15045   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
15046     SED SHELL STRIP \
15047     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15048     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15049     deplibs_check_method reload_flag reload_cmds need_locks \
15050     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15051     lt_cv_sys_global_symbol_to_c_name_address \
15052     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15053     old_postinstall_cmds old_postuninstall_cmds \
15054     compiler_F77 \
15055     CC_F77 \
15056     LD_F77 \
15057     lt_prog_compiler_wl_F77 \
15058     lt_prog_compiler_pic_F77 \
15059     lt_prog_compiler_static_F77 \
15060     lt_prog_compiler_no_builtin_flag_F77 \
15061     export_dynamic_flag_spec_F77 \
15062     thread_safe_flag_spec_F77 \
15063     whole_archive_flag_spec_F77 \
15064     enable_shared_with_static_runtimes_F77 \
15065     old_archive_cmds_F77 \
15066     old_archive_from_new_cmds_F77 \
15067     predep_objects_F77 \
15068     postdep_objects_F77 \
15069     predeps_F77 \
15070     postdeps_F77 \
15071     compiler_lib_search_path_F77 \
15072     archive_cmds_F77 \
15073     archive_expsym_cmds_F77 \
15074     postinstall_cmds_F77 \
15075     postuninstall_cmds_F77 \
15076     old_archive_from_expsyms_cmds_F77 \
15077     allow_undefined_flag_F77 \
15078     no_undefined_flag_F77 \
15079     export_symbols_cmds_F77 \
15080     hardcode_libdir_flag_spec_F77 \
15081     hardcode_libdir_flag_spec_ld_F77 \
15082     hardcode_libdir_separator_F77 \
15083     hardcode_automatic_F77 \
15084     module_cmds_F77 \
15085     module_expsym_cmds_F77 \
15086     lt_cv_prog_compiler_c_o_F77 \
15087     exclude_expsyms_F77 \
15088     include_expsyms_F77; do
15089
15090     case $var in
15091     old_archive_cmds_F77 | \
15092     old_archive_from_new_cmds_F77 | \
15093     archive_cmds_F77 | \
15094     archive_expsym_cmds_F77 | \
15095     module_cmds_F77 | \
15096     module_expsym_cmds_F77 | \
15097     old_archive_from_expsyms_cmds_F77 | \
15098     export_symbols_cmds_F77 | \
15099     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15100     postinstall_cmds | postuninstall_cmds | \
15101     old_postinstall_cmds | old_postuninstall_cmds | \
15102     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15103       # Double-quote double-evaled strings.
15104       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15105       ;;
15106     *)
15107       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15108       ;;
15109     esac
15110   done
15111
15112   case $lt_echo in
15113   *'\$0 --fallback-echo"')
15114     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15115     ;;
15116   esac
15117
15118 cfgfile="$ofile"
15119
15120   cat <<__EOF__ >> "$cfgfile"
15121 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15122
15123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15124
15125 # Shell to use when invoking shell scripts.
15126 SHELL=$lt_SHELL
15127
15128 # Whether or not to build shared libraries.
15129 build_libtool_libs=$enable_shared
15130
15131 # Whether or not to build static libraries.
15132 build_old_libs=$enable_static
15133
15134 # Whether or not to add -lc for building shared libraries.
15135 build_libtool_need_lc=$archive_cmds_need_lc_F77
15136
15137 # Whether or not to disallow shared libs when runtime libs are static
15138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15139
15140 # Whether or not to optimize for fast installation.
15141 fast_install=$enable_fast_install
15142
15143 # The host system.
15144 host_alias=$host_alias
15145 host=$host
15146
15147 # An echo program that does not interpret backslashes.
15148 echo=$lt_echo
15149
15150 # The archiver.
15151 AR=$lt_AR
15152 AR_FLAGS=$lt_AR_FLAGS
15153
15154 # A C compiler.
15155 LTCC=$lt_LTCC
15156
15157 # A language-specific compiler.
15158 CC=$lt_compiler_F77
15159
15160 # Is the compiler the GNU C compiler?
15161 with_gcc=$GCC_F77
15162
15163 # An ERE matcher.
15164 EGREP=$lt_EGREP
15165
15166 # The linker used to build libraries.
15167 LD=$lt_LD_F77
15168
15169 # Whether we need hard or soft links.
15170 LN_S=$lt_LN_S
15171
15172 # A BSD-compatible nm program.
15173 NM=$lt_NM
15174
15175 # A symbol stripping program
15176 STRIP=$lt_STRIP
15177
15178 # Used to examine libraries when file_magic_cmd begins "file"
15179 MAGIC_CMD=$MAGIC_CMD
15180
15181 # Used on cygwin: DLL creation program.
15182 DLLTOOL="$DLLTOOL"
15183
15184 # Used on cygwin: object dumper.
15185 OBJDUMP="$OBJDUMP"
15186
15187 # Used on cygwin: assembler.
15188 AS=$lt_AS
15189
15190 # The name of the directory that contains temporary libtool files.
15191 objdir=$objdir
15192
15193 # How to create reloadable object files.
15194 reload_flag=$lt_reload_flag
15195 reload_cmds=$lt_reload_cmds
15196
15197 # How to pass a linker flag through the compiler.
15198 wl=$lt_lt_prog_compiler_wl_F77
15199
15200 # Object file suffix (normally "o").
15201 objext="$ac_objext"
15202
15203 # Old archive suffix (normally "a").
15204 libext="$libext"
15205
15206 # Shared library suffix (normally ".so").
15207 shrext_cmds='$shrext_cmds'
15208
15209 # Executable file suffix (normally "").
15210 exeext="$exeext"
15211
15212 # Additional compiler flags for building library objects.
15213 pic_flag=$lt_lt_prog_compiler_pic_F77
15214 pic_mode=$pic_mode
15215
15216 # What is the maximum length of a command?
15217 max_cmd_len=$lt_cv_sys_max_cmd_len
15218
15219 # Does compiler simultaneously support -c and -o options?
15220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15221
15222 # Must we lock files when doing compilation ?
15223 need_locks=$lt_need_locks
15224
15225 # Do we need the lib prefix for modules?
15226 need_lib_prefix=$need_lib_prefix
15227
15228 # Do we need a version for libraries?
15229 need_version=$need_version
15230
15231 # Whether dlopen is supported.
15232 dlopen_support=$enable_dlopen
15233
15234 # Whether dlopen of programs is supported.
15235 dlopen_self=$enable_dlopen_self
15236
15237 # Whether dlopen of statically linked programs is supported.
15238 dlopen_self_static=$enable_dlopen_self_static
15239
15240 # Compiler flag to prevent dynamic linking.
15241 link_static_flag=$lt_lt_prog_compiler_static_F77
15242
15243 # Compiler flag to turn off builtin functions.
15244 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15245
15246 # Compiler flag to allow reflexive dlopens.
15247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15248
15249 # Compiler flag to generate shared objects directly from archives.
15250 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15251
15252 # Compiler flag to generate thread-safe objects.
15253 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15254
15255 # Library versioning type.
15256 version_type=$version_type
15257
15258 # Format of library name prefix.
15259 libname_spec=$lt_libname_spec
15260
15261 # List of archive names.  First name is the real one, the rest are links.
15262 # The last name is the one that the linker finds with -lNAME.
15263 library_names_spec=$lt_library_names_spec
15264
15265 # The coded name of the library, if different from the real name.
15266 soname_spec=$lt_soname_spec
15267
15268 # Commands used to build and install an old-style archive.
15269 RANLIB=$lt_RANLIB
15270 old_archive_cmds=$lt_old_archive_cmds_F77
15271 old_postinstall_cmds=$lt_old_postinstall_cmds
15272 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15273
15274 # Create an old-style archive from a shared archive.
15275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15276
15277 # Create a temporary old-style archive to link instead of a shared archive.
15278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15279
15280 # Commands used to build and install a shared archive.
15281 archive_cmds=$lt_archive_cmds_F77
15282 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15283 postinstall_cmds=$lt_postinstall_cmds
15284 postuninstall_cmds=$lt_postuninstall_cmds
15285
15286 # Commands used to build a loadable module (assumed same as above if empty)
15287 module_cmds=$lt_module_cmds_F77
15288 module_expsym_cmds=$lt_module_expsym_cmds_F77
15289
15290 # Commands to strip libraries.
15291 old_striplib=$lt_old_striplib
15292 striplib=$lt_striplib
15293
15294 # Dependencies to place before the objects being linked to create a
15295 # shared library.
15296 predep_objects=$lt_predep_objects_F77
15297
15298 # Dependencies to place after the objects being linked to create a
15299 # shared library.
15300 postdep_objects=$lt_postdep_objects_F77
15301
15302 # Dependencies to place before the objects being linked to create a
15303 # shared library.
15304 predeps=$lt_predeps_F77
15305
15306 # Dependencies to place after the objects being linked to create a
15307 # shared library.
15308 postdeps=$lt_postdeps_F77
15309
15310 # The library search path used internally by the compiler when linking
15311 # a shared library.
15312 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15313
15314 # Method to check whether dependent libraries are shared objects.
15315 deplibs_check_method=$lt_deplibs_check_method
15316
15317 # Command to use when deplibs_check_method == file_magic.
15318 file_magic_cmd=$lt_file_magic_cmd
15319
15320 # Flag that allows shared libraries with undefined symbols to be built.
15321 allow_undefined_flag=$lt_allow_undefined_flag_F77
15322
15323 # Flag that forces no undefined symbols.
15324 no_undefined_flag=$lt_no_undefined_flag_F77
15325
15326 # Commands used to finish a libtool library installation in a directory.
15327 finish_cmds=$lt_finish_cmds
15328
15329 # Same as above, but a single script fragment to be evaled but not shown.
15330 finish_eval=$lt_finish_eval
15331
15332 # Take the output of nm and produce a listing of raw symbols and C names.
15333 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15334
15335 # Transform the output of nm in a proper C declaration
15336 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15337
15338 # Transform the output of nm in a C name address pair
15339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15340
15341 # This is the shared library runtime path variable.
15342 runpath_var=$runpath_var
15343
15344 # This is the shared library path variable.
15345 shlibpath_var=$shlibpath_var
15346
15347 # Is shlibpath searched before the hard-coded library search path?
15348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15349
15350 # How to hardcode a shared library path into an executable.
15351 hardcode_action=$hardcode_action_F77
15352
15353 # Whether we should hardcode library paths into libraries.
15354 hardcode_into_libs=$hardcode_into_libs
15355
15356 # Flag to hardcode \$libdir into a binary during linking.
15357 # This must work even if \$libdir does not exist.
15358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15359
15360 # If ld is used when linking, flag to hardcode \$libdir into
15361 # a binary during linking. This must work even if \$libdir does
15362 # not exist.
15363 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15364
15365 # Whether we need a single -rpath flag with a separated argument.
15366 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15367
15368 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15369 # resulting binary.
15370 hardcode_direct=$hardcode_direct_F77
15371
15372 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15373 # resulting binary.
15374 hardcode_minus_L=$hardcode_minus_L_F77
15375
15376 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15377 # the resulting binary.
15378 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15379
15380 # Set to yes if building a shared library automatically hardcodes DIR into the library
15381 # and all subsequent libraries and executables linked against it.
15382 hardcode_automatic=$hardcode_automatic_F77
15383
15384 # Variables whose values should be saved in libtool wrapper scripts and
15385 # restored at relink time.
15386 variables_saved_for_relink="$variables_saved_for_relink"
15387
15388 # Whether libtool must link a program against all its dependency libraries.
15389 link_all_deplibs=$link_all_deplibs_F77
15390
15391 # Compile-time system search path for libraries
15392 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15393
15394 # Run-time system search path for libraries
15395 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15396
15397 # Fix the shell variable \$srcfile for the compiler.
15398 fix_srcfile_path="$fix_srcfile_path_F77"
15399
15400 # Set to yes if exported symbols are required.
15401 always_export_symbols=$always_export_symbols_F77
15402
15403 # The commands to list exported symbols.
15404 export_symbols_cmds=$lt_export_symbols_cmds_F77
15405
15406 # The commands to extract the exported symbol list from a shared archive.
15407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15408
15409 # Symbols that should not be listed in the preloaded symbols.
15410 exclude_expsyms=$lt_exclude_expsyms_F77
15411
15412 # Symbols that must always be exported.
15413 include_expsyms=$lt_include_expsyms_F77
15414
15415 # ### END LIBTOOL TAG CONFIG: $tagname
15416
15417 __EOF__
15418
15419
15420 else
15421   # If there is no Makefile yet, we rely on a make rule to execute
15422   # `config.status --recheck' to rerun these tests and create the
15423   # libtool script then.
15424   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15425   if test -f "$ltmain_in"; then
15426     test -f Makefile && make "$ltmain"
15427   fi
15428 fi
15429
15430
15431 ac_ext=c
15432 ac_cpp='$CPP $CPPFLAGS'
15433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15436
15437 CC="$lt_save_CC"
15438
15439         else
15440           tagname=""
15441         fi
15442         ;;
15443
15444       GCJ)
15445         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15446
15447
15448
15449 # Source file extension for Java test sources.
15450 ac_ext=java
15451
15452 # Object file extension for compiled Java test sources.
15453 objext=o
15454 objext_GCJ=$objext
15455
15456 # Code to be used in simple compile tests
15457 lt_simple_compile_test_code="class foo {}\n"
15458
15459 # Code to be used in simple link tests
15460 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15461
15462 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15463
15464 # If no C compiler was specified, use CC.
15465 LTCC=${LTCC-"$CC"}
15466
15467 # Allow CC to be a program name with arguments.
15468 compiler=$CC
15469
15470
15471 # Allow CC to be a program name with arguments.
15472 lt_save_CC="$CC"
15473 CC=${GCJ-"gcj"}
15474 compiler=$CC
15475 compiler_GCJ=$CC
15476
15477 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15478 archive_cmds_need_lc_GCJ=no
15479
15480
15481 lt_prog_compiler_no_builtin_flag_GCJ=
15482
15483 if test "$GCC" = yes; then
15484   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15485
15486
15487 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15488 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   lt_cv_prog_compiler_rtti_exceptions=no
15493   ac_outfile=conftest.$ac_objext
15494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495    lt_compiler_flag="-fno-rtti -fno-exceptions"
15496    # Insert the option either (1) after the last *FLAGS variable, or
15497    # (2) before a word containing "conftest.", or (3) at the end.
15498    # Note that $ac_compile itself does not contain backslashes and begins
15499    # with a dollar sign (not a hyphen), so the echo should work correctly.
15500    # The option is referenced via a variable to avoid confusing sed.
15501    lt_compile=`echo "$ac_compile" | $SED \
15502    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504    -e 's:$: $lt_compiler_flag:'`
15505    (eval echo "\"\$as_me:15505: $lt_compile\"" >&5)
15506    (eval "$lt_compile" 2>conftest.err)
15507    ac_status=$?
15508    cat conftest.err >&5
15509    echo "$as_me:15509: \$? = $ac_status" >&5
15510    if (exit $ac_status) && test -s "$ac_outfile"; then
15511      # The compiler can only warn and ignore the option if not recognized
15512      # So say no if there are warnings
15513      if test ! -s conftest.err; then
15514        lt_cv_prog_compiler_rtti_exceptions=yes
15515      fi
15516    fi
15517    $rm conftest*
15518
15519 fi
15520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15521 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15522
15523 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15524     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15525 else
15526     :
15527 fi
15528
15529 fi
15530
15531 lt_prog_compiler_wl_GCJ=
15532 lt_prog_compiler_pic_GCJ=
15533 lt_prog_compiler_static_GCJ=
15534
15535 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15536 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15537
15538   if test "$GCC" = yes; then
15539     lt_prog_compiler_wl_GCJ='-Wl,'
15540     lt_prog_compiler_static_GCJ='-static'
15541
15542     case $host_os in
15543       aix*)
15544       # All AIX code is PIC.
15545       if test "$host_cpu" = ia64; then
15546         # AIX 5 now supports IA64 processor
15547         lt_prog_compiler_static_GCJ='-Bstatic'
15548       fi
15549       ;;
15550
15551     amigaos*)
15552       # FIXME: we need at least 68020 code to build shared libraries, but
15553       # adding the `-m68020' flag to GCC prevents building anything better,
15554       # like `-m68040'.
15555       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15556       ;;
15557
15558     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15559       # PIC is the default for these OSes.
15560       ;;
15561
15562     mingw* | pw32* | os2*)
15563       # This hack is so that the source file can tell whether it is being
15564       # built for inclusion in a dll (and should export symbols for example).
15565       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15566       ;;
15567
15568     darwin* | rhapsody*)
15569       # PIC is the default on this platform
15570       # Common symbols not allowed in MH_DYLIB files
15571       lt_prog_compiler_pic_GCJ='-fno-common'
15572       ;;
15573
15574     msdosdjgpp*)
15575       # Just because we use GCC doesn't mean we suddenly get shared libraries
15576       # on systems that don't support them.
15577       lt_prog_compiler_can_build_shared_GCJ=no
15578       enable_shared=no
15579       ;;
15580
15581     sysv4*MP*)
15582       if test -d /usr/nec; then
15583         lt_prog_compiler_pic_GCJ=-Kconform_pic
15584       fi
15585       ;;
15586
15587     hpux*)
15588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15589       # not for PA HP-UX.
15590       case "$host_cpu" in
15591       hppa*64*|ia64*)
15592         # +Z the default
15593         ;;
15594       *)
15595         lt_prog_compiler_pic_GCJ='-fPIC'
15596         ;;
15597       esac
15598       ;;
15599
15600     *)
15601       lt_prog_compiler_pic_GCJ='-fPIC'
15602       ;;
15603     esac
15604   else
15605     # PORTME Check for flag to pass linker flags through the system compiler.
15606     case $host_os in
15607     aix*)
15608       lt_prog_compiler_wl_GCJ='-Wl,'
15609       if test "$host_cpu" = ia64; then
15610         # AIX 5 now supports IA64 processor
15611         lt_prog_compiler_static_GCJ='-Bstatic'
15612       else
15613         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15614       fi
15615       ;;
15616       darwin*)
15617         # PIC is the default on this platform
15618         # Common symbols not allowed in MH_DYLIB files
15619        case "$cc_basename" in
15620          xlc*)
15621          lt_prog_compiler_pic_GCJ='-qnocommon'
15622          lt_prog_compiler_wl_GCJ='-Wl,'
15623          ;;
15624        esac
15625        ;;
15626
15627     mingw* | pw32* | os2*)
15628       # This hack is so that the source file can tell whether it is being
15629       # built for inclusion in a dll (and should export symbols for example).
15630       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15631       ;;
15632
15633     hpux9* | hpux10* | hpux11*)
15634       lt_prog_compiler_wl_GCJ='-Wl,'
15635       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15636       # not for PA HP-UX.
15637       case "$host_cpu" in
15638       hppa*64*|ia64*)
15639         # +Z the default
15640         ;;
15641       *)
15642         lt_prog_compiler_pic_GCJ='+Z'
15643         ;;
15644       esac
15645       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15646       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15647       ;;
15648
15649     irix5* | irix6* | nonstopux*)
15650       lt_prog_compiler_wl_GCJ='-Wl,'
15651       # PIC (with -KPIC) is the default.
15652       lt_prog_compiler_static_GCJ='-non_shared'
15653       ;;
15654
15655     newsos6)
15656       lt_prog_compiler_pic_GCJ='-KPIC'
15657       lt_prog_compiler_static_GCJ='-Bstatic'
15658       ;;
15659
15660     linux*)
15661       case $CC in
15662       icc* | ecc*)
15663         lt_prog_compiler_wl_GCJ='-Wl,'
15664         lt_prog_compiler_pic_GCJ='-KPIC'
15665         lt_prog_compiler_static_GCJ='-static'
15666         ;;
15667       ccc*)
15668         lt_prog_compiler_wl_GCJ='-Wl,'
15669         # All Alpha code is PIC.
15670         lt_prog_compiler_static_GCJ='-non_shared'
15671         ;;
15672       esac
15673       ;;
15674
15675     osf3* | osf4* | osf5*)
15676       lt_prog_compiler_wl_GCJ='-Wl,'
15677       # All OSF/1 code is PIC.
15678       lt_prog_compiler_static_GCJ='-non_shared'
15679       ;;
15680
15681     sco3.2v5*)
15682       lt_prog_compiler_pic_GCJ='-Kpic'
15683       lt_prog_compiler_static_GCJ='-dn'
15684       ;;
15685
15686     solaris*)
15687       lt_prog_compiler_wl_GCJ='-Wl,'
15688       lt_prog_compiler_pic_GCJ='-KPIC'
15689       lt_prog_compiler_static_GCJ='-Bstatic'
15690       ;;
15691
15692     sunos4*)
15693       lt_prog_compiler_wl_GCJ='-Qoption ld '
15694       lt_prog_compiler_pic_GCJ='-PIC'
15695       lt_prog_compiler_static_GCJ='-Bstatic'
15696       ;;
15697
15698     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15699       lt_prog_compiler_wl_GCJ='-Wl,'
15700       lt_prog_compiler_pic_GCJ='-KPIC'
15701       lt_prog_compiler_static_GCJ='-Bstatic'
15702       ;;
15703
15704     sysv4*MP*)
15705       if test -d /usr/nec ;then
15706         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15707         lt_prog_compiler_static_GCJ='-Bstatic'
15708       fi
15709       ;;
15710
15711     uts4*)
15712       lt_prog_compiler_pic_GCJ='-pic'
15713       lt_prog_compiler_static_GCJ='-Bstatic'
15714       ;;
15715
15716     *)
15717       lt_prog_compiler_can_build_shared_GCJ=no
15718       ;;
15719     esac
15720   fi
15721
15722 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15723 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15724
15725 #
15726 # Check to make sure the PIC flag actually works.
15727 #
15728 if test -n "$lt_prog_compiler_pic_GCJ"; then
15729
15730 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15731 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15732 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   lt_prog_compiler_pic_works_GCJ=no
15736   ac_outfile=conftest.$ac_objext
15737    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15738    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15739    # Insert the option either (1) after the last *FLAGS variable, or
15740    # (2) before a word containing "conftest.", or (3) at the end.
15741    # Note that $ac_compile itself does not contain backslashes and begins
15742    # with a dollar sign (not a hyphen), so the echo should work correctly.
15743    # The option is referenced via a variable to avoid confusing sed.
15744    lt_compile=`echo "$ac_compile" | $SED \
15745    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15746    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15747    -e 's:$: $lt_compiler_flag:'`
15748    (eval echo "\"\$as_me:15748: $lt_compile\"" >&5)
15749    (eval "$lt_compile" 2>conftest.err)
15750    ac_status=$?
15751    cat conftest.err >&5
15752    echo "$as_me:15752: \$? = $ac_status" >&5
15753    if (exit $ac_status) && test -s "$ac_outfile"; then
15754      # The compiler can only warn and ignore the option if not recognized
15755      # So say no if there are warnings
15756      if test ! -s conftest.err; then
15757        lt_prog_compiler_pic_works_GCJ=yes
15758      fi
15759    fi
15760    $rm conftest*
15761
15762 fi
15763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15764 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15765
15766 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15767     case $lt_prog_compiler_pic_GCJ in
15768      "" | " "*) ;;
15769      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15770      esac
15771 else
15772     lt_prog_compiler_pic_GCJ=
15773      lt_prog_compiler_can_build_shared_GCJ=no
15774 fi
15775
15776 fi
15777 case "$host_os" in
15778   # For platforms which do not support PIC, -DPIC is meaningless:
15779   *djgpp*)
15780     lt_prog_compiler_pic_GCJ=
15781     ;;
15782   *)
15783     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15784     ;;
15785 esac
15786
15787 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15789 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   lt_cv_prog_compiler_c_o_GCJ=no
15793    $rm -r conftest 2>/dev/null
15794    mkdir conftest
15795    cd conftest
15796    mkdir out
15797    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15798
15799    lt_compiler_flag="-o out/conftest2.$ac_objext"
15800    # Insert the option either (1) after the last *FLAGS variable, or
15801    # (2) before a word containing "conftest.", or (3) at the end.
15802    # Note that $ac_compile itself does not contain backslashes and begins
15803    # with a dollar sign (not a hyphen), so the echo should work correctly.
15804    lt_compile=`echo "$ac_compile" | $SED \
15805    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807    -e 's:$: $lt_compiler_flag:'`
15808    (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809    (eval "$lt_compile" 2>out/conftest.err)
15810    ac_status=$?
15811    cat out/conftest.err >&5
15812    echo "$as_me:15812: \$? = $ac_status" >&5
15813    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15814    then
15815      # The compiler can only warn and ignore the option if not recognized
15816      # So say no if there are warnings
15817      if test ! -s out/conftest.err; then
15818        lt_cv_prog_compiler_c_o_GCJ=yes
15819      fi
15820    fi
15821    chmod u+w .
15822    $rm conftest*
15823    # SGI C++ compiler will create directory out/ii_files/ for
15824    # template instantiation
15825    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15826    $rm out/* && rmdir out
15827    cd ..
15828    rmdir conftest
15829    $rm conftest*
15830
15831 fi
15832 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15833 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15834
15835
15836 hard_links="nottested"
15837 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15838   # do not overwrite the value of need_locks provided by the user
15839   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15840 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15841   hard_links=yes
15842   $rm conftest*
15843   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15844   touch conftest.a
15845   ln conftest.a conftest.b 2>&5 || hard_links=no
15846   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15847   echo "$as_me:$LINENO: result: $hard_links" >&5
15848 echo "${ECHO_T}$hard_links" >&6
15849   if test "$hard_links" = no; then
15850     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15852     need_locks=warn
15853   fi
15854 else
15855   need_locks=no
15856 fi
15857
15858 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15860
15861   runpath_var=
15862   allow_undefined_flag_GCJ=
15863   enable_shared_with_static_runtimes_GCJ=no
15864   archive_cmds_GCJ=
15865   archive_expsym_cmds_GCJ=
15866   old_archive_From_new_cmds_GCJ=
15867   old_archive_from_expsyms_cmds_GCJ=
15868   export_dynamic_flag_spec_GCJ=
15869   whole_archive_flag_spec_GCJ=
15870   thread_safe_flag_spec_GCJ=
15871   hardcode_libdir_flag_spec_GCJ=
15872   hardcode_libdir_flag_spec_ld_GCJ=
15873   hardcode_libdir_separator_GCJ=
15874   hardcode_direct_GCJ=no
15875   hardcode_minus_L_GCJ=no
15876   hardcode_shlibpath_var_GCJ=unsupported
15877   link_all_deplibs_GCJ=unknown
15878   hardcode_automatic_GCJ=no
15879   module_cmds_GCJ=
15880   module_expsym_cmds_GCJ=
15881   always_export_symbols_GCJ=no
15882   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15883   # include_expsyms should be a list of space-separated symbols to be *always*
15884   # included in the symbol list
15885   include_expsyms_GCJ=
15886   # exclude_expsyms can be an extended regexp of symbols to exclude
15887   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15888   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15889   # as well as any symbol that contains `d'.
15890   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15891   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15892   # platforms (ab)use it in PIC code, but their linkers get confused if
15893   # the symbol is explicitly referenced.  Since portable code cannot
15894   # rely on this symbol name, it's probably fine to never include it in
15895   # preloaded symbol tables.
15896   extract_expsyms_cmds=
15897
15898   case $host_os in
15899   cygwin* | mingw* | pw32*)
15900     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15901     # When not using gcc, we currently assume that we are using
15902     # Microsoft Visual C++.
15903     if test "$GCC" != yes; then
15904       with_gnu_ld=no
15905     fi
15906     ;;
15907   openbsd*)
15908     with_gnu_ld=no
15909     ;;
15910   esac
15911
15912   ld_shlibs_GCJ=yes
15913   if test "$with_gnu_ld" = yes; then
15914     # If archive_cmds runs LD, not CC, wlarc should be empty
15915     wlarc='${wl}'
15916
15917     # See if GNU ld supports shared libraries.
15918     case $host_os in
15919     aix3* | aix4* | aix5*)
15920       # On AIX/PPC, the GNU linker is very broken
15921       if test "$host_cpu" != ia64; then
15922         ld_shlibs_GCJ=no
15923         cat <<EOF 1>&2
15924
15925 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15926 *** to be unable to reliably create shared libraries on AIX.
15927 *** Therefore, libtool is disabling shared libraries support.  If you
15928 *** really care for shared libraries, you may want to modify your PATH
15929 *** so that a non-GNU linker is found, and then restart.
15930
15931 EOF
15932       fi
15933       ;;
15934
15935     amigaos*)
15936       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)'
15937       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15938       hardcode_minus_L_GCJ=yes
15939
15940       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15941       # that the semantics of dynamic libraries on AmigaOS, at least up
15942       # to version 4, is to share data among multiple programs linked
15943       # with the same dynamic library.  Since this doesn't match the
15944       # behavior of shared libraries on other platforms, we can't use
15945       # them.
15946       ld_shlibs_GCJ=no
15947       ;;
15948
15949     beos*)
15950       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951         allow_undefined_flag_GCJ=unsupported
15952         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15953         # support --undefined.  This deserves some investigation.  FIXME
15954         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15955       else
15956         ld_shlibs_GCJ=no
15957       fi
15958       ;;
15959
15960     cygwin* | mingw* | pw32*)
15961       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15962       # as there is no search path for DLLs.
15963       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964       allow_undefined_flag_GCJ=unsupported
15965       always_export_symbols_GCJ=no
15966       enable_shared_with_static_runtimes_GCJ=yes
15967       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15968
15969       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15970         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15971         # If the export-symbols file already is a .def file (1st line
15972         # is EXPORTS), use it as is; otherwise, prepend...
15973         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15974           cp $export_symbols $output_objdir/$soname.def;
15975         else
15976           echo EXPORTS > $output_objdir/$soname.def;
15977           cat $export_symbols >> $output_objdir/$soname.def;
15978         fi~
15979         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15980       else
15981         ld_shlibs=no
15982       fi
15983       ;;
15984
15985     netbsd*)
15986       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15988         wlarc=
15989       else
15990         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15992       fi
15993       ;;
15994
15995     solaris* | sysv5*)
15996       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15997         ld_shlibs_GCJ=no
15998         cat <<EOF 1>&2
15999
16000 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16001 *** create shared libraries on Solaris systems.  Therefore, libtool
16002 *** is disabling shared libraries support.  We urge you to upgrade GNU
16003 *** binutils to release 2.9.1 or newer.  Another option is to modify
16004 *** your PATH or compiler configuration so that the native linker is
16005 *** used, and then restart.
16006
16007 EOF
16008       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16009         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16010         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16011       else
16012         ld_shlibs_GCJ=no
16013       fi
16014       ;;
16015
16016     sunos4*)
16017       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16018       wlarc=
16019       hardcode_direct_GCJ=yes
16020       hardcode_shlibpath_var_GCJ=no
16021       ;;
16022
16023   linux*)
16024     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026         archive_cmds_GCJ="$tmp_archive_cmds"
16027       supports_anon_versioning=no
16028       case `$LD -v 2>/dev/null` in
16029         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16030         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16031         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16032         *\ 2.11.*) ;; # other 2.11 versions
16033         *) supports_anon_versioning=yes ;;
16034       esac
16035       if test $supports_anon_versioning = yes; then
16036         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16038 $echo "local: *; };" >> $output_objdir/$libname.ver~
16039         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16040       else
16041         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16042       fi
16043     else
16044       ld_shlibs_GCJ=no
16045     fi
16046     ;;
16047
16048     *)
16049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16050         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16052       else
16053         ld_shlibs_GCJ=no
16054       fi
16055       ;;
16056     esac
16057
16058     if test "$ld_shlibs_GCJ" = yes; then
16059       runpath_var=LD_RUN_PATH
16060       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16061       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16062       # ancient GNU ld didn't support --whole-archive et. al.
16063       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16064         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16065       else
16066         whole_archive_flag_spec_GCJ=
16067       fi
16068     fi
16069   else
16070     # PORTME fill in a description of your system's linker (not GNU ld)
16071     case $host_os in
16072     aix3*)
16073       allow_undefined_flag_GCJ=unsupported
16074       always_export_symbols_GCJ=yes
16075       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'
16076       # Note: this linker hardcodes the directories in LIBPATH if there
16077       # are no directories specified by -L.
16078       hardcode_minus_L_GCJ=yes
16079       if test "$GCC" = yes && test -z "$link_static_flag"; then
16080         # Neither direct hardcoding nor static linking is supported with a
16081         # broken collect2.
16082         hardcode_direct_GCJ=unsupported
16083       fi
16084       ;;
16085
16086     aix4* | aix5*)
16087       if test "$host_cpu" = ia64; then
16088         # On IA64, the linker does run time linking by default, so we don't
16089         # have to do anything special.
16090         aix_use_runtimelinking=no
16091         exp_sym_flag='-Bexport'
16092         no_entry_flag=""
16093       else
16094         # If we're using GNU nm, then we don't want the "-C" option.
16095         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16096         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16097           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'
16098         else
16099           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'
16100         fi
16101         aix_use_runtimelinking=no
16102
16103         # Test if we are trying to use run time linking or normal
16104         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16105         # need to do runtime linking.
16106         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16107           for ld_flag in $LDFLAGS; do
16108           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16109             aix_use_runtimelinking=yes
16110             break
16111           fi
16112           done
16113         esac
16114
16115         exp_sym_flag='-bexport'
16116         no_entry_flag='-bnoentry'
16117       fi
16118
16119       # When large executables or shared objects are built, AIX ld can
16120       # have problems creating the table of contents.  If linking a library
16121       # or program results in "error TOC overflow" add -mminimal-toc to
16122       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16123       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16124
16125       archive_cmds_GCJ=''
16126       hardcode_direct_GCJ=yes
16127       hardcode_libdir_separator_GCJ=':'
16128       link_all_deplibs_GCJ=yes
16129
16130       if test "$GCC" = yes; then
16131         case $host_os in aix4.012|aix4.012.*)
16132         # We only want to do this on AIX 4.2 and lower, the check
16133         # below for broken collect2 doesn't work under 4.3+
16134           collect2name=`${CC} -print-prog-name=collect2`
16135           if test -f "$collect2name" && \
16136            strings "$collect2name" | grep resolve_lib_name >/dev/null
16137           then
16138           # We have reworked collect2
16139           hardcode_direct_GCJ=yes
16140           else
16141           # We have old collect2
16142           hardcode_direct_GCJ=unsupported
16143           # It fails to find uninstalled libraries when the uninstalled
16144           # path is not listed in the libpath.  Setting hardcode_minus_L
16145           # to unsupported forces relinking
16146           hardcode_minus_L_GCJ=yes
16147           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16148           hardcode_libdir_separator_GCJ=
16149           fi
16150         esac
16151         shared_flag='-shared'
16152       else
16153         # not using gcc
16154         if test "$host_cpu" = ia64; then
16155         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16156         # chokes on -Wl,-G. The following line is correct:
16157           shared_flag='-G'
16158         else
16159         if test "$aix_use_runtimelinking" = yes; then
16160             shared_flag='${wl}-G'
16161           else
16162             shared_flag='${wl}-bM:SRE'
16163         fi
16164         fi
16165       fi
16166
16167       # It seems that -bexpall does not export symbols beginning with
16168       # underscore (_), so it is better to generate a list of symbols to export.
16169       always_export_symbols_GCJ=yes
16170       if test "$aix_use_runtimelinking" = yes; then
16171         # Warning - without using the other runtime loading flags (-brtl),
16172         # -berok will link without error, but may produce a broken library.
16173         allow_undefined_flag_GCJ='-berok'
16174        # Determine the default libpath from the value encoded in an empty executable.
16175        cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181
16182 int
16183 main ()
16184 {
16185
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192   (eval $ac_link) 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag"
16200                          || test ! -s conftest.err'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; } &&
16206          { ac_try='test -s conftest$ac_exeext'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; }; then
16212
16213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16214 }'`
16215 # Check for a 64-bit object if we didn't find anything.
16216 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; }
16217 }'`; fi
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16221
16222 fi
16223 rm -f conftest.err conftest.$ac_objext \
16224       conftest$ac_exeext conftest.$ac_ext
16225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16226
16227        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16228         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"
16229        else
16230         if test "$host_cpu" = ia64; then
16231           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16232           allow_undefined_flag_GCJ="-z nodefs"
16233           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"
16234         else
16235          # Determine the default libpath from the value encoded in an empty executable.
16236          cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242
16243 int
16244 main ()
16245 {
16246
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253   (eval $ac_link) 2>conftest.er1
16254   ac_status=$?
16255   grep -v '^ *+' conftest.er1 >conftest.err
16256   rm -f conftest.er1
16257   cat conftest.err >&5
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); } &&
16260          { ac_try='test -z "$ac_c_werror_flag"
16261                          || test ! -s conftest.err'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; } &&
16267          { ac_try='test -s conftest$ac_exeext'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273
16274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16275 }'`
16276 # Check for a 64-bit object if we didn't find anything.
16277 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; }
16278 }'`; fi
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283 fi
16284 rm -f conftest.err conftest.$ac_objext \
16285       conftest$ac_exeext conftest.$ac_ext
16286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16287
16288          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16289           # Warning - without using the other run time loading flags,
16290           # -berok will link without error, but may produce a broken library.
16291           no_undefined_flag_GCJ=' ${wl}-bernotok'
16292           allow_undefined_flag_GCJ=' ${wl}-berok'
16293           # -bexpall does not export symbols beginning with underscore (_)
16294           always_export_symbols_GCJ=yes
16295           # Exported symbols can be pulled into shared objects from archives
16296           whole_archive_flag_spec_GCJ=' '
16297           archive_cmds_need_lc_GCJ=yes
16298           # This is similar to how AIX traditionally builds it's shared libraries.
16299           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'
16300         fi
16301       fi
16302       ;;
16303
16304     amigaos*)
16305       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)'
16306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16307       hardcode_minus_L_GCJ=yes
16308       # see comment about different semantics on the GNU ld section
16309       ld_shlibs_GCJ=no
16310       ;;
16311
16312     bsdi[45]*)
16313       export_dynamic_flag_spec_GCJ=-rdynamic
16314       ;;
16315
16316     cygwin* | mingw* | pw32*)
16317       # When not using gcc, we currently assume that we are using
16318       # Microsoft Visual C++.
16319       # hardcode_libdir_flag_spec is actually meaningless, as there is
16320       # no search path for DLLs.
16321       hardcode_libdir_flag_spec_GCJ=' '
16322       allow_undefined_flag_GCJ=unsupported
16323       # Tell ltmain to make .lib files, not .a files.
16324       libext=lib
16325       # Tell ltmain to make .dll files, not .so files.
16326       shrext_cmds=".dll"
16327       # FIXME: Setting linknames here is a bad hack.
16328       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16329       # The linker will automatically build a .lib file if we build a DLL.
16330       old_archive_From_new_cmds_GCJ='true'
16331       # FIXME: Should let the user specify the lib program.
16332       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16333       fix_srcfile_path='`cygpath -w "$srcfile"`'
16334       enable_shared_with_static_runtimes_GCJ=yes
16335       ;;
16336
16337     darwin* | rhapsody*)
16338       case "$host_os" in
16339         rhapsody* | darwin1.[012])
16340          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16341          ;;
16342        *) # Darwin 1.3 on
16343          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16344            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16345          else
16346            case ${MACOSX_DEPLOYMENT_TARGET} in
16347              10.[012])
16348                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16349                ;;
16350              10.*)
16351                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16352                ;;
16353            esac
16354          fi
16355          ;;
16356       esac
16357       archive_cmds_need_lc_GCJ=no
16358       hardcode_direct_GCJ=no
16359       hardcode_automatic_GCJ=yes
16360       hardcode_shlibpath_var_GCJ=unsupported
16361       whole_archive_flag_spec_GCJ=''
16362       link_all_deplibs_GCJ=yes
16363     if test "$GCC" = yes ; then
16364         output_verbose_link_cmd='echo'
16365         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16366       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16367       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16368       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16369       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}'
16370     else
16371       case "$cc_basename" in
16372         xlc*)
16373          output_verbose_link_cmd='echo'
16374          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16375          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16376           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16377          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16378           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}'
16379           ;;
16380        *)
16381          ld_shlibs_GCJ=no
16382           ;;
16383       esac
16384     fi
16385       ;;
16386
16387     dgux*)
16388       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390       hardcode_shlibpath_var_GCJ=no
16391       ;;
16392
16393     freebsd1*)
16394       ld_shlibs_GCJ=no
16395       ;;
16396
16397     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16398     # support.  Future versions do this automatically, but an explicit c++rt0.o
16399     # does not break anything, and helps significantly (at the cost of a little
16400     # extra space).
16401     freebsd2.2*)
16402       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16403       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404       hardcode_direct_GCJ=yes
16405       hardcode_shlibpath_var_GCJ=no
16406       ;;
16407
16408     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16409     freebsd2*)
16410       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16411       hardcode_direct_GCJ=yes
16412       hardcode_minus_L_GCJ=yes
16413       hardcode_shlibpath_var_GCJ=no
16414       ;;
16415
16416     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16417     freebsd* | kfreebsd*-gnu)
16418       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16419       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16420       hardcode_direct_GCJ=yes
16421       hardcode_shlibpath_var_GCJ=no
16422       ;;
16423
16424     hpux9*)
16425       if test "$GCC" = yes; then
16426         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'
16427       else
16428         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'
16429       fi
16430       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16431       hardcode_libdir_separator_GCJ=:
16432       hardcode_direct_GCJ=yes
16433
16434       # hardcode_minus_L: Not really in the search PATH,
16435       # but as the default location of the library.
16436       hardcode_minus_L_GCJ=yes
16437       export_dynamic_flag_spec_GCJ='${wl}-E'
16438       ;;
16439
16440     hpux10* | hpux11*)
16441       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16442         case "$host_cpu" in
16443         hppa*64*|ia64*)
16444           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16445           ;;
16446         *)
16447           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16448           ;;
16449         esac
16450       else
16451         case "$host_cpu" in
16452         hppa*64*|ia64*)
16453           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16454           ;;
16455         *)
16456           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16457           ;;
16458         esac
16459       fi
16460       if test "$with_gnu_ld" = no; then
16461         case "$host_cpu" in
16462         hppa*64*)
16463           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16464           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16465           hardcode_libdir_separator_GCJ=:
16466           hardcode_direct_GCJ=no
16467           hardcode_shlibpath_var_GCJ=no
16468           ;;
16469         ia64*)
16470           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471           hardcode_direct_GCJ=no
16472           hardcode_shlibpath_var_GCJ=no
16473
16474           # hardcode_minus_L: Not really in the search PATH,
16475           # but as the default location of the library.
16476           hardcode_minus_L_GCJ=yes
16477           ;;
16478         *)
16479           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16480           hardcode_libdir_separator_GCJ=:
16481           hardcode_direct_GCJ=yes
16482           export_dynamic_flag_spec_GCJ='${wl}-E'
16483
16484           # hardcode_minus_L: Not really in the search PATH,
16485           # but as the default location of the library.
16486           hardcode_minus_L_GCJ=yes
16487           ;;
16488         esac
16489       fi
16490       ;;
16491
16492     irix5* | irix6* | nonstopux*)
16493       if test "$GCC" = yes; then
16494         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'
16495       else
16496         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'
16497         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16498       fi
16499       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16500       hardcode_libdir_separator_GCJ=:
16501       link_all_deplibs_GCJ=yes
16502       ;;
16503
16504     netbsd*)
16505       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16506         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16507       else
16508         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16509       fi
16510       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16511       hardcode_direct_GCJ=yes
16512       hardcode_shlibpath_var_GCJ=no
16513       ;;
16514
16515     newsos6)
16516       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517       hardcode_direct_GCJ=yes
16518       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16519       hardcode_libdir_separator_GCJ=:
16520       hardcode_shlibpath_var_GCJ=no
16521       ;;
16522
16523     openbsd*)
16524       hardcode_direct_GCJ=yes
16525       hardcode_shlibpath_var_GCJ=no
16526       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16527         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16529         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16530         export_dynamic_flag_spec_GCJ='${wl}-E'
16531       else
16532        case $host_os in
16533          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16534            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16535            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16536            ;;
16537          *)
16538            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16539            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16540            ;;
16541        esac
16542       fi
16543       ;;
16544
16545     os2*)
16546       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16547       hardcode_minus_L_GCJ=yes
16548       allow_undefined_flag_GCJ=unsupported
16549       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'
16550       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16551       ;;
16552
16553     osf3*)
16554       if test "$GCC" = yes; then
16555         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16556         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'
16557       else
16558         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16559         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'
16560       fi
16561       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16562       hardcode_libdir_separator_GCJ=:
16563       ;;
16564
16565     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16566       if test "$GCC" = yes; then
16567         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16568         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'
16569         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16570       else
16571         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16572         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'
16573         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~
16574         $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'
16575
16576         # Both c and cxx compiler support -rpath directly
16577         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16578       fi
16579       hardcode_libdir_separator_GCJ=:
16580       ;;
16581
16582     sco3.2v5*)
16583       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16584       hardcode_shlibpath_var_GCJ=no
16585       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16586       runpath_var=LD_RUN_PATH
16587       hardcode_runpath_var=yes
16588       ;;
16589
16590     solaris*)
16591       no_undefined_flag_GCJ=' -z text'
16592       if test "$GCC" = yes; then
16593         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16594         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16595           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16596       else
16597         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16599         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16600       fi
16601       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16602       hardcode_shlibpath_var_GCJ=no
16603       case $host_os in
16604       solaris2.[0-5] | solaris2.[0-5].*) ;;
16605       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16606         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16607       esac
16608       link_all_deplibs_GCJ=yes
16609       ;;
16610
16611     sunos4*)
16612       if test "x$host_vendor" = xsequent; then
16613         # Use $CC to link under sequent, because it throws in some extra .o
16614         # files that make .init and .fini sections work.
16615         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16616       else
16617         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16618       fi
16619       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16620       hardcode_direct_GCJ=yes
16621       hardcode_minus_L_GCJ=yes
16622       hardcode_shlibpath_var_GCJ=no
16623       ;;
16624
16625     sysv4)
16626       case $host_vendor in
16627         sni)
16628           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629           hardcode_direct_GCJ=yes # is this really true???
16630         ;;
16631         siemens)
16632           ## LD is ld it makes a PLAMLIB
16633           ## CC just makes a GrossModule.
16634           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16635           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16636           hardcode_direct_GCJ=no
16637         ;;
16638         motorola)
16639           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16641         ;;
16642       esac
16643       runpath_var='LD_RUN_PATH'
16644       hardcode_shlibpath_var_GCJ=no
16645       ;;
16646
16647     sysv4.3*)
16648       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16649       hardcode_shlibpath_var_GCJ=no
16650       export_dynamic_flag_spec_GCJ='-Bexport'
16651       ;;
16652
16653     sysv4*MP*)
16654       if test -d /usr/nec; then
16655         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16656         hardcode_shlibpath_var_GCJ=no
16657         runpath_var=LD_RUN_PATH
16658         hardcode_runpath_var=yes
16659         ld_shlibs_GCJ=yes
16660       fi
16661       ;;
16662
16663     sysv4.2uw2*)
16664       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16665       hardcode_direct_GCJ=yes
16666       hardcode_minus_L_GCJ=no
16667       hardcode_shlibpath_var_GCJ=no
16668       hardcode_runpath_var=yes
16669       runpath_var=LD_RUN_PATH
16670       ;;
16671
16672    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16673       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16674       if test "$GCC" = yes; then
16675         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16676       else
16677         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678       fi
16679       runpath_var='LD_RUN_PATH'
16680       hardcode_shlibpath_var_GCJ=no
16681       ;;
16682
16683     sysv5*)
16684       no_undefined_flag_GCJ=' -z text'
16685       # $CC -shared without GNU ld will not create a library from C++
16686       # object files and a static libstdc++, better avoid it by now
16687       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16689                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16690       hardcode_libdir_flag_spec_GCJ=
16691       hardcode_shlibpath_var_GCJ=no
16692       runpath_var='LD_RUN_PATH'
16693       ;;
16694
16695     uts4*)
16696       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16697       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16698       hardcode_shlibpath_var_GCJ=no
16699       ;;
16700
16701     *)
16702       ld_shlibs_GCJ=no
16703       ;;
16704     esac
16705   fi
16706
16707 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16708 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16709 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16710
16711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16712 if test "$GCC" = yes; then
16713   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16714 fi
16715
16716 #
16717 # Do we need to explicitly link libc?
16718 #
16719 case "x$archive_cmds_need_lc_GCJ" in
16720 x|xyes)
16721   # Assume -lc should be added
16722   archive_cmds_need_lc_GCJ=yes
16723
16724   if test "$enable_shared" = yes && test "$GCC" = yes; then
16725     case $archive_cmds_GCJ in
16726     *'~'*)
16727       # FIXME: we may have to deal with multi-command sequences.
16728       ;;
16729     '$CC '*)
16730       # Test whether the compiler implicitly links with -lc since on some
16731       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16732       # to ld, don't add -lc before -lgcc.
16733       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16735       $rm conftest*
16736       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16737
16738       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739   (eval $ac_compile) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); } 2>conftest.err; then
16743         soname=conftest
16744         lib=conftest
16745         libobjs=conftest.$ac_objext
16746         deplibs=
16747         wl=$lt_prog_compiler_wl_GCJ
16748         compiler_flags=-v
16749         linker_flags=-v
16750         verstring=
16751         output_objdir=.
16752         libname=conftest
16753         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16754         allow_undefined_flag_GCJ=
16755         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16756   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }
16760         then
16761           archive_cmds_need_lc_GCJ=no
16762         else
16763           archive_cmds_need_lc_GCJ=yes
16764         fi
16765         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16766       else
16767         cat conftest.err 1>&5
16768       fi
16769       $rm conftest*
16770       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16771 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16772       ;;
16773     esac
16774   fi
16775   ;;
16776 esac
16777
16778 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16780 library_names_spec=
16781 libname_spec='lib$name'
16782 soname_spec=
16783 shrext_cmds=".so"
16784 postinstall_cmds=
16785 postuninstall_cmds=
16786 finish_cmds=
16787 finish_eval=
16788 shlibpath_var=
16789 shlibpath_overrides_runpath=unknown
16790 version_type=none
16791 dynamic_linker="$host_os ld.so"
16792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16793 if test "$GCC" = yes; then
16794   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16795   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16796     # if the path contains ";" then we assume it to be the separator
16797     # otherwise default to the standard path separator (i.e. ":") - it is
16798     # assumed that no part of a normal pathname contains ";" but that should
16799     # okay in the real world where ";" in dirpaths is itself problematic.
16800     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16801   else
16802     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16803   fi
16804 else
16805   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16806 fi
16807 need_lib_prefix=unknown
16808 hardcode_into_libs=no
16809
16810 # when you set need_version to no, make sure it does not cause -set_version
16811 # flags to be left without arguments
16812 need_version=unknown
16813
16814 case $host_os in
16815 aix3*)
16816   version_type=linux
16817   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16818   shlibpath_var=LIBPATH
16819
16820   # AIX 3 has no versioning support, so we append a major version to the name.
16821   soname_spec='${libname}${release}${shared_ext}$major'
16822   ;;
16823
16824 aix4* | aix5*)
16825   version_type=linux
16826   need_lib_prefix=no
16827   need_version=no
16828   hardcode_into_libs=yes
16829   if test "$host_cpu" = ia64; then
16830     # AIX 5 supports IA64
16831     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16832     shlibpath_var=LD_LIBRARY_PATH
16833   else
16834     # With GCC up to 2.95.x, collect2 would create an import file
16835     # for dependence libraries.  The import file would start with
16836     # the line `#! .'.  This would cause the generated library to
16837     # depend on `.', always an invalid library.  This was fixed in
16838     # development snapshots of GCC prior to 3.0.
16839     case $host_os in
16840       aix4 | aix4.[01] | aix4.[01].*)
16841       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16842            echo ' yes '
16843            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16844         :
16845       else
16846         can_build_shared=no
16847       fi
16848       ;;
16849     esac
16850     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16851     # soname into executable. Probably we can add versioning support to
16852     # collect2, so additional links can be useful in future.
16853     if test "$aix_use_runtimelinking" = yes; then
16854       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16855       # instead of lib<name>.a to let people know that these are not
16856       # typical AIX shared libraries.
16857       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858     else
16859       # We preserve .a as extension for shared libraries through AIX4.2
16860       # and later when we are not doing run time linking.
16861       library_names_spec='${libname}${release}.a $libname.a'
16862       soname_spec='${libname}${release}${shared_ext}$major'
16863     fi
16864     shlibpath_var=LIBPATH
16865   fi
16866   ;;
16867
16868 amigaos*)
16869   library_names_spec='$libname.ixlibrary $libname.a'
16870   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16871   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'
16872   ;;
16873
16874 beos*)
16875   library_names_spec='${libname}${shared_ext}'
16876   dynamic_linker="$host_os ld.so"
16877   shlibpath_var=LIBRARY_PATH
16878   ;;
16879
16880 bsdi[45]*)
16881   version_type=linux
16882   need_version=no
16883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884   soname_spec='${libname}${release}${shared_ext}$major'
16885   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16888   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16889   # the default ld.so.conf also contains /usr/contrib/lib and
16890   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16891   # libtool to hard-code these into programs
16892   ;;
16893
16894 cygwin* | mingw* | pw32*)
16895   version_type=windows
16896   shrext_cmds=".dll"
16897   need_version=no
16898   need_lib_prefix=no
16899
16900   case $GCC,$host_os in
16901   yes,cygwin* | yes,mingw* | yes,pw32*)
16902     library_names_spec='$libname.dll.a'
16903     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16904     postinstall_cmds='base_file=`basename \${file}`~
16905       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16906       dldir=$destdir/`dirname \$dlpath`~
16907       test -d \$dldir || mkdir -p \$dldir~
16908       $install_prog $dir/$dlname \$dldir/$dlname'
16909     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16910       dlpath=$dir/\$dldll~
16911        $rm \$dlpath'
16912     shlibpath_overrides_runpath=yes
16913
16914     case $host_os in
16915     cygwin*)
16916       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16917       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16918       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16919       ;;
16920     mingw*)
16921       # MinGW DLLs use traditional 'lib' prefix
16922       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16923       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16924       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16925         # It is most probably a Windows format PATH printed by
16926         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16927         # path with ; separators, and with drive letters. We can handle the
16928         # drive letters (cygwin fileutils understands them), so leave them,
16929         # especially as we might pass files found there to a mingw objdump,
16930         # which wouldn't understand a cygwinified path. Ahh.
16931         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16932       else
16933         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16934       fi
16935       ;;
16936     pw32*)
16937       # pw32 DLLs use 'pw' prefix rather than 'lib'
16938       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16939       ;;
16940     esac
16941     ;;
16942
16943   *)
16944     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16945     ;;
16946   esac
16947   dynamic_linker='Win32 ld.exe'
16948   # FIXME: first we should search . and the directory the executable is in
16949   shlibpath_var=PATH
16950   ;;
16951
16952 darwin* | rhapsody*)
16953   dynamic_linker="$host_os dyld"
16954   version_type=darwin
16955   need_lib_prefix=no
16956   need_version=no
16957   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16958   soname_spec='${libname}${release}${major}$shared_ext'
16959   shlibpath_overrides_runpath=yes
16960   shlibpath_var=DYLD_LIBRARY_PATH
16961   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16962   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16963   if test "$GCC" = yes; then
16964     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"`
16965   else
16966     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16967   fi
16968   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16969   ;;
16970
16971 dgux*)
16972   version_type=linux
16973   need_lib_prefix=no
16974   need_version=no
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   shlibpath_var=LD_LIBRARY_PATH
16978   ;;
16979
16980 freebsd1*)
16981   dynamic_linker=no
16982   ;;
16983
16984 kfreebsd*-gnu)
16985   version_type=linux
16986   need_lib_prefix=no
16987   need_version=no
16988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16989   soname_spec='${libname}${release}${shared_ext}$major'
16990   shlibpath_var=LD_LIBRARY_PATH
16991   shlibpath_overrides_runpath=no
16992   hardcode_into_libs=yes
16993   dynamic_linker='GNU ld.so'
16994   ;;
16995
16996 freebsd*)
16997   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16998   version_type=freebsd-$objformat
16999   case $version_type in
17000     freebsd-elf*)
17001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17002       need_version=no
17003       need_lib_prefix=no
17004       ;;
17005     freebsd-*)
17006       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17007       need_version=yes
17008       ;;
17009   esac
17010   shlibpath_var=LD_LIBRARY_PATH
17011   case $host_os in
17012   freebsd2*)
17013     shlibpath_overrides_runpath=yes
17014     ;;
17015   freebsd3.01* | freebsdelf3.01*)
17016     shlibpath_overrides_runpath=yes
17017     hardcode_into_libs=yes
17018     ;;
17019   *) # from 3.2 on
17020     shlibpath_overrides_runpath=no
17021     hardcode_into_libs=yes
17022     ;;
17023   esac
17024   ;;
17025
17026 gnu*)
17027   version_type=linux
17028   need_lib_prefix=no
17029   need_version=no
17030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17031   soname_spec='${libname}${release}${shared_ext}$major'
17032   shlibpath_var=LD_LIBRARY_PATH
17033   hardcode_into_libs=yes
17034   ;;
17035
17036 hpux9* | hpux10* | hpux11*)
17037   # Give a soname corresponding to the major version so that dld.sl refuses to
17038   # link against other versions.
17039   version_type=sunos
17040   need_lib_prefix=no
17041   need_version=no
17042   case "$host_cpu" in
17043   ia64*)
17044     shrext_cmds='.so'
17045     hardcode_into_libs=yes
17046     dynamic_linker="$host_os dld.so"
17047     shlibpath_var=LD_LIBRARY_PATH
17048     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050     soname_spec='${libname}${release}${shared_ext}$major'
17051     if test "X$HPUX_IA64_MODE" = X32; then
17052       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17053     else
17054       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17055     fi
17056     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17057     ;;
17058    hppa*64*)
17059      shrext_cmds='.sl'
17060      hardcode_into_libs=yes
17061      dynamic_linker="$host_os dld.sl"
17062      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17063      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17064      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065      soname_spec='${libname}${release}${shared_ext}$major'
17066      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17067      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17068      ;;
17069    *)
17070     shrext_cmds='.sl'
17071     dynamic_linker="$host_os dld.sl"
17072     shlibpath_var=SHLIB_PATH
17073     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
17077   esac
17078   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17079   postinstall_cmds='chmod 555 $lib'
17080   ;;
17081
17082 irix5* | irix6* | nonstopux*)
17083   case $host_os in
17084     nonstopux*) version_type=nonstopux ;;
17085     *)
17086         if test "$lt_cv_prog_gnu_ld" = yes; then
17087                 version_type=linux
17088         else
17089                 version_type=irix
17090         fi ;;
17091   esac
17092   need_lib_prefix=no
17093   need_version=no
17094   soname_spec='${libname}${release}${shared_ext}$major'
17095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17096   case $host_os in
17097   irix5* | nonstopux*)
17098     libsuff= shlibsuff=
17099     ;;
17100   *)
17101     case $LD in # libtool.m4 will add one of these switches to LD
17102     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17103       libsuff= shlibsuff= libmagic=32-bit;;
17104     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17105       libsuff=32 shlibsuff=N32 libmagic=N32;;
17106     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17107       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17108     *) libsuff= shlibsuff= libmagic=never-match;;
17109     esac
17110     ;;
17111   esac
17112   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17113   shlibpath_overrides_runpath=no
17114   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17115   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17116   hardcode_into_libs=yes
17117   ;;
17118
17119 # No shared lib support for Linux oldld, aout, or coff.
17120 linux*oldld* | linux*aout* | linux*coff*)
17121   dynamic_linker=no
17122   ;;
17123
17124 # This must be Linux ELF.
17125 linux*)
17126   version_type=linux
17127   need_lib_prefix=no
17128   need_version=no
17129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130   soname_spec='${libname}${release}${shared_ext}$major'
17131   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17132   shlibpath_var=LD_LIBRARY_PATH
17133   shlibpath_overrides_runpath=no
17134   # This implies no fast_install, which is unacceptable.
17135   # Some rework will be needed to allow for fast_install
17136   # before this can be enabled.
17137   hardcode_into_libs=yes
17138
17139   # Append ld.so.conf contents to the search path
17140   if test -f /etc/ld.so.conf; then
17141     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17142     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17143   fi
17144
17145   # We used to test for /lib/ld.so.1 and disable shared libraries on
17146   # powerpc, because MkLinux only supported shared libraries with the
17147   # GNU dynamic linker.  Since this was broken with cross compilers,
17148   # most powerpc-linux boxes support dynamic linking these days and
17149   # people can always --disable-shared, the test was removed, and we
17150   # assume the GNU/Linux dynamic linker is in use.
17151   dynamic_linker='GNU/Linux ld.so'
17152   ;;
17153
17154 knetbsd*-gnu)
17155   version_type=linux
17156   need_lib_prefix=no
17157   need_version=no
17158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17159   soname_spec='${libname}${release}${shared_ext}$major'
17160   shlibpath_var=LD_LIBRARY_PATH
17161   shlibpath_overrides_runpath=no
17162   hardcode_into_libs=yes
17163   dynamic_linker='GNU ld.so'
17164   ;;
17165
17166 netbsd*)
17167   version_type=sunos
17168   need_lib_prefix=no
17169   need_version=no
17170   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17172     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17173     dynamic_linker='NetBSD (a.out) ld.so'
17174   else
17175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17176     soname_spec='${libname}${release}${shared_ext}$major'
17177     dynamic_linker='NetBSD ld.elf_so'
17178   fi
17179   shlibpath_var=LD_LIBRARY_PATH
17180   shlibpath_overrides_runpath=yes
17181   hardcode_into_libs=yes
17182   ;;
17183
17184 newsos6)
17185   version_type=linux
17186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   shlibpath_overrides_runpath=yes
17189   ;;
17190
17191 nto-qnx*)
17192   version_type=linux
17193   need_lib_prefix=no
17194   need_version=no
17195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196   soname_spec='${libname}${release}${shared_ext}$major'
17197   shlibpath_var=LD_LIBRARY_PATH
17198   shlibpath_overrides_runpath=yes
17199   ;;
17200
17201 openbsd*)
17202   version_type=sunos
17203   need_lib_prefix=no
17204   need_version=no
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17207   shlibpath_var=LD_LIBRARY_PATH
17208   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17209     case $host_os in
17210       openbsd2.[89] | openbsd2.[89].*)
17211         shlibpath_overrides_runpath=no
17212         ;;
17213       *)
17214         shlibpath_overrides_runpath=yes
17215         ;;
17216       esac
17217   else
17218     shlibpath_overrides_runpath=yes
17219   fi
17220   ;;
17221
17222 os2*)
17223   libname_spec='$name'
17224   shrext_cmds=".dll"
17225   need_lib_prefix=no
17226   library_names_spec='$libname${shared_ext} $libname.a'
17227   dynamic_linker='OS/2 ld.exe'
17228   shlibpath_var=LIBPATH
17229   ;;
17230
17231 osf3* | osf4* | osf5*)
17232   version_type=osf
17233   need_lib_prefix=no
17234   need_version=no
17235   soname_spec='${libname}${release}${shared_ext}$major'
17236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237   shlibpath_var=LD_LIBRARY_PATH
17238   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17239   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17240   ;;
17241
17242 sco3.2v5*)
17243   version_type=osf
17244   soname_spec='${libname}${release}${shared_ext}$major'
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   ;;
17248
17249 solaris*)
17250   version_type=linux
17251   need_lib_prefix=no
17252   need_version=no
17253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254   soname_spec='${libname}${release}${shared_ext}$major'
17255   shlibpath_var=LD_LIBRARY_PATH
17256   shlibpath_overrides_runpath=yes
17257   hardcode_into_libs=yes
17258   # ldd complains unless libraries are executable
17259   postinstall_cmds='chmod +x $lib'
17260   ;;
17261
17262 sunos4*)
17263   version_type=sunos
17264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17265   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17266   shlibpath_var=LD_LIBRARY_PATH
17267   shlibpath_overrides_runpath=yes
17268   if test "$with_gnu_ld" = yes; then
17269     need_lib_prefix=no
17270   fi
17271   need_version=yes
17272   ;;
17273
17274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17275   version_type=linux
17276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277   soname_spec='${libname}${release}${shared_ext}$major'
17278   shlibpath_var=LD_LIBRARY_PATH
17279   case $host_vendor in
17280     sni)
17281       shlibpath_overrides_runpath=no
17282       need_lib_prefix=no
17283       export_dynamic_flag_spec='${wl}-Blargedynsym'
17284       runpath_var=LD_RUN_PATH
17285       ;;
17286     siemens)
17287       need_lib_prefix=no
17288       ;;
17289     motorola)
17290       need_lib_prefix=no
17291       need_version=no
17292       shlibpath_overrides_runpath=no
17293       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17294       ;;
17295   esac
17296   ;;
17297
17298 sysv4*MP*)
17299   if test -d /usr/nec ;then
17300     version_type=linux
17301     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17302     soname_spec='$libname${shared_ext}.$major'
17303     shlibpath_var=LD_LIBRARY_PATH
17304   fi
17305   ;;
17306
17307 uts4*)
17308   version_type=linux
17309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310   soname_spec='${libname}${release}${shared_ext}$major'
17311   shlibpath_var=LD_LIBRARY_PATH
17312   ;;
17313
17314 *)
17315   dynamic_linker=no
17316   ;;
17317 esac
17318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17319 echo "${ECHO_T}$dynamic_linker" >&6
17320 test "$dynamic_linker" = no && can_build_shared=no
17321
17322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17324 hardcode_action_GCJ=
17325 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17326    test -n "$runpath_var_GCJ" || \
17327    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17328
17329   # We can hardcode non-existant directories.
17330   if test "$hardcode_direct_GCJ" != no &&
17331      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17332      # have to relink, otherwise we might link with an installed library
17333      # when we should be linking with a yet-to-be-installed one
17334      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17335      test "$hardcode_minus_L_GCJ" != no; then
17336     # Linking always hardcodes the temporary library directory.
17337     hardcode_action_GCJ=relink
17338   else
17339     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17340     hardcode_action_GCJ=immediate
17341   fi
17342 else
17343   # We cannot hardcode anything, or else we can only hardcode existing
17344   # directories.
17345   hardcode_action_GCJ=unsupported
17346 fi
17347 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17348 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17349
17350 if test "$hardcode_action_GCJ" = relink; then
17351   # Fast installation is not supported
17352   enable_fast_install=no
17353 elif test "$shlibpath_overrides_runpath" = yes ||
17354      test "$enable_shared" = no; then
17355   # Fast installation is not necessary
17356   enable_fast_install=needless
17357 fi
17358
17359 striplib=
17360 old_striplib=
17361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17364   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17365   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17366   echo "$as_me:$LINENO: result: yes" >&5
17367 echo "${ECHO_T}yes" >&6
17368 else
17369 # FIXME - insert some real tests, host_os isn't really good enough
17370   case $host_os in
17371    darwin*)
17372        if test -n "$STRIP" ; then
17373          striplib="$STRIP -x"
17374          echo "$as_me:$LINENO: result: yes" >&5
17375 echo "${ECHO_T}yes" >&6
17376        else
17377   echo "$as_me:$LINENO: result: no" >&5
17378 echo "${ECHO_T}no" >&6
17379 fi
17380        ;;
17381    *)
17382   echo "$as_me:$LINENO: result: no" >&5
17383 echo "${ECHO_T}no" >&6
17384     ;;
17385   esac
17386 fi
17387
17388 if test "x$enable_dlopen" != xyes; then
17389   enable_dlopen=unknown
17390   enable_dlopen_self=unknown
17391   enable_dlopen_self_static=unknown
17392 else
17393   lt_cv_dlopen=no
17394   lt_cv_dlopen_libs=
17395
17396   case $host_os in
17397   beos*)
17398     lt_cv_dlopen="load_add_on"
17399     lt_cv_dlopen_libs=
17400     lt_cv_dlopen_self=yes
17401     ;;
17402
17403   mingw* | pw32*)
17404     lt_cv_dlopen="LoadLibrary"
17405     lt_cv_dlopen_libs=
17406    ;;
17407
17408   cygwin*)
17409     lt_cv_dlopen="dlopen"
17410     lt_cv_dlopen_libs=
17411    ;;
17412
17413   darwin*)
17414   # if libdl is installed we need to link against it
17415     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   ac_check_lib_save_LIBS=$LIBS
17421 LIBS="-ldl  $LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429 /* Override any gcc2 internal prototype to avoid an error.  */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 /* We use char because int might match the return type of a gcc2
17434    builtin and then its argument prototype would still apply.  */
17435 char dlopen ();
17436 int
17437 main ()
17438 {
17439 dlopen ();
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446   (eval $ac_link) 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -z "$ac_c_werror_flag"
17454                          || test ! -s conftest.err'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest$ac_exeext'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   ac_cv_lib_dl_dlopen=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471 ac_cv_lib_dl_dlopen=no
17472 fi
17473 rm -f conftest.err conftest.$ac_objext \
17474       conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17476 fi
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17479 if test $ac_cv_lib_dl_dlopen = yes; then
17480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17481 else
17482
17483     lt_cv_dlopen="dyld"
17484     lt_cv_dlopen_libs=
17485     lt_cv_dlopen_self=yes
17486
17487 fi
17488
17489    ;;
17490
17491   *)
17492     echo "$as_me:$LINENO: checking for shl_load" >&5
17493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17494 if test "${ac_cv_func_shl_load+set}" = set; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17505 #define shl_load innocuous_shl_load
17506
17507 /* System header to define __stub macros and hopefully few prototypes,
17508     which can conflict with char shl_load (); below.
17509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510     <limits.h> exists even on freestanding compilers.  */
17511
17512 #ifdef __STDC__
17513 # include <limits.h>
17514 #else
17515 # include <assert.h>
17516 #endif
17517
17518 #undef shl_load
17519
17520 /* Override any gcc2 internal prototype to avoid an error.  */
17521 #ifdef __cplusplus
17522 extern "C"
17523 {
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526    builtin and then its argument prototype would still apply.  */
17527 char shl_load ();
17528 /* The GNU C library defines this for functions which it implements
17529     to always fail with ENOSYS.  Some functions are actually named
17530     something starting with __ and the normal name is an alias.  */
17531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17532 choke me
17533 #else
17534 char (*f) () = shl_load;
17535 #endif
17536 #ifdef __cplusplus
17537 }
17538 #endif
17539
17540 int
17541 main ()
17542 {
17543 return f != shl_load;
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550   (eval $ac_link) 2>conftest.er1
17551   ac_status=$?
17552   grep -v '^ *+' conftest.er1 >conftest.err
17553   rm -f conftest.er1
17554   cat conftest.err >&5
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); } &&
17557          { ac_try='test -z "$ac_c_werror_flag"
17558                          || test ! -s conftest.err'
17559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560   (eval $ac_try) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; } &&
17564          { ac_try='test -s conftest$ac_exeext'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   ac_cv_func_shl_load=yes
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 ac_cv_func_shl_load=no
17576 fi
17577 rm -f conftest.err conftest.$ac_objext \
17578       conftest$ac_exeext conftest.$ac_ext
17579 fi
17580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17582 if test $ac_cv_func_shl_load = yes; then
17583   lt_cv_dlopen="shl_load"
17584 else
17585   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17586 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17587 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   ac_check_lib_save_LIBS=$LIBS
17591 LIBS="-ldld  $LIBS"
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598
17599 /* Override any gcc2 internal prototype to avoid an error.  */
17600 #ifdef __cplusplus
17601 extern "C"
17602 #endif
17603 /* We use char because int might match the return type of a gcc2
17604    builtin and then its argument prototype would still apply.  */
17605 char shl_load ();
17606 int
17607 main ()
17608 {
17609 shl_load ();
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616   (eval $ac_link) 2>conftest.er1
17617   ac_status=$?
17618   grep -v '^ *+' conftest.er1 >conftest.err
17619   rm -f conftest.er1
17620   cat conftest.err >&5
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } &&
17623          { ac_try='test -z "$ac_c_werror_flag"
17624                          || test ! -s conftest.err'
17625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626   (eval $ac_try) 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); }; } &&
17630          { ac_try='test -s conftest$ac_exeext'
17631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632   (eval $ac_try) 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; }; then
17636   ac_cv_lib_dld_shl_load=yes
17637 else
17638   echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641 ac_cv_lib_dld_shl_load=no
17642 fi
17643 rm -f conftest.err conftest.$ac_objext \
17644       conftest$ac_exeext conftest.$ac_ext
17645 LIBS=$ac_check_lib_save_LIBS
17646 fi
17647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17649 if test $ac_cv_lib_dld_shl_load = yes; then
17650   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17651 else
17652   echo "$as_me:$LINENO: checking for dlopen" >&5
17653 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17654 if test "${ac_cv_func_dlopen+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17665 #define dlopen innocuous_dlopen
17666
17667 /* System header to define __stub macros and hopefully few prototypes,
17668     which can conflict with char dlopen (); below.
17669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17670     <limits.h> exists even on freestanding compilers.  */
17671
17672 #ifdef __STDC__
17673 # include <limits.h>
17674 #else
17675 # include <assert.h>
17676 #endif
17677
17678 #undef dlopen
17679
17680 /* Override any gcc2 internal prototype to avoid an error.  */
17681 #ifdef __cplusplus
17682 extern "C"
17683 {
17684 #endif
17685 /* We use char because int might match the return type of a gcc2
17686    builtin and then its argument prototype would still apply.  */
17687 char dlopen ();
17688 /* The GNU C library defines this for functions which it implements
17689     to always fail with ENOSYS.  Some functions are actually named
17690     something starting with __ and the normal name is an alias.  */
17691 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17692 choke me
17693 #else
17694 char (*f) () = dlopen;
17695 #endif
17696 #ifdef __cplusplus
17697 }
17698 #endif
17699
17700 int
17701 main ()
17702 {
17703 return f != dlopen;
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710   (eval $ac_link) 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -z "$ac_c_werror_flag"
17718                          || test ! -s conftest.err'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest$ac_exeext'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   ac_cv_func_dlopen=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_cv_func_dlopen=no
17736 fi
17737 rm -f conftest.err conftest.$ac_objext \
17738       conftest$ac_exeext conftest.$ac_ext
17739 fi
17740 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17741 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17742 if test $ac_cv_func_dlopen = yes; then
17743   lt_cv_dlopen="dlopen"
17744 else
17745   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17748   echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750   ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-ldl  $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758
17759 /* Override any gcc2 internal prototype to avoid an error.  */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 /* We use char because int might match the return type of a gcc2
17764    builtin and then its argument prototype would still apply.  */
17765 char dlopen ();
17766 int
17767 main ()
17768 {
17769 dlopen ();
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776   (eval $ac_link) 2>conftest.er1
17777   ac_status=$?
17778   grep -v '^ *+' conftest.er1 >conftest.err
17779   rm -f conftest.er1
17780   cat conftest.err >&5
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } &&
17783          { ac_try='test -z "$ac_c_werror_flag"
17784                          || test ! -s conftest.err'
17785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786   (eval $ac_try) 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; } &&
17790          { ac_try='test -s conftest$ac_exeext'
17791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792   (eval $ac_try) 2>&5
17793   ac_status=$?
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); }; }; then
17796   ac_cv_lib_dl_dlopen=yes
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801 ac_cv_lib_dl_dlopen=no
17802 fi
17803 rm -f conftest.err conftest.$ac_objext \
17804       conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17806 fi
17807 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17809 if test $ac_cv_lib_dl_dlopen = yes; then
17810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17811 else
17812   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17813 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17814 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lsvld  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 /* Override any gcc2 internal prototype to avoid an error.  */
17827 #ifdef __cplusplus
17828 extern "C"
17829 #endif
17830 /* We use char because int might match the return type of a gcc2
17831    builtin and then its argument prototype would still apply.  */
17832 char dlopen ();
17833 int
17834 main ()
17835 {
17836 dlopen ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_c_werror_flag"
17851                          || test ! -s conftest.err'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; } &&
17857          { ac_try='test -s conftest$ac_exeext'
17858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859   (eval $ac_try) 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; }; then
17863   ac_cv_lib_svld_dlopen=yes
17864 else
17865   echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868 ac_cv_lib_svld_dlopen=no
17869 fi
17870 rm -f conftest.err conftest.$ac_objext \
17871       conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17873 fi
17874 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17875 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17876 if test $ac_cv_lib_svld_dlopen = yes; then
17877   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17878 else
17879   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17880 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17882   echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884   ac_check_lib_save_LIBS=$LIBS
17885 LIBS="-ldld  $LIBS"
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892
17893 /* Override any gcc2 internal prototype to avoid an error.  */
17894 #ifdef __cplusplus
17895 extern "C"
17896 #endif
17897 /* We use char because int might match the return type of a gcc2
17898    builtin and then its argument prototype would still apply.  */
17899 char dld_link ();
17900 int
17901 main ()
17902 {
17903 dld_link ();
17904   ;
17905   return 0;
17906 }
17907 _ACEOF
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910   (eval $ac_link) 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } &&
17917          { ac_try='test -z "$ac_c_werror_flag"
17918                          || test ! -s conftest.err'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; } &&
17924          { ac_try='test -s conftest$ac_exeext'
17925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926   (eval $ac_try) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; }; then
17930   ac_cv_lib_dld_dld_link=yes
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_cv_lib_dld_dld_link=no
17936 fi
17937 rm -f conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17940 fi
17941 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17942 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17943 if test $ac_cv_lib_dld_dld_link = yes; then
17944   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17945 fi
17946
17947
17948 fi
17949
17950
17951 fi
17952
17953
17954 fi
17955
17956
17957 fi
17958
17959
17960 fi
17961
17962     ;;
17963   esac
17964
17965   if test "x$lt_cv_dlopen" != xno; then
17966     enable_dlopen=yes
17967   else
17968     enable_dlopen=no
17969   fi
17970
17971   case $lt_cv_dlopen in
17972   dlopen)
17973     save_CPPFLAGS="$CPPFLAGS"
17974     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17975
17976     save_LDFLAGS="$LDFLAGS"
17977     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17978
17979     save_LIBS="$LIBS"
17980     LIBS="$lt_cv_dlopen_libs $LIBS"
17981
17982     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17983 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17984 if test "${lt_cv_dlopen_self+set}" = set; then
17985   echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987           if test "$cross_compiling" = yes; then :
17988   lt_cv_dlopen_self=cross
17989 else
17990   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991   lt_status=$lt_dlunknown
17992   cat > conftest.$ac_ext <<EOF
17993 #line 17993 "configure"
17994 #include "confdefs.h"
17995
17996 #if HAVE_DLFCN_H
17997 #include <dlfcn.h>
17998 #endif
17999
18000 #include <stdio.h>
18001
18002 #ifdef RTLD_GLOBAL
18003 #  define LT_DLGLOBAL           RTLD_GLOBAL
18004 #else
18005 #  ifdef DL_GLOBAL
18006 #    define LT_DLGLOBAL         DL_GLOBAL
18007 #  else
18008 #    define LT_DLGLOBAL         0
18009 #  endif
18010 #endif
18011
18012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013    find out it does not work in some platform. */
18014 #ifndef LT_DLLAZY_OR_NOW
18015 #  ifdef RTLD_LAZY
18016 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18017 #  else
18018 #    ifdef DL_LAZY
18019 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18020 #    else
18021 #      ifdef RTLD_NOW
18022 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18023 #      else
18024 #        ifdef DL_NOW
18025 #          define LT_DLLAZY_OR_NOW      DL_NOW
18026 #        else
18027 #          define LT_DLLAZY_OR_NOW      0
18028 #        endif
18029 #      endif
18030 #    endif
18031 #  endif
18032 #endif
18033
18034 #ifdef __cplusplus
18035 extern "C" void exit (int);
18036 #endif
18037
18038 void fnord() { int i=42;}
18039 int main ()
18040 {
18041   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18042   int status = $lt_dlunknown;
18043
18044   if (self)
18045     {
18046       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18047       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18048       /* dlclose (self); */
18049     }
18050
18051     exit (status);
18052 }
18053 EOF
18054   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055   (eval $ac_link) 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18059     (./conftest; exit; ) 2>/dev/null
18060     lt_status=$?
18061     case x$lt_status in
18062       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18063       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18064       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18065     esac
18066   else :
18067     # compilation failed
18068     lt_cv_dlopen_self=no
18069   fi
18070 fi
18071 rm -fr conftest*
18072
18073
18074 fi
18075 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18076 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18077
18078     if test "x$lt_cv_dlopen_self" = xyes; then
18079       LDFLAGS="$LDFLAGS $link_static_flag"
18080       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18081 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18082 if test "${lt_cv_dlopen_self_static+set}" = set; then
18083   echo $ECHO_N "(cached) $ECHO_C" >&6
18084 else
18085           if test "$cross_compiling" = yes; then :
18086   lt_cv_dlopen_self_static=cross
18087 else
18088   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18089   lt_status=$lt_dlunknown
18090   cat > conftest.$ac_ext <<EOF
18091 #line 18091 "configure"
18092 #include "confdefs.h"
18093
18094 #if HAVE_DLFCN_H
18095 #include <dlfcn.h>
18096 #endif
18097
18098 #include <stdio.h>
18099
18100 #ifdef RTLD_GLOBAL
18101 #  define LT_DLGLOBAL           RTLD_GLOBAL
18102 #else
18103 #  ifdef DL_GLOBAL
18104 #    define LT_DLGLOBAL         DL_GLOBAL
18105 #  else
18106 #    define LT_DLGLOBAL         0
18107 #  endif
18108 #endif
18109
18110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18111    find out it does not work in some platform. */
18112 #ifndef LT_DLLAZY_OR_NOW
18113 #  ifdef RTLD_LAZY
18114 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18115 #  else
18116 #    ifdef DL_LAZY
18117 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18118 #    else
18119 #      ifdef RTLD_NOW
18120 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18121 #      else
18122 #        ifdef DL_NOW
18123 #          define LT_DLLAZY_OR_NOW      DL_NOW
18124 #        else
18125 #          define LT_DLLAZY_OR_NOW      0
18126 #        endif
18127 #      endif
18128 #    endif
18129 #  endif
18130 #endif
18131
18132 #ifdef __cplusplus
18133 extern "C" void exit (int);
18134 #endif
18135
18136 void fnord() { int i=42;}
18137 int main ()
18138 {
18139   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18140   int status = $lt_dlunknown;
18141
18142   if (self)
18143     {
18144       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18145       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18146       /* dlclose (self); */
18147     }
18148
18149     exit (status);
18150 }
18151 EOF
18152   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153   (eval $ac_link) 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18157     (./conftest; exit; ) 2>/dev/null
18158     lt_status=$?
18159     case x$lt_status in
18160       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18161       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18162       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18163     esac
18164   else :
18165     # compilation failed
18166     lt_cv_dlopen_self_static=no
18167   fi
18168 fi
18169 rm -fr conftest*
18170
18171
18172 fi
18173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18174 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18175     fi
18176
18177     CPPFLAGS="$save_CPPFLAGS"
18178     LDFLAGS="$save_LDFLAGS"
18179     LIBS="$save_LIBS"
18180     ;;
18181   esac
18182
18183   case $lt_cv_dlopen_self in
18184   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18185   *) enable_dlopen_self=unknown ;;
18186   esac
18187
18188   case $lt_cv_dlopen_self_static in
18189   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18190   *) enable_dlopen_self_static=unknown ;;
18191   esac
18192 fi
18193
18194
18195 # The else clause should only fire when bootstrapping the
18196 # libtool distribution, otherwise you forgot to ship ltmain.sh
18197 # with your package, and you will get complaints that there are
18198 # no rules to generate ltmain.sh.
18199 if test -f "$ltmain"; then
18200   # See if we are running on zsh, and set the options which allow our commands through
18201   # without removal of \ escapes.
18202   if test -n "${ZSH_VERSION+set}" ; then
18203     setopt NO_GLOB_SUBST
18204   fi
18205   # Now quote all the things that may contain metacharacters while being
18206   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18207   # variables and quote the copies for generation of the libtool script.
18208   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18209     SED SHELL STRIP \
18210     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18211     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18212     deplibs_check_method reload_flag reload_cmds need_locks \
18213     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18214     lt_cv_sys_global_symbol_to_c_name_address \
18215     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18216     old_postinstall_cmds old_postuninstall_cmds \
18217     compiler_GCJ \
18218     CC_GCJ \
18219     LD_GCJ \
18220     lt_prog_compiler_wl_GCJ \
18221     lt_prog_compiler_pic_GCJ \
18222     lt_prog_compiler_static_GCJ \
18223     lt_prog_compiler_no_builtin_flag_GCJ \
18224     export_dynamic_flag_spec_GCJ \
18225     thread_safe_flag_spec_GCJ \
18226     whole_archive_flag_spec_GCJ \
18227     enable_shared_with_static_runtimes_GCJ \
18228     old_archive_cmds_GCJ \
18229     old_archive_from_new_cmds_GCJ \
18230     predep_objects_GCJ \
18231     postdep_objects_GCJ \
18232     predeps_GCJ \
18233     postdeps_GCJ \
18234     compiler_lib_search_path_GCJ \
18235     archive_cmds_GCJ \
18236     archive_expsym_cmds_GCJ \
18237     postinstall_cmds_GCJ \
18238     postuninstall_cmds_GCJ \
18239     old_archive_from_expsyms_cmds_GCJ \
18240     allow_undefined_flag_GCJ \
18241     no_undefined_flag_GCJ \
18242     export_symbols_cmds_GCJ \
18243     hardcode_libdir_flag_spec_GCJ \
18244     hardcode_libdir_flag_spec_ld_GCJ \
18245     hardcode_libdir_separator_GCJ \
18246     hardcode_automatic_GCJ \
18247     module_cmds_GCJ \
18248     module_expsym_cmds_GCJ \
18249     lt_cv_prog_compiler_c_o_GCJ \
18250     exclude_expsyms_GCJ \
18251     include_expsyms_GCJ; do
18252
18253     case $var in
18254     old_archive_cmds_GCJ | \
18255     old_archive_from_new_cmds_GCJ | \
18256     archive_cmds_GCJ | \
18257     archive_expsym_cmds_GCJ | \
18258     module_cmds_GCJ | \
18259     module_expsym_cmds_GCJ | \
18260     old_archive_from_expsyms_cmds_GCJ | \
18261     export_symbols_cmds_GCJ | \
18262     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18263     postinstall_cmds | postuninstall_cmds | \
18264     old_postinstall_cmds | old_postuninstall_cmds | \
18265     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18266       # Double-quote double-evaled strings.
18267       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18268       ;;
18269     *)
18270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18271       ;;
18272     esac
18273   done
18274
18275   case $lt_echo in
18276   *'\$0 --fallback-echo"')
18277     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18278     ;;
18279   esac
18280
18281 cfgfile="$ofile"
18282
18283   cat <<__EOF__ >> "$cfgfile"
18284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18285
18286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18287
18288 # Shell to use when invoking shell scripts.
18289 SHELL=$lt_SHELL
18290
18291 # Whether or not to build shared libraries.
18292 build_libtool_libs=$enable_shared
18293
18294 # Whether or not to build static libraries.
18295 build_old_libs=$enable_static
18296
18297 # Whether or not to add -lc for building shared libraries.
18298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18299
18300 # Whether or not to disallow shared libs when runtime libs are static
18301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18302
18303 # Whether or not to optimize for fast installation.
18304 fast_install=$enable_fast_install
18305
18306 # The host system.
18307 host_alias=$host_alias
18308 host=$host
18309
18310 # An echo program that does not interpret backslashes.
18311 echo=$lt_echo
18312
18313 # The archiver.
18314 AR=$lt_AR
18315 AR_FLAGS=$lt_AR_FLAGS
18316
18317 # A C compiler.
18318 LTCC=$lt_LTCC
18319
18320 # A language-specific compiler.
18321 CC=$lt_compiler_GCJ
18322
18323 # Is the compiler the GNU C compiler?
18324 with_gcc=$GCC_GCJ
18325
18326 # An ERE matcher.
18327 EGREP=$lt_EGREP
18328
18329 # The linker used to build libraries.
18330 LD=$lt_LD_GCJ
18331
18332 # Whether we need hard or soft links.
18333 LN_S=$lt_LN_S
18334
18335 # A BSD-compatible nm program.
18336 NM=$lt_NM
18337
18338 # A symbol stripping program
18339 STRIP=$lt_STRIP
18340
18341 # Used to examine libraries when file_magic_cmd begins "file"
18342 MAGIC_CMD=$MAGIC_CMD
18343
18344 # Used on cygwin: DLL creation program.
18345 DLLTOOL="$DLLTOOL"
18346
18347 # Used on cygwin: object dumper.
18348 OBJDUMP="$OBJDUMP"
18349
18350 # Used on cygwin: assembler.
18351 AS=$lt_AS
18352
18353 # The name of the directory that contains temporary libtool files.
18354 objdir=$objdir
18355
18356 # How to create reloadable object files.
18357 reload_flag=$lt_reload_flag
18358 reload_cmds=$lt_reload_cmds
18359
18360 # How to pass a linker flag through the compiler.
18361 wl=$lt_lt_prog_compiler_wl_GCJ
18362
18363 # Object file suffix (normally "o").
18364 objext="$ac_objext"
18365
18366 # Old archive suffix (normally "a").
18367 libext="$libext"
18368
18369 # Shared library suffix (normally ".so").
18370 shrext_cmds='$shrext_cmds'
18371
18372 # Executable file suffix (normally "").
18373 exeext="$exeext"
18374
18375 # Additional compiler flags for building library objects.
18376 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18377 pic_mode=$pic_mode
18378
18379 # What is the maximum length of a command?
18380 max_cmd_len=$lt_cv_sys_max_cmd_len
18381
18382 # Does compiler simultaneously support -c and -o options?
18383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18384
18385 # Must we lock files when doing compilation ?
18386 need_locks=$lt_need_locks
18387
18388 # Do we need the lib prefix for modules?
18389 need_lib_prefix=$need_lib_prefix
18390
18391 # Do we need a version for libraries?
18392 need_version=$need_version
18393
18394 # Whether dlopen is supported.
18395 dlopen_support=$enable_dlopen
18396
18397 # Whether dlopen of programs is supported.
18398 dlopen_self=$enable_dlopen_self
18399
18400 # Whether dlopen of statically linked programs is supported.
18401 dlopen_self_static=$enable_dlopen_self_static
18402
18403 # Compiler flag to prevent dynamic linking.
18404 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18405
18406 # Compiler flag to turn off builtin functions.
18407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18408
18409 # Compiler flag to allow reflexive dlopens.
18410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18411
18412 # Compiler flag to generate shared objects directly from archives.
18413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18414
18415 # Compiler flag to generate thread-safe objects.
18416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18417
18418 # Library versioning type.
18419 version_type=$version_type
18420
18421 # Format of library name prefix.
18422 libname_spec=$lt_libname_spec
18423
18424 # List of archive names.  First name is the real one, the rest are links.
18425 # The last name is the one that the linker finds with -lNAME.
18426 library_names_spec=$lt_library_names_spec
18427
18428 # The coded name of the library, if different from the real name.
18429 soname_spec=$lt_soname_spec
18430
18431 # Commands used to build and install an old-style archive.
18432 RANLIB=$lt_RANLIB
18433 old_archive_cmds=$lt_old_archive_cmds_GCJ
18434 old_postinstall_cmds=$lt_old_postinstall_cmds
18435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18436
18437 # Create an old-style archive from a shared archive.
18438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18439
18440 # Create a temporary old-style archive to link instead of a shared archive.
18441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18442
18443 # Commands used to build and install a shared archive.
18444 archive_cmds=$lt_archive_cmds_GCJ
18445 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18446 postinstall_cmds=$lt_postinstall_cmds
18447 postuninstall_cmds=$lt_postuninstall_cmds
18448
18449 # Commands used to build a loadable module (assumed same as above if empty)
18450 module_cmds=$lt_module_cmds_GCJ
18451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18452
18453 # Commands to strip libraries.
18454 old_striplib=$lt_old_striplib
18455 striplib=$lt_striplib
18456
18457 # Dependencies to place before the objects being linked to create a
18458 # shared library.
18459 predep_objects=$lt_predep_objects_GCJ
18460
18461 # Dependencies to place after the objects being linked to create a
18462 # shared library.
18463 postdep_objects=$lt_postdep_objects_GCJ
18464
18465 # Dependencies to place before the objects being linked to create a
18466 # shared library.
18467 predeps=$lt_predeps_GCJ
18468
18469 # Dependencies to place after the objects being linked to create a
18470 # shared library.
18471 postdeps=$lt_postdeps_GCJ
18472
18473 # The library search path used internally by the compiler when linking
18474 # a shared library.
18475 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18476
18477 # Method to check whether dependent libraries are shared objects.
18478 deplibs_check_method=$lt_deplibs_check_method
18479
18480 # Command to use when deplibs_check_method == file_magic.
18481 file_magic_cmd=$lt_file_magic_cmd
18482
18483 # Flag that allows shared libraries with undefined symbols to be built.
18484 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18485
18486 # Flag that forces no undefined symbols.
18487 no_undefined_flag=$lt_no_undefined_flag_GCJ
18488
18489 # Commands used to finish a libtool library installation in a directory.
18490 finish_cmds=$lt_finish_cmds
18491
18492 # Same as above, but a single script fragment to be evaled but not shown.
18493 finish_eval=$lt_finish_eval
18494
18495 # Take the output of nm and produce a listing of raw symbols and C names.
18496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18497
18498 # Transform the output of nm in a proper C declaration
18499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18500
18501 # Transform the output of nm in a C name address pair
18502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18503
18504 # This is the shared library runtime path variable.
18505 runpath_var=$runpath_var
18506
18507 # This is the shared library path variable.
18508 shlibpath_var=$shlibpath_var
18509
18510 # Is shlibpath searched before the hard-coded library search path?
18511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18512
18513 # How to hardcode a shared library path into an executable.
18514 hardcode_action=$hardcode_action_GCJ
18515
18516 # Whether we should hardcode library paths into libraries.
18517 hardcode_into_libs=$hardcode_into_libs
18518
18519 # Flag to hardcode \$libdir into a binary during linking.
18520 # This must work even if \$libdir does not exist.
18521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18522
18523 # If ld is used when linking, flag to hardcode \$libdir into
18524 # a binary during linking. This must work even if \$libdir does
18525 # not exist.
18526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18527
18528 # Whether we need a single -rpath flag with a separated argument.
18529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18530
18531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18532 # resulting binary.
18533 hardcode_direct=$hardcode_direct_GCJ
18534
18535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18536 # resulting binary.
18537 hardcode_minus_L=$hardcode_minus_L_GCJ
18538
18539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18540 # the resulting binary.
18541 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18542
18543 # Set to yes if building a shared library automatically hardcodes DIR into the library
18544 # and all subsequent libraries and executables linked against it.
18545 hardcode_automatic=$hardcode_automatic_GCJ
18546
18547 # Variables whose values should be saved in libtool wrapper scripts and
18548 # restored at relink time.
18549 variables_saved_for_relink="$variables_saved_for_relink"
18550
18551 # Whether libtool must link a program against all its dependency libraries.
18552 link_all_deplibs=$link_all_deplibs_GCJ
18553
18554 # Compile-time system search path for libraries
18555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18556
18557 # Run-time system search path for libraries
18558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18559
18560 # Fix the shell variable \$srcfile for the compiler.
18561 fix_srcfile_path="$fix_srcfile_path_GCJ"
18562
18563 # Set to yes if exported symbols are required.
18564 always_export_symbols=$always_export_symbols_GCJ
18565
18566 # The commands to list exported symbols.
18567 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18568
18569 # The commands to extract the exported symbol list from a shared archive.
18570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18571
18572 # Symbols that should not be listed in the preloaded symbols.
18573 exclude_expsyms=$lt_exclude_expsyms_GCJ
18574
18575 # Symbols that must always be exported.
18576 include_expsyms=$lt_include_expsyms_GCJ
18577
18578 # ### END LIBTOOL TAG CONFIG: $tagname
18579
18580 __EOF__
18581
18582
18583 else
18584   # If there is no Makefile yet, we rely on a make rule to execute
18585   # `config.status --recheck' to rerun these tests and create the
18586   # libtool script then.
18587   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18588   if test -f "$ltmain_in"; then
18589     test -f Makefile && make "$ltmain"
18590   fi
18591 fi
18592
18593
18594 ac_ext=c
18595 ac_cpp='$CPP $CPPFLAGS'
18596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18599
18600 CC="$lt_save_CC"
18601
18602         else
18603           tagname=""
18604         fi
18605         ;;
18606
18607       RC)
18608
18609
18610
18611 # Source file extension for RC test sources.
18612 ac_ext=rc
18613
18614 # Object file extension for compiled RC test sources.
18615 objext=o
18616 objext_RC=$objext
18617
18618 # Code to be used in simple compile tests
18619 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18620
18621 # Code to be used in simple link tests
18622 lt_simple_link_test_code="$lt_simple_compile_test_code"
18623
18624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18625
18626 # If no C compiler was specified, use CC.
18627 LTCC=${LTCC-"$CC"}
18628
18629 # Allow CC to be a program name with arguments.
18630 compiler=$CC
18631
18632
18633 # Allow CC to be a program name with arguments.
18634 lt_save_CC="$CC"
18635 CC=${RC-"windres"}
18636 compiler=$CC
18637 compiler_RC=$CC
18638 lt_cv_prog_compiler_c_o_RC=yes
18639
18640 # The else clause should only fire when bootstrapping the
18641 # libtool distribution, otherwise you forgot to ship ltmain.sh
18642 # with your package, and you will get complaints that there are
18643 # no rules to generate ltmain.sh.
18644 if test -f "$ltmain"; then
18645   # See if we are running on zsh, and set the options which allow our commands through
18646   # without removal of \ escapes.
18647   if test -n "${ZSH_VERSION+set}" ; then
18648     setopt NO_GLOB_SUBST
18649   fi
18650   # Now quote all the things that may contain metacharacters while being
18651   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18652   # variables and quote the copies for generation of the libtool script.
18653   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18654     SED SHELL STRIP \
18655     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18656     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18657     deplibs_check_method reload_flag reload_cmds need_locks \
18658     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18659     lt_cv_sys_global_symbol_to_c_name_address \
18660     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18661     old_postinstall_cmds old_postuninstall_cmds \
18662     compiler_RC \
18663     CC_RC \
18664     LD_RC \
18665     lt_prog_compiler_wl_RC \
18666     lt_prog_compiler_pic_RC \
18667     lt_prog_compiler_static_RC \
18668     lt_prog_compiler_no_builtin_flag_RC \
18669     export_dynamic_flag_spec_RC \
18670     thread_safe_flag_spec_RC \
18671     whole_archive_flag_spec_RC \
18672     enable_shared_with_static_runtimes_RC \
18673     old_archive_cmds_RC \
18674     old_archive_from_new_cmds_RC \
18675     predep_objects_RC \
18676     postdep_objects_RC \
18677     predeps_RC \
18678     postdeps_RC \
18679     compiler_lib_search_path_RC \
18680     archive_cmds_RC \
18681     archive_expsym_cmds_RC \
18682     postinstall_cmds_RC \
18683     postuninstall_cmds_RC \
18684     old_archive_from_expsyms_cmds_RC \
18685     allow_undefined_flag_RC \
18686     no_undefined_flag_RC \
18687     export_symbols_cmds_RC \
18688     hardcode_libdir_flag_spec_RC \
18689     hardcode_libdir_flag_spec_ld_RC \
18690     hardcode_libdir_separator_RC \
18691     hardcode_automatic_RC \
18692     module_cmds_RC \
18693     module_expsym_cmds_RC \
18694     lt_cv_prog_compiler_c_o_RC \
18695     exclude_expsyms_RC \
18696     include_expsyms_RC; do
18697
18698     case $var in
18699     old_archive_cmds_RC | \
18700     old_archive_from_new_cmds_RC | \
18701     archive_cmds_RC | \
18702     archive_expsym_cmds_RC | \
18703     module_cmds_RC | \
18704     module_expsym_cmds_RC | \
18705     old_archive_from_expsyms_cmds_RC | \
18706     export_symbols_cmds_RC | \
18707     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18708     postinstall_cmds | postuninstall_cmds | \
18709     old_postinstall_cmds | old_postuninstall_cmds | \
18710     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18711       # Double-quote double-evaled strings.
18712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18713       ;;
18714     *)
18715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18716       ;;
18717     esac
18718   done
18719
18720   case $lt_echo in
18721   *'\$0 --fallback-echo"')
18722     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18723     ;;
18724   esac
18725
18726 cfgfile="$ofile"
18727
18728   cat <<__EOF__ >> "$cfgfile"
18729 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18730
18731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18732
18733 # Shell to use when invoking shell scripts.
18734 SHELL=$lt_SHELL
18735
18736 # Whether or not to build shared libraries.
18737 build_libtool_libs=$enable_shared
18738
18739 # Whether or not to build static libraries.
18740 build_old_libs=$enable_static
18741
18742 # Whether or not to add -lc for building shared libraries.
18743 build_libtool_need_lc=$archive_cmds_need_lc_RC
18744
18745 # Whether or not to disallow shared libs when runtime libs are static
18746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18747
18748 # Whether or not to optimize for fast installation.
18749 fast_install=$enable_fast_install
18750
18751 # The host system.
18752 host_alias=$host_alias
18753 host=$host
18754
18755 # An echo program that does not interpret backslashes.
18756 echo=$lt_echo
18757
18758 # The archiver.
18759 AR=$lt_AR
18760 AR_FLAGS=$lt_AR_FLAGS
18761
18762 # A C compiler.
18763 LTCC=$lt_LTCC
18764
18765 # A language-specific compiler.
18766 CC=$lt_compiler_RC
18767
18768 # Is the compiler the GNU C compiler?
18769 with_gcc=$GCC_RC
18770
18771 # An ERE matcher.
18772 EGREP=$lt_EGREP
18773
18774 # The linker used to build libraries.
18775 LD=$lt_LD_RC
18776
18777 # Whether we need hard or soft links.
18778 LN_S=$lt_LN_S
18779
18780 # A BSD-compatible nm program.
18781 NM=$lt_NM
18782
18783 # A symbol stripping program
18784 STRIP=$lt_STRIP
18785
18786 # Used to examine libraries when file_magic_cmd begins "file"
18787 MAGIC_CMD=$MAGIC_CMD
18788
18789 # Used on cygwin: DLL creation program.
18790 DLLTOOL="$DLLTOOL"
18791
18792 # Used on cygwin: object dumper.
18793 OBJDUMP="$OBJDUMP"
18794
18795 # Used on cygwin: assembler.
18796 AS=$lt_AS
18797
18798 # The name of the directory that contains temporary libtool files.
18799 objdir=$objdir
18800
18801 # How to create reloadable object files.
18802 reload_flag=$lt_reload_flag
18803 reload_cmds=$lt_reload_cmds
18804
18805 # How to pass a linker flag through the compiler.
18806 wl=$lt_lt_prog_compiler_wl_RC
18807
18808 # Object file suffix (normally "o").
18809 objext="$ac_objext"
18810
18811 # Old archive suffix (normally "a").
18812 libext="$libext"
18813
18814 # Shared library suffix (normally ".so").
18815 shrext_cmds='$shrext_cmds'
18816
18817 # Executable file suffix (normally "").
18818 exeext="$exeext"
18819
18820 # Additional compiler flags for building library objects.
18821 pic_flag=$lt_lt_prog_compiler_pic_RC
18822 pic_mode=$pic_mode
18823
18824 # What is the maximum length of a command?
18825 max_cmd_len=$lt_cv_sys_max_cmd_len
18826
18827 # Does compiler simultaneously support -c and -o options?
18828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18829
18830 # Must we lock files when doing compilation ?
18831 need_locks=$lt_need_locks
18832
18833 # Do we need the lib prefix for modules?
18834 need_lib_prefix=$need_lib_prefix
18835
18836 # Do we need a version for libraries?
18837 need_version=$need_version
18838
18839 # Whether dlopen is supported.
18840 dlopen_support=$enable_dlopen
18841
18842 # Whether dlopen of programs is supported.
18843 dlopen_self=$enable_dlopen_self
18844
18845 # Whether dlopen of statically linked programs is supported.
18846 dlopen_self_static=$enable_dlopen_self_static
18847
18848 # Compiler flag to prevent dynamic linking.
18849 link_static_flag=$lt_lt_prog_compiler_static_RC
18850
18851 # Compiler flag to turn off builtin functions.
18852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18853
18854 # Compiler flag to allow reflexive dlopens.
18855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18856
18857 # Compiler flag to generate shared objects directly from archives.
18858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18859
18860 # Compiler flag to generate thread-safe objects.
18861 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18862
18863 # Library versioning type.
18864 version_type=$version_type
18865
18866 # Format of library name prefix.
18867 libname_spec=$lt_libname_spec
18868
18869 # List of archive names.  First name is the real one, the rest are links.
18870 # The last name is the one that the linker finds with -lNAME.
18871 library_names_spec=$lt_library_names_spec
18872
18873 # The coded name of the library, if different from the real name.
18874 soname_spec=$lt_soname_spec
18875
18876 # Commands used to build and install an old-style archive.
18877 RANLIB=$lt_RANLIB
18878 old_archive_cmds=$lt_old_archive_cmds_RC
18879 old_postinstall_cmds=$lt_old_postinstall_cmds
18880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18881
18882 # Create an old-style archive from a shared archive.
18883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18884
18885 # Create a temporary old-style archive to link instead of a shared archive.
18886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18887
18888 # Commands used to build and install a shared archive.
18889 archive_cmds=$lt_archive_cmds_RC
18890 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18891 postinstall_cmds=$lt_postinstall_cmds
18892 postuninstall_cmds=$lt_postuninstall_cmds
18893
18894 # Commands used to build a loadable module (assumed same as above if empty)
18895 module_cmds=$lt_module_cmds_RC
18896 module_expsym_cmds=$lt_module_expsym_cmds_RC
18897
18898 # Commands to strip libraries.
18899 old_striplib=$lt_old_striplib
18900 striplib=$lt_striplib
18901
18902 # Dependencies to place before the objects being linked to create a
18903 # shared library.
18904 predep_objects=$lt_predep_objects_RC
18905
18906 # Dependencies to place after the objects being linked to create a
18907 # shared library.
18908 postdep_objects=$lt_postdep_objects_RC
18909
18910 # Dependencies to place before the objects being linked to create a
18911 # shared library.
18912 predeps=$lt_predeps_RC
18913
18914 # Dependencies to place after the objects being linked to create a
18915 # shared library.
18916 postdeps=$lt_postdeps_RC
18917
18918 # The library search path used internally by the compiler when linking
18919 # a shared library.
18920 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18921
18922 # Method to check whether dependent libraries are shared objects.
18923 deplibs_check_method=$lt_deplibs_check_method
18924
18925 # Command to use when deplibs_check_method == file_magic.
18926 file_magic_cmd=$lt_file_magic_cmd
18927
18928 # Flag that allows shared libraries with undefined symbols to be built.
18929 allow_undefined_flag=$lt_allow_undefined_flag_RC
18930
18931 # Flag that forces no undefined symbols.
18932 no_undefined_flag=$lt_no_undefined_flag_RC
18933
18934 # Commands used to finish a libtool library installation in a directory.
18935 finish_cmds=$lt_finish_cmds
18936
18937 # Same as above, but a single script fragment to be evaled but not shown.
18938 finish_eval=$lt_finish_eval
18939
18940 # Take the output of nm and produce a listing of raw symbols and C names.
18941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18942
18943 # Transform the output of nm in a proper C declaration
18944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18945
18946 # Transform the output of nm in a C name address pair
18947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18948
18949 # This is the shared library runtime path variable.
18950 runpath_var=$runpath_var
18951
18952 # This is the shared library path variable.
18953 shlibpath_var=$shlibpath_var
18954
18955 # Is shlibpath searched before the hard-coded library search path?
18956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18957
18958 # How to hardcode a shared library path into an executable.
18959 hardcode_action=$hardcode_action_RC
18960
18961 # Whether we should hardcode library paths into libraries.
18962 hardcode_into_libs=$hardcode_into_libs
18963
18964 # Flag to hardcode \$libdir into a binary during linking.
18965 # This must work even if \$libdir does not exist.
18966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18967
18968 # If ld is used when linking, flag to hardcode \$libdir into
18969 # a binary during linking. This must work even if \$libdir does
18970 # not exist.
18971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18972
18973 # Whether we need a single -rpath flag with a separated argument.
18974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18975
18976 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18977 # resulting binary.
18978 hardcode_direct=$hardcode_direct_RC
18979
18980 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18981 # resulting binary.
18982 hardcode_minus_L=$hardcode_minus_L_RC
18983
18984 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18985 # the resulting binary.
18986 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18987
18988 # Set to yes if building a shared library automatically hardcodes DIR into the library
18989 # and all subsequent libraries and executables linked against it.
18990 hardcode_automatic=$hardcode_automatic_RC
18991
18992 # Variables whose values should be saved in libtool wrapper scripts and
18993 # restored at relink time.
18994 variables_saved_for_relink="$variables_saved_for_relink"
18995
18996 # Whether libtool must link a program against all its dependency libraries.
18997 link_all_deplibs=$link_all_deplibs_RC
18998
18999 # Compile-time system search path for libraries
19000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19001
19002 # Run-time system search path for libraries
19003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19004
19005 # Fix the shell variable \$srcfile for the compiler.
19006 fix_srcfile_path="$fix_srcfile_path_RC"
19007
19008 # Set to yes if exported symbols are required.
19009 always_export_symbols=$always_export_symbols_RC
19010
19011 # The commands to list exported symbols.
19012 export_symbols_cmds=$lt_export_symbols_cmds_RC
19013
19014 # The commands to extract the exported symbol list from a shared archive.
19015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19016
19017 # Symbols that should not be listed in the preloaded symbols.
19018 exclude_expsyms=$lt_exclude_expsyms_RC
19019
19020 # Symbols that must always be exported.
19021 include_expsyms=$lt_include_expsyms_RC
19022
19023 # ### END LIBTOOL TAG CONFIG: $tagname
19024
19025 __EOF__
19026
19027
19028 else
19029   # If there is no Makefile yet, we rely on a make rule to execute
19030   # `config.status --recheck' to rerun these tests and create the
19031   # libtool script then.
19032   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19033   if test -f "$ltmain_in"; then
19034     test -f Makefile && make "$ltmain"
19035   fi
19036 fi
19037
19038
19039 ac_ext=c
19040 ac_cpp='$CPP $CPPFLAGS'
19041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19044
19045 CC="$lt_save_CC"
19046
19047         ;;
19048
19049       *)
19050         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19051 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19052    { (exit 1); exit 1; }; }
19053         ;;
19054       esac
19055
19056       # Append the new tag name to the list of available tags.
19057       if test -n "$tagname" ; then
19058       available_tags="$available_tags $tagname"
19059     fi
19060     fi
19061   done
19062   IFS="$lt_save_ifs"
19063
19064   # Now substitute the updated list of available tags.
19065   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19066     mv "${ofile}T" "$ofile"
19067     chmod +x "$ofile"
19068   else
19069     rm -f "${ofile}T"
19070     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19071 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19072    { (exit 1); exit 1; }; }
19073   fi
19074 fi
19075
19076
19077
19078 # This can be used to rebuild libtool when needed
19079 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19080
19081 # Always use our own libtool.
19082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19083
19084 # Prevent multiple expansion
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110 echo "$as_me:$LINENO: checking for dm_init_service in -ldm" >&5
19111 echo $ECHO_N "checking for dm_init_service in -ldm... $ECHO_C" >&6
19112 if test "${ac_cv_lib_dm_dm_init_service+set}" = set; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   ac_check_lib_save_LIBS=$LIBS
19116 LIBS="-ldm  $LIBS"
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123
19124 /* Override any gcc2 internal prototype to avoid an error.  */
19125 #ifdef __cplusplus
19126 extern "C"
19127 #endif
19128 /* We use char because int might match the return type of a gcc2
19129    builtin and then its argument prototype would still apply.  */
19130 char dm_init_service ();
19131 int
19132 main ()
19133 {
19134 dm_init_service ();
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141   (eval $ac_link) 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -z "$ac_c_werror_flag"
19149                          || test ! -s conftest.err'
19150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151   (eval $ac_try) 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; } &&
19155          { ac_try='test -s conftest$ac_exeext'
19156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157   (eval $ac_try) 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; }; then
19161   ac_cv_lib_dm_dm_init_service=yes
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 ac_cv_lib_dm_dm_init_service=no
19167 fi
19168 rm -f conftest.err conftest.$ac_objext \
19169       conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19171 fi
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_dm_dm_init_service" >&5
19173 echo "${ECHO_T}$ac_cv_lib_dm_dm_init_service" >&6
19174 if test $ac_cv_lib_dm_dm_init_service = yes; then
19175   cat >>confdefs.h <<_ACEOF
19176 #define HAVE_LIBDM 1
19177 _ACEOF
19178
19179   LIBS="-ldm $LIBS"
19180
19181 fi
19182
19183
19184
19185 for ac_header in xfs/dmapi.h
19186 do
19187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19189   echo "$as_me:$LINENO: checking for $ac_header" >&5
19190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19192   echo $ECHO_N "(cached) $ECHO_C" >&6
19193 fi
19194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19196 else
19197   # Is the header compilable?
19198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 $ac_includes_default
19207 #include <$ac_header>
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211   (eval $ac_compile) 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } &&
19218          { ac_try='test -z "$ac_c_werror_flag"
19219                          || test ! -s conftest.err'
19220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221   (eval $ac_try) 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; } &&
19225          { ac_try='test -s conftest.$ac_objext'
19226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227   (eval $ac_try) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; }; then
19231   ac_header_compiler=yes
19232 else
19233   echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236 ac_header_compiler=no
19237 fi
19238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19240 echo "${ECHO_T}$ac_header_compiler" >&6
19241
19242 # Is the header present?
19243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251 #include <$ac_header>
19252 _ACEOF
19253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } >/dev/null; then
19261   if test -s conftest.err; then
19262     ac_cpp_err=$ac_c_preproc_warn_flag
19263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19264   else
19265     ac_cpp_err=
19266   fi
19267 else
19268   ac_cpp_err=yes
19269 fi
19270 if test -z "$ac_cpp_err"; then
19271   ac_header_preproc=yes
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276   ac_header_preproc=no
19277 fi
19278 rm -f conftest.err conftest.$ac_ext
19279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19280 echo "${ECHO_T}$ac_header_preproc" >&6
19281
19282 # So?  What about this header?
19283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19284   yes:no: )
19285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19289     ac_header_preproc=yes
19290     ;;
19291   no:yes:* )
19292     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19294     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19295 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19296     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19298     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19299 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19302     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19304     (
19305       cat <<\_ASBOX
19306 ## ------------------------------------------ ##
19307 ## Report this to the AC_PACKAGE_NAME lists.  ##
19308 ## ------------------------------------------ ##
19309 _ASBOX
19310     ) |
19311       sed "s/^/$as_me: WARNING:     /" >&2
19312     ;;
19313 esac
19314 echo "$as_me:$LINENO: checking for $ac_header" >&5
19315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   eval "$as_ac_Header=\$ac_header_preproc"
19320 fi
19321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19323
19324 fi
19325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19326   cat >>confdefs.h <<_ACEOF
19327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19328 _ACEOF
19329  have_xfs_dmapi_h=1
19330 fi
19331
19332 done
19333
19334
19335 for ac_header in sys/dmi.h
19336 do
19337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19339   echo "$as_me:$LINENO: checking for $ac_header" >&5
19340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342   echo $ECHO_N "(cached) $ECHO_C" >&6
19343 fi
19344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19346 else
19347   # Is the header compilable?
19348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 $ac_includes_default
19357 #include <$ac_header>
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361   (eval $ac_compile) 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_c_werror_flag"
19369                          || test ! -s conftest.err'
19370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371   (eval $ac_try) 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; } &&
19375          { ac_try='test -s conftest.$ac_objext'
19376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377   (eval $ac_try) 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); }; }; then
19381   ac_header_compiler=yes
19382 else
19383   echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 ac_header_compiler=no
19387 fi
19388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19390 echo "${ECHO_T}$ac_header_compiler" >&6
19391
19392 # Is the header present?
19393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401 #include <$ac_header>
19402 _ACEOF
19403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19405   ac_status=$?
19406   grep -v '^ *+' conftest.er1 >conftest.err
19407   rm -f conftest.er1
19408   cat conftest.err >&5
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); } >/dev/null; then
19411   if test -s conftest.err; then
19412     ac_cpp_err=$ac_c_preproc_warn_flag
19413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19414   else
19415     ac_cpp_err=
19416   fi
19417 else
19418   ac_cpp_err=yes
19419 fi
19420 if test -z "$ac_cpp_err"; then
19421   ac_header_preproc=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426   ac_header_preproc=no
19427 fi
19428 rm -f conftest.err conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19430 echo "${ECHO_T}$ac_header_preproc" >&6
19431
19432 # So?  What about this header?
19433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19434   yes:no: )
19435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19439     ac_header_preproc=yes
19440     ;;
19441   no:yes:* )
19442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19454     (
19455       cat <<\_ASBOX
19456 ## ------------------------------------------ ##
19457 ## Report this to the AC_PACKAGE_NAME lists.  ##
19458 ## ------------------------------------------ ##
19459 _ASBOX
19460     ) |
19461       sed "s/^/$as_me: WARNING:     /" >&2
19462     ;;
19463 esac
19464 echo "$as_me:$LINENO: checking for $ac_header" >&5
19465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   eval "$as_ac_Header=\$ac_header_preproc"
19470 fi
19471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19473
19474 fi
19475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19476   cat >>confdefs.h <<_ACEOF
19477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19478 _ACEOF
19479
19480 fi
19481
19482 done
19483
19484
19485 CPPFLAGS="-I\$(top_srcdir)/src/common"
19486 if test "$have_xfs_dmapi_h" = 1; then
19487 CPPFLAGS="$CPPFLAGS -I/usr/include/xfs"
19488 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE"
19489 fi
19490
19491
19492
19493
19494                                                                                                               ac_config_files="$ac_config_files Makefile src/Makefile src/common/Makefile src/common/cmd/Makefile src/common/lib/Makefile src/suite1/Makefile src/suite1/cmd/Makefile src/sample_hsm/Makefile src/simple/Makefile src/suite2/Makefile src/suite2/src/Makefile"
19495 cat >confcache <<\_ACEOF
19496 # This file is a shell script that caches the results of configure
19497 # tests run on this system so they can be shared between configure
19498 # scripts and configure runs, see configure's option --config-cache.
19499 # It is not useful on other systems.  If it contains results you don't
19500 # want to keep, you may remove or edit it.
19501 #
19502 # config.status only pays attention to the cache file if you give it
19503 # the --recheck option to rerun configure.
19504 #
19505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19507 # following values.
19508
19509 _ACEOF
19510
19511 # The following way of writing the cache mishandles newlines in values,
19512 # but we know of no workaround that is simple, portable, and efficient.
19513 # So, don't put newlines in cache variables' values.
19514 # Ultrix sh set writes to stderr and can't be redirected directly,
19515 # and sets the high bit in the cache file unless we assign to the vars.
19516 {
19517   (set) 2>&1 |
19518     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19519     *ac_space=\ *)
19520       # `set' does not quote correctly, so add quotes (double-quote
19521       # substitution turns \\\\ into \\, and sed turns \\ into \).
19522       sed -n \
19523         "s/'/'\\\\''/g;
19524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19525       ;;
19526     *)
19527       # `set' quotes correctly as required by POSIX, so do not add quotes.
19528       sed -n \
19529         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19530       ;;
19531     esac;
19532 } |
19533   sed '
19534      t clear
19535      : clear
19536      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19537      t end
19538      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19539      : end' >>confcache
19540 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19541   if test -w $cache_file; then
19542     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19543     cat confcache >$cache_file
19544   else
19545     echo "not updating unwritable cache $cache_file"
19546   fi
19547 fi
19548 rm -f confcache
19549
19550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19551 # Let make expand exec_prefix.
19552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19553
19554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19556 # trailing colons and then remove the whole line if VPATH becomes empty
19557 # (actually we leave an empty line to preserve line numbers).
19558 if test "x$srcdir" = x.; then
19559   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19560 s/:*\$(srcdir):*/:/;
19561 s/:*\${srcdir}:*/:/;
19562 s/:*@srcdir@:*/:/;
19563 s/^\([^=]*=[     ]*\):*/\1/;
19564 s/:*$//;
19565 s/^[^=]*=[       ]*$//;
19566 }'
19567 fi
19568
19569 # Transform confdefs.h into DEFS.
19570 # Protect against shell expansion while executing Makefile rules.
19571 # Protect against Makefile macro expansion.
19572 #
19573 # If the first sed substitution is executed (which looks for macros that
19574 # take arguments), then we branch to the quote section.  Otherwise,
19575 # look for a macro that doesn't take arguments.
19576 cat >confdef2opt.sed <<\_ACEOF
19577 t clear
19578 : clear
19579 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
19580 t quote
19581 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
19582 t quote
19583 d
19584 : quote
19585 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
19586 s,\[,\\&,g
19587 s,\],\\&,g
19588 s,\$,$$,g
19589 p
19590 _ACEOF
19591 # We use echo to avoid assuming a particular line-breaking character.
19592 # The extra dot is to prevent the shell from consuming trailing
19593 # line-breaks from the sub-command output.  A line-break within
19594 # single-quotes doesn't work because, if this script is created in a
19595 # platform that uses two characters for line-breaks (e.g., DOS), tr
19596 # would break.
19597 ac_LF_and_DOT=`echo; echo .`
19598 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19599 rm -f confdef2opt.sed
19600
19601
19602 ac_libobjs=
19603 ac_ltlibobjs=
19604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19605   # 1. Remove the extension, and $U if already installed.
19606   ac_i=`echo "$ac_i" |
19607          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19608   # 2. Add them.
19609   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19610   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19611 done
19612 LIBOBJS=$ac_libobjs
19613
19614 LTLIBOBJS=$ac_ltlibobjs
19615
19616
19617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19618   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19619 Usually this means the macro was only invoked conditionally." >&5
19620 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19621 Usually this means the macro was only invoked conditionally." >&2;}
19622    { (exit 1); exit 1; }; }
19623 fi
19624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19625   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19626 Usually this means the macro was only invoked conditionally." >&5
19627 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19628 Usually this means the macro was only invoked conditionally." >&2;}
19629    { (exit 1); exit 1; }; }
19630 fi
19631 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19632   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19633 Usually this means the macro was only invoked conditionally." >&5
19634 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&2;}
19636    { (exit 1); exit 1; }; }
19637 fi
19638
19639 : ${CONFIG_STATUS=./config.status}
19640 ac_clean_files_save=$ac_clean_files
19641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19642 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19643 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19644 cat >$CONFIG_STATUS <<_ACEOF
19645 #! $SHELL
19646 # Generated by $as_me.
19647 # Run this file to recreate the current configuration.
19648 # Compiler output produced by configure, useful for debugging
19649 # configure, is in config.log if it exists.
19650
19651 debug=false
19652 ac_cs_recheck=false
19653 ac_cs_silent=false
19654 SHELL=\${CONFIG_SHELL-$SHELL}
19655 _ACEOF
19656
19657 cat >>$CONFIG_STATUS <<\_ACEOF
19658 ## --------------------- ##
19659 ## M4sh Initialization.  ##
19660 ## --------------------- ##
19661
19662 # Be Bourne compatible
19663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19664   emulate sh
19665   NULLCMD=:
19666   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19667   # is contrary to our usage.  Disable this feature.
19668   alias -g '${1+"$@"}'='"$@"'
19669 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19670   set -o posix
19671 fi
19672 DUALCASE=1; export DUALCASE # for MKS sh
19673
19674 # Support unset when possible.
19675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19676   as_unset=unset
19677 else
19678   as_unset=false
19679 fi
19680
19681
19682 # Work around bugs in pre-3.0 UWIN ksh.
19683 $as_unset ENV MAIL MAILPATH
19684 PS1='$ '
19685 PS2='> '
19686 PS4='+ '
19687
19688 # NLS nuisances.
19689 for as_var in \
19690   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19691   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19692   LC_TELEPHONE LC_TIME
19693 do
19694   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19695     eval $as_var=C; export $as_var
19696   else
19697     $as_unset $as_var
19698   fi
19699 done
19700
19701 # Required to use basename.
19702 if expr a : '\(a\)' >/dev/null 2>&1; then
19703   as_expr=expr
19704 else
19705   as_expr=false
19706 fi
19707
19708 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19709   as_basename=basename
19710 else
19711   as_basename=false
19712 fi
19713
19714
19715 # Name of the executable.
19716 as_me=`$as_basename "$0" ||
19717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19718          X"$0" : 'X\(//\)$' \| \
19719          X"$0" : 'X\(/\)$' \| \
19720          .     : '\(.\)' 2>/dev/null ||
19721 echo X/"$0" |
19722     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19723           /^X\/\(\/\/\)$/{ s//\1/; q; }
19724           /^X\/\(\/\).*/{ s//\1/; q; }
19725           s/.*/./; q'`
19726
19727
19728 # PATH needs CR, and LINENO needs CR and PATH.
19729 # Avoid depending upon Character Ranges.
19730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19733 as_cr_digits='0123456789'
19734 as_cr_alnum=$as_cr_Letters$as_cr_digits
19735
19736 # The user is always right.
19737 if test "${PATH_SEPARATOR+set}" != set; then
19738   echo "#! /bin/sh" >conf$$.sh
19739   echo  "exit 0"   >>conf$$.sh
19740   chmod +x conf$$.sh
19741   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19742     PATH_SEPARATOR=';'
19743   else
19744     PATH_SEPARATOR=:
19745   fi
19746   rm -f conf$$.sh
19747 fi
19748
19749
19750   as_lineno_1=$LINENO
19751   as_lineno_2=$LINENO
19752   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19753   test "x$as_lineno_1" != "x$as_lineno_2" &&
19754   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19755   # Find who we are.  Look in the path if we contain no path at all
19756   # relative or not.
19757   case $0 in
19758     *[\\/]* ) as_myself=$0 ;;
19759     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19761 do
19762   IFS=$as_save_IFS
19763   test -z "$as_dir" && as_dir=.
19764   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19765 done
19766
19767        ;;
19768   esac
19769   # We did not find ourselves, most probably we were run as `sh COMMAND'
19770   # in which case we are not to be found in the path.
19771   if test "x$as_myself" = x; then
19772     as_myself=$0
19773   fi
19774   if test ! -f "$as_myself"; then
19775     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19776 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19777    { (exit 1); exit 1; }; }
19778   fi
19779   case $CONFIG_SHELL in
19780   '')
19781     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19783 do
19784   IFS=$as_save_IFS
19785   test -z "$as_dir" && as_dir=.
19786   for as_base in sh bash ksh sh5; do
19787          case $as_dir in
19788          /*)
19789            if ("$as_dir/$as_base" -c '
19790   as_lineno_1=$LINENO
19791   as_lineno_2=$LINENO
19792   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19793   test "x$as_lineno_1" != "x$as_lineno_2" &&
19794   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19795              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19796              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19797              CONFIG_SHELL=$as_dir/$as_base
19798              export CONFIG_SHELL
19799              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19800            fi;;
19801          esac
19802        done
19803 done
19804 ;;
19805   esac
19806
19807   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19808   # uniformly replaced by the line number.  The first 'sed' inserts a
19809   # line-number line before each line; the second 'sed' does the real
19810   # work.  The second script uses 'N' to pair each line-number line
19811   # with the numbered line, and appends trailing '-' during
19812   # substitution so that $LINENO is not a special case at line end.
19813   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19814   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19815   sed '=' <$as_myself |
19816     sed '
19817       N
19818       s,$,-,
19819       : loop
19820       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19821       t loop
19822       s,-$,,
19823       s,^['$as_cr_digits']*\n,,
19824     ' >$as_me.lineno &&
19825   chmod +x $as_me.lineno ||
19826     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19827 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19828    { (exit 1); exit 1; }; }
19829
19830   # Don't try to exec as it changes $[0], causing all sort of problems
19831   # (the dirname of $[0] is not the place where we might find the
19832   # original and so on.  Autoconf is especially sensible to this).
19833   . ./$as_me.lineno
19834   # Exit status is that of the last command.
19835   exit
19836 }
19837
19838
19839 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19840   *c*,-n*) ECHO_N= ECHO_C='
19841 ' ECHO_T='      ' ;;
19842   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19843   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19844 esac
19845
19846 if expr a : '\(a\)' >/dev/null 2>&1; then
19847   as_expr=expr
19848 else
19849   as_expr=false
19850 fi
19851
19852 rm -f conf$$ conf$$.exe conf$$.file
19853 echo >conf$$.file
19854 if ln -s conf$$.file conf$$ 2>/dev/null; then
19855   # We could just check for DJGPP; but this test a) works b) is more generic
19856   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19857   if test -f conf$$.exe; then
19858     # Don't use ln at all; we don't have any links
19859     as_ln_s='cp -p'
19860   else
19861     as_ln_s='ln -s'
19862   fi
19863 elif ln conf$$.file conf$$ 2>/dev/null; then
19864   as_ln_s=ln
19865 else
19866   as_ln_s='cp -p'
19867 fi
19868 rm -f conf$$ conf$$.exe conf$$.file
19869
19870 if mkdir -p . 2>/dev/null; then
19871   as_mkdir_p=:
19872 else
19873   test -d ./-p && rmdir ./-p
19874   as_mkdir_p=false
19875 fi
19876
19877 as_executable_p="test -f"
19878
19879 # Sed expression to map a string onto a valid CPP name.
19880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19881
19882 # Sed expression to map a string onto a valid variable name.
19883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19884
19885
19886 # IFS
19887 # We need space, tab and new line, in precisely that order.
19888 as_nl='
19889 '
19890 IFS="   $as_nl"
19891
19892 # CDPATH.
19893 $as_unset CDPATH
19894
19895 exec 6>&1
19896
19897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19898 # report actual input values of CONFIG_FILES etc. instead of their
19899 # values after options handling.  Logging --version etc. is OK.
19900 exec 5>>config.log
19901 {
19902   echo
19903   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19904 ## Running $as_me. ##
19905 _ASBOX
19906 } >&5
19907 cat >&5 <<_CSEOF
19908
19909 This file was extended by $as_me, which was
19910 generated by GNU Autoconf 2.59.  Invocation command line was
19911
19912   CONFIG_FILES    = $CONFIG_FILES
19913   CONFIG_HEADERS  = $CONFIG_HEADERS
19914   CONFIG_LINKS    = $CONFIG_LINKS
19915   CONFIG_COMMANDS = $CONFIG_COMMANDS
19916   $ $0 $@
19917
19918 _CSEOF
19919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19920 echo >&5
19921 _ACEOF
19922
19923 # Files that config.status was made for.
19924 if test -n "$ac_config_files"; then
19925   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19926 fi
19927
19928 if test -n "$ac_config_headers"; then
19929   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19930 fi
19931
19932 if test -n "$ac_config_links"; then
19933   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19934 fi
19935
19936 if test -n "$ac_config_commands"; then
19937   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19938 fi
19939
19940 cat >>$CONFIG_STATUS <<\_ACEOF
19941
19942 ac_cs_usage="\
19943 \`$as_me' instantiates files from templates according to the
19944 current configuration.
19945
19946 Usage: $0 [OPTIONS] [FILE]...
19947
19948   -h, --help       print this help, then exit
19949   -V, --version    print version number, then exit
19950   -q, --quiet      do not print progress messages
19951   -d, --debug      don't remove temporary files
19952       --recheck    update $as_me by reconfiguring in the same conditions
19953   --file=FILE[:TEMPLATE]
19954                    instantiate the configuration file FILE
19955
19956 Configuration files:
19957 $config_files
19958
19959 Configuration commands:
19960 $config_commands
19961
19962 Report bugs to <bug-autoconf@gnu.org>."
19963 _ACEOF
19964
19965 cat >>$CONFIG_STATUS <<_ACEOF
19966 ac_cs_version="\\
19967 config.status
19968 configured by $0, generated by GNU Autoconf 2.59,
19969   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19970
19971 Copyright (C) 2003 Free Software Foundation, Inc.
19972 This config.status script is free software; the Free Software Foundation
19973 gives unlimited permission to copy, distribute and modify it."
19974 srcdir=$srcdir
19975 INSTALL="$INSTALL"
19976 _ACEOF
19977
19978 cat >>$CONFIG_STATUS <<\_ACEOF
19979 # If no file are specified by the user, then we need to provide default
19980 # value.  By we need to know if files were specified by the user.
19981 ac_need_defaults=:
19982 while test $# != 0
19983 do
19984   case $1 in
19985   --*=*)
19986     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19987     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19988     ac_shift=:
19989     ;;
19990   -*)
19991     ac_option=$1
19992     ac_optarg=$2
19993     ac_shift=shift
19994     ;;
19995   *) # This is not an option, so the user has probably given explicit
19996      # arguments.
19997      ac_option=$1
19998      ac_need_defaults=false;;
19999   esac
20000
20001   case $ac_option in
20002   # Handling of the options.
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20005   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20006     ac_cs_recheck=: ;;
20007   --version | --vers* | -V )
20008     echo "$ac_cs_version"; exit 0 ;;
20009   --he | --h)
20010     # Conflict between --help and --header
20011     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20012 Try \`$0 --help' for more information." >&5
20013 echo "$as_me: error: ambiguous option: $1
20014 Try \`$0 --help' for more information." >&2;}
20015    { (exit 1); exit 1; }; };;
20016   --help | --hel | -h )
20017     echo "$ac_cs_usage"; exit 0 ;;
20018   --debug | --d* | -d )
20019     debug=: ;;
20020   --file | --fil | --fi | --f )
20021     $ac_shift
20022     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20023     ac_need_defaults=false;;
20024   --header | --heade | --head | --hea )
20025     $ac_shift
20026     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20027     ac_need_defaults=false;;
20028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20029   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20030     ac_cs_silent=: ;;
20031
20032   # This is an error.
20033   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20034 Try \`$0 --help' for more information." >&5
20035 echo "$as_me: error: unrecognized option: $1
20036 Try \`$0 --help' for more information." >&2;}
20037    { (exit 1); exit 1; }; } ;;
20038
20039   *) ac_config_targets="$ac_config_targets $1" ;;
20040
20041   esac
20042   shift
20043 done
20044
20045 ac_configure_extra_args=
20046
20047 if $ac_cs_silent; then
20048   exec 6>/dev/null
20049   ac_configure_extra_args="$ac_configure_extra_args --silent"
20050 fi
20051
20052 _ACEOF
20053 cat >>$CONFIG_STATUS <<_ACEOF
20054 if \$ac_cs_recheck; then
20055   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20056   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20057 fi
20058
20059 _ACEOF
20060
20061 cat >>$CONFIG_STATUS <<_ACEOF
20062 #
20063 # INIT-COMMANDS section.
20064 #
20065
20066 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20067
20068 _ACEOF
20069
20070
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 for ac_config_target in $ac_config_targets
20074 do
20075   case "$ac_config_target" in
20076   # Handling of arguments.
20077   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20078   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20079   "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
20080   "src/common/cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/cmd/Makefile" ;;
20081   "src/common/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/lib/Makefile" ;;
20082   "src/suite1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite1/Makefile" ;;
20083   "src/suite1/cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite1/cmd/Makefile" ;;
20084   "src/sample_hsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sample_hsm/Makefile" ;;
20085   "src/simple/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/simple/Makefile" ;;
20086   "src/suite2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite2/Makefile" ;;
20087   "src/suite2/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite2/src/Makefile" ;;
20088   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20089   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20091    { (exit 1); exit 1; }; };;
20092   esac
20093 done
20094
20095 # If the user did not use the arguments to specify the items to instantiate,
20096 # then the envvar interface is used.  Set only those that are not.
20097 # We use the long form for the default assignment because of an extremely
20098 # bizarre bug on SunOS 4.1.3.
20099 if $ac_need_defaults; then
20100   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20101   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20102 fi
20103
20104 # Have a temporary directory for convenience.  Make it in the build tree
20105 # simply because there is no reason to put it here, and in addition,
20106 # creating and moving files from /tmp can sometimes cause problems.
20107 # Create a temporary directory, and hook for its removal unless debugging.
20108 $debug ||
20109 {
20110   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20111   trap '{ (exit 1); exit 1; }' 1 2 13 15
20112 }
20113
20114 # Create a (secure) tmp directory for tmp files.
20115
20116 {
20117   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20118   test -n "$tmp" && test -d "$tmp"
20119 }  ||
20120 {
20121   tmp=./confstat$$-$RANDOM
20122   (umask 077 && mkdir $tmp)
20123 } ||
20124 {
20125    echo "$me: cannot create a temporary directory in ." >&2
20126    { (exit 1); exit 1; }
20127 }
20128
20129 _ACEOF
20130
20131 cat >>$CONFIG_STATUS <<_ACEOF
20132
20133 #
20134 # CONFIG_FILES section.
20135 #
20136
20137 # No need to generate the scripts if there are no CONFIG_FILES.
20138 # This happens for instance when ./config.status config.h
20139 if test -n "\$CONFIG_FILES"; then
20140   # Protect against being on the right side of a sed subst in config.status.
20141   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20142    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20143 s,@SHELL@,$SHELL,;t t
20144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20150 s,@exec_prefix@,$exec_prefix,;t t
20151 s,@prefix@,$prefix,;t t
20152 s,@program_transform_name@,$program_transform_name,;t t
20153 s,@bindir@,$bindir,;t t
20154 s,@sbindir@,$sbindir,;t t
20155 s,@libexecdir@,$libexecdir,;t t
20156 s,@datadir@,$datadir,;t t
20157 s,@sysconfdir@,$sysconfdir,;t t
20158 s,@sharedstatedir@,$sharedstatedir,;t t
20159 s,@localstatedir@,$localstatedir,;t t
20160 s,@libdir@,$libdir,;t t
20161 s,@includedir@,$includedir,;t t
20162 s,@oldincludedir@,$oldincludedir,;t t
20163 s,@infodir@,$infodir,;t t
20164 s,@mandir@,$mandir,;t t
20165 s,@build_alias@,$build_alias,;t t
20166 s,@host_alias@,$host_alias,;t t
20167 s,@target_alias@,$target_alias,;t t
20168 s,@DEFS@,$DEFS,;t t
20169 s,@ECHO_C@,$ECHO_C,;t t
20170 s,@ECHO_N@,$ECHO_N,;t t
20171 s,@ECHO_T@,$ECHO_T,;t t
20172 s,@LIBS@,$LIBS,;t t
20173 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20174 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20175 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20176 s,@CYGPATH_W@,$CYGPATH_W,;t t
20177 s,@PACKAGE@,$PACKAGE,;t t
20178 s,@VERSION@,$VERSION,;t t
20179 s,@ACLOCAL@,$ACLOCAL,;t t
20180 s,@AUTOCONF@,$AUTOCONF,;t t
20181 s,@AUTOMAKE@,$AUTOMAKE,;t t
20182 s,@AUTOHEADER@,$AUTOHEADER,;t t
20183 s,@MAKEINFO@,$MAKEINFO,;t t
20184 s,@install_sh@,$install_sh,;t t
20185 s,@STRIP@,$STRIP,;t t
20186 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20187 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20188 s,@mkdir_p@,$mkdir_p,;t t
20189 s,@AWK@,$AWK,;t t
20190 s,@SET_MAKE@,$SET_MAKE,;t t
20191 s,@am__leading_dot@,$am__leading_dot,;t t
20192 s,@AMTAR@,$AMTAR,;t t
20193 s,@am__tar@,$am__tar,;t t
20194 s,@am__untar@,$am__untar,;t t
20195 s,@CC@,$CC,;t t
20196 s,@CFLAGS@,$CFLAGS,;t t
20197 s,@LDFLAGS@,$LDFLAGS,;t t
20198 s,@CPPFLAGS@,$CPPFLAGS,;t t
20199 s,@ac_ct_CC@,$ac_ct_CC,;t t
20200 s,@EXEEXT@,$EXEEXT,;t t
20201 s,@OBJEXT@,$OBJEXT,;t t
20202 s,@DEPDIR@,$DEPDIR,;t t
20203 s,@am__include@,$am__include,;t t
20204 s,@am__quote@,$am__quote,;t t
20205 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20206 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20207 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20208 s,@CCDEPMODE@,$CCDEPMODE,;t t
20209 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20210 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20211 s,@build@,$build,;t t
20212 s,@build_cpu@,$build_cpu,;t t
20213 s,@build_vendor@,$build_vendor,;t t
20214 s,@build_os@,$build_os,;t t
20215 s,@host@,$host,;t t
20216 s,@host_cpu@,$host_cpu,;t t
20217 s,@host_vendor@,$host_vendor,;t t
20218 s,@host_os@,$host_os,;t t
20219 s,@EGREP@,$EGREP,;t t
20220 s,@LN_S@,$LN_S,;t t
20221 s,@ECHO@,$ECHO,;t t
20222 s,@AR@,$AR,;t t
20223 s,@ac_ct_AR@,$ac_ct_AR,;t t
20224 s,@RANLIB@,$RANLIB,;t t
20225 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20226 s,@CPP@,$CPP,;t t
20227 s,@CXX@,$CXX,;t t
20228 s,@CXXFLAGS@,$CXXFLAGS,;t t
20229 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20230 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20231 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20232 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20233 s,@CXXCPP@,$CXXCPP,;t t
20234 s,@F77@,$F77,;t t
20235 s,@FFLAGS@,$FFLAGS,;t t
20236 s,@ac_ct_F77@,$ac_ct_F77,;t t
20237 s,@LIBTOOL@,$LIBTOOL,;t t
20238 s,@LIBOBJS@,$LIBOBJS,;t t
20239 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20240 CEOF
20241
20242 _ACEOF
20243
20244   cat >>$CONFIG_STATUS <<\_ACEOF
20245   # Split the substitutions into bite-sized pieces for seds with
20246   # small command number limits, like on Digital OSF/1 and HP-UX.
20247   ac_max_sed_lines=48
20248   ac_sed_frag=1 # Number of current file.
20249   ac_beg=1 # First line for current file.
20250   ac_end=$ac_max_sed_lines # Line after last line for current file.
20251   ac_more_lines=:
20252   ac_sed_cmds=
20253   while $ac_more_lines; do
20254     if test $ac_beg -gt 1; then
20255       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20256     else
20257       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20258     fi
20259     if test ! -s $tmp/subs.frag; then
20260       ac_more_lines=false
20261     else
20262       # The purpose of the label and of the branching condition is to
20263       # speed up the sed processing (if there are no `@' at all, there
20264       # is no need to browse any of the substitutions).
20265       # These are the two extra sed commands mentioned above.
20266       (echo ':t
20267   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20268       if test -z "$ac_sed_cmds"; then
20269         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20270       else
20271         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20272       fi
20273       ac_sed_frag=`expr $ac_sed_frag + 1`
20274       ac_beg=$ac_end
20275       ac_end=`expr $ac_end + $ac_max_sed_lines`
20276     fi
20277   done
20278   if test -z "$ac_sed_cmds"; then
20279     ac_sed_cmds=cat
20280   fi
20281 fi # test -n "$CONFIG_FILES"
20282
20283 _ACEOF
20284 cat >>$CONFIG_STATUS <<\_ACEOF
20285 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20286   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20287   case $ac_file in
20288   - | *:- | *:-:* ) # input from stdin
20289         cat >$tmp/stdin
20290         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20291         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20292   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20293         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20294   * )   ac_file_in=$ac_file.in ;;
20295   esac
20296
20297   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20298   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20300          X"$ac_file" : 'X\(//\)[^/]' \| \
20301          X"$ac_file" : 'X\(//\)$' \| \
20302          X"$ac_file" : 'X\(/\)' \| \
20303          .     : '\(.\)' 2>/dev/null ||
20304 echo X"$ac_file" |
20305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20306           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20307           /^X\(\/\/\)$/{ s//\1/; q; }
20308           /^X\(\/\).*/{ s//\1/; q; }
20309           s/.*/./; q'`
20310   { if $as_mkdir_p; then
20311     mkdir -p "$ac_dir"
20312   else
20313     as_dir="$ac_dir"
20314     as_dirs=
20315     while test ! -d "$as_dir"; do
20316       as_dirs="$as_dir $as_dirs"
20317       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20319          X"$as_dir" : 'X\(//\)[^/]' \| \
20320          X"$as_dir" : 'X\(//\)$' \| \
20321          X"$as_dir" : 'X\(/\)' \| \
20322          .     : '\(.\)' 2>/dev/null ||
20323 echo X"$as_dir" |
20324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20325           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20326           /^X\(\/\/\)$/{ s//\1/; q; }
20327           /^X\(\/\).*/{ s//\1/; q; }
20328           s/.*/./; q'`
20329     done
20330     test ! -n "$as_dirs" || mkdir $as_dirs
20331   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20332 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20333    { (exit 1); exit 1; }; }; }
20334
20335   ac_builddir=.
20336
20337 if test "$ac_dir" != .; then
20338   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20339   # A "../" for each directory in $ac_dir_suffix.
20340   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20341 else
20342   ac_dir_suffix= ac_top_builddir=
20343 fi
20344
20345 case $srcdir in
20346   .)  # No --srcdir option.  We are building in place.
20347     ac_srcdir=.
20348     if test -z "$ac_top_builddir"; then
20349        ac_top_srcdir=.
20350     else
20351        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20352     fi ;;
20353   [\\/]* | ?:[\\/]* )  # Absolute path.
20354     ac_srcdir=$srcdir$ac_dir_suffix;
20355     ac_top_srcdir=$srcdir ;;
20356   *) # Relative path.
20357     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20358     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20359 esac
20360
20361 # Do not use `cd foo && pwd` to compute absolute paths, because
20362 # the directories may not exist.
20363 case `pwd` in
20364 .) ac_abs_builddir="$ac_dir";;
20365 *)
20366   case "$ac_dir" in
20367   .) ac_abs_builddir=`pwd`;;
20368   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20369   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20370   esac;;
20371 esac
20372 case $ac_abs_builddir in
20373 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20374 *)
20375   case ${ac_top_builddir}. in
20376   .) ac_abs_top_builddir=$ac_abs_builddir;;
20377   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20378   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20379   esac;;
20380 esac
20381 case $ac_abs_builddir in
20382 .) ac_abs_srcdir=$ac_srcdir;;
20383 *)
20384   case $ac_srcdir in
20385   .) ac_abs_srcdir=$ac_abs_builddir;;
20386   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20387   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20388   esac;;
20389 esac
20390 case $ac_abs_builddir in
20391 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20392 *)
20393   case $ac_top_srcdir in
20394   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20395   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20396   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20397   esac;;
20398 esac
20399
20400
20401   case $INSTALL in
20402   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20403   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20404   esac
20405
20406   if test x"$ac_file" != x-; then
20407     { echo "$as_me:$LINENO: creating $ac_file" >&5
20408 echo "$as_me: creating $ac_file" >&6;}
20409     rm -f "$ac_file"
20410   fi
20411   # Let's still pretend it is `configure' which instantiates (i.e., don't
20412   # use $as_me), people would be surprised to read:
20413   #    /* config.h.  Generated by config.status.  */
20414   if test x"$ac_file" = x-; then
20415     configure_input=
20416   else
20417     configure_input="$ac_file.  "
20418   fi
20419   configure_input=$configure_input"Generated from `echo $ac_file_in |
20420                                      sed 's,.*/,,'` by configure."
20421
20422   # First look for the input files in the build tree, otherwise in the
20423   # src tree.
20424   ac_file_inputs=`IFS=:
20425     for f in $ac_file_in; do
20426       case $f in
20427       -) echo $tmp/stdin ;;
20428       [\\/$]*)
20429          # Absolute (can't be DOS-style, as IFS=:)
20430          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20431 echo "$as_me: error: cannot find input file: $f" >&2;}
20432    { (exit 1); exit 1; }; }
20433          echo "$f";;
20434       *) # Relative
20435          if test -f "$f"; then
20436            # Build tree
20437            echo "$f"
20438          elif test -f "$srcdir/$f"; then
20439            # Source tree
20440            echo "$srcdir/$f"
20441          else
20442            # /dev/null tree
20443            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20444 echo "$as_me: error: cannot find input file: $f" >&2;}
20445    { (exit 1); exit 1; }; }
20446          fi;;
20447       esac
20448     done` || { (exit 1); exit 1; }
20449 _ACEOF
20450 cat >>$CONFIG_STATUS <<_ACEOF
20451   sed "$ac_vpsub
20452 $extrasub
20453 _ACEOF
20454 cat >>$CONFIG_STATUS <<\_ACEOF
20455 :t
20456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20457 s,@configure_input@,$configure_input,;t t
20458 s,@srcdir@,$ac_srcdir,;t t
20459 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20460 s,@top_srcdir@,$ac_top_srcdir,;t t
20461 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20462 s,@builddir@,$ac_builddir,;t t
20463 s,@abs_builddir@,$ac_abs_builddir,;t t
20464 s,@top_builddir@,$ac_top_builddir,;t t
20465 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20466 s,@INSTALL@,$ac_INSTALL,;t t
20467 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20468   rm -f $tmp/stdin
20469   if test x"$ac_file" != x-; then
20470     mv $tmp/out $ac_file
20471   else
20472     cat $tmp/out
20473     rm -f $tmp/out
20474   fi
20475
20476 done
20477 _ACEOF
20478 cat >>$CONFIG_STATUS <<\_ACEOF
20479
20480 #
20481 # CONFIG_COMMANDS section.
20482 #
20483 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20484   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20485   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20486   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20487 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20488          X"$ac_dest" : 'X\(//\)[^/]' \| \
20489          X"$ac_dest" : 'X\(//\)$' \| \
20490          X"$ac_dest" : 'X\(/\)' \| \
20491          .     : '\(.\)' 2>/dev/null ||
20492 echo X"$ac_dest" |
20493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20494           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20495           /^X\(\/\/\)$/{ s//\1/; q; }
20496           /^X\(\/\).*/{ s//\1/; q; }
20497           s/.*/./; q'`
20498   { if $as_mkdir_p; then
20499     mkdir -p "$ac_dir"
20500   else
20501     as_dir="$ac_dir"
20502     as_dirs=
20503     while test ! -d "$as_dir"; do
20504       as_dirs="$as_dir $as_dirs"
20505       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20507          X"$as_dir" : 'X\(//\)[^/]' \| \
20508          X"$as_dir" : 'X\(//\)$' \| \
20509          X"$as_dir" : 'X\(/\)' \| \
20510          .     : '\(.\)' 2>/dev/null ||
20511 echo X"$as_dir" |
20512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20513           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20514           /^X\(\/\/\)$/{ s//\1/; q; }
20515           /^X\(\/\).*/{ s//\1/; q; }
20516           s/.*/./; q'`
20517     done
20518     test ! -n "$as_dirs" || mkdir $as_dirs
20519   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20520 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20521    { (exit 1); exit 1; }; }; }
20522
20523   ac_builddir=.
20524
20525 if test "$ac_dir" != .; then
20526   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20527   # A "../" for each directory in $ac_dir_suffix.
20528   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20529 else
20530   ac_dir_suffix= ac_top_builddir=
20531 fi
20532
20533 case $srcdir in
20534   .)  # No --srcdir option.  We are building in place.
20535     ac_srcdir=.
20536     if test -z "$ac_top_builddir"; then
20537        ac_top_srcdir=.
20538     else
20539        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20540     fi ;;
20541   [\\/]* | ?:[\\/]* )  # Absolute path.
20542     ac_srcdir=$srcdir$ac_dir_suffix;
20543     ac_top_srcdir=$srcdir ;;
20544   *) # Relative path.
20545     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20546     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20547 esac
20548
20549 # Do not use `cd foo && pwd` to compute absolute paths, because
20550 # the directories may not exist.
20551 case `pwd` in
20552 .) ac_abs_builddir="$ac_dir";;
20553 *)
20554   case "$ac_dir" in
20555   .) ac_abs_builddir=`pwd`;;
20556   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20557   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20558   esac;;
20559 esac
20560 case $ac_abs_builddir in
20561 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20562 *)
20563   case ${ac_top_builddir}. in
20564   .) ac_abs_top_builddir=$ac_abs_builddir;;
20565   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20566   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20567   esac;;
20568 esac
20569 case $ac_abs_builddir in
20570 .) ac_abs_srcdir=$ac_srcdir;;
20571 *)
20572   case $ac_srcdir in
20573   .) ac_abs_srcdir=$ac_abs_builddir;;
20574   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20575   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20576   esac;;
20577 esac
20578 case $ac_abs_builddir in
20579 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20580 *)
20581   case $ac_top_srcdir in
20582   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20583   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20584   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20585   esac;;
20586 esac
20587
20588
20589   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20590 echo "$as_me: executing $ac_dest commands" >&6;}
20591   case $ac_dest in
20592     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20593   # Strip MF so we end up with the name of the file.
20594   mf=`echo "$mf" | sed -e 's/:.*$//'`
20595   # Check whether this is an Automake generated Makefile or not.
20596   # We used to match only the files named `Makefile.in', but
20597   # some people rename them; so instead we look at the file content.
20598   # Grep'ing the first line is not enough: some people post-process
20599   # each Makefile.in and add a new line on top of each file to say so.
20600   # So let's grep whole file.
20601   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20602     dirpart=`(dirname "$mf") 2>/dev/null ||
20603 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20604          X"$mf" : 'X\(//\)[^/]' \| \
20605          X"$mf" : 'X\(//\)$' \| \
20606          X"$mf" : 'X\(/\)' \| \
20607          .     : '\(.\)' 2>/dev/null ||
20608 echo X"$mf" |
20609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20610           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20611           /^X\(\/\/\)$/{ s//\1/; q; }
20612           /^X\(\/\).*/{ s//\1/; q; }
20613           s/.*/./; q'`
20614   else
20615     continue
20616   fi
20617   # Extract the definition of DEPDIR, am__include, and am__quote
20618   # from the Makefile without running `make'.
20619   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20620   test -z "$DEPDIR" && continue
20621   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20622   test -z "am__include" && continue
20623   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20624   # When using ansi2knr, U may be empty or an underscore; expand it
20625   U=`sed -n 's/^U = //p' < "$mf"`
20626   # Find all dependency output files, they are included files with
20627   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20628   # simplest approach to changing $(DEPDIR) to its actual value in the
20629   # expansion.
20630   for file in `sed -n "
20631     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20632        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20633     # Make sure the directory exists.
20634     test -f "$dirpart/$file" && continue
20635     fdir=`(dirname "$file") 2>/dev/null ||
20636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20637          X"$file" : 'X\(//\)[^/]' \| \
20638          X"$file" : 'X\(//\)$' \| \
20639          X"$file" : 'X\(/\)' \| \
20640          .     : '\(.\)' 2>/dev/null ||
20641 echo X"$file" |
20642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20644           /^X\(\/\/\)$/{ s//\1/; q; }
20645           /^X\(\/\).*/{ s//\1/; q; }
20646           s/.*/./; q'`
20647     { if $as_mkdir_p; then
20648     mkdir -p $dirpart/$fdir
20649   else
20650     as_dir=$dirpart/$fdir
20651     as_dirs=
20652     while test ! -d "$as_dir"; do
20653       as_dirs="$as_dir $as_dirs"
20654       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20656          X"$as_dir" : 'X\(//\)[^/]' \| \
20657          X"$as_dir" : 'X\(//\)$' \| \
20658          X"$as_dir" : 'X\(/\)' \| \
20659          .     : '\(.\)' 2>/dev/null ||
20660 echo X"$as_dir" |
20661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20663           /^X\(\/\/\)$/{ s//\1/; q; }
20664           /^X\(\/\).*/{ s//\1/; q; }
20665           s/.*/./; q'`
20666     done
20667     test ! -n "$as_dirs" || mkdir $as_dirs
20668   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20669 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20670    { (exit 1); exit 1; }; }; }
20671
20672     # echo "creating $dirpart/$file"
20673     echo '# dummy' > "$dirpart/$file"
20674   done
20675 done
20676  ;;
20677   esac
20678 done
20679 _ACEOF
20680
20681 cat >>$CONFIG_STATUS <<\_ACEOF
20682
20683 { (exit 0); exit 0; }
20684 _ACEOF
20685 chmod +x $CONFIG_STATUS
20686 ac_clean_files=$ac_clean_files_save
20687
20688
20689 # configure is writing to config.log, and then calls config.status.
20690 # config.status does its own redirection, appending to config.log.
20691 # Unfortunately, on DOS this fails, as config.log is still kept open
20692 # by configure, so config.status won't be able to write to it; its
20693 # output is simply discarded.  So we exec the FD to /dev/null,
20694 # effectively closing config.log, so it can be properly (re)opened and
20695 # appended to by config.status.  When coming back to configure, we
20696 # need to make the FD available again.
20697 if test "$no_create" != yes; then
20698   ac_cs_success=:
20699   ac_config_status_args=
20700   test "$silent" = yes &&
20701     ac_config_status_args="$ac_config_status_args --quiet"
20702   exec 5>/dev/null
20703   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20704   exec 5>>config.log
20705   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20706   # would make configure fail if this is the last instruction.
20707   $ac_cs_success || { (exit 1); exit 1; }
20708 fi
20709