]> git.jsancho.org Git - lugaru.git/blob - libvorbis-1.0.1/configure
First shot at an OpenAL renderer. Sound effects work, no music.
[lugaru.git] / libvorbis-1.0.1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="lib/mdct.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_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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT V_LIB_CURRENT V_LIB_REVISION V_LIB_AGE VF_LIB_CURRENT VF_LIB_REVISION VF_LIB_AGE VE_LIB_CURRENT VE_LIB_REVISION VE_LIB_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP 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 STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL XSLTPROC PDFXMLTEX BUILD_DOCS_TRUE BUILD_DOCS_FALSE OGG_CFLAGS OGG_LIBS ALLOCA LIBOBJS DEBUG PROFILE pthread_lib LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-maintainer-mode enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-docs          build the documentation
1036   --disable-oggtest       Do not try to compile and run a test Ogg program
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042   --with-pic              try to use only PIC/non-PIC objects [default=use
1043                           both]
1044   --with-tags[=TAGS]
1045                           include additional configurations [automatic]
1046   --with-ogg=PFX   Prefix where libogg is installed (optional)
1047   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
1048   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
1049
1050 Some influential environment variables:
1051   CC          C compiler command
1052   CFLAGS      C compiler flags
1053   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054               nonstandard directory <lib dir>
1055   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056               headers in a nonstandard directory <include dir>
1057   CPP         C preprocessor
1058   CXX         C++ compiler command
1059   CXXFLAGS    C++ compiler flags
1060   CXXCPP      C++ preprocessor
1061   F77         Fortran 77 compiler command
1062   FFLAGS      Fortran 77 compiler flags
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 _ACEOF
1068 fi
1069
1070 if test "$ac_init_help" = "recursive"; then
1071   # If there are subdirs, report their specific --help.
1072   ac_popdir=`pwd`
1073   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074     test -d $ac_dir || continue
1075     ac_builddir=.
1076
1077 if test "$ac_dir" != .; then
1078   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079   # A "../" for each directory in $ac_dir_suffix.
1080   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082   ac_dir_suffix= ac_top_builddir=
1083 fi
1084
1085 case $srcdir in
1086   .)  # No --srcdir option.  We are building in place.
1087     ac_srcdir=.
1088     if test -z "$ac_top_builddir"; then
1089        ac_top_srcdir=.
1090     else
1091        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092     fi ;;
1093   [\\/]* | ?:[\\/]* )  # Absolute path.
1094     ac_srcdir=$srcdir$ac_dir_suffix;
1095     ac_top_srcdir=$srcdir ;;
1096   *) # Relative path.
1097     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1100
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1103 case `pwd` in
1104 .) ac_abs_builddir="$ac_dir";;
1105 *)
1106   case "$ac_dir" in
1107   .) ac_abs_builddir=`pwd`;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110   esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *)
1115   case ${ac_top_builddir}. in
1116   .) ac_abs_top_builddir=$ac_abs_builddir;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1123 *)
1124   case $ac_srcdir in
1125   .) ac_abs_srcdir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *)
1133   case $ac_top_srcdir in
1134   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137   esac;;
1138 esac
1139
1140     cd $ac_dir
1141     # Check for guested configure; otherwise get Cygnus style configure.
1142     if test -f $ac_srcdir/configure.gnu; then
1143       echo
1144       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145     elif test -f $ac_srcdir/configure; then
1146       echo
1147       $SHELL $ac_srcdir/configure  --help=recursive
1148     elif test -f $ac_srcdir/configure.ac ||
1149            test -f $ac_srcdir/configure.in; then
1150       echo
1151       $ac_configure --help
1152     else
1153       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154     fi
1155     cd "$ac_popdir"
1156   done
1157 fi
1158
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1161   cat <<\_ACEOF
1162
1163 Copyright (C) 2003 Free Software Foundation, Inc.
1164 This configure script is free software; the Free Software Foundation
1165 gives unlimited permission to copy, distribute and modify it.
1166 _ACEOF
1167   exit 0
1168 fi
1169 exec 5>config.log
1170 cat >&5 <<_ACEOF
1171 This file contains any messages produced by compilers while
1172 running configure, to aid debugging if configure makes a mistake.
1173
1174 It was created by $as_me, which was
1175 generated by GNU Autoconf 2.58.  Invocation command line was
1176
1177   $ $0 $@
1178
1179 _ACEOF
1180 {
1181 cat <<_ASUNAME
1182 ## --------- ##
1183 ## Platform. ##
1184 ## --------- ##
1185
1186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1194
1195 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1196 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1199 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1200 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1201 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1202
1203 _ASUNAME
1204
1205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206 for as_dir in $PATH
1207 do
1208   IFS=$as_save_IFS
1209   test -z "$as_dir" && as_dir=.
1210   echo "PATH: $as_dir"
1211 done
1212
1213 } >&5
1214
1215 cat >&5 <<_ACEOF
1216
1217
1218 ## ----------- ##
1219 ## Core tests. ##
1220 ## ----------- ##
1221
1222 _ACEOF
1223
1224
1225 # Keep a trace of the command line.
1226 # Strip out --no-create and --no-recursion so they do not pile up.
1227 # Strip out --silent because we don't want to record it for future runs.
1228 # Also quote any args containing shell meta-characters.
1229 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_configure_args=
1231 ac_configure_args0=
1232 ac_configure_args1=
1233 ac_sep=
1234 ac_must_keep_next=false
1235 for ac_pass in 1 2
1236 do
1237   for ac_arg
1238   do
1239     case $ac_arg in
1240     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242     | -silent | --silent | --silen | --sile | --sil)
1243       continue ;;
1244     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246     esac
1247     case $ac_pass in
1248     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249     2)
1250       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251       if test $ac_must_keep_next = true; then
1252         ac_must_keep_next=false # Got value, back to normal.
1253       else
1254         case $ac_arg in
1255           *=* | --config-cache | -C | -disable-* | --disable-* \
1256           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258           | -with-* | --with-* | -without-* | --without-* | --x)
1259             case "$ac_configure_args0 " in
1260               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261             esac
1262             ;;
1263           -* ) ac_must_keep_next=true ;;
1264         esac
1265       fi
1266       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267       # Get rid of the leading space.
1268       ac_sep=" "
1269       ;;
1270     esac
1271   done
1272 done
1273 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276 # When interrupted or exit'd, cleanup temporary files, and complete
1277 # config.log.  We remove comments because anyway the quotes in there
1278 # would cause problems or look ugly.
1279 # WARNING: Be sure not to use single quotes in there, as some shells,
1280 # such as our DU 5.0 friend, will then `close' the trap.
1281 trap 'exit_status=$?
1282   # Save into config.log some information that might help in debugging.
1283   {
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ---------------- ##
1288 ## Cache variables. ##
1289 ## ---------------- ##
1290 _ASBOX
1291     echo
1292     # The following way of writing the cache mishandles newlines in values,
1293 {
1294   (set) 2>&1 |
1295     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296     *ac_space=\ *)
1297       sed -n \
1298         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1300       ;;
1301     *)
1302       sed -n \
1303         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1304       ;;
1305     esac;
1306 }
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ----------------- ##
1311 ## Output variables. ##
1312 ## ----------------- ##
1313 _ASBOX
1314     echo
1315     for ac_var in $ac_subst_vars
1316     do
1317       eval ac_val=$`echo $ac_var`
1318       echo "$ac_var='"'"'$ac_val'"'"'"
1319     done | sort
1320     echo
1321
1322     if test -n "$ac_subst_files"; then
1323       cat <<\_ASBOX
1324 ## ------------- ##
1325 ## Output files. ##
1326 ## ------------- ##
1327 _ASBOX
1328       echo
1329       for ac_var in $ac_subst_files
1330       do
1331         eval ac_val=$`echo $ac_var`
1332         echo "$ac_var='"'"'$ac_val'"'"'"
1333       done | sort
1334       echo
1335     fi
1336
1337     if test -s confdefs.h; then
1338       cat <<\_ASBOX
1339 ## ----------- ##
1340 ## confdefs.h. ##
1341 ## ----------- ##
1342 _ASBOX
1343       echo
1344       sed "/^$/d" confdefs.h | sort
1345       echo
1346     fi
1347     test "$ac_signal" != 0 &&
1348       echo "$as_me: caught signal $ac_signal"
1349     echo "$as_me: exit $exit_status"
1350   } >&5
1351   rm -f core *.core &&
1352   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353     exit $exit_status
1354      ' 0
1355 for ac_signal in 1 2 13 15; do
1356   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357 done
1358 ac_signal=0
1359
1360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1361 rm -rf conftest* confdefs.h
1362 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363 echo >confdefs.h
1364
1365 # Predefined preprocessor variables.
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_NAME "$PACKAGE_NAME"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_STRING "$PACKAGE_STRING"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389 _ACEOF
1390
1391
1392 # Let the site file select an alternate cache file if it wants to.
1393 # Prefer explicitly selected file to automatically selected ones.
1394 if test -z "$CONFIG_SITE"; then
1395   if test "x$prefix" != xNONE; then
1396     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397   else
1398     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399   fi
1400 fi
1401 for ac_site_file in $CONFIG_SITE; do
1402   if test -r "$ac_site_file"; then
1403     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404 echo "$as_me: loading site script $ac_site_file" >&6;}
1405     sed 's/^/| /' "$ac_site_file" >&5
1406     . "$ac_site_file"
1407   fi
1408 done
1409
1410 if test -r "$cache_file"; then
1411   # Some versions of bash will fail to source /dev/null (special
1412   # files actually), so we avoid doing that.
1413   if test -f "$cache_file"; then
1414     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415 echo "$as_me: loading cache $cache_file" >&6;}
1416     case $cache_file in
1417       [\\/]* | ?:[\\/]* ) . $cache_file;;
1418       *)                      . ./$cache_file;;
1419     esac
1420   fi
1421 else
1422   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423 echo "$as_me: creating cache $cache_file" >&6;}
1424   >$cache_file
1425 fi
1426
1427 # Check that the precious variables saved in the cache have kept the same
1428 # value.
1429 ac_cache_corrupted=false
1430 for ac_var in `(set) 2>&1 |
1431                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433   eval ac_new_set=\$ac_env_${ac_var}_set
1434   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435   eval ac_new_val="\$ac_env_${ac_var}_value"
1436   case $ac_old_set,$ac_new_set in
1437     set,)
1438       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440       ac_cache_corrupted=: ;;
1441     ,set)
1442       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444       ac_cache_corrupted=: ;;
1445     ,);;
1446     *)
1447       if test "x$ac_old_val" != "x$ac_new_val"; then
1448         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1451 echo "$as_me:   former value:  $ac_old_val" >&2;}
1452         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1453 echo "$as_me:   current value: $ac_new_val" >&2;}
1454         ac_cache_corrupted=:
1455       fi;;
1456   esac
1457   # Pass precious variables to config.status.
1458   if test "$ac_new_set" = set; then
1459     case $ac_new_val in
1460     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462     *) ac_arg=$ac_var=$ac_new_val ;;
1463     esac
1464     case " $ac_configure_args " in
1465       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1466       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467     esac
1468   fi
1469 done
1470 if $ac_cache_corrupted; then
1471   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475    { (exit 1); exit 1; }; }
1476 fi
1477
1478 ac_ext=c
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502 am__api_version="1.4"
1503 ac_aux_dir=
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505   if test -f $ac_dir/install-sh; then
1506     ac_aux_dir=$ac_dir
1507     ac_install_sh="$ac_aux_dir/install-sh -c"
1508     break
1509   elif test -f $ac_dir/install.sh; then
1510     ac_aux_dir=$ac_dir
1511     ac_install_sh="$ac_aux_dir/install.sh -c"
1512     break
1513   elif test -f $ac_dir/shtool; then
1514     ac_aux_dir=$ac_dir
1515     ac_install_sh="$ac_aux_dir/shtool install -c"
1516     break
1517   fi
1518 done
1519 if test -z "$ac_aux_dir"; then
1520   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522    { (exit 1); exit 1; }; }
1523 fi
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527
1528 # Find a good install program.  We prefer a C program (faster),
1529 # so one script is as good as another.  But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1534 # AIX /bin/install
1535 # AmigaOS /C/install, which installs bootblocks on floppy discs
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # OS/2's system install, which has a completely different semantic
1540 # ./install, which can be erroneously created by make from ./install.sh.
1541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1543 if test -z "$INSTALL"; then
1544 if test "${ac_cv_path_install+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   # Account for people who put trailing slashes in PATH elements.
1553 case $as_dir/ in
1554   ./ | .// | /cC/* | \
1555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1556   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557   /usr/ucb/* ) ;;
1558   *)
1559     # OSF1 and SCO ODT 3.0 have their own names for install.
1560     # Don't use installbsd from OSF since it installs stuff as root
1561     # by default.
1562     for ac_prog in ginstall scoinst install; do
1563       for ac_exec_ext in '' $ac_executable_extensions; do
1564         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1565           if test $ac_prog = install &&
1566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567             # AIX install.  It has an incompatible calling convention.
1568             :
1569           elif test $ac_prog = install &&
1570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571             # program-specific install script used by HP pwplus--don't use.
1572             :
1573           else
1574             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1575             break 3
1576           fi
1577         fi
1578       done
1579     done
1580     ;;
1581 esac
1582 done
1583
1584
1585 fi
1586   if test "${ac_cv_path_install+set}" = set; then
1587     INSTALL=$ac_cv_path_install
1588   else
1589     # As a last resort, use the slow shell script.  We don't cache a
1590     # path for INSTALL within a source directory, because that will
1591     # break other packages using the cache if that directory is
1592     # removed, or if the path is relative.
1593     INSTALL=$ac_install_sh
1594   fi
1595 fi
1596 echo "$as_me:$LINENO: result: $INSTALL" >&5
1597 echo "${ECHO_T}$INSTALL" >&6
1598
1599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1600 # It thinks the first close brace ends the variable substitution.
1601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602
1603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1604
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1606
1607 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1608 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 # Just in case
1610 sleep 1
1611 echo timestamp > conftestfile
1612 # Do `set' in a subshell so we don't clobber the current shell's
1613 # arguments.  Must try -L first in case configure is actually a
1614 # symlink; some systems play weird games with the mod time of symlinks
1615 # (eg FreeBSD returns the mod time of the symlink's containing
1616 # directory).
1617 if (
1618    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1619    if test "$*" = "X"; then
1620       # -L didn't work.
1621       set X `ls -t $srcdir/configure conftestfile`
1622    fi
1623    if test "$*" != "X $srcdir/configure conftestfile" \
1624       && test "$*" != "X conftestfile $srcdir/configure"; then
1625
1626       # If neither matched, then we have a broken ls.  This can happen
1627       # if, for instance, CONFIG_SHELL is bash and it inherits a
1628       # broken ls alias from the environment.  This has actually
1629       # happened.  Such a system could not be considered "sane".
1630       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1633 alias in your environment" >&2;}
1634    { (exit 1); exit 1; }; }
1635    fi
1636
1637    test "$2" = conftestfile
1638    )
1639 then
1640    # Ok.
1641    :
1642 else
1643    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647    { (exit 1); exit 1; }; }
1648 fi
1649 rm -f conftest*
1650 echo "$as_me:$LINENO: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652 test "$program_prefix" != NONE &&
1653   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $.  echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1661 _ACEOF
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663 rm conftest.sed
1664
1665 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1666 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1667 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1668 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   cat >conftest.make <<\_ACEOF
1672 all:
1673         @echo 'ac_maketemp="$(MAKE)"'
1674 _ACEOF
1675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1676 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1677 if test -n "$ac_maketemp"; then
1678   eval ac_cv_prog_make_${ac_make}_set=yes
1679 else
1680   eval ac_cv_prog_make_${ac_make}_set=no
1681 fi
1682 rm -f conftest.make
1683 fi
1684 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1685   echo "$as_me:$LINENO: result: yes" >&5
1686 echo "${ECHO_T}yes" >&6
1687   SET_MAKE=
1688 else
1689   echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691   SET_MAKE="MAKE=${MAKE-make}"
1692 fi
1693
1694
1695 PACKAGE=libvorbis
1696
1697 VERSION=1.0.1
1698
1699 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1700   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1701 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1702    { (exit 1); exit 1; }; }
1703 fi
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE "$PACKAGE"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define VERSION "$VERSION"
1712 _ACEOF
1713
1714
1715
1716 missing_dir=`cd $ac_aux_dir && pwd`
1717 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1718 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1719 # Run test in a subshell; some versions of sh will print an error if
1720 # an executable is not found, even if stderr is redirected.
1721 # Redirect stdin to placate older versions of autoconf.  Sigh.
1722 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1723    ACLOCAL=aclocal-${am__api_version}
1724    echo "$as_me:$LINENO: result: found" >&5
1725 echo "${ECHO_T}found" >&6
1726 else
1727    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1728    echo "$as_me:$LINENO: result: missing" >&5
1729 echo "${ECHO_T}missing" >&6
1730 fi
1731
1732 echo "$as_me:$LINENO: checking for working autoconf" >&5
1733 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1734 # Run test in a subshell; some versions of sh will print an error if
1735 # an executable is not found, even if stderr is redirected.
1736 # Redirect stdin to placate older versions of autoconf.  Sigh.
1737 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1738    AUTOCONF=autoconf
1739    echo "$as_me:$LINENO: result: found" >&5
1740 echo "${ECHO_T}found" >&6
1741 else
1742    AUTOCONF="$missing_dir/missing autoconf"
1743    echo "$as_me:$LINENO: result: missing" >&5
1744 echo "${ECHO_T}missing" >&6
1745 fi
1746
1747 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1748 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1749 # Run test in a subshell; some versions of sh will print an error if
1750 # an executable is not found, even if stderr is redirected.
1751 # Redirect stdin to placate older versions of autoconf.  Sigh.
1752 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1753    AUTOMAKE=automake-${am__api_version}
1754    echo "$as_me:$LINENO: result: found" >&5
1755 echo "${ECHO_T}found" >&6
1756 else
1757    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1758    echo "$as_me:$LINENO: result: missing" >&5
1759 echo "${ECHO_T}missing" >&6
1760 fi
1761
1762 echo "$as_me:$LINENO: checking for working autoheader" >&5
1763 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1764 # Run test in a subshell; some versions of sh will print an error if
1765 # an executable is not found, even if stderr is redirected.
1766 # Redirect stdin to placate older versions of autoconf.  Sigh.
1767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1768    AUTOHEADER=autoheader
1769    echo "$as_me:$LINENO: result: found" >&5
1770 echo "${ECHO_T}found" >&6
1771 else
1772    AUTOHEADER="$missing_dir/missing autoheader"
1773    echo "$as_me:$LINENO: result: missing" >&5
1774 echo "${ECHO_T}missing" >&6
1775 fi
1776
1777 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1778 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1779 # Run test in a subshell; some versions of sh will print an error if
1780 # an executable is not found, even if stderr is redirected.
1781 # Redirect stdin to placate older versions of autoconf.  Sigh.
1782 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1783    MAKEINFO=makeinfo
1784    echo "$as_me:$LINENO: result: found" >&5
1785 echo "${ECHO_T}found" >&6
1786 else
1787    MAKEINFO="$missing_dir/missing makeinfo"
1788    echo "$as_me:$LINENO: result: missing" >&5
1789 echo "${ECHO_T}missing" >&6
1790 fi
1791
1792
1793 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1794 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1795     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1796 if test "${enable_maintainer_mode+set}" = set; then
1797   enableval="$enable_maintainer_mode"
1798   USE_MAINTAINER_MODE=$enableval
1799 else
1800   USE_MAINTAINER_MODE=no
1801 fi;
1802   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1803 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1804
1805
1806 if test $USE_MAINTAINER_MODE = yes; then
1807   MAINTAINER_MODE_TRUE=
1808   MAINTAINER_MODE_FALSE='#'
1809 else
1810   MAINTAINER_MODE_TRUE='#'
1811   MAINTAINER_MODE_FALSE=
1812 fi
1813   MAINT=$MAINTAINER_MODE_TRUE
1814
1815
1816
1817
1818 V_LIB_CURRENT=3
1819 V_LIB_REVISION=0
1820 V_LIB_AGE=3
1821 VF_LIB_CURRENT=4
1822 VF_LIB_REVISION=0
1823 VF_LIB_AGE=1
1824 VE_LIB_CURRENT=2
1825 VE_LIB_REVISION=0
1826 VE_LIB_AGE=0
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838 cflags_save="$CFLAGS"
1839 ac_ext=c
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844 if test -n "$ac_tool_prefix"; then
1845   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$CC"; then
1853   ac_cv_prog_CC="$CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864     break 2
1865   fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 CC=$ac_cv_prog_CC
1872 if test -n "$CC"; then
1873   echo "$as_me:$LINENO: result: $CC" >&5
1874 echo "${ECHO_T}$CC" >&6
1875 else
1876   echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
1881 if test -z "$ac_cv_prog_CC"; then
1882   ac_ct_CC=$CC
1883   # Extract the first word of "gcc", so it can be a program name with args.
1884 set dummy gcc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$ac_ct_CC"; then
1891   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_ac_ct_CC="gcc"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1910 if test -n "$ac_ct_CC"; then
1911   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1912 echo "${ECHO_T}$ac_ct_CC" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918   CC=$ac_ct_CC
1919 else
1920   CC="$ac_cv_prog_CC"
1921 fi
1922
1923 if test -z "$CC"; then
1924   if test -n "$ac_tool_prefix"; then
1925   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1926 set dummy ${ac_tool_prefix}cc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$CC"; then
1933   ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_CC="${ac_tool_prefix}cc"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953   echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960 fi
1961 if test -z "$ac_cv_prog_CC"; then
1962   ac_ct_CC=$CC
1963   # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$ac_ct_CC"; then
1971   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_ac_ct_CC="cc"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990 if test -n "$ac_ct_CC"; then
1991   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992 echo "${ECHO_T}$ac_ct_CC" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998   CC=$ac_ct_CC
1999 else
2000   CC="$ac_cv_prog_CC"
2001 fi
2002
2003 fi
2004 if test -z "$CC"; then
2005   # Extract the first word of "cc", so it can be a program name with args.
2006 set dummy cc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$CC"; then
2013   ac_cv_prog_CC="$CC" # Let the user override the test.
2014 else
2015   ac_prog_rejected=no
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2024        ac_prog_rejected=yes
2025        continue
2026      fi
2027     ac_cv_prog_CC="cc"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033
2034 if test $ac_prog_rejected = yes; then
2035   # We found a bogon in the path, so make sure we never use it.
2036   set dummy $ac_cv_prog_CC
2037   shift
2038   if test $# != 0; then
2039     # We chose a different compiler from the bogus one.
2040     # However, it has the same basename, so the bogon will be chosen
2041     # first if we set CC to just the basename; use the full file name.
2042     shift
2043     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2044   fi
2045 fi
2046 fi
2047 fi
2048 CC=$ac_cv_prog_CC
2049 if test -n "$CC"; then
2050   echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6
2052 else
2053   echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6
2055 fi
2056
2057 fi
2058 if test -z "$CC"; then
2059   if test -n "$ac_tool_prefix"; then
2060   for ac_prog in cl
2061   do
2062     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   if test -n "$CC"; then
2070   ac_cv_prog_CC="$CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077   for ac_exec_ext in '' $ac_executable_extensions; do
2078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081     break 2
2082   fi
2083 done
2084 done
2085
2086 fi
2087 fi
2088 CC=$ac_cv_prog_CC
2089 if test -n "$CC"; then
2090   echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2092 else
2093   echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097     test -n "$CC" && break
2098   done
2099 fi
2100 if test -z "$CC"; then
2101   ac_ct_CC=$CC
2102   for ac_prog in cl
2103 do
2104   # Extract the first word of "$ac_prog", so it can be a program name with args.
2105 set dummy $ac_prog; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   if test -n "$ac_ct_CC"; then
2112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
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     ac_cv_prog_ac_ct_CC="$ac_prog"
2122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123     break 2
2124   fi
2125 done
2126 done
2127
2128 fi
2129 fi
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2134 else
2135   echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2137 fi
2138
2139   test -n "$ac_ct_CC" && break
2140 done
2141
2142   CC=$ac_ct_CC
2143 fi
2144
2145 fi
2146
2147
2148 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2149 See \`config.log' for more details." >&5
2150 echo "$as_me: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&2;}
2152    { (exit 1); exit 1; }; }
2153
2154 # Provide some information about the compiler.
2155 echo "$as_me:$LINENO:" \
2156      "checking for C compiler version" >&5
2157 ac_compiler=`set X $ac_compile; echo $2`
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2159   (eval $ac_compiler --version </dev/null >&5) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2164   (eval $ac_compiler -v </dev/null >&5) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2169   (eval $ac_compiler -V </dev/null >&5) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }
2173
2174 cat >conftest.$ac_ext <<_ACEOF
2175 /* confdefs.h.  */
2176 _ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h.  */
2180
2181 int
2182 main ()
2183 {
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 ac_clean_files_save=$ac_clean_files
2190 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2191 # Try to create an executable without -o first, disregard a.out.
2192 # It will help us diagnose broken compilers, and finding out an intuition
2193 # of exeext.
2194 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2195 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2196 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2197 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2198   (eval $ac_link_default) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; then
2202   # Find the output, starting from the most likely.  This scheme is
2203 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2204 # resort.
2205
2206 # Be careful to initialize this variable, since it used to be cached.
2207 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2208 ac_cv_exeext=
2209 # b.out is created by i960 compilers.
2210 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2211 do
2212   test -f "$ac_file" || continue
2213   case $ac_file in
2214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2215         ;;
2216     conftest.$ac_ext )
2217         # This is the source file.
2218         ;;
2219     [ab].out )
2220         # We found the default executable, but exeext='' is most
2221         # certainly right.
2222         break;;
2223     *.* )
2224         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225         # FIXME: I believe we export ac_cv_exeext for Libtool,
2226         # but it would be cool to find out if it's true.  Does anybody
2227         # maintain Libtool? --akim.
2228         export ac_cv_exeext
2229         break;;
2230     * )
2231         break;;
2232   esac
2233 done
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&2;}
2242    { (exit 77); exit 77; }; }
2243 fi
2244
2245 ac_exeext=$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_file" >&5
2247 echo "${ECHO_T}$ac_file" >&6
2248
2249 # Check the compiler produces executables we can run.  If not, either
2250 # the compiler is broken, or we cross compile.
2251 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254 # If not cross compiling, check that we can run a simple program.
2255 if test "$cross_compiling" != yes; then
2256   if { ac_try='./$ac_file'
2257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258   (eval $ac_try) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; }; then
2262     cross_compiling=no
2263   else
2264     if test "$cross_compiling" = maybe; then
2265         cross_compiling=yes
2266     else
2267         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot run C compiled programs.
2271 If you meant to cross compile, use \`--host'.
2272 See \`config.log' for more details." >&2;}
2273    { (exit 1); exit 1; }; }
2274     fi
2275   fi
2276 fi
2277 echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6
2279
2280 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2281 ac_clean_files=$ac_clean_files_save
2282 # Check the compiler produces executables we can run.  If not, either
2283 # the compiler is broken, or we cross compile.
2284 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2285 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2286 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2287 echo "${ECHO_T}$cross_compiling" >&6
2288
2289 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2290 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2292   (eval $ac_link) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; then
2296   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2298 # work properly (i.e., refer to `conftest.exe'), while it won't with
2299 # `rm'.
2300 for ac_file in conftest.exe conftest conftest.*; do
2301   test -f "$ac_file" || continue
2302   case $ac_file in
2303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2304     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305           export ac_cv_exeext
2306           break;;
2307     * ) break;;
2308   esac
2309 done
2310 else
2311   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&2;}
2315    { (exit 1); exit 1; }; }
2316 fi
2317
2318 rm -f conftest$ac_cv_exeext
2319 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2320 echo "${ECHO_T}$ac_cv_exeext" >&6
2321
2322 rm -f conftest.$ac_ext
2323 EXEEXT=$ac_cv_exeext
2324 ac_exeext=$EXEEXT
2325 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2326 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2327 if test "${ac_cv_objext+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.o conftest.obj
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347   (eval $ac_compile) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; then
2351   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2354     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355        break;;
2356   esac
2357 done
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366    { (exit 1); exit 1; }; }
2367 fi
2368
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370 fi
2371 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6
2373 OBJEXT=$ac_cv_objext
2374 ac_objext=$OBJEXT
2375 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390 #ifndef __GNUC__
2391        choke me
2392 #endif
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400   (eval $ac_compile) 2>conftest.er1
2401   ac_status=$?
2402   grep -v '^ *+' conftest.er1 >conftest.err
2403   rm -f conftest.er1
2404   cat conftest.err >&5
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -z "$ac_c_werror_flag"
2408                          || test ! -s conftest.err'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_compiler_gnu=yes
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_compiler_gnu=no
2426 fi
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429
2430 fi
2431 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2436 CFLAGS="-g"
2437 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459   (eval $ac_compile) 2>conftest.er1
2460   ac_status=$?
2461   grep -v '^ *+' conftest.er1 >conftest.err
2462   rm -f conftest.er1
2463   cat conftest.err >&5
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); } &&
2466          { ac_try='test -z "$ac_c_werror_flag"
2467                          || test ! -s conftest.err'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   ac_cv_prog_cc_g=yes
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 ac_cv_prog_cc_g=no
2485 fi
2486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487 fi
2488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490 if test "$ac_test_CFLAGS" = set; then
2491   CFLAGS=$ac_save_CFLAGS
2492 elif test $ac_cv_prog_cc_g = yes; then
2493   if test "$GCC" = yes; then
2494     CFLAGS="-g -O2"
2495   else
2496     CFLAGS="-g"
2497   fi
2498 else
2499   if test "$GCC" = yes; then
2500     CFLAGS="-O2"
2501   else
2502     CFLAGS=
2503   fi
2504 fi
2505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   ac_cv_prog_cc_stdc=no
2511 ac_save_CC=$CC
2512 cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518 #include <stdarg.h>
2519 #include <stdio.h>
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2523 struct buf { int x; };
2524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525 static char *e (p, i)
2526      char **p;
2527      int i;
2528 {
2529   return p[i];
2530 }
2531 static char *f (char * (*g) (char **, int), char **p, ...)
2532 {
2533   char *s;
2534   va_list v;
2535   va_start (v,p);
2536   s = g (p, va_arg (v,int));
2537   va_end (v);
2538   return s;
2539 }
2540
2541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2542    function prototypes and stuff, but not '\xHH' hex character constants.
2543    These don't provoke an error unfortunately, instead are silently treated
2544    as 'x'.  The following induces an error, until -std1 is added to get
2545    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2546    array size at least.  It's necessary to write '\x00'==0 to get something
2547    that's true only with -std1.  */
2548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2549
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 int argc;
2555 char **argv;
2556 int
2557 main ()
2558 {
2559 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX                   -qlanglvl=ansi
2567 # Ultrix and OSF/1      -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2570 # SVR4                  -Xc -D__EXTENSIONS__
2571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572 do
2573   CC="$ac_save_CC $ac_arg"
2574   rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>conftest.er1
2577   ac_status=$?
2578   grep -v '^ *+' conftest.er1 >conftest.err
2579   rm -f conftest.er1
2580   cat conftest.err >&5
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -z "$ac_c_werror_flag"
2584                          || test ! -s conftest.err'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; } &&
2590          { ac_try='test -s conftest.$ac_objext'
2591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592   (eval $ac_try) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; }; then
2596   ac_cv_prog_cc_stdc=$ac_arg
2597 break
2598 else
2599   echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 fi
2603 rm -f conftest.err conftest.$ac_objext
2604 done
2605 rm -f conftest.$ac_ext conftest.$ac_objext
2606 CC=$ac_save_CC
2607
2608 fi
2609
2610 case "x$ac_cv_prog_cc_stdc" in
2611   x|xno)
2612     echo "$as_me:$LINENO: result: none needed" >&5
2613 echo "${ECHO_T}none needed" >&6 ;;
2614   *)
2615     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2617     CC="$CC $ac_cv_prog_cc_stdc" ;;
2618 esac
2619
2620 # Some people use a C++ compiler to compile C.  Since we use `exit',
2621 # in C++ we need to declare it.  In case someone uses the same compiler
2622 # for both compiling C and C++ we need to have the C++ compiler decide
2623 # the declaration of exit, since it's the most demanding environment.
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #ifndef __cplusplus
2626   choke me
2627 #endif
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } &&
2638          { ac_try='test -z "$ac_c_werror_flag"
2639                          || test ! -s conftest.err'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; } &&
2645          { ac_try='test -s conftest.$ac_objext'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; }; then
2651   for ac_declaration in \
2652    '' \
2653    'extern "C" void std::exit (int) throw (); using std::exit;' \
2654    'extern "C" void std::exit (int); using std::exit;' \
2655    'extern "C" void exit (int) throw ();' \
2656    'extern "C" void exit (int);' \
2657    'void exit (int);'
2658 do
2659   cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665 $ac_declaration
2666 #include <stdlib.h>
2667 int
2668 main ()
2669 {
2670 exit (42);
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677   (eval $ac_compile) 2>conftest.er1
2678   ac_status=$?
2679   grep -v '^ *+' conftest.er1 >conftest.err
2680   rm -f conftest.er1
2681   cat conftest.err >&5
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } &&
2684          { ac_try='test -z "$ac_c_werror_flag"
2685                          || test ! -s conftest.err'
2686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687   (eval $ac_try) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; } &&
2691          { ac_try='test -s conftest.$ac_objext'
2692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; }; then
2697   :
2698 else
2699   echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 continue
2703 fi
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705   cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711 $ac_declaration
2712 int
2713 main ()
2714 {
2715 exit (42);
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   break
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 fi
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 done
2750 rm -f conftest*
2751 if test -n "$ac_declaration"; then
2752   echo '#ifdef __cplusplus' >>confdefs.h
2753   echo $ac_declaration      >>confdefs.h
2754   echo '#endif'             >>confdefs.h
2755 fi
2756
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 fi
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2776 # On Suns, sometimes $CPP names a directory.
2777 if test -n "$CPP" && test -d "$CPP"; then
2778   CPP=
2779 fi
2780 if test -z "$CPP"; then
2781   if test "${ac_cv_prog_CPP+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784       # Double quotes because CPP needs to be expanded
2785     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2786     do
2787       ac_preproc_ok=false
2788 for ac_c_preproc_warn_flag in '' yes
2789 do
2790   # Use a header file that comes with gcc, so configuring glibc
2791   # with a fresh cross-compiler works.
2792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2793   # <limits.h> exists even on freestanding compilers.
2794   # On the NeXT, cc -E runs the code through the compiler's parser,
2795   # not just through cpp. "Syntax error" is here to catch this case.
2796   cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802 #ifdef __STDC__
2803 # include <limits.h>
2804 #else
2805 # include <assert.h>
2806 #endif
2807                      Syntax error
2808 _ACEOF
2809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2811   ac_status=$?
2812   grep -v '^ *+' conftest.er1 >conftest.err
2813   rm -f conftest.er1
2814   cat conftest.err >&5
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } >/dev/null; then
2817   if test -s conftest.err; then
2818     ac_cpp_err=$ac_c_preproc_warn_flag
2819     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2820   else
2821     ac_cpp_err=
2822   fi
2823 else
2824   ac_cpp_err=yes
2825 fi
2826 if test -z "$ac_cpp_err"; then
2827   :
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832   # Broken: fails on valid input.
2833 continue
2834 fi
2835 rm -f conftest.err conftest.$ac_ext
2836
2837   # OK, works on sane cases.  Now check whether non-existent headers
2838   # can be detected and how.
2839   cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h.  */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h.  */
2845 #include <ac_nonexistent.h>
2846 _ACEOF
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849   ac_status=$?
2850   grep -v '^ *+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } >/dev/null; then
2855   if test -s conftest.err; then
2856     ac_cpp_err=$ac_c_preproc_warn_flag
2857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2858   else
2859     ac_cpp_err=
2860   fi
2861 else
2862   ac_cpp_err=yes
2863 fi
2864 if test -z "$ac_cpp_err"; then
2865   # Broken: success on invalid input.
2866 continue
2867 else
2868   echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871   # Passes both tests.
2872 ac_preproc_ok=:
2873 break
2874 fi
2875 rm -f conftest.err conftest.$ac_ext
2876
2877 done
2878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2879 rm -f conftest.err conftest.$ac_ext
2880 if $ac_preproc_ok; then
2881   break
2882 fi
2883
2884     done
2885     ac_cv_prog_CPP=$CPP
2886
2887 fi
2888   CPP=$ac_cv_prog_CPP
2889 else
2890   ac_cv_prog_CPP=$CPP
2891 fi
2892 echo "$as_me:$LINENO: result: $CPP" >&5
2893 echo "${ECHO_T}$CPP" >&6
2894 ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2896 do
2897   # Use a header file that comes with gcc, so configuring glibc
2898   # with a fresh cross-compiler works.
2899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900   # <limits.h> exists even on freestanding compilers.
2901   # On the NeXT, cc -E runs the code through the compiler's parser,
2902   # not just through cpp. "Syntax error" is here to catch this case.
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914                      Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } >/dev/null; then
2924   if test -s conftest.err; then
2925     ac_cpp_err=$ac_c_preproc_warn_flag
2926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927   else
2928     ac_cpp_err=
2929   fi
2930 else
2931   ac_cpp_err=yes
2932 fi
2933 if test -z "$ac_cpp_err"; then
2934   :
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939   # Broken: fails on valid input.
2940 continue
2941 fi
2942 rm -f conftest.err conftest.$ac_ext
2943
2944   # OK, works on sane cases.  Now check whether non-existent headers
2945   # can be detected and how.
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   # Broken: success on invalid input.
2973 continue
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988   :
2989 else
2990   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2993 See \`config.log' for more details." >&2;}
2994    { (exit 1); exit 1; }; }
2995 fi
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002
3003 CFLAGS="$cflags_save"
3004
3005 # Check whether --enable-shared or --disable-shared was given.
3006 if test "${enable_shared+set}" = set; then
3007   enableval="$enable_shared"
3008   p=${PACKAGE-default}
3009     case $enableval in
3010     yes) enable_shared=yes ;;
3011     no) enable_shared=no ;;
3012     *)
3013       enable_shared=no
3014       # Look at the argument we got.  We use all the common list separators.
3015       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3016       for pkg in $enableval; do
3017         IFS="$lt_save_ifs"
3018         if test "X$pkg" = "X$p"; then
3019           enable_shared=yes
3020         fi
3021       done
3022       IFS="$lt_save_ifs"
3023       ;;
3024     esac
3025 else
3026   enable_shared=yes
3027 fi;
3028
3029 # Check whether --enable-static or --disable-static was given.
3030 if test "${enable_static+set}" = set; then
3031   enableval="$enable_static"
3032   p=${PACKAGE-default}
3033     case $enableval in
3034     yes) enable_static=yes ;;
3035     no) enable_static=no ;;
3036     *)
3037      enable_static=no
3038       # Look at the argument we got.  We use all the common list separators.
3039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3040       for pkg in $enableval; do
3041         IFS="$lt_save_ifs"
3042         if test "X$pkg" = "X$p"; then
3043           enable_static=yes
3044         fi
3045       done
3046       IFS="$lt_save_ifs"
3047       ;;
3048     esac
3049 else
3050   enable_static=yes
3051 fi;
3052
3053 # Check whether --enable-fast-install or --disable-fast-install was given.
3054 if test "${enable_fast_install+set}" = set; then
3055   enableval="$enable_fast_install"
3056   p=${PACKAGE-default}
3057     case $enableval in
3058     yes) enable_fast_install=yes ;;
3059     no) enable_fast_install=no ;;
3060     *)
3061       enable_fast_install=no
3062       # Look at the argument we got.  We use all the common list separators.
3063       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3064       for pkg in $enableval; do
3065         IFS="$lt_save_ifs"
3066         if test "X$pkg" = "X$p"; then
3067           enable_fast_install=yes
3068         fi
3069       done
3070       IFS="$lt_save_ifs"
3071       ;;
3072     esac
3073 else
3074   enable_fast_install=yes
3075 fi;
3076
3077 # Make sure we can run config.sub.
3078 $ac_config_sub sun4 >/dev/null 2>&1 ||
3079   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3080 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3081    { (exit 1); exit 1; }; }
3082
3083 echo "$as_me:$LINENO: checking build system type" >&5
3084 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3085 if test "${ac_cv_build+set}" = set; then
3086   echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088   ac_cv_build_alias=$build_alias
3089 test -z "$ac_cv_build_alias" &&
3090   ac_cv_build_alias=`$ac_config_guess`
3091 test -z "$ac_cv_build_alias" &&
3092   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3093 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3094    { (exit 1); exit 1; }; }
3095 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3096   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3097 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3098    { (exit 1); exit 1; }; }
3099
3100 fi
3101 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3102 echo "${ECHO_T}$ac_cv_build" >&6
3103 build=$ac_cv_build
3104 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3105 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3106 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3107
3108
3109 echo "$as_me:$LINENO: checking host system type" >&5
3110 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3111 if test "${ac_cv_host+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114   ac_cv_host_alias=$host_alias
3115 test -z "$ac_cv_host_alias" &&
3116   ac_cv_host_alias=$ac_cv_build_alias
3117 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3118   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3119 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3120    { (exit 1); exit 1; }; }
3121
3122 fi
3123 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3124 echo "${ECHO_T}$ac_cv_host" >&6
3125 host=$ac_cv_host
3126 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3127 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3128 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3129
3130
3131 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3132 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3133 if test "${lt_cv_path_SED+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   # Loop through the user's path and test for sed and gsed.
3137 # Then use that list of sed's as ones to test for truncation.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143   for lt_ac_prog in sed gsed; do
3144     for ac_exec_ext in '' $ac_executable_extensions; do
3145       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3146         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3147       fi
3148     done
3149   done
3150 done
3151 lt_ac_max=0
3152 lt_ac_count=0
3153 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3154 # along with /bin/sed that truncates output.
3155 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3156   test ! -f $lt_ac_sed && break
3157   cat /dev/null > conftest.in
3158   lt_ac_count=0
3159   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3160   # Check for GNU sed and select it if it is found.
3161   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3162     lt_cv_path_SED=$lt_ac_sed
3163     break
3164   fi
3165   while true; do
3166     cat conftest.in conftest.in >conftest.tmp
3167     mv conftest.tmp conftest.in
3168     cp conftest.in conftest.nl
3169     echo >>conftest.nl
3170     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3171     cmp -s conftest.out conftest.nl || break
3172     # 10000 chars as input seems more than enough
3173     test $lt_ac_count -gt 10 && break
3174     lt_ac_count=`expr $lt_ac_count + 1`
3175     if test $lt_ac_count -gt $lt_ac_max; then
3176       lt_ac_max=$lt_ac_count
3177       lt_cv_path_SED=$lt_ac_sed
3178     fi
3179   done
3180 done
3181 SED=$lt_cv_path_SED
3182
3183 fi
3184
3185 echo "$as_me:$LINENO: result: $SED" >&5
3186 echo "${ECHO_T}$SED" >&6
3187
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194     then ac_cv_prog_egrep='grep -E'
3195     else ac_cv_prog_egrep='egrep'
3196     fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200  EGREP=$ac_cv_prog_egrep
3201
3202
3203
3204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3205 if test "${with_gnu_ld+set}" = set; then
3206   withval="$with_gnu_ld"
3207   test "$withval" = no || with_gnu_ld=yes
3208 else
3209   with_gnu_ld=no
3210 fi;
3211 ac_prog=ld
3212 if test "$GCC" = yes; then
3213   # Check if gcc -print-prog-name=ld gives a path.
3214   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3215 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3216   case $host in
3217   *-*-mingw*)
3218     # gcc leaves a trailing carriage return which upsets mingw
3219     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3220   *)
3221     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3222   esac
3223   case $ac_prog in
3224     # Accept absolute paths.
3225     [\\/]* | ?:[\\/]*)
3226       re_direlt='/[^/][^/]*/\.\./'
3227       # Canonicalize the pathname of ld
3228       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3229       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3230         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3231       done
3232       test -z "$LD" && LD="$ac_prog"
3233       ;;
3234   "")
3235     # If it fails, then pretend we aren't using GCC.
3236     ac_prog=ld
3237     ;;
3238   *)
3239     # If it is relative, then search for the first ld in PATH.
3240     with_gnu_ld=unknown
3241     ;;
3242   esac
3243 elif test "$with_gnu_ld" = yes; then
3244   echo "$as_me:$LINENO: checking for GNU ld" >&5
3245 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3246 else
3247   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3248 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3249 fi
3250 if test "${lt_cv_path_LD+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   if test -z "$LD"; then
3254   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3255   for ac_dir in $PATH; do
3256     IFS="$lt_save_ifs"
3257     test -z "$ac_dir" && ac_dir=.
3258     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3259       lt_cv_path_LD="$ac_dir/$ac_prog"
3260       # Check to see if the program is GNU ld.  I'd rather use --version,
3261       # but apparently some GNU ld's only accept -v.
3262       # Break only if it was the GNU/non-GNU ld that we prefer.
3263       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3264       *GNU* | *'with BFD'*)
3265         test "$with_gnu_ld" != no && break
3266         ;;
3267       *)
3268         test "$with_gnu_ld" != yes && break
3269         ;;
3270       esac
3271     fi
3272   done
3273   IFS="$lt_save_ifs"
3274 else
3275   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3276 fi
3277 fi
3278
3279 LD="$lt_cv_path_LD"
3280 if test -n "$LD"; then
3281   echo "$as_me:$LINENO: result: $LD" >&5
3282 echo "${ECHO_T}$LD" >&6
3283 else
3284   echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3286 fi
3287 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3288 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3289    { (exit 1); exit 1; }; }
3290 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3291 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3292 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3296 case `$LD -v 2>&1 </dev/null` in
3297 *GNU* | *'with BFD'*)
3298   lt_cv_prog_gnu_ld=yes
3299   ;;
3300 *)
3301   lt_cv_prog_gnu_ld=no
3302   ;;
3303 esac
3304 fi
3305 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3306 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3307 with_gnu_ld=$lt_cv_prog_gnu_ld
3308
3309
3310 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3311 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3312 if test "${lt_cv_ld_reload_flag+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   lt_cv_ld_reload_flag='-r'
3316 fi
3317 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3318 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3319 reload_flag=$lt_cv_ld_reload_flag
3320 case $reload_flag in
3321 "" | " "*) ;;
3322 *) reload_flag=" $reload_flag" ;;
3323 esac
3324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3325
3326 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3327 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3328 if test "${lt_cv_path_NM+set}" = set; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   if test -n "$NM"; then
3332   # Let the user override the test.
3333   lt_cv_path_NM="$NM"
3334 else
3335   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3336   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3337     IFS="$lt_save_ifs"
3338     test -z "$ac_dir" && ac_dir=.
3339     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3340     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3341       # Check to see if the nm accepts a BSD-compat flag.
3342       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3343       #   nm: unknown option "B" ignored
3344       # Tru64's nm complains that /dev/null is an invalid object file
3345       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3346       */dev/null* | *'Invalid file or object type'*)
3347         lt_cv_path_NM="$tmp_nm -B"
3348         break
3349         ;;
3350       *)
3351         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3352         */dev/null*)
3353           lt_cv_path_NM="$tmp_nm -p"
3354           break
3355           ;;
3356         *)
3357           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3358           continue # so that we can try to find one that supports BSD flags
3359           ;;
3360         esac
3361       esac
3362     fi
3363   done
3364   IFS="$lt_save_ifs"
3365   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3366 fi
3367 fi
3368 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3369 echo "${ECHO_T}$lt_cv_path_NM" >&6
3370 NM="$lt_cv_path_NM"
3371
3372 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3373 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3374 LN_S=$as_ln_s
3375 if test "$LN_S" = "ln -s"; then
3376   echo "$as_me:$LINENO: result: yes" >&5
3377 echo "${ECHO_T}yes" >&6
3378 else
3379   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3380 echo "${ECHO_T}no, using $LN_S" >&6
3381 fi
3382
3383 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3384 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3385 if test "${lt_cv_deplibs_check_method+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   lt_cv_file_magic_cmd='$MAGIC_CMD'
3389 lt_cv_file_magic_test_file=
3390 lt_cv_deplibs_check_method='unknown'
3391 # Need to set the preceding variable on all platforms that support
3392 # interlibrary dependencies.
3393 # 'none' -- dependencies not supported.
3394 # `unknown' -- same as none, but documents that we really don't know.
3395 # 'pass_all' -- all dependencies passed with no checks.
3396 # 'test_compile' -- check by making test program.
3397 # 'file_magic [[regex]]' -- check by looking for files in library path
3398 # which responds to the $file_magic_cmd with a given extended regex.
3399 # If you have `file' or equivalent on your system and you're not sure
3400 # whether `pass_all' will *always* work, you probably want this one.
3401
3402 case $host_os in
3403 aix4* | aix5*)
3404   lt_cv_deplibs_check_method=pass_all
3405   ;;
3406
3407 beos*)
3408   lt_cv_deplibs_check_method=pass_all
3409   ;;
3410
3411 bsdi4*)
3412   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3413   lt_cv_file_magic_cmd='/usr/bin/file -L'
3414   lt_cv_file_magic_test_file=/shlib/libc.so
3415   ;;
3416
3417 cygwin* | mingw* | pw32*)
3418   # win32_libid is a shell function defined in ltmain.sh
3419   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3420   lt_cv_file_magic_cmd='win32_libid'
3421   ;;
3422
3423 darwin* | rhapsody*)
3424   lt_cv_deplibs_check_method=pass_all
3425   ;;
3426
3427 freebsd* | kfreebsd*-gnu)
3428   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3429     case $host_cpu in
3430     i*86 )
3431       # Not sure whether the presence of OpenBSD here was a mistake.
3432       # Let's accept both of them until this is cleared up.
3433       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3434       lt_cv_file_magic_cmd=/usr/bin/file
3435       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3436       ;;
3437     esac
3438   else
3439     lt_cv_deplibs_check_method=pass_all
3440   fi
3441   ;;
3442
3443 gnu*)
3444   lt_cv_deplibs_check_method=pass_all
3445   ;;
3446
3447 hpux10.20* | hpux11*)
3448   lt_cv_file_magic_cmd=/usr/bin/file
3449   case "$host_cpu" in
3450   ia64*)
3451     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3452     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3453     ;;
3454   hppa*64*)
3455     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]'
3456     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3457     ;;
3458   *)
3459     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3460     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3461     ;;
3462   esac
3463   ;;
3464
3465 irix5* | irix6* | nonstopux*)
3466   case $LD in
3467   *-32|*"-32 ") libmagic=32-bit;;
3468   *-n32|*"-n32 ") libmagic=N32;;
3469   *-64|*"-64 ") libmagic=64-bit;;
3470   *) libmagic=never-match;;
3471   esac
3472   lt_cv_deplibs_check_method=pass_all
3473   ;;
3474
3475 # This must be Linux ELF.
3476 linux*)
3477   lt_cv_deplibs_check_method=pass_all
3478   ;;
3479
3480 netbsd*)
3481   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3482     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3483   else
3484     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3485   fi
3486   ;;
3487
3488 newos6*)
3489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3490   lt_cv_file_magic_cmd=/usr/bin/file
3491   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3492   ;;
3493
3494 nto-qnx*)
3495   lt_cv_deplibs_check_method=unknown
3496   ;;
3497
3498 openbsd*)
3499   lt_cv_file_magic_cmd=/usr/bin/file
3500   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3502     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3503   else
3504     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3505   fi
3506   ;;
3507
3508 osf3* | osf4* | osf5*)
3509   lt_cv_deplibs_check_method=pass_all
3510   ;;
3511
3512 sco3.2v5*)
3513   lt_cv_deplibs_check_method=pass_all
3514   ;;
3515
3516 solaris*)
3517   lt_cv_deplibs_check_method=pass_all
3518   ;;
3519
3520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3521   case $host_vendor in
3522   motorola)
3523     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]'
3524     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3525     ;;
3526   ncr)
3527     lt_cv_deplibs_check_method=pass_all
3528     ;;
3529   sequent)
3530     lt_cv_file_magic_cmd='/bin/file'
3531     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3532     ;;
3533   sni)
3534     lt_cv_file_magic_cmd='/bin/file'
3535     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3536     lt_cv_file_magic_test_file=/lib/libc.so
3537     ;;
3538   siemens)
3539     lt_cv_deplibs_check_method=pass_all
3540     ;;
3541   esac
3542   ;;
3543
3544 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3545   lt_cv_deplibs_check_method=pass_all
3546   ;;
3547 esac
3548
3549 fi
3550 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3552 file_magic_cmd=$lt_cv_file_magic_cmd
3553 deplibs_check_method=$lt_cv_deplibs_check_method
3554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3555
3556
3557
3558
3559 # If no C compiler was specified, use CC.
3560 LTCC=${LTCC-"$CC"}
3561
3562 # Allow CC to be a program name with arguments.
3563 compiler=$CC
3564
3565
3566 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3567 if test "${enable_libtool_lock+set}" = set; then
3568   enableval="$enable_libtool_lock"
3569
3570 fi;
3571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3572
3573 # Some flags need to be propagated to the compiler or linker for good
3574 # libtool support.
3575 case $host in
3576 ia64-*-hpux*)
3577   # Find out which ABI we are using.
3578   echo 'int i;' > conftest.$ac_ext
3579   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580   (eval $ac_compile) 2>&5
3581   ac_status=$?
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); }; then
3584     case `/usr/bin/file conftest.$ac_objext` in
3585     *ELF-32*)
3586       HPUX_IA64_MODE="32"
3587       ;;
3588     *ELF-64*)
3589       HPUX_IA64_MODE="64"
3590       ;;
3591     esac
3592   fi
3593   rm -rf conftest*
3594   ;;
3595 *-*-irix6*)
3596   # Find out which ABI we are using.
3597   echo '#line 3597 "configure"' > conftest.$ac_ext
3598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; then
3603    if test "$lt_cv_prog_gnu_ld" = yes; then
3604     case `/usr/bin/file conftest.$ac_objext` in
3605     *32-bit*)
3606       LD="${LD-ld} -melf32bsmip"
3607       ;;
3608     *N32*)
3609       LD="${LD-ld} -melf32bmipn32"
3610       ;;
3611     *64-bit*)
3612       LD="${LD-ld} -melf64bmip"
3613       ;;
3614     esac
3615    else
3616     case `/usr/bin/file conftest.$ac_objext` in
3617     *32-bit*)
3618       LD="${LD-ld} -32"
3619       ;;
3620     *N32*)
3621       LD="${LD-ld} -n32"
3622       ;;
3623     *64-bit*)
3624       LD="${LD-ld} -64"
3625       ;;
3626     esac
3627    fi
3628   fi
3629   rm -rf conftest*
3630   ;;
3631
3632 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3633   # Find out which ABI we are using.
3634   echo 'int i;' > conftest.$ac_ext
3635   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636   (eval $ac_compile) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }; then
3640     case "`/usr/bin/file conftest.o`" in
3641     *32-bit*)
3642       case $host in
3643         x86_64-*linux*)
3644           LD="${LD-ld} -m elf_i386"
3645           ;;
3646         ppc64-*linux*|powerpc64-*linux*)
3647           LD="${LD-ld} -m elf32ppclinux"
3648           ;;
3649         s390x-*linux*)
3650           LD="${LD-ld} -m elf_s390"
3651           ;;
3652         sparc64-*linux*)
3653           LD="${LD-ld} -m elf32_sparc"
3654           ;;
3655       esac
3656       ;;
3657     *64-bit*)
3658       case $host in
3659         x86_64-*linux*)
3660           LD="${LD-ld} -m elf_x86_64"
3661           ;;
3662         ppc*-*linux*|powerpc*-*linux*)
3663           LD="${LD-ld} -m elf64ppc"
3664           ;;
3665         s390*-*linux*)
3666           LD="${LD-ld} -m elf64_s390"
3667           ;;
3668         sparc*-*linux*)
3669           LD="${LD-ld} -m elf64_sparc"
3670           ;;
3671       esac
3672       ;;
3673     esac
3674   fi
3675   rm -rf conftest*
3676   ;;
3677
3678 *-*-sco3.2v5*)
3679   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3680   SAVE_CFLAGS="$CFLAGS"
3681   CFLAGS="$CFLAGS -belf"
3682   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3683 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3684 if test "${lt_cv_cc_needs_belf+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693      cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699
3700 int
3701 main ()
3702 {
3703
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710   (eval $ac_link) 2>conftest.er1
3711   ac_status=$?
3712   grep -v '^ *+' conftest.er1 >conftest.err
3713   rm -f conftest.er1
3714   cat conftest.err >&5
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -z "$ac_c_werror_flag"
3718                          || test ! -s conftest.err'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; } &&
3724          { ac_try='test -s conftest$ac_exeext'
3725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726   (eval $ac_try) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; }; then
3730   lt_cv_cc_needs_belf=yes
3731 else
3732   echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 lt_cv_cc_needs_belf=no
3736 fi
3737 rm -f conftest.err conftest.$ac_objext \
3738       conftest$ac_exeext conftest.$ac_ext
3739      ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745 fi
3746 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3747 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3748   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3749     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3750     CFLAGS="$SAVE_CFLAGS"
3751   fi
3752   ;;
3753
3754 esac
3755
3756 need_locks="$enable_libtool_lock"
3757
3758
3759
3760 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771 #include <stdlib.h>
3772 #include <stdarg.h>
3773 #include <string.h>
3774 #include <float.h>
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786   (eval $ac_compile) 2>conftest.er1
3787   ac_status=$?
3788   grep -v '^ *+' conftest.er1 >conftest.err
3789   rm -f conftest.er1
3790   cat conftest.err >&5
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } &&
3793          { ac_try='test -z "$ac_c_werror_flag"
3794                          || test ! -s conftest.err'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; } &&
3800          { ac_try='test -s conftest.$ac_objext'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; }; then
3806   ac_cv_header_stdc=yes
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814
3815 if test $ac_cv_header_stdc = yes; then
3816   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817   cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 #include <string.h>
3824
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827   $EGREP "memchr" >/dev/null 2>&1; then
3828   :
3829 else
3830   ac_cv_header_stdc=no
3831 fi
3832 rm -f conftest*
3833
3834 fi
3835
3836 if test $ac_cv_header_stdc = yes; then
3837   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <stdlib.h>
3845
3846 _ACEOF
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848   $EGREP "free" >/dev/null 2>&1; then
3849   :
3850 else
3851   ac_cv_header_stdc=no
3852 fi
3853 rm -f conftest*
3854
3855 fi
3856
3857 if test $ac_cv_header_stdc = yes; then
3858   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859   if test "$cross_compiling" = yes; then
3860   :
3861 else
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #include <ctype.h>
3869 #if ((' ' & 0x0FF) == 0x020)
3870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872 #else
3873 # define ISLOWER(c) \
3874                    (('a' <= (c) && (c) <= 'i') \
3875                      || ('j' <= (c) && (c) <= 'r') \
3876                      || ('s' <= (c) && (c) <= 'z'))
3877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878 #endif
3879
3880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881 int
3882 main ()
3883 {
3884   int i;
3885   for (i = 0; i < 256; i++)
3886     if (XOR (islower (i), ISLOWER (i))
3887         || toupper (i) != TOUPPER (i))
3888       exit(2);
3889   exit (0);
3890 }
3891 _ACEOF
3892 rm -f conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894   (eval $ac_link) 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899   (eval $ac_try) 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; }; then
3903   :
3904 else
3905   echo "$as_me: program exited with status $ac_status" >&5
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 ( exit $ac_status )
3910 ac_cv_header_stdc=no
3911 fi
3912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913 fi
3914 fi
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918 if test $ac_cv_header_stdc = yes; then
3919
3920 cat >>confdefs.h <<\_ACEOF
3921 #define STDC_HEADERS 1
3922 _ACEOF
3923
3924 fi
3925
3926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937                   inttypes.h stdint.h unistd.h
3938 do
3939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 $ac_includes_default
3952
3953 #include <$ac_header>
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } &&
3964          { ac_try='test -z "$ac_c_werror_flag"
3965                          || test ! -s conftest.err'
3966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967   (eval $ac_try) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; } &&
3971          { ac_try='test -s conftest.$ac_objext'
3972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973   (eval $ac_try) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; }; then
3977   eval "$as_ac_Header=yes"
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 eval "$as_ac_Header=no"
3983 fi
3984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985 fi
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989   cat >>confdefs.h <<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 _ACEOF
3992
3993 fi
3994
3995 done
3996
3997
3998
3999 for ac_header in dlfcn.h
4000 do
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003   echo "$as_me:$LINENO: checking for $ac_header" >&5
4004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 fi
4008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010 else
4011   # Is the header compilable?
4012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h.  */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h.  */
4020 $ac_includes_default
4021 #include <$ac_header>
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025   (eval $ac_compile) 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } &&
4032          { ac_try='test -z "$ac_c_werror_flag"
4033                          || test ! -s conftest.err'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; } &&
4039          { ac_try='test -s conftest.$ac_objext'
4040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041   (eval $ac_try) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); }; }; then
4045   ac_header_compiler=yes
4046 else
4047   echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 ac_header_compiler=no
4051 fi
4052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4054 echo "${ECHO_T}$ac_header_compiler" >&6
4055
4056 # Is the header present?
4057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
4066 _ACEOF
4067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4069   ac_status=$?
4070   grep -v '^ *+' conftest.er1 >conftest.err
4071   rm -f conftest.er1
4072   cat conftest.err >&5
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } >/dev/null; then
4075   if test -s conftest.err; then
4076     ac_cpp_err=$ac_c_preproc_warn_flag
4077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4078   else
4079     ac_cpp_err=
4080   fi
4081 else
4082   ac_cpp_err=yes
4083 fi
4084 if test -z "$ac_cpp_err"; then
4085   ac_header_preproc=yes
4086 else
4087   echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090   ac_header_preproc=no
4091 fi
4092 rm -f conftest.err conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4094 echo "${ECHO_T}$ac_header_preproc" >&6
4095
4096 # So?  What about this header?
4097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4098   yes:no: )
4099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4103     ac_header_preproc=yes
4104     ;;
4105   no:yes:* )
4106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4118     (
4119       cat <<\_ASBOX
4120 ## ------------------------------------------ ##
4121 ## Report this to the AC_PACKAGE_NAME lists.  ##
4122 ## ------------------------------------------ ##
4123 _ASBOX
4124     ) |
4125       sed "s/^/$as_me: WARNING:     /" >&2
4126     ;;
4127 esac
4128 echo "$as_me:$LINENO: checking for $ac_header" >&5
4129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   eval "$as_ac_Header=\$ac_header_preproc"
4134 fi
4135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4137
4138 fi
4139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4140   cat >>confdefs.h <<_ACEOF
4141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4142 _ACEOF
4143
4144 fi
4145
4146 done
4147
4148 ac_ext=cc
4149 ac_cpp='$CXXCPP $CPPFLAGS'
4150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4153 if test -n "$ac_tool_prefix"; then
4154   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4155   do
4156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_CXX+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$CXX"; then
4164   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180 fi
4181 fi
4182 CXX=$ac_cv_prog_CXX
4183 if test -n "$CXX"; then
4184   echo "$as_me:$LINENO: result: $CXX" >&5
4185 echo "${ECHO_T}$CXX" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191     test -n "$CXX" && break
4192   done
4193 fi
4194 if test -z "$CXX"; then
4195   ac_ct_CXX=$CXX
4196   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4197 do
4198   # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   if test -n "$ac_ct_CXX"; then
4206   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   for ac_exec_ext in '' $ac_executable_extensions; do
4214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215     ac_cv_prog_ac_ct_CXX="$ac_prog"
4216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220 done
4221
4222 fi
4223 fi
4224 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4225 if test -n "$ac_ct_CXX"; then
4226   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4227 echo "${ECHO_T}$ac_ct_CXX" >&6
4228 else
4229   echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233   test -n "$ac_ct_CXX" && break
4234 done
4235 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4236
4237   CXX=$ac_ct_CXX
4238 fi
4239
4240
4241 # Provide some information about the compiler.
4242 echo "$as_me:$LINENO:" \
4243      "checking for C++ compiler version" >&5
4244 ac_compiler=`set X $ac_compile; echo $2`
4245 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4246   (eval $ac_compiler --version </dev/null >&5) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }
4250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4251   (eval $ac_compiler -v </dev/null >&5) 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }
4255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4256   (eval $ac_compiler -V </dev/null >&5) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); }
4260
4261 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4262 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4263 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h.  */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276 #ifndef __GNUC__
4277        choke me
4278 #endif
4279
4280   ;
4281   return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286   (eval $ac_compile) 2>conftest.er1
4287   ac_status=$?
4288   grep -v '^ *+' conftest.er1 >conftest.err
4289   rm -f conftest.er1
4290   cat conftest.err >&5
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); } &&
4293          { ac_try='test -z "$ac_cxx_werror_flag"
4294                          || test ! -s conftest.err'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_compiler_gnu=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 ac_compiler_gnu=no
4312 fi
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4315
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4318 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4319 GXX=`test $ac_compiler_gnu = yes && echo yes`
4320 ac_test_CXXFLAGS=${CXXFLAGS+set}
4321 ac_save_CXXFLAGS=$CXXFLAGS
4322 CXXFLAGS="-g"
4323 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4324 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4325 if test "${ac_cv_prog_cxx_g+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334
4335 int
4336 main ()
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_cxx_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest.$ac_objext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_prog_cxx_g=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_cv_prog_cxx_g=no
4371 fi
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4375 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4376 if test "$ac_test_CXXFLAGS" = set; then
4377   CXXFLAGS=$ac_save_CXXFLAGS
4378 elif test $ac_cv_prog_cxx_g = yes; then
4379   if test "$GXX" = yes; then
4380     CXXFLAGS="-g -O2"
4381   else
4382     CXXFLAGS="-g"
4383   fi
4384 else
4385   if test "$GXX" = yes; then
4386     CXXFLAGS="-O2"
4387   else
4388     CXXFLAGS=
4389   fi
4390 fi
4391 for ac_declaration in \
4392    '' \
4393    'extern "C" void std::exit (int) throw (); using std::exit;' \
4394    'extern "C" void std::exit (int); using std::exit;' \
4395    'extern "C" void exit (int) throw ();' \
4396    'extern "C" void exit (int);' \
4397    'void exit (int);'
4398 do
4399   cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 $ac_declaration
4406 #include <stdlib.h>
4407 int
4408 main ()
4409 {
4410 exit (42);
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417   (eval $ac_compile) 2>conftest.er1
4418   ac_status=$?
4419   grep -v '^ *+' conftest.er1 >conftest.err
4420   rm -f conftest.er1
4421   cat conftest.err >&5
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); } &&
4424          { ac_try='test -z "$ac_cxx_werror_flag"
4425                          || test ! -s conftest.err'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; } &&
4431          { ac_try='test -s conftest.$ac_objext'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; }; then
4437   :
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 continue
4443 fi
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 $ac_declaration
4452 int
4453 main ()
4454 {
4455 exit (42);
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462   (eval $ac_compile) 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } &&
4469          { ac_try='test -z "$ac_cxx_werror_flag"
4470                          || test ! -s conftest.err'
4471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472   (eval $ac_try) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); }; } &&
4476          { ac_try='test -s conftest.$ac_objext'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482   break
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 fi
4488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4489 done
4490 rm -f conftest*
4491 if test -n "$ac_declaration"; then
4492   echo '#ifdef __cplusplus' >>confdefs.h
4493   echo $ac_declaration      >>confdefs.h
4494   echo '#endif'             >>confdefs.h
4495 fi
4496
4497 ac_ext=cc
4498 ac_cpp='$CXXCPP $CPPFLAGS'
4499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4502
4503 ac_ext=cc
4504 ac_cpp='$CXXCPP $CPPFLAGS'
4505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4508 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4509 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4510 if test -z "$CXXCPP"; then
4511   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514       # Double quotes because CXXCPP needs to be expanded
4515     for CXXCPP in "$CXX -E" "/lib/cpp"
4516     do
4517       ac_preproc_ok=false
4518 for ac_cxx_preproc_warn_flag in '' yes
4519 do
4520   # Use a header file that comes with gcc, so configuring glibc
4521   # with a fresh cross-compiler works.
4522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4523   # <limits.h> exists even on freestanding compilers.
4524   # On the NeXT, cc -E runs the code through the compiler's parser,
4525   # not just through cpp. "Syntax error" is here to catch this case.
4526   cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h.  */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h.  */
4532 #ifdef __STDC__
4533 # include <limits.h>
4534 #else
4535 # include <assert.h>
4536 #endif
4537                      Syntax error
4538 _ACEOF
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } >/dev/null; then
4547   if test -s conftest.err; then
4548     ac_cpp_err=$ac_cxx_preproc_warn_flag
4549     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4550   else
4551     ac_cpp_err=
4552   fi
4553 else
4554   ac_cpp_err=yes
4555 fi
4556 if test -z "$ac_cpp_err"; then
4557   :
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562   # Broken: fails on valid input.
4563 continue
4564 fi
4565 rm -f conftest.err conftest.$ac_ext
4566
4567   # OK, works on sane cases.  Now check whether non-existent headers
4568   # can be detected and how.
4569   cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h.  */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h.  */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4578   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4579   ac_status=$?
4580   grep -v '^ *+' conftest.er1 >conftest.err
4581   rm -f conftest.er1
4582   cat conftest.err >&5
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); } >/dev/null; then
4585   if test -s conftest.err; then
4586     ac_cpp_err=$ac_cxx_preproc_warn_flag
4587     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4588   else
4589     ac_cpp_err=
4590   fi
4591 else
4592   ac_cpp_err=yes
4593 fi
4594 if test -z "$ac_cpp_err"; then
4595   # Broken: success on invalid input.
4596 continue
4597 else
4598   echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601   # Passes both tests.
4602 ac_preproc_ok=:
4603 break
4604 fi
4605 rm -f conftest.err conftest.$ac_ext
4606
4607 done
4608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4609 rm -f conftest.err conftest.$ac_ext
4610 if $ac_preproc_ok; then
4611   break
4612 fi
4613
4614     done
4615     ac_cv_prog_CXXCPP=$CXXCPP
4616
4617 fi
4618   CXXCPP=$ac_cv_prog_CXXCPP
4619 else
4620   ac_cv_prog_CXXCPP=$CXXCPP
4621 fi
4622 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4623 echo "${ECHO_T}$CXXCPP" >&6
4624 ac_preproc_ok=false
4625 for ac_cxx_preproc_warn_flag in '' yes
4626 do
4627   # Use a header file that comes with gcc, so configuring glibc
4628   # with a fresh cross-compiler works.
4629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4630   # <limits.h> exists even on freestanding compilers.
4631   # On the NeXT, cc -E runs the code through the compiler's parser,
4632   # not just through cpp. "Syntax error" is here to catch this case.
4633   cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639 #ifdef __STDC__
4640 # include <limits.h>
4641 #else
4642 # include <assert.h>
4643 #endif
4644                      Syntax error
4645 _ACEOF
4646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } >/dev/null; then
4654   if test -s conftest.err; then
4655     ac_cpp_err=$ac_cxx_preproc_warn_flag
4656     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4657   else
4658     ac_cpp_err=
4659   fi
4660 else
4661   ac_cpp_err=yes
4662 fi
4663 if test -z "$ac_cpp_err"; then
4664   :
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669   # Broken: fails on valid input.
4670 continue
4671 fi
4672 rm -f conftest.err conftest.$ac_ext
4673
4674   # OK, works on sane cases.  Now check whether non-existent headers
4675   # can be detected and how.
4676   cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h.  */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h.  */
4682 #include <ac_nonexistent.h>
4683 _ACEOF
4684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4685   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4686   ac_status=$?
4687   grep -v '^ *+' conftest.er1 >conftest.err
4688   rm -f conftest.er1
4689   cat conftest.err >&5
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } >/dev/null; then
4692   if test -s conftest.err; then
4693     ac_cpp_err=$ac_cxx_preproc_warn_flag
4694     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4695   else
4696     ac_cpp_err=
4697   fi
4698 else
4699   ac_cpp_err=yes
4700 fi
4701 if test -z "$ac_cpp_err"; then
4702   # Broken: success on invalid input.
4703 continue
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708   # Passes both tests.
4709 ac_preproc_ok=:
4710 break
4711 fi
4712 rm -f conftest.err conftest.$ac_ext
4713
4714 done
4715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716 rm -f conftest.err conftest.$ac_ext
4717 if $ac_preproc_ok; then
4718   :
4719 else
4720   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4723 See \`config.log' for more details." >&2;}
4724    { (exit 1); exit 1; }; }
4725 fi
4726
4727 ac_ext=cc
4728 ac_cpp='$CXXCPP $CPPFLAGS'
4729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4732
4733
4734 ac_ext=f
4735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4738 if test -n "$ac_tool_prefix"; then
4739   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4740   do
4741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_F77+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   if test -n "$F77"; then
4749   ac_cv_prog_F77="$F77" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756   for ac_exec_ext in '' $ac_executable_extensions; do
4757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763 done
4764
4765 fi
4766 fi
4767 F77=$ac_cv_prog_F77
4768 if test -n "$F77"; then
4769   echo "$as_me:$LINENO: result: $F77" >&5
4770 echo "${ECHO_T}$F77" >&6
4771 else
4772   echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4774 fi
4775
4776     test -n "$F77" && break
4777   done
4778 fi
4779 if test -z "$F77"; then
4780   ac_ct_F77=$F77
4781   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4782 do
4783   # Extract the first word of "$ac_prog", so it can be a program name with args.
4784 set dummy $ac_prog; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   if test -n "$ac_ct_F77"; then
4791   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800     ac_cv_prog_ac_ct_F77="$ac_prog"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806
4807 fi
4808 fi
4809 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4810 if test -n "$ac_ct_F77"; then
4811   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4812 echo "${ECHO_T}$ac_ct_F77" >&6
4813 else
4814   echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4816 fi
4817
4818   test -n "$ac_ct_F77" && break
4819 done
4820
4821   F77=$ac_ct_F77
4822 fi
4823
4824
4825 # Provide some information about the compiler.
4826 echo "$as_me:4826:" \
4827      "checking for Fortran 77 compiler version" >&5
4828 ac_compiler=`set X $ac_compile; echo $2`
4829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4830   (eval $ac_compiler --version </dev/null >&5) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }
4834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4835   (eval $ac_compiler -v </dev/null >&5) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }
4839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4840   (eval $ac_compiler -V </dev/null >&5) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }
4844 rm -f a.out
4845
4846 # If we don't use `.F' as extension, the preprocessor is not run on the
4847 # input file.  (Note that this only needs to work for GNU compilers.)
4848 ac_save_ext=$ac_ext
4849 ac_ext=F
4850 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4851 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4852 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   cat >conftest.$ac_ext <<_ACEOF
4856       program main
4857 #ifndef __GNUC__
4858        choke me
4859 #endif
4860
4861       end
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865   (eval $ac_compile) 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } &&
4872          { ac_try='test -z "$ac_f77_werror_flag"
4873                          || test ! -s conftest.err'
4874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875   (eval $ac_try) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; } &&
4879          { ac_try='test -s conftest.$ac_objext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_compiler_gnu=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 ac_compiler_gnu=no
4891 fi
4892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4894
4895 fi
4896 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4897 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4898 ac_ext=$ac_save_ext
4899 ac_test_FFLAGS=${FFLAGS+set}
4900 ac_save_FFLAGS=$FFLAGS
4901 FFLAGS=
4902 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4903 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4904 if test "${ac_cv_prog_f77_g+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   FFLAGS=-g
4908 cat >conftest.$ac_ext <<_ACEOF
4909       program main
4910
4911       end
4912 _ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915   (eval $ac_compile) 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -z "$ac_f77_werror_flag"
4923                          || test ! -s conftest.err'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; } &&
4929          { ac_try='test -s conftest.$ac_objext'
4930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931   (eval $ac_try) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); }; }; then
4935   ac_cv_prog_f77_g=yes
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 ac_cv_prog_f77_g=no
4941 fi
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4946 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4947 if test "$ac_test_FFLAGS" = set; then
4948   FFLAGS=$ac_save_FFLAGS
4949 elif test $ac_cv_prog_f77_g = yes; then
4950   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4951     FFLAGS="-g -O2"
4952   else
4953     FFLAGS="-g"
4954   fi
4955 else
4956   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4957     FFLAGS="-O2"
4958   else
4959     FFLAGS=
4960   fi
4961 fi
4962
4963 G77=`test $ac_compiler_gnu = yes && echo yes`
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969
4970
4971
4972 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4973
4974 # find the maximum length of command line arguments
4975 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4976 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4977 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980     i=0
4981   testring="ABCD"
4982
4983   case $build_os in
4984   msdosdjgpp*)
4985     # On DJGPP, this test can blow up pretty badly due to problems in libc
4986     # (any single argument exceeding 2000 bytes causes a buffer overrun
4987     # during glob expansion).  Even if it were fixed, the result of this
4988     # check would be larger than it should be.
4989     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4990     ;;
4991
4992   gnu*)
4993     # Under GNU Hurd, this test is not required because there is
4994     # no limit to the length of command line arguments.
4995     # Libtool will interpret -1 as no limit whatsoever
4996     lt_cv_sys_max_cmd_len=-1;
4997     ;;
4998
4999   cygwin* | mingw*)
5000     # On Win9x/ME, this test blows up -- it succeeds, but takes
5001     # about 5 minutes as the teststring grows exponentially.
5002     # Worse, since 9x/ME are not pre-emptively multitasking,
5003     # you end up with a "frozen" computer, even though with patience
5004     # the test eventually succeeds (with a max line length of 256k).
5005     # Instead, let's just punt: use the minimum linelength reported by
5006     # all of the supported platforms: 8192 (on NT/2K/XP).
5007     lt_cv_sys_max_cmd_len=8192;
5008     ;;
5009
5010   amigaos*)
5011     # On AmigaOS with pdksh, this test takes hours, literally.
5012     # So we just punt and use a minimum line length of 8192.
5013     lt_cv_sys_max_cmd_len=8192;
5014     ;;
5015
5016  *)
5017     # If test is not a shell built-in, we'll probably end up computing a
5018     # maximum length that is only half of the actual maximum length, but
5019     # we can't tell.
5020     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5021                = "XX$testring") >/dev/null 2>&1 &&
5022             new_result=`expr "X$testring" : ".*" 2>&1` &&
5023             lt_cv_sys_max_cmd_len=$new_result &&
5024             test $i != 17 # 1/2 MB should be enough
5025     do
5026       i=`expr $i + 1`
5027       testring=$testring$testring
5028     done
5029     testring=
5030     # Add a significant safety factor because C++ compilers can tack on massive
5031     # amounts of additional arguments before passing them to the linker.
5032     # It appears as though 1/2 is a usable value.
5033     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5034     ;;
5035   esac
5036
5037 fi
5038
5039 if test -n $lt_cv_sys_max_cmd_len ; then
5040   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5041 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5042 else
5043   echo "$as_me:$LINENO: result: none" >&5
5044 echo "${ECHO_T}none" >&6
5045 fi
5046
5047
5048
5049
5050 # Check for command to grab the raw symbol name followed by C symbol from nm.
5051 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5052 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5053 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056
5057 # These are sane defaults that work on at least a few old systems.
5058 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5059
5060 # Character class describing NM global symbol codes.
5061 symcode='[BCDEGRST]'
5062
5063 # Regexp to match symbols that can be accessed directly from C.
5064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5065
5066 # Transform the above into a raw symbol and a C symbol.
5067 symxfrm='\1 \2\3 \3'
5068
5069 # Transform an extracted symbol line into a proper C declaration
5070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5071
5072 # Transform an extracted symbol line into symbol name and symbol address
5073 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'"
5074
5075 # Define system-specific variables.
5076 case $host_os in
5077 aix*)
5078   symcode='[BCDT]'
5079   ;;
5080 cygwin* | mingw* | pw32*)
5081   symcode='[ABCDGISTW]'
5082   ;;
5083 hpux*) # Its linker distinguishes data from code symbols
5084   if test "$host_cpu" = ia64; then
5085     symcode='[ABCDEGRST]'
5086   fi
5087   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5088   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'"
5089   ;;
5090 irix* | nonstopux*)
5091   symcode='[BCDEGRST]'
5092   ;;
5093 osf*)
5094   symcode='[BCDEGQRST]'
5095   ;;
5096 solaris* | sysv5*)
5097   symcode='[BDRT]'
5098   ;;
5099 sysv4)
5100   symcode='[DFNSTU]'
5101   ;;
5102 esac
5103
5104 # Handle CRLF in mingw tool chain
5105 opt_cr=
5106 case $build_os in
5107 mingw*)
5108   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5109   ;;
5110 esac
5111
5112 # If we're using GNU nm, then use its standard symbol codes.
5113 case `$NM -V 2>&1` in
5114 *GNU* | *'with BFD'*)
5115   symcode='[ABCDGIRSTW]' ;;
5116 esac
5117
5118 # Try without a prefix undercore, then with it.
5119 for ac_symprfx in "" "_"; do
5120
5121   # Write the raw and C identifiers.
5122   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5123
5124   # Check to see that the pipe works correctly.
5125   pipe_works=no
5126
5127   rm -f conftest*
5128   cat > conftest.$ac_ext <<EOF
5129 #ifdef __cplusplus
5130 extern "C" {
5131 #endif
5132 char nm_test_var;
5133 void nm_test_func(){}
5134 #ifdef __cplusplus
5135 }
5136 #endif
5137 int main(){nm_test_var='a';nm_test_func();return(0);}
5138 EOF
5139
5140   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5141   (eval $ac_compile) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; then
5145     # Now try to grab the symbols.
5146     nlist=conftest.nm
5147     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5148   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5149   ac_status=$?
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } && test -s "$nlist"; then
5152       # Try sorting and uniquifying the output.
5153       if sort "$nlist" | uniq > "$nlist"T; then
5154         mv -f "$nlist"T "$nlist"
5155       else
5156         rm -f "$nlist"T
5157       fi
5158
5159       # Make sure that we snagged all the symbols we need.
5160       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5161         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5162           cat <<EOF > conftest.$ac_ext
5163 #ifdef __cplusplus
5164 extern "C" {
5165 #endif
5166
5167 EOF
5168           # Now generate the symbol file.
5169           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5170
5171           cat <<EOF >> conftest.$ac_ext
5172 #if defined (__STDC__) && __STDC__
5173 # define lt_ptr_t void *
5174 #else
5175 # define lt_ptr_t char *
5176 # define const
5177 #endif
5178
5179 /* The mapping between symbol names and symbols. */
5180 const struct {
5181   const char *name;
5182   lt_ptr_t address;
5183 }
5184 lt_preloaded_symbols[] =
5185 {
5186 EOF
5187           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5188           cat <<\EOF >> conftest.$ac_ext
5189   {0, (lt_ptr_t) 0}
5190 };
5191
5192 #ifdef __cplusplus
5193 }
5194 #endif
5195 EOF
5196           # Now try linking the two files.
5197           mv conftest.$ac_objext conftstm.$ac_objext
5198           lt_save_LIBS="$LIBS"
5199           lt_save_CFLAGS="$CFLAGS"
5200           LIBS="conftstm.$ac_objext"
5201           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5202           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203   (eval $ac_link) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5207             pipe_works=yes
5208           fi
5209           LIBS="$lt_save_LIBS"
5210           CFLAGS="$lt_save_CFLAGS"
5211         else
5212           echo "cannot find nm_test_func in $nlist" >&5
5213         fi
5214       else
5215         echo "cannot find nm_test_var in $nlist" >&5
5216       fi
5217     else
5218       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5219     fi
5220   else
5221     echo "$progname: failed program was:" >&5
5222     cat conftest.$ac_ext >&5
5223   fi
5224   rm -f conftest* conftst*
5225
5226   # Do not use the global_symbol_pipe unless it works.
5227   if test "$pipe_works" = yes; then
5228     break
5229   else
5230     lt_cv_sys_global_symbol_pipe=
5231   fi
5232 done
5233
5234 fi
5235
5236 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5237   lt_cv_sys_global_symbol_to_cdecl=
5238 fi
5239 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5240   echo "$as_me:$LINENO: result: failed" >&5
5241 echo "${ECHO_T}failed" >&6
5242 else
5243   echo "$as_me:$LINENO: result: ok" >&5
5244 echo "${ECHO_T}ok" >&6
5245 fi
5246
5247 echo "$as_me:$LINENO: checking for objdir" >&5
5248 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5249 if test "${lt_cv_objdir+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   rm -f .libs 2>/dev/null
5253 mkdir .libs 2>/dev/null
5254 if test -d .libs; then
5255   lt_cv_objdir=.libs
5256 else
5257   # MS-DOS does not allow filenames that begin with a dot.
5258   lt_cv_objdir=_libs
5259 fi
5260 rmdir .libs 2>/dev/null
5261 fi
5262 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5263 echo "${ECHO_T}$lt_cv_objdir" >&6
5264 objdir=$lt_cv_objdir
5265
5266
5267
5268
5269
5270 case $host_os in
5271 aix3*)
5272   # AIX sometimes has problems with the GCC collect2 program.  For some
5273   # reason, if we set the COLLECT_NAMES environment variable, the problems
5274   # vanish in a puff of smoke.
5275   if test "X${COLLECT_NAMES+set}" != Xset; then
5276     COLLECT_NAMES=
5277     export COLLECT_NAMES
5278   fi
5279   ;;
5280 esac
5281
5282 # Sed substitution that helps us do robust quoting.  It backslashifies
5283 # metacharacters that are still active within double-quoted strings.
5284 Xsed='sed -e s/^X//'
5285 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5286
5287 # Same as above, but do not quote variable references.
5288 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5289
5290 # Sed substitution to delay expansion of an escaped shell variable in a
5291 # double_quote_subst'ed string.
5292 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5293
5294 # Sed substitution to avoid accidental globbing in evaled expressions
5295 no_glob_subst='s/\*/\\\*/g'
5296
5297 # Constants:
5298 rm="rm -f"
5299
5300 # Global variables:
5301 default_ofile=libtool
5302 can_build_shared=yes
5303
5304 # All known linkers require a `.a' archive for static linking (except M$VC,
5305 # which needs '.lib').
5306 libext=a
5307 ltmain="$ac_aux_dir/ltmain.sh"
5308 ofile="$default_ofile"
5309 with_gnu_ld="$lt_cv_prog_gnu_ld"
5310
5311 if test -n "$ac_tool_prefix"; then
5312   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}ar; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_AR+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   if test -n "$AR"; then
5320   ac_cv_prog_AR="$AR" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327   for ac_exec_ext in '' $ac_executable_extensions; do
5328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329     ac_cv_prog_AR="${ac_tool_prefix}ar"
5330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335
5336 fi
5337 fi
5338 AR=$ac_cv_prog_AR
5339 if test -n "$AR"; then
5340   echo "$as_me:$LINENO: result: $AR" >&5
5341 echo "${ECHO_T}$AR" >&6
5342 else
5343   echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5345 fi
5346
5347 fi
5348 if test -z "$ac_cv_prog_AR"; then
5349   ac_ct_AR=$AR
5350   # Extract the first word of "ar", so it can be a program name with args.
5351 set dummy ar; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   if test -n "$ac_ct_AR"; then
5358   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365   for ac_exec_ext in '' $ac_executable_extensions; do
5366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_ac_ct_AR="ar"
5368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372 done
5373
5374   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5375 fi
5376 fi
5377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5378 if test -n "$ac_ct_AR"; then
5379   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5380 echo "${ECHO_T}$ac_ct_AR" >&6
5381 else
5382   echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5384 fi
5385
5386   AR=$ac_ct_AR
5387 else
5388   AR="$ac_cv_prog_AR"
5389 fi
5390
5391 if test -n "$ac_tool_prefix"; then
5392   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_RANLIB+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   if test -n "$RANLIB"; then
5400   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415
5416 fi
5417 fi
5418 RANLIB=$ac_cv_prog_RANLIB
5419 if test -n "$RANLIB"; then
5420   echo "$as_me:$LINENO: result: $RANLIB" >&5
5421 echo "${ECHO_T}$RANLIB" >&6
5422 else
5423   echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6
5425 fi
5426
5427 fi
5428 if test -z "$ac_cv_prog_RANLIB"; then
5429   ac_ct_RANLIB=$RANLIB
5430   # Extract the first word of "ranlib", so it can be a program name with args.
5431 set dummy ranlib; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   if test -n "$ac_ct_RANLIB"; then
5438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_prog_ac_ct_RANLIB="ranlib"
5448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453
5454   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5455 fi
5456 fi
5457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5458 if test -n "$ac_ct_RANLIB"; then
5459   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5460 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466   RANLIB=$ac_ct_RANLIB
5467 else
5468   RANLIB="$ac_cv_prog_RANLIB"
5469 fi
5470
5471 if test -n "$ac_tool_prefix"; then
5472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}strip; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_STRIP+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   if test -n "$STRIP"; then
5480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495
5496 fi
5497 fi
5498 STRIP=$ac_cv_prog_STRIP
5499 if test -n "$STRIP"; then
5500   echo "$as_me:$LINENO: result: $STRIP" >&5
5501 echo "${ECHO_T}$STRIP" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507 fi
5508 if test -z "$ac_cv_prog_STRIP"; then
5509   ac_ct_STRIP=$STRIP
5510   # Extract the first word of "strip", so it can be a program name with args.
5511 set dummy strip; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   if test -n "$ac_ct_STRIP"; then
5518   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527     ac_cv_prog_ac_ct_STRIP="strip"
5528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532 done
5533
5534   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5535 fi
5536 fi
5537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5538 if test -n "$ac_ct_STRIP"; then
5539   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5540 echo "${ECHO_T}$ac_ct_STRIP" >&6
5541 else
5542   echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5544 fi
5545
5546   STRIP=$ac_ct_STRIP
5547 else
5548   STRIP="$ac_cv_prog_STRIP"
5549 fi
5550
5551
5552 old_CC="$CC"
5553 old_CFLAGS="$CFLAGS"
5554
5555 # Set sane defaults for various variables
5556 test -z "$AR" && AR=ar
5557 test -z "$AR_FLAGS" && AR_FLAGS=cru
5558 test -z "$AS" && AS=as
5559 test -z "$CC" && CC=cc
5560 test -z "$LTCC" && LTCC=$CC
5561 test -z "$DLLTOOL" && DLLTOOL=dlltool
5562 test -z "$LD" && LD=ld
5563 test -z "$LN_S" && LN_S="ln -s"
5564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5565 test -z "$NM" && NM=nm
5566 test -z "$SED" && SED=sed
5567 test -z "$OBJDUMP" && OBJDUMP=objdump
5568 test -z "$RANLIB" && RANLIB=:
5569 test -z "$STRIP" && STRIP=:
5570 test -z "$ac_objext" && ac_objext=o
5571
5572 # Determine commands to create old-style static archives.
5573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5574 old_postinstall_cmds='chmod 644 $oldlib'
5575 old_postuninstall_cmds=
5576
5577 if test -n "$RANLIB"; then
5578   case $host_os in
5579   openbsd*)
5580     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5581     ;;
5582   *)
5583     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5584     ;;
5585   esac
5586   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5587 fi
5588
5589 # Only perform the check for file, if the check method requires it
5590 case $deplibs_check_method in
5591 file_magic*)
5592   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5593     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5594 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   case $MAGIC_CMD in
5599 [\\/*] |  ?:[\\/]*)
5600   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5601   ;;
5602 *)
5603   lt_save_MAGIC_CMD="$MAGIC_CMD"
5604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5605   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5606   for ac_dir in $ac_dummy; do
5607     IFS="$lt_save_ifs"
5608     test -z "$ac_dir" && ac_dir=.
5609     if test -f $ac_dir/${ac_tool_prefix}file; then
5610       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5611       if test -n "$file_magic_test_file"; then
5612         case $deplibs_check_method in
5613         "file_magic "*)
5614           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5615           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5616           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5617             $EGREP "$file_magic_regex" > /dev/null; then
5618             :
5619           else
5620             cat <<EOF 1>&2
5621
5622 *** Warning: the command libtool uses to detect shared libraries,
5623 *** $file_magic_cmd, produces output that libtool cannot recognize.
5624 *** The result is that libtool may fail to recognize shared libraries
5625 *** as such.  This will affect the creation of libtool libraries that
5626 *** depend on shared libraries, but programs linked with such libtool
5627 *** libraries will work regardless of this problem.  Nevertheless, you
5628 *** may want to report the problem to your system manager and/or to
5629 *** bug-libtool@gnu.org
5630
5631 EOF
5632           fi ;;
5633         esac
5634       fi
5635       break
5636     fi
5637   done
5638   IFS="$lt_save_ifs"
5639   MAGIC_CMD="$lt_save_MAGIC_CMD"
5640   ;;
5641 esac
5642 fi
5643
5644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5645 if test -n "$MAGIC_CMD"; then
5646   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5647 echo "${ECHO_T}$MAGIC_CMD" >&6
5648 else
5649   echo "$as_me:$LINENO: result: no" >&5
5650 echo "${ECHO_T}no" >&6
5651 fi
5652
5653 if test -z "$lt_cv_path_MAGIC_CMD"; then
5654   if test -n "$ac_tool_prefix"; then
5655     echo "$as_me:$LINENO: checking for file" >&5
5656 echo $ECHO_N "checking for file... $ECHO_C" >&6
5657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   case $MAGIC_CMD in
5661 [\\/*] |  ?:[\\/]*)
5662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5663   ;;
5664 *)
5665   lt_save_MAGIC_CMD="$MAGIC_CMD"
5666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5668   for ac_dir in $ac_dummy; do
5669     IFS="$lt_save_ifs"
5670     test -z "$ac_dir" && ac_dir=.
5671     if test -f $ac_dir/file; then
5672       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5673       if test -n "$file_magic_test_file"; then
5674         case $deplibs_check_method in
5675         "file_magic "*)
5676           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5677           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5679             $EGREP "$file_magic_regex" > /dev/null; then
5680             :
5681           else
5682             cat <<EOF 1>&2
5683
5684 *** Warning: the command libtool uses to detect shared libraries,
5685 *** $file_magic_cmd, produces output that libtool cannot recognize.
5686 *** The result is that libtool may fail to recognize shared libraries
5687 *** as such.  This will affect the creation of libtool libraries that
5688 *** depend on shared libraries, but programs linked with such libtool
5689 *** libraries will work regardless of this problem.  Nevertheless, you
5690 *** may want to report the problem to your system manager and/or to
5691 *** bug-libtool@gnu.org
5692
5693 EOF
5694           fi ;;
5695         esac
5696       fi
5697       break
5698     fi
5699   done
5700   IFS="$lt_save_ifs"
5701   MAGIC_CMD="$lt_save_MAGIC_CMD"
5702   ;;
5703 esac
5704 fi
5705
5706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5707 if test -n "$MAGIC_CMD"; then
5708   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5709 echo "${ECHO_T}$MAGIC_CMD" >&6
5710 else
5711   echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 fi
5714
5715   else
5716     MAGIC_CMD=:
5717   fi
5718 fi
5719
5720   fi
5721   ;;
5722 esac
5723
5724 enable_dlopen=no
5725 enable_win32_dll=no
5726
5727 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5728 if test "${enable_libtool_lock+set}" = set; then
5729   enableval="$enable_libtool_lock"
5730
5731 fi;
5732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5733
5734
5735 # Check whether --with-pic or --without-pic was given.
5736 if test "${with_pic+set}" = set; then
5737   withval="$with_pic"
5738   pic_mode="$withval"
5739 else
5740   pic_mode=default
5741 fi;
5742 test -z "$pic_mode" && pic_mode=default
5743
5744 # Use C for the default configuration in the libtool script
5745 tagname=
5746 lt_save_CC="$CC"
5747 ac_ext=c
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752
5753
5754 # Source file extension for C test sources.
5755 ac_ext=c
5756
5757 # Object file extension for compiled C test sources.
5758 objext=o
5759 objext=$objext
5760
5761 # Code to be used in simple compile tests
5762 lt_simple_compile_test_code="int some_variable = 0;\n"
5763
5764 # Code to be used in simple link tests
5765 lt_simple_link_test_code='int main(){return(0);}\n'
5766
5767
5768 # If no C compiler was specified, use CC.
5769 LTCC=${LTCC-"$CC"}
5770
5771 # Allow CC to be a program name with arguments.
5772 compiler=$CC
5773
5774
5775 #
5776 # Check for any special shared library compilation flags.
5777 #
5778 lt_prog_cc_shlib=
5779 if test "$GCC" = no; then
5780   case $host_os in
5781   sco3.2v5*)
5782     lt_prog_cc_shlib='-belf'
5783     ;;
5784   esac
5785 fi
5786 if test -n "$lt_prog_cc_shlib"; then
5787   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5788 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5789   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5790   else
5791     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5792 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5793     lt_cv_prog_cc_can_build_shared=no
5794   fi
5795 fi
5796
5797
5798 #
5799 # Check to make sure the static flag actually works.
5800 #
5801 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5802 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5803 if test "${lt_prog_compiler_static_works+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   lt_prog_compiler_static_works=no
5807    save_LDFLAGS="$LDFLAGS"
5808    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5809    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5810    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5811      # The compiler can only warn and ignore the option if not recognized
5812      # So say no if there are warnings
5813      if test -s conftest.err; then
5814        # Append any errors to the config.log.
5815        cat conftest.err 1>&5
5816      else
5817        lt_prog_compiler_static_works=yes
5818      fi
5819    fi
5820    $rm conftest*
5821    LDFLAGS="$save_LDFLAGS"
5822
5823 fi
5824 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5825 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5826
5827 if test x"$lt_prog_compiler_static_works" = xyes; then
5828     :
5829 else
5830     lt_prog_compiler_static=
5831 fi
5832
5833
5834
5835
5836 lt_prog_compiler_no_builtin_flag=
5837
5838 if test "$GCC" = yes; then
5839   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5840
5841
5842 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5843 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5844 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   lt_cv_prog_compiler_rtti_exceptions=no
5848   ac_outfile=conftest.$ac_objext
5849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5850    lt_compiler_flag="-fno-rtti -fno-exceptions"
5851    # Insert the option either (1) after the last *FLAGS variable, or
5852    # (2) before a word containing "conftest.", or (3) at the end.
5853    # Note that $ac_compile itself does not contain backslashes and begins
5854    # with a dollar sign (not a hyphen), so the echo should work correctly.
5855    # The option is referenced via a variable to avoid confusing sed.
5856    lt_compile=`echo "$ac_compile" | $SED \
5857    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5859    -e 's:$: $lt_compiler_flag:'`
5860    (eval echo "\"\$as_me:5860: $lt_compile\"" >&5)
5861    (eval "$lt_compile" 2>conftest.err)
5862    ac_status=$?
5863    cat conftest.err >&5
5864    echo "$as_me:5864: \$? = $ac_status" >&5
5865    if (exit $ac_status) && test -s "$ac_outfile"; then
5866      # The compiler can only warn and ignore the option if not recognized
5867      # So say no if there are warnings
5868      if test ! -s conftest.err; then
5869        lt_cv_prog_compiler_rtti_exceptions=yes
5870      fi
5871    fi
5872    $rm conftest*
5873
5874 fi
5875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5876 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5877
5878 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5879     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5880 else
5881     :
5882 fi
5883
5884 fi
5885
5886 lt_prog_compiler_wl=
5887 lt_prog_compiler_pic=
5888 lt_prog_compiler_static=
5889
5890 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5891 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5892
5893   if test "$GCC" = yes; then
5894     lt_prog_compiler_wl='-Wl,'
5895     lt_prog_compiler_static='-static'
5896
5897     case $host_os in
5898       aix*)
5899       # All AIX code is PIC.
5900       if test "$host_cpu" = ia64; then
5901         # AIX 5 now supports IA64 processor
5902         lt_prog_compiler_static='-Bstatic'
5903       fi
5904       ;;
5905
5906     amigaos*)
5907       # FIXME: we need at least 68020 code to build shared libraries, but
5908       # adding the `-m68020' flag to GCC prevents building anything better,
5909       # like `-m68040'.
5910       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5911       ;;
5912
5913     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5914       # PIC is the default for these OSes.
5915       ;;
5916
5917     mingw* | pw32* | os2*)
5918       # This hack is so that the source file can tell whether it is being
5919       # built for inclusion in a dll (and should export symbols for example).
5920       lt_prog_compiler_pic='-DDLL_EXPORT'
5921       ;;
5922
5923     darwin* | rhapsody*)
5924       # PIC is the default on this platform
5925       # Common symbols not allowed in MH_DYLIB files
5926       lt_prog_compiler_pic='-fno-common'
5927       ;;
5928
5929     msdosdjgpp*)
5930       # Just because we use GCC doesn't mean we suddenly get shared libraries
5931       # on systems that don't support them.
5932       lt_prog_compiler_can_build_shared=no
5933       enable_shared=no
5934       ;;
5935
5936     sysv4*MP*)
5937       if test -d /usr/nec; then
5938         lt_prog_compiler_pic=-Kconform_pic
5939       fi
5940       ;;
5941
5942     hpux*)
5943       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5944       # not for PA HP-UX.
5945       case "$host_cpu" in
5946       hppa*64*|ia64*)
5947         # +Z the default
5948         ;;
5949       *)
5950         lt_prog_compiler_pic='-fPIC'
5951         ;;
5952       esac
5953       ;;
5954
5955     *)
5956       lt_prog_compiler_pic='-fPIC'
5957       ;;
5958     esac
5959   else
5960     # PORTME Check for flag to pass linker flags through the system compiler.
5961     case $host_os in
5962     aix*)
5963       lt_prog_compiler_wl='-Wl,'
5964       if test "$host_cpu" = ia64; then
5965         # AIX 5 now supports IA64 processor
5966         lt_prog_compiler_static='-Bstatic'
5967       else
5968         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5969       fi
5970       ;;
5971
5972     mingw* | pw32* | os2*)
5973       # This hack is so that the source file can tell whether it is being
5974       # built for inclusion in a dll (and should export symbols for example).
5975       lt_prog_compiler_pic='-DDLL_EXPORT'
5976       ;;
5977
5978     hpux9* | hpux10* | hpux11*)
5979       lt_prog_compiler_wl='-Wl,'
5980       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5981       # not for PA HP-UX.
5982       case "$host_cpu" in
5983       hppa*64*|ia64*)
5984         # +Z the default
5985         ;;
5986       *)
5987         lt_prog_compiler_pic='+Z'
5988         ;;
5989       esac
5990       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5991       lt_prog_compiler_static='${wl}-a ${wl}archive'
5992       ;;
5993
5994     irix5* | irix6* | nonstopux*)
5995       lt_prog_compiler_wl='-Wl,'
5996       # PIC (with -KPIC) is the default.
5997       lt_prog_compiler_static='-non_shared'
5998       ;;
5999
6000     newsos6)
6001       lt_prog_compiler_pic='-KPIC'
6002       lt_prog_compiler_static='-Bstatic'
6003       ;;
6004
6005     linux*)
6006       case $CC in
6007       icc* | ecc*)
6008         lt_prog_compiler_wl='-Wl,'
6009         lt_prog_compiler_pic='-KPIC'
6010         lt_prog_compiler_static='-static'
6011         ;;
6012       ccc*)
6013         lt_prog_compiler_wl='-Wl,'
6014         # All Alpha code is PIC.
6015         lt_prog_compiler_static='-non_shared'
6016         ;;
6017       esac
6018       ;;
6019
6020     osf3* | osf4* | osf5*)
6021       lt_prog_compiler_wl='-Wl,'
6022       # All OSF/1 code is PIC.
6023       lt_prog_compiler_static='-non_shared'
6024       ;;
6025
6026     sco3.2v5*)
6027       lt_prog_compiler_pic='-Kpic'
6028       lt_prog_compiler_static='-dn'
6029       ;;
6030
6031     solaris*)
6032       lt_prog_compiler_wl='-Wl,'
6033       lt_prog_compiler_pic='-KPIC'
6034       lt_prog_compiler_static='-Bstatic'
6035       ;;
6036
6037     sunos4*)
6038       lt_prog_compiler_wl='-Qoption ld '
6039       lt_prog_compiler_pic='-PIC'
6040       lt_prog_compiler_static='-Bstatic'
6041       ;;
6042
6043     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6044       lt_prog_compiler_wl='-Wl,'
6045       lt_prog_compiler_pic='-KPIC'
6046       lt_prog_compiler_static='-Bstatic'
6047       ;;
6048
6049     sysv4*MP*)
6050       if test -d /usr/nec ;then
6051         lt_prog_compiler_pic='-Kconform_pic'
6052         lt_prog_compiler_static='-Bstatic'
6053       fi
6054       ;;
6055
6056     uts4*)
6057       lt_prog_compiler_pic='-pic'
6058       lt_prog_compiler_static='-Bstatic'
6059       ;;
6060
6061     *)
6062       lt_prog_compiler_can_build_shared=no
6063       ;;
6064     esac
6065   fi
6066
6067 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6068 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6069
6070 #
6071 # Check to make sure the PIC flag actually works.
6072 #
6073 if test -n "$lt_prog_compiler_pic"; then
6074
6075 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6076 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6077 if test "${lt_prog_compiler_pic_works+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   lt_prog_compiler_pic_works=no
6081   ac_outfile=conftest.$ac_objext
6082    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6083    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6084    # Insert the option either (1) after the last *FLAGS variable, or
6085    # (2) before a word containing "conftest.", or (3) at the end.
6086    # Note that $ac_compile itself does not contain backslashes and begins
6087    # with a dollar sign (not a hyphen), so the echo should work correctly.
6088    # The option is referenced via a variable to avoid confusing sed.
6089    lt_compile=`echo "$ac_compile" | $SED \
6090    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6091    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6092    -e 's:$: $lt_compiler_flag:'`
6093    (eval echo "\"\$as_me:6093: $lt_compile\"" >&5)
6094    (eval "$lt_compile" 2>conftest.err)
6095    ac_status=$?
6096    cat conftest.err >&5
6097    echo "$as_me:6097: \$? = $ac_status" >&5
6098    if (exit $ac_status) && test -s "$ac_outfile"; then
6099      # The compiler can only warn and ignore the option if not recognized
6100      # So say no if there are warnings
6101      if test ! -s conftest.err; then
6102        lt_prog_compiler_pic_works=yes
6103      fi
6104    fi
6105    $rm conftest*
6106
6107 fi
6108 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6109 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6110
6111 if test x"$lt_prog_compiler_pic_works" = xyes; then
6112     case $lt_prog_compiler_pic in
6113      "" | " "*) ;;
6114      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6115      esac
6116 else
6117     lt_prog_compiler_pic=
6118      lt_prog_compiler_can_build_shared=no
6119 fi
6120
6121 fi
6122 case "$host_os" in
6123   # For platforms which do not support PIC, -DPIC is meaningless:
6124   *djgpp*)
6125     lt_prog_compiler_pic=
6126     ;;
6127   *)
6128     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6129     ;;
6130 esac
6131
6132 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6133 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6134 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   lt_cv_prog_compiler_c_o=no
6138    $rm -r conftest 2>/dev/null
6139    mkdir conftest
6140    cd conftest
6141    mkdir out
6142    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6143
6144    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6145    # that will create temporary files in the current directory regardless of
6146    # the output directory.  Thus, making CWD read-only will cause this test
6147    # to fail, enabling locking or at least warning the user not to do parallel
6148    # builds.
6149    chmod -w .
6150
6151    lt_compiler_flag="-o out/conftest2.$ac_objext"
6152    # Insert the option either (1) after the last *FLAGS variable, or
6153    # (2) before a word containing "conftest.", or (3) at the end.
6154    # Note that $ac_compile itself does not contain backslashes and begins
6155    # with a dollar sign (not a hyphen), so the echo should work correctly.
6156    lt_compile=`echo "$ac_compile" | $SED \
6157    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6158    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6159    -e 's:$: $lt_compiler_flag:'`
6160    (eval echo "\"\$as_me:6160: $lt_compile\"" >&5)
6161    (eval "$lt_compile" 2>out/conftest.err)
6162    ac_status=$?
6163    cat out/conftest.err >&5
6164    echo "$as_me:6164: \$? = $ac_status" >&5
6165    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6166    then
6167      # The compiler can only warn and ignore the option if not recognized
6168      # So say no if there are warnings
6169      if test ! -s out/conftest.err; then
6170        lt_cv_prog_compiler_c_o=yes
6171      fi
6172    fi
6173    chmod u+w .
6174    $rm conftest*
6175    # SGI C++ compiler will create directory out/ii_files/ for
6176    # template instantiation
6177    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6178    $rm out/* && rmdir out
6179    cd ..
6180    rmdir conftest
6181    $rm conftest*
6182
6183 fi
6184 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6185 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6186
6187
6188 hard_links="nottested"
6189 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6190   # do not overwrite the value of need_locks provided by the user
6191   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6192 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6193   hard_links=yes
6194   $rm conftest*
6195   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6196   touch conftest.a
6197   ln conftest.a conftest.b 2>&5 || hard_links=no
6198   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6199   echo "$as_me:$LINENO: result: $hard_links" >&5
6200 echo "${ECHO_T}$hard_links" >&6
6201   if test "$hard_links" = no; then
6202     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6203 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6204     need_locks=warn
6205   fi
6206 else
6207   need_locks=no
6208 fi
6209
6210 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6211 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6212
6213   runpath_var=
6214   allow_undefined_flag=
6215   enable_shared_with_static_runtimes=no
6216   archive_cmds=
6217   archive_expsym_cmds=
6218   old_archive_From_new_cmds=
6219   old_archive_from_expsyms_cmds=
6220   export_dynamic_flag_spec=
6221   whole_archive_flag_spec=
6222   thread_safe_flag_spec=
6223   hardcode_libdir_flag_spec=
6224   hardcode_libdir_flag_spec_ld=
6225   hardcode_libdir_separator=
6226   hardcode_direct=no
6227   hardcode_minus_L=no
6228   hardcode_shlibpath_var=unsupported
6229   link_all_deplibs=unknown
6230   hardcode_automatic=no
6231   module_cmds=
6232   module_expsym_cmds=
6233   always_export_symbols=no
6234   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6235   # include_expsyms should be a list of space-separated symbols to be *always*
6236   # included in the symbol list
6237   include_expsyms=
6238   # exclude_expsyms can be an extended regexp of symbols to exclude
6239   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6240   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6241   # as well as any symbol that contains `d'.
6242   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6243   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6244   # platforms (ab)use it in PIC code, but their linkers get confused if
6245   # the symbol is explicitly referenced.  Since portable code cannot
6246   # rely on this symbol name, it's probably fine to never include it in
6247   # preloaded symbol tables.
6248   extract_expsyms_cmds=
6249
6250   case $host_os in
6251   cygwin* | mingw* | pw32*)
6252     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6253     # When not using gcc, we currently assume that we are using
6254     # Microsoft Visual C++.
6255     if test "$GCC" != yes; then
6256       with_gnu_ld=no
6257     fi
6258     ;;
6259   openbsd*)
6260     with_gnu_ld=no
6261     ;;
6262   esac
6263
6264   ld_shlibs=yes
6265   if test "$with_gnu_ld" = yes; then
6266     # If archive_cmds runs LD, not CC, wlarc should be empty
6267     wlarc='${wl}'
6268
6269     # See if GNU ld supports shared libraries.
6270     case $host_os in
6271     aix3* | aix4* | aix5*)
6272       # On AIX/PPC, the GNU linker is very broken
6273       if test "$host_cpu" != ia64; then
6274         ld_shlibs=no
6275         cat <<EOF 1>&2
6276
6277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6278 *** to be unable to reliably create shared libraries on AIX.
6279 *** Therefore, libtool is disabling shared libraries support.  If you
6280 *** really care for shared libraries, you may want to modify your PATH
6281 *** so that a non-GNU linker is found, and then restart.
6282
6283 EOF
6284       fi
6285       ;;
6286
6287     amigaos*)
6288       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)'
6289       hardcode_libdir_flag_spec='-L$libdir'
6290       hardcode_minus_L=yes
6291
6292       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6293       # that the semantics of dynamic libraries on AmigaOS, at least up
6294       # to version 4, is to share data among multiple programs linked
6295       # with the same dynamic library.  Since this doesn't match the
6296       # behavior of shared libraries on other platforms, we can't use
6297       # them.
6298       ld_shlibs=no
6299       ;;
6300
6301     beos*)
6302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6303         allow_undefined_flag=unsupported
6304         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6305         # support --undefined.  This deserves some investigation.  FIXME
6306         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6307       else
6308         ld_shlibs=no
6309       fi
6310       ;;
6311
6312     cygwin* | mingw* | pw32*)
6313       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6314       # as there is no search path for DLLs.
6315       hardcode_libdir_flag_spec='-L$libdir'
6316       allow_undefined_flag=unsupported
6317       always_export_symbols=no
6318       enable_shared_with_static_runtimes=yes
6319       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6320
6321       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6322         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6323         # If the export-symbols file already is a .def file (1st line
6324         # is EXPORTS), use it as is; otherwise, prepend...
6325         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6326           cp $export_symbols $output_objdir/$soname.def;
6327         else
6328           echo EXPORTS > $output_objdir/$soname.def;
6329           cat $export_symbols >> $output_objdir/$soname.def;
6330         fi~
6331         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6332       else
6333         ld_shlibs=no
6334       fi
6335       ;;
6336
6337     netbsd*)
6338       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6339         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6340         wlarc=
6341       else
6342         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6344       fi
6345       ;;
6346
6347     solaris* | sysv5*)
6348       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6349         ld_shlibs=no
6350         cat <<EOF 1>&2
6351
6352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6353 *** create shared libraries on Solaris systems.  Therefore, libtool
6354 *** is disabling shared libraries support.  We urge you to upgrade GNU
6355 *** binutils to release 2.9.1 or newer.  Another option is to modify
6356 *** your PATH or compiler configuration so that the native linker is
6357 *** used, and then restart.
6358
6359 EOF
6360       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6361         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6362         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6363       else
6364         ld_shlibs=no
6365       fi
6366       ;;
6367
6368     sunos4*)
6369       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6370       wlarc=
6371       hardcode_direct=yes
6372       hardcode_shlibpath_var=no
6373       ;;
6374
6375   linux*)
6376     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6377         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6378         archive_cmds="$tmp_archive_cmds"
6379       supports_anon_versioning=no
6380       case `$LD -v 2>/dev/null` in
6381         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6382         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6383         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6384         *\ 2.11.*) ;; # other 2.11 versions
6385         *) supports_anon_versioning=yes ;;
6386       esac
6387       if test $supports_anon_versioning = yes; then
6388         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6390 $echo "local: *; };" >> $output_objdir/$libname.ver~
6391         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6392       else
6393         archive_expsym_cmds="$tmp_archive_cmds"
6394       fi
6395     else
6396       ld_shlibs=no
6397     fi
6398     ;;
6399
6400     *)
6401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404       else
6405         ld_shlibs=no
6406       fi
6407       ;;
6408     esac
6409
6410     if test "$ld_shlibs" = yes; then
6411       runpath_var=LD_RUN_PATH
6412       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6413       export_dynamic_flag_spec='${wl}--export-dynamic'
6414       # ancient GNU ld didn't support --whole-archive et. al.
6415       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6416         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6417       else
6418         whole_archive_flag_spec=
6419       fi
6420     fi
6421   else
6422     # PORTME fill in a description of your system's linker (not GNU ld)
6423     case $host_os in
6424     aix3*)
6425       allow_undefined_flag=unsupported
6426       always_export_symbols=yes
6427       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'
6428       # Note: this linker hardcodes the directories in LIBPATH if there
6429       # are no directories specified by -L.
6430       hardcode_minus_L=yes
6431       if test "$GCC" = yes && test -z "$link_static_flag"; then
6432         # Neither direct hardcoding nor static linking is supported with a
6433         # broken collect2.
6434         hardcode_direct=unsupported
6435       fi
6436       ;;
6437
6438     aix4* | aix5*)
6439       if test "$host_cpu" = ia64; then
6440         # On IA64, the linker does run time linking by default, so we don't
6441         # have to do anything special.
6442         aix_use_runtimelinking=no
6443         exp_sym_flag='-Bexport'
6444         no_entry_flag=""
6445       else
6446         # If we're using GNU nm, then we don't want the "-C" option.
6447         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6448         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6449           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'
6450         else
6451           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'
6452         fi
6453         aix_use_runtimelinking=no
6454
6455         # Test if we are trying to use run time linking or normal
6456         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6457         # need to do runtime linking.
6458         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6459           for ld_flag in $LDFLAGS; do
6460           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6461             aix_use_runtimelinking=yes
6462             break
6463           fi
6464           done
6465         esac
6466
6467         exp_sym_flag='-bexport'
6468         no_entry_flag='-bnoentry'
6469       fi
6470
6471       # When large executables or shared objects are built, AIX ld can
6472       # have problems creating the table of contents.  If linking a library
6473       # or program results in "error TOC overflow" add -mminimal-toc to
6474       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6475       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6476
6477       archive_cmds=''
6478       hardcode_direct=yes
6479       hardcode_libdir_separator=':'
6480       link_all_deplibs=yes
6481
6482       if test "$GCC" = yes; then
6483         case $host_os in aix4.012|aix4.012.*)
6484         # We only want to do this on AIX 4.2 and lower, the check
6485         # below for broken collect2 doesn't work under 4.3+
6486           collect2name=`${CC} -print-prog-name=collect2`
6487           if test -f "$collect2name" && \
6488            strings "$collect2name" | grep resolve_lib_name >/dev/null
6489           then
6490           # We have reworked collect2
6491           hardcode_direct=yes
6492           else
6493           # We have old collect2
6494           hardcode_direct=unsupported
6495           # It fails to find uninstalled libraries when the uninstalled
6496           # path is not listed in the libpath.  Setting hardcode_minus_L
6497           # to unsupported forces relinking
6498           hardcode_minus_L=yes
6499           hardcode_libdir_flag_spec='-L$libdir'
6500           hardcode_libdir_separator=
6501           fi
6502         esac
6503         shared_flag='-shared'
6504       else
6505         # not using gcc
6506         if test "$host_cpu" = ia64; then
6507         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6508         # chokes on -Wl,-G. The following line is correct:
6509           shared_flag='-G'
6510         else
6511         if test "$aix_use_runtimelinking" = yes; then
6512             shared_flag='${wl}-G'
6513           else
6514             shared_flag='${wl}-bM:SRE'
6515         fi
6516         fi
6517       fi
6518
6519       # It seems that -bexpall does not export symbols beginning with
6520       # underscore (_), so it is better to generate a list of symbols to export.
6521       always_export_symbols=yes
6522       if test "$aix_use_runtimelinking" = yes; then
6523         # Warning - without using the other runtime loading flags (-brtl),
6524         # -berok will link without error, but may produce a broken library.
6525         allow_undefined_flag='-berok'
6526        # Determine the default libpath from the value encoded in an empty executable.
6527        cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533
6534 int
6535 main ()
6536 {
6537
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544   (eval $ac_link) 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -z "$ac_c_werror_flag"
6552                          || test ! -s conftest.err'
6553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554   (eval $ac_try) 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest$ac_exeext'
6559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560   (eval $ac_try) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); }; }; then
6564
6565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6566 }'`
6567 # Check for a 64-bit object if we didn't find anything.
6568 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; }
6569 }'`; fi
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 fi
6575 rm -f conftest.err conftest.$ac_objext \
6576       conftest$ac_exeext conftest.$ac_ext
6577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6578
6579        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6580         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"
6581        else
6582         if test "$host_cpu" = ia64; then
6583           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6584           allow_undefined_flag="-z nodefs"
6585           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"
6586         else
6587          # Determine the default libpath from the value encoded in an empty executable.
6588          cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6594
6595 int
6596 main ()
6597 {
6598
6599   ;
6600   return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605   (eval $ac_link) 2>conftest.er1
6606   ac_status=$?
6607   grep -v '^ *+' conftest.er1 >conftest.err
6608   rm -f conftest.er1
6609   cat conftest.err >&5
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } &&
6612          { ac_try='test -z "$ac_c_werror_flag"
6613                          || test ! -s conftest.err'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; } &&
6619          { ac_try='test -s conftest$ac_exeext'
6620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621   (eval $ac_try) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); }; }; then
6625
6626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6627 }'`
6628 # Check for a 64-bit object if we didn't find anything.
6629 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; }
6630 }'`; fi
6631 else
6632   echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6634
6635 fi
6636 rm -f conftest.err conftest.$ac_objext \
6637       conftest$ac_exeext conftest.$ac_ext
6638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6639
6640          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6641           # Warning - without using the other run time loading flags,
6642           # -berok will link without error, but may produce a broken library.
6643           no_undefined_flag=' ${wl}-bernotok'
6644           allow_undefined_flag=' ${wl}-berok'
6645           # -bexpall does not export symbols beginning with underscore (_)
6646           always_export_symbols=yes
6647           # Exported symbols can be pulled into shared objects from archives
6648           whole_archive_flag_spec=' '
6649           archive_cmds_need_lc=yes
6650           # This is similar to how AIX traditionally builds it's shared libraries.
6651           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'
6652         fi
6653       fi
6654       ;;
6655
6656     amigaos*)
6657       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)'
6658       hardcode_libdir_flag_spec='-L$libdir'
6659       hardcode_minus_L=yes
6660       # see comment about different semantics on the GNU ld section
6661       ld_shlibs=no
6662       ;;
6663
6664     bsdi4*)
6665       export_dynamic_flag_spec=-rdynamic
6666       ;;
6667
6668     cygwin* | mingw* | pw32*)
6669       # When not using gcc, we currently assume that we are using
6670       # Microsoft Visual C++.
6671       # hardcode_libdir_flag_spec is actually meaningless, as there is
6672       # no search path for DLLs.
6673       hardcode_libdir_flag_spec=' '
6674       allow_undefined_flag=unsupported
6675       # Tell ltmain to make .lib files, not .a files.
6676       libext=lib
6677       # Tell ltmain to make .dll files, not .so files.
6678       shrext=".dll"
6679       # FIXME: Setting linknames here is a bad hack.
6680       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6681       # The linker will automatically build a .lib file if we build a DLL.
6682       old_archive_From_new_cmds='true'
6683       # FIXME: Should let the user specify the lib program.
6684       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6685       fix_srcfile_path='`cygpath -w "$srcfile"`'
6686       enable_shared_with_static_runtimes=yes
6687       ;;
6688
6689     darwin* | rhapsody*)
6690     if test "$GXX" = yes ; then
6691       archive_cmds_need_lc=no
6692       case "$host_os" in
6693       rhapsody* | darwin1.[012])
6694         allow_undefined_flag='-undefined suppress'
6695         ;;
6696       *) # Darwin 1.3 on
6697       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6698         allow_undefined_flag='-flat_namespace -undefined suppress'
6699       else
6700         case ${MACOSX_DEPLOYMENT_TARGET} in
6701           10.[012])
6702             allow_undefined_flag='-flat_namespace -undefined suppress'
6703             ;;
6704           10.*)
6705             allow_undefined_flag='-undefined dynamic_lookup'
6706             ;;
6707         esac
6708       fi
6709         ;;
6710       esac
6711         lt_int_apple_cc_single_mod=no
6712         output_verbose_link_cmd='echo'
6713         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6714           lt_int_apple_cc_single_mod=yes
6715         fi
6716         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6717           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6718         else
6719         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6720       fi
6721       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6722       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6723         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6724           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6725         else
6726           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6727         fi
6728           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}'
6729       hardcode_direct=no
6730       hardcode_automatic=yes
6731       hardcode_shlibpath_var=unsupported
6732       whole_archive_flag_spec='-all_load $convenience'
6733       link_all_deplibs=yes
6734     else
6735       ld_shlibs=no
6736     fi
6737       ;;
6738
6739     dgux*)
6740       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6741       hardcode_libdir_flag_spec='-L$libdir'
6742       hardcode_shlibpath_var=no
6743       ;;
6744
6745     freebsd1*)
6746       ld_shlibs=no
6747       ;;
6748
6749     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6750     # support.  Future versions do this automatically, but an explicit c++rt0.o
6751     # does not break anything, and helps significantly (at the cost of a little
6752     # extra space).
6753     freebsd2.2*)
6754       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6755       hardcode_libdir_flag_spec='-R$libdir'
6756       hardcode_direct=yes
6757       hardcode_shlibpath_var=no
6758       ;;
6759
6760     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6761     freebsd2*)
6762       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6763       hardcode_direct=yes
6764       hardcode_minus_L=yes
6765       hardcode_shlibpath_var=no
6766       ;;
6767
6768     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6769     freebsd* | kfreebsd*-gnu)
6770       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6771       hardcode_libdir_flag_spec='-R$libdir'
6772       hardcode_direct=yes
6773       hardcode_shlibpath_var=no
6774       ;;
6775
6776     hpux9*)
6777       if test "$GCC" = yes; then
6778         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'
6779       else
6780         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'
6781       fi
6782       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6783       hardcode_libdir_separator=:
6784       hardcode_direct=yes
6785
6786       # hardcode_minus_L: Not really in the search PATH,
6787       # but as the default location of the library.
6788       hardcode_minus_L=yes
6789       export_dynamic_flag_spec='${wl}-E'
6790       ;;
6791
6792     hpux10* | hpux11*)
6793       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6794         case "$host_cpu" in
6795         hppa*64*|ia64*)
6796           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6797           ;;
6798         *)
6799           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6800           ;;
6801         esac
6802       else
6803         case "$host_cpu" in
6804         hppa*64*|ia64*)
6805           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6806           ;;
6807         *)
6808           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6809           ;;
6810         esac
6811       fi
6812       if test "$with_gnu_ld" = no; then
6813         case "$host_cpu" in
6814         hppa*64*)
6815           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6816           hardcode_libdir_flag_spec_ld='+b $libdir'
6817           hardcode_libdir_separator=:
6818           hardcode_direct=no
6819           hardcode_shlibpath_var=no
6820           ;;
6821         ia64*)
6822           hardcode_libdir_flag_spec='-L$libdir'
6823           hardcode_direct=no
6824           hardcode_shlibpath_var=no
6825
6826           # hardcode_minus_L: Not really in the search PATH,
6827           # but as the default location of the library.
6828           hardcode_minus_L=yes
6829           ;;
6830         *)
6831           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6832           hardcode_libdir_separator=:
6833           hardcode_direct=yes
6834           export_dynamic_flag_spec='${wl}-E'
6835
6836           # hardcode_minus_L: Not really in the search PATH,
6837           # but as the default location of the library.
6838           hardcode_minus_L=yes
6839           ;;
6840         esac
6841       fi
6842       ;;
6843
6844     irix5* | irix6* | nonstopux*)
6845       if test "$GCC" = yes; then
6846         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'
6847       else
6848         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'
6849         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6850       fi
6851       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6852       hardcode_libdir_separator=:
6853       link_all_deplibs=yes
6854       ;;
6855
6856     netbsd*)
6857       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6858         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6859       else
6860         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6861       fi
6862       hardcode_libdir_flag_spec='-R$libdir'
6863       hardcode_direct=yes
6864       hardcode_shlibpath_var=no
6865       ;;
6866
6867     newsos6)
6868       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6869       hardcode_direct=yes
6870       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6871       hardcode_libdir_separator=:
6872       hardcode_shlibpath_var=no
6873       ;;
6874
6875     openbsd*)
6876       hardcode_direct=yes
6877       hardcode_shlibpath_var=no
6878       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6880         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6881         export_dynamic_flag_spec='${wl}-E'
6882       else
6883        case $host_os in
6884          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6885            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6886            hardcode_libdir_flag_spec='-R$libdir'
6887            ;;
6888          *)
6889            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6890            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6891            ;;
6892        esac
6893       fi
6894       ;;
6895
6896     os2*)
6897       hardcode_libdir_flag_spec='-L$libdir'
6898       hardcode_minus_L=yes
6899       allow_undefined_flag=unsupported
6900       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'
6901       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6902       ;;
6903
6904     osf3*)
6905       if test "$GCC" = yes; then
6906         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6907         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'
6908       else
6909         allow_undefined_flag=' -expect_unresolved \*'
6910         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'
6911       fi
6912       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6913       hardcode_libdir_separator=:
6914       ;;
6915
6916     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6917       if test "$GCC" = yes; then
6918         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6919         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'
6920         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6921       else
6922         allow_undefined_flag=' -expect_unresolved \*'
6923         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'
6924         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6925         $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'
6926
6927         # Both c and cxx compiler support -rpath directly
6928         hardcode_libdir_flag_spec='-rpath $libdir'
6929       fi
6930       hardcode_libdir_separator=:
6931       ;;
6932
6933     sco3.2v5*)
6934       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935       hardcode_shlibpath_var=no
6936       export_dynamic_flag_spec='${wl}-Bexport'
6937       runpath_var=LD_RUN_PATH
6938       hardcode_runpath_var=yes
6939       ;;
6940
6941     solaris*)
6942       no_undefined_flag=' -z text'
6943       if test "$GCC" = yes; then
6944         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6945         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6946           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6947       else
6948         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6949         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6950         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6951       fi
6952       hardcode_libdir_flag_spec='-R$libdir'
6953       hardcode_shlibpath_var=no
6954       case $host_os in
6955       solaris2.[0-5] | solaris2.[0-5].*) ;;
6956       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6957         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6958       esac
6959       link_all_deplibs=yes
6960       ;;
6961
6962     sunos4*)
6963       if test "x$host_vendor" = xsequent; then
6964         # Use $CC to link under sequent, because it throws in some extra .o
6965         # files that make .init and .fini sections work.
6966         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6967       else
6968         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6969       fi
6970       hardcode_libdir_flag_spec='-L$libdir'
6971       hardcode_direct=yes
6972       hardcode_minus_L=yes
6973       hardcode_shlibpath_var=no
6974       ;;
6975
6976     sysv4)
6977       case $host_vendor in
6978         sni)
6979           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980           hardcode_direct=yes # is this really true???
6981         ;;
6982         siemens)
6983           ## LD is ld it makes a PLAMLIB
6984           ## CC just makes a GrossModule.
6985           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6986           reload_cmds='$CC -r -o $output$reload_objs'
6987           hardcode_direct=no
6988         ;;
6989         motorola)
6990           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6991           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6992         ;;
6993       esac
6994       runpath_var='LD_RUN_PATH'
6995       hardcode_shlibpath_var=no
6996       ;;
6997
6998     sysv4.3*)
6999       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7000       hardcode_shlibpath_var=no
7001       export_dynamic_flag_spec='-Bexport'
7002       ;;
7003
7004     sysv4*MP*)
7005       if test -d /usr/nec; then
7006         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7007         hardcode_shlibpath_var=no
7008         runpath_var=LD_RUN_PATH
7009         hardcode_runpath_var=yes
7010         ld_shlibs=yes
7011       fi
7012       ;;
7013
7014     sysv4.2uw2*)
7015       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7016       hardcode_direct=yes
7017       hardcode_minus_L=no
7018       hardcode_shlibpath_var=no
7019       hardcode_runpath_var=yes
7020       runpath_var=LD_RUN_PATH
7021       ;;
7022
7023    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7024       no_undefined_flag='${wl}-z ${wl}text'
7025       if test "$GCC" = yes; then
7026         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7027       else
7028         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7029       fi
7030       runpath_var='LD_RUN_PATH'
7031       hardcode_shlibpath_var=no
7032       ;;
7033
7034     sysv5*)
7035       no_undefined_flag=' -z text'
7036       # $CC -shared without GNU ld will not create a library from C++
7037       # object files and a static libstdc++, better avoid it by now
7038       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7039       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7040                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7041       hardcode_libdir_flag_spec=
7042       hardcode_shlibpath_var=no
7043       runpath_var='LD_RUN_PATH'
7044       ;;
7045
7046     uts4*)
7047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7048       hardcode_libdir_flag_spec='-L$libdir'
7049       hardcode_shlibpath_var=no
7050       ;;
7051
7052     *)
7053       ld_shlibs=no
7054       ;;
7055     esac
7056   fi
7057
7058 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7059 echo "${ECHO_T}$ld_shlibs" >&6
7060 test "$ld_shlibs" = no && can_build_shared=no
7061
7062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7063 if test "$GCC" = yes; then
7064   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7065 fi
7066
7067 #
7068 # Do we need to explicitly link libc?
7069 #
7070 case "x$archive_cmds_need_lc" in
7071 x|xyes)
7072   # Assume -lc should be added
7073   archive_cmds_need_lc=yes
7074
7075   if test "$enable_shared" = yes && test "$GCC" = yes; then
7076     case $archive_cmds in
7077     *'~'*)
7078       # FIXME: we may have to deal with multi-command sequences.
7079       ;;
7080     '$CC '*)
7081       # Test whether the compiler implicitly links with -lc since on some
7082       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7083       # to ld, don't add -lc before -lgcc.
7084       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7085 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7086       $rm conftest*
7087       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7088
7089       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090   (eval $ac_compile) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } 2>conftest.err; then
7094         soname=conftest
7095         lib=conftest
7096         libobjs=conftest.$ac_objext
7097         deplibs=
7098         wl=$lt_prog_compiler_wl
7099         compiler_flags=-v
7100         linker_flags=-v
7101         verstring=
7102         output_objdir=.
7103         libname=conftest
7104         lt_save_allow_undefined_flag=$allow_undefined_flag
7105         allow_undefined_flag=
7106         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7107   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }
7111         then
7112           archive_cmds_need_lc=no
7113         else
7114           archive_cmds_need_lc=yes
7115         fi
7116         allow_undefined_flag=$lt_save_allow_undefined_flag
7117       else
7118         cat conftest.err 1>&5
7119       fi
7120       $rm conftest*
7121       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7122 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7123       ;;
7124     esac
7125   fi
7126   ;;
7127 esac
7128
7129 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7130 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7131 library_names_spec=
7132 libname_spec='lib$name'
7133 soname_spec=
7134 shrext=".so"
7135 postinstall_cmds=
7136 postuninstall_cmds=
7137 finish_cmds=
7138 finish_eval=
7139 shlibpath_var=
7140 shlibpath_overrides_runpath=unknown
7141 version_type=none
7142 dynamic_linker="$host_os ld.so"
7143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7144 if test "$GCC" = yes; then
7145   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7146   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7147     # if the path contains ";" then we assume it to be the separator
7148     # otherwise default to the standard path separator (i.e. ":") - it is
7149     # assumed that no part of a normal pathname contains ";" but that should
7150     # okay in the real world where ";" in dirpaths is itself problematic.
7151     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7152   else
7153     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7154   fi
7155 else
7156   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7157 fi
7158 need_lib_prefix=unknown
7159 hardcode_into_libs=no
7160
7161 # when you set need_version to no, make sure it does not cause -set_version
7162 # flags to be left without arguments
7163 need_version=unknown
7164
7165 case $host_os in
7166 aix3*)
7167   version_type=linux
7168   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7169   shlibpath_var=LIBPATH
7170
7171   # AIX 3 has no versioning support, so we append a major version to the name.
7172   soname_spec='${libname}${release}${shared_ext}$major'
7173   ;;
7174
7175 aix4* | aix5*)
7176   version_type=linux
7177   need_lib_prefix=no
7178   need_version=no
7179   hardcode_into_libs=yes
7180   if test "$host_cpu" = ia64; then
7181     # AIX 5 supports IA64
7182     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7183     shlibpath_var=LD_LIBRARY_PATH
7184   else
7185     # With GCC up to 2.95.x, collect2 would create an import file
7186     # for dependence libraries.  The import file would start with
7187     # the line `#! .'.  This would cause the generated library to
7188     # depend on `.', always an invalid library.  This was fixed in
7189     # development snapshots of GCC prior to 3.0.
7190     case $host_os in
7191       aix4 | aix4.[01] | aix4.[01].*)
7192       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7193            echo ' yes '
7194            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7195         :
7196       else
7197         can_build_shared=no
7198       fi
7199       ;;
7200     esac
7201     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7202     # soname into executable. Probably we can add versioning support to
7203     # collect2, so additional links can be useful in future.
7204     if test "$aix_use_runtimelinking" = yes; then
7205       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7206       # instead of lib<name>.a to let people know that these are not
7207       # typical AIX shared libraries.
7208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7209     else
7210       # We preserve .a as extension for shared libraries through AIX4.2
7211       # and later when we are not doing run time linking.
7212       library_names_spec='${libname}${release}.a $libname.a'
7213       soname_spec='${libname}${release}${shared_ext}$major'
7214     fi
7215     shlibpath_var=LIBPATH
7216   fi
7217   ;;
7218
7219 amigaos*)
7220   library_names_spec='$libname.ixlibrary $libname.a'
7221   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7222   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'
7223   ;;
7224
7225 beos*)
7226   library_names_spec='${libname}${shared_ext}'
7227   dynamic_linker="$host_os ld.so"
7228   shlibpath_var=LIBRARY_PATH
7229   ;;
7230
7231 bsdi4*)
7232   version_type=linux
7233   need_version=no
7234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7235   soname_spec='${libname}${release}${shared_ext}$major'
7236   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7237   shlibpath_var=LD_LIBRARY_PATH
7238   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7239   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7240   # the default ld.so.conf also contains /usr/contrib/lib and
7241   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7242   # libtool to hard-code these into programs
7243   ;;
7244
7245 cygwin* | mingw* | pw32*)
7246   version_type=windows
7247   shrext=".dll"
7248   need_version=no
7249   need_lib_prefix=no
7250
7251   case $GCC,$host_os in
7252   yes,cygwin* | yes,mingw* | yes,pw32*)
7253     library_names_spec='$libname.dll.a'
7254     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7255     postinstall_cmds='base_file=`basename \${file}`~
7256       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7257       dldir=$destdir/`dirname \$dlpath`~
7258       test -d \$dldir || mkdir -p \$dldir~
7259       $install_prog $dir/$dlname \$dldir/$dlname'
7260     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7261       dlpath=$dir/\$dldll~
7262        $rm \$dlpath'
7263     shlibpath_overrides_runpath=yes
7264
7265     case $host_os in
7266     cygwin*)
7267       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7268       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7269       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7270       ;;
7271     mingw*)
7272       # MinGW DLLs use traditional 'lib' prefix
7273       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7274       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7275       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7276         # It is most probably a Windows format PATH printed by
7277         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7278         # path with ; separators, and with drive letters. We can handle the
7279         # drive letters (cygwin fileutils understands them), so leave them,
7280         # especially as we might pass files found there to a mingw objdump,
7281         # which wouldn't understand a cygwinified path. Ahh.
7282         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7283       else
7284         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7285       fi
7286       ;;
7287     pw32*)
7288       # pw32 DLLs use 'pw' prefix rather than 'lib'
7289       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7290       ;;
7291     esac
7292     ;;
7293
7294   *)
7295     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7296     ;;
7297   esac
7298   dynamic_linker='Win32 ld.exe'
7299   # FIXME: first we should search . and the directory the executable is in
7300   shlibpath_var=PATH
7301   ;;
7302
7303 darwin* | rhapsody*)
7304   dynamic_linker="$host_os dyld"
7305   version_type=darwin
7306   need_lib_prefix=no
7307   need_version=no
7308   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7309   soname_spec='${libname}${release}${major}$shared_ext'
7310   shlibpath_overrides_runpath=yes
7311   shlibpath_var=DYLD_LIBRARY_PATH
7312   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7313   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7314   if test "$GCC" = yes; then
7315     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"`
7316   else
7317     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7318   fi
7319   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7320   ;;
7321
7322 dgux*)
7323   version_type=linux
7324   need_lib_prefix=no
7325   need_version=no
7326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7327   soname_spec='${libname}${release}${shared_ext}$major'
7328   shlibpath_var=LD_LIBRARY_PATH
7329   ;;
7330
7331 freebsd1*)
7332   dynamic_linker=no
7333   ;;
7334
7335 kfreebsd*-gnu)
7336   version_type=linux
7337   need_lib_prefix=no
7338   need_version=no
7339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7340   soname_spec='${libname}${release}${shared_ext}$major'
7341   shlibpath_var=LD_LIBRARY_PATH
7342   shlibpath_overrides_runpath=no
7343   hardcode_into_libs=yes
7344   dynamic_linker='GNU ld.so'
7345   ;;
7346
7347 freebsd*)
7348   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7349   version_type=freebsd-$objformat
7350   case $version_type in
7351     freebsd-elf*)
7352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7353       need_version=no
7354       need_lib_prefix=no
7355       ;;
7356     freebsd-*)
7357       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7358       need_version=yes
7359       ;;
7360   esac
7361   shlibpath_var=LD_LIBRARY_PATH
7362   case $host_os in
7363   freebsd2*)
7364     shlibpath_overrides_runpath=yes
7365     ;;
7366   freebsd3.01* | freebsdelf3.01*)
7367     shlibpath_overrides_runpath=yes
7368     hardcode_into_libs=yes
7369     ;;
7370   *) # from 3.2 on
7371     shlibpath_overrides_runpath=no
7372     hardcode_into_libs=yes
7373     ;;
7374   esac
7375   ;;
7376
7377 gnu*)
7378   version_type=linux
7379   need_lib_prefix=no
7380   need_version=no
7381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7382   soname_spec='${libname}${release}${shared_ext}$major'
7383   shlibpath_var=LD_LIBRARY_PATH
7384   hardcode_into_libs=yes
7385   ;;
7386
7387 hpux9* | hpux10* | hpux11*)
7388   # Give a soname corresponding to the major version so that dld.sl refuses to
7389   # link against other versions.
7390   version_type=sunos
7391   need_lib_prefix=no
7392   need_version=no
7393   case "$host_cpu" in
7394   ia64*)
7395     shrext='.so'
7396     hardcode_into_libs=yes
7397     dynamic_linker="$host_os dld.so"
7398     shlibpath_var=LD_LIBRARY_PATH
7399     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7401     soname_spec='${libname}${release}${shared_ext}$major'
7402     if test "X$HPUX_IA64_MODE" = X32; then
7403       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7404     else
7405       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7406     fi
7407     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7408     ;;
7409    hppa*64*)
7410      shrext='.sl'
7411      hardcode_into_libs=yes
7412      dynamic_linker="$host_os dld.sl"
7413      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7414      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7416      soname_spec='${libname}${release}${shared_ext}$major'
7417      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7418      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7419      ;;
7420    *)
7421     shrext='.sl'
7422     dynamic_linker="$host_os dld.sl"
7423     shlibpath_var=SHLIB_PATH
7424     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7426     soname_spec='${libname}${release}${shared_ext}$major'
7427     ;;
7428   esac
7429   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7430   postinstall_cmds='chmod 555 $lib'
7431   ;;
7432
7433 irix5* | irix6* | nonstopux*)
7434   case $host_os in
7435     nonstopux*) version_type=nonstopux ;;
7436     *)
7437         if test "$lt_cv_prog_gnu_ld" = yes; then
7438                 version_type=linux
7439         else
7440                 version_type=irix
7441         fi ;;
7442   esac
7443   need_lib_prefix=no
7444   need_version=no
7445   soname_spec='${libname}${release}${shared_ext}$major'
7446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7447   case $host_os in
7448   irix5* | nonstopux*)
7449     libsuff= shlibsuff=
7450     ;;
7451   *)
7452     case $LD in # libtool.m4 will add one of these switches to LD
7453     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7454       libsuff= shlibsuff= libmagic=32-bit;;
7455     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7456       libsuff=32 shlibsuff=N32 libmagic=N32;;
7457     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7458       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7459     *) libsuff= shlibsuff= libmagic=never-match;;
7460     esac
7461     ;;
7462   esac
7463   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7464   shlibpath_overrides_runpath=no
7465   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7466   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7467   hardcode_into_libs=yes
7468   ;;
7469
7470 # No shared lib support for Linux oldld, aout, or coff.
7471 linux*oldld* | linux*aout* | linux*coff*)
7472   dynamic_linker=no
7473   ;;
7474
7475 # This must be Linux ELF.
7476 linux*)
7477   version_type=linux
7478   need_lib_prefix=no
7479   need_version=no
7480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7481   soname_spec='${libname}${release}${shared_ext}$major'
7482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7483   shlibpath_var=LD_LIBRARY_PATH
7484   shlibpath_overrides_runpath=no
7485   # This implies no fast_install, which is unacceptable.
7486   # Some rework will be needed to allow for fast_install
7487   # before this can be enabled.
7488   hardcode_into_libs=yes
7489
7490   # /usr/X11R6/lib and /usr/local/lib are common enough...
7491   sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
7492
7493   # We used to test for /lib/ld.so.1 and disable shared libraries on
7494   # powerpc, because MkLinux only supported shared libraries with the
7495   # GNU dynamic linker.  Since this was broken with cross compilers,
7496   # most powerpc-linux boxes support dynamic linking these days and
7497   # people can always --disable-shared, the test was removed, and we
7498   # assume the GNU/Linux dynamic linker is in use.
7499   dynamic_linker='GNU/Linux ld.so'
7500   ;;
7501
7502 knetbsd*-gnu)
7503   version_type=linux
7504   need_lib_prefix=no
7505   need_version=no
7506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7507   soname_spec='${libname}${release}${shared_ext}$major'
7508   shlibpath_var=LD_LIBRARY_PATH
7509   shlibpath_overrides_runpath=no
7510   hardcode_into_libs=yes
7511   dynamic_linker='GNU ld.so'
7512   ;;
7513
7514 netbsd*)
7515   version_type=sunos
7516   need_lib_prefix=no
7517   need_version=no
7518   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7520     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7521     dynamic_linker='NetBSD (a.out) ld.so'
7522   else
7523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7524     soname_spec='${libname}${release}${shared_ext}$major'
7525     dynamic_linker='NetBSD ld.elf_so'
7526   fi
7527   shlibpath_var=LD_LIBRARY_PATH
7528   shlibpath_overrides_runpath=yes
7529   hardcode_into_libs=yes
7530   ;;
7531
7532 newsos6)
7533   version_type=linux
7534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7535   shlibpath_var=LD_LIBRARY_PATH
7536   shlibpath_overrides_runpath=yes
7537   ;;
7538
7539 nto-qnx*)
7540   version_type=linux
7541   need_lib_prefix=no
7542   need_version=no
7543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7544   soname_spec='${libname}${release}${shared_ext}$major'
7545   shlibpath_var=LD_LIBRARY_PATH
7546   shlibpath_overrides_runpath=yes
7547   ;;
7548
7549 openbsd*)
7550   version_type=sunos
7551   need_lib_prefix=no
7552   need_version=yes
7553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7555   shlibpath_var=LD_LIBRARY_PATH
7556   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7557     case $host_os in
7558       openbsd2.[89] | openbsd2.[89].*)
7559         shlibpath_overrides_runpath=no
7560         ;;
7561       *)
7562         shlibpath_overrides_runpath=yes
7563         ;;
7564       esac
7565   else
7566     shlibpath_overrides_runpath=yes
7567   fi
7568   ;;
7569
7570 os2*)
7571   libname_spec='$name'
7572   shrext=".dll"
7573   need_lib_prefix=no
7574   library_names_spec='$libname${shared_ext} $libname.a'
7575   dynamic_linker='OS/2 ld.exe'
7576   shlibpath_var=LIBPATH
7577   ;;
7578
7579 osf3* | osf4* | osf5*)
7580   version_type=osf
7581   need_lib_prefix=no
7582   need_version=no
7583   soname_spec='${libname}${release}${shared_ext}$major'
7584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7585   shlibpath_var=LD_LIBRARY_PATH
7586   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7587   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7588   ;;
7589
7590 sco3.2v5*)
7591   version_type=osf
7592   soname_spec='${libname}${release}${shared_ext}$major'
7593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7594   shlibpath_var=LD_LIBRARY_PATH
7595   ;;
7596
7597 solaris*)
7598   version_type=linux
7599   need_lib_prefix=no
7600   need_version=no
7601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602   soname_spec='${libname}${release}${shared_ext}$major'
7603   shlibpath_var=LD_LIBRARY_PATH
7604   shlibpath_overrides_runpath=yes
7605   hardcode_into_libs=yes
7606   # ldd complains unless libraries are executable
7607   postinstall_cmds='chmod +x $lib'
7608   ;;
7609
7610 sunos4*)
7611   version_type=sunos
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7613   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7614   shlibpath_var=LD_LIBRARY_PATH
7615   shlibpath_overrides_runpath=yes
7616   if test "$with_gnu_ld" = yes; then
7617     need_lib_prefix=no
7618   fi
7619   need_version=yes
7620   ;;
7621
7622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7623   version_type=linux
7624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625   soname_spec='${libname}${release}${shared_ext}$major'
7626   shlibpath_var=LD_LIBRARY_PATH
7627   case $host_vendor in
7628     sni)
7629       shlibpath_overrides_runpath=no
7630       need_lib_prefix=no
7631       export_dynamic_flag_spec='${wl}-Blargedynsym'
7632       runpath_var=LD_RUN_PATH
7633       ;;
7634     siemens)
7635       need_lib_prefix=no
7636       ;;
7637     motorola)
7638       need_lib_prefix=no
7639       need_version=no
7640       shlibpath_overrides_runpath=no
7641       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7642       ;;
7643   esac
7644   ;;
7645
7646 sysv4*MP*)
7647   if test -d /usr/nec ;then
7648     version_type=linux
7649     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7650     soname_spec='$libname${shared_ext}.$major'
7651     shlibpath_var=LD_LIBRARY_PATH
7652   fi
7653   ;;
7654
7655 uts4*)
7656   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
7660   ;;
7661
7662 *)
7663   dynamic_linker=no
7664   ;;
7665 esac
7666 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7667 echo "${ECHO_T}$dynamic_linker" >&6
7668 test "$dynamic_linker" = no && can_build_shared=no
7669
7670 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7671 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7672 hardcode_action=
7673 if test -n "$hardcode_libdir_flag_spec" || \
7674    test -n "$runpath_var " || \
7675    test "X$hardcode_automatic"="Xyes" ; then
7676
7677   # We can hardcode non-existant directories.
7678   if test "$hardcode_direct" != no &&
7679      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7680      # have to relink, otherwise we might link with an installed library
7681      # when we should be linking with a yet-to-be-installed one
7682      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7683      test "$hardcode_minus_L" != no; then
7684     # Linking always hardcodes the temporary library directory.
7685     hardcode_action=relink
7686   else
7687     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7688     hardcode_action=immediate
7689   fi
7690 else
7691   # We cannot hardcode anything, or else we can only hardcode existing
7692   # directories.
7693   hardcode_action=unsupported
7694 fi
7695 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7696 echo "${ECHO_T}$hardcode_action" >&6
7697
7698 if test "$hardcode_action" = relink; then
7699   # Fast installation is not supported
7700   enable_fast_install=no
7701 elif test "$shlibpath_overrides_runpath" = yes ||
7702      test "$enable_shared" = no; then
7703   # Fast installation is not necessary
7704   enable_fast_install=needless
7705 fi
7706
7707 striplib=
7708 old_striplib=
7709 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7710 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7711 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7712   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7713   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7714   echo "$as_me:$LINENO: result: yes" >&5
7715 echo "${ECHO_T}yes" >&6
7716 else
7717 # FIXME - insert some real tests, host_os isn't really good enough
7718   case $host_os in
7719    darwin*)
7720        if test -n "$STRIP" ; then
7721          striplib="$STRIP -x"
7722          echo "$as_me:$LINENO: result: yes" >&5
7723 echo "${ECHO_T}yes" >&6
7724        else
7725   echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7727 fi
7728        ;;
7729    *)
7730   echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6
7732     ;;
7733   esac
7734 fi
7735
7736 if test "x$enable_dlopen" != xyes; then
7737   enable_dlopen=unknown
7738   enable_dlopen_self=unknown
7739   enable_dlopen_self_static=unknown
7740 else
7741   lt_cv_dlopen=no
7742   lt_cv_dlopen_libs=
7743
7744   case $host_os in
7745   beos*)
7746     lt_cv_dlopen="load_add_on"
7747     lt_cv_dlopen_libs=
7748     lt_cv_dlopen_self=yes
7749     ;;
7750
7751   mingw* | pw32*)
7752     lt_cv_dlopen="LoadLibrary"
7753     lt_cv_dlopen_libs=
7754    ;;
7755
7756   cygwin*)
7757     lt_cv_dlopen="dlopen"
7758     lt_cv_dlopen_libs=
7759    ;;
7760
7761   darwin*)
7762   # if libdl is installed we need to link against it
7763     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7764 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   ac_check_lib_save_LIBS=$LIBS
7769 LIBS="-ldl  $LIBS"
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776
7777 /* Override any gcc2 internal prototype to avoid an error.  */
7778 #ifdef __cplusplus
7779 extern "C"
7780 #endif
7781 /* We use char because int might match the return type of a gcc2
7782    builtin and then its argument prototype would still apply.  */
7783 char dlopen ();
7784 int
7785 main ()
7786 {
7787 dlopen ();
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794   (eval $ac_link) 2>conftest.er1
7795   ac_status=$?
7796   grep -v '^ *+' conftest.er1 >conftest.err
7797   rm -f conftest.er1
7798   cat conftest.err >&5
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } &&
7801          { ac_try='test -z "$ac_c_werror_flag"
7802                          || test ! -s conftest.err'
7803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804   (eval $ac_try) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; } &&
7808          { ac_try='test -s conftest$ac_exeext'
7809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810   (eval $ac_try) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   ac_cv_lib_dl_dlopen=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_cv_lib_dl_dlopen=no
7820 fi
7821 rm -f conftest.err conftest.$ac_objext \
7822       conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7824 fi
7825 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7826 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7827 if test $ac_cv_lib_dl_dlopen = yes; then
7828   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7829 else
7830
7831     lt_cv_dlopen="dyld"
7832     lt_cv_dlopen_libs=
7833     lt_cv_dlopen_self=yes
7834
7835 fi
7836
7837    ;;
7838
7839   *)
7840     echo "$as_me:$LINENO: checking for shl_load" >&5
7841 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7842 if test "${ac_cv_func_shl_load+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7853 #define shl_load innocuous_shl_load
7854
7855 /* System header to define __stub macros and hopefully few prototypes,
7856     which can conflict with char shl_load (); below.
7857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7858     <limits.h> exists even on freestanding compilers.  */
7859
7860 #ifdef __STDC__
7861 # include <limits.h>
7862 #else
7863 # include <assert.h>
7864 #endif
7865
7866 #undef shl_load
7867
7868 /* Override any gcc2 internal prototype to avoid an error.  */
7869 #ifdef __cplusplus
7870 extern "C"
7871 {
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874    builtin and then its argument prototype would still apply.  */
7875 char shl_load ();
7876 /* The GNU C library defines this for functions which it implements
7877     to always fail with ENOSYS.  Some functions are actually named
7878     something starting with __ and the normal name is an alias.  */
7879 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7880 choke me
7881 #else
7882 char (*f) () = shl_load;
7883 #endif
7884 #ifdef __cplusplus
7885 }
7886 #endif
7887
7888 int
7889 main ()
7890 {
7891 return f != shl_load;
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898   (eval $ac_link) 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag"
7906                          || test ! -s conftest.err'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest$ac_exeext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   ac_cv_func_shl_load=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 ac_cv_func_shl_load=no
7924 fi
7925 rm -f conftest.err conftest.$ac_objext \
7926       conftest$ac_exeext conftest.$ac_ext
7927 fi
7928 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7929 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7930 if test $ac_cv_func_shl_load = yes; then
7931   lt_cv_dlopen="shl_load"
7932 else
7933   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7934 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7935 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   ac_check_lib_save_LIBS=$LIBS
7939 LIBS="-ldld  $LIBS"
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946
7947 /* Override any gcc2 internal prototype to avoid an error.  */
7948 #ifdef __cplusplus
7949 extern "C"
7950 #endif
7951 /* We use char because int might match the return type of a gcc2
7952    builtin and then its argument prototype would still apply.  */
7953 char shl_load ();
7954 int
7955 main ()
7956 {
7957 shl_load ();
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964   (eval $ac_link) 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -z "$ac_c_werror_flag"
7972                          || test ! -s conftest.err'
7973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974   (eval $ac_try) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   ac_cv_lib_dld_shl_load=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ac_cv_lib_dld_shl_load=no
7990 fi
7991 rm -f conftest.err conftest.$ac_objext \
7992       conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7994 fi
7995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7997 if test $ac_cv_lib_dld_shl_load = yes; then
7998   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7999 else
8000   echo "$as_me:$LINENO: checking for dlopen" >&5
8001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8002 if test "${ac_cv_func_dlopen+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8013 #define dlopen innocuous_dlopen
8014
8015 /* System header to define __stub macros and hopefully few prototypes,
8016     which can conflict with char dlopen (); below.
8017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8018     <limits.h> exists even on freestanding compilers.  */
8019
8020 #ifdef __STDC__
8021 # include <limits.h>
8022 #else
8023 # include <assert.h>
8024 #endif
8025
8026 #undef dlopen
8027
8028 /* Override any gcc2 internal prototype to avoid an error.  */
8029 #ifdef __cplusplus
8030 extern "C"
8031 {
8032 #endif
8033 /* We use char because int might match the return type of a gcc2
8034    builtin and then its argument prototype would still apply.  */
8035 char dlopen ();
8036 /* The GNU C library defines this for functions which it implements
8037     to always fail with ENOSYS.  Some functions are actually named
8038     something starting with __ and the normal name is an alias.  */
8039 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8040 choke me
8041 #else
8042 char (*f) () = dlopen;
8043 #endif
8044 #ifdef __cplusplus
8045 }
8046 #endif
8047
8048 int
8049 main ()
8050 {
8051 return f != dlopen;
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_cv_func_dlopen=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_cv_func_dlopen=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087 fi
8088 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8089 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8090 if test $ac_cv_func_dlopen = yes; then
8091   lt_cv_dlopen="dlopen"
8092 else
8093   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8094 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8095 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   ac_check_lib_save_LIBS=$LIBS
8099 LIBS="-ldl  $LIBS"
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106
8107 /* Override any gcc2 internal prototype to avoid an error.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112    builtin and then its argument prototype would still apply.  */
8113 char dlopen ();
8114 int
8115 main ()
8116 {
8117 dlopen ();
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124   (eval $ac_link) 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -z "$ac_c_werror_flag"
8132                          || test ! -s conftest.err'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_cv_lib_dl_dlopen=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_cv_lib_dl_dlopen=no
8150 fi
8151 rm -f conftest.err conftest.$ac_objext \
8152       conftest$ac_exeext conftest.$ac_ext
8153 LIBS=$ac_check_lib_save_LIBS
8154 fi
8155 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8156 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8157 if test $ac_cv_lib_dl_dlopen = yes; then
8158   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8159 else
8160   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8161 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8162 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   ac_check_lib_save_LIBS=$LIBS
8166 LIBS="-lsvld  $LIBS"
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 /* Override any gcc2 internal prototype to avoid an error.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179    builtin and then its argument prototype would still apply.  */
8180 char dlopen ();
8181 int
8182 main ()
8183 {
8184 dlopen ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191   (eval $ac_link) 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -z "$ac_c_werror_flag"
8199                          || test ! -s conftest.err'
8200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201   (eval $ac_try) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; } &&
8205          { ac_try='test -s conftest$ac_exeext'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; }; then
8211   ac_cv_lib_svld_dlopen=yes
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_lib_svld_dlopen=no
8217 fi
8218 rm -f conftest.err conftest.$ac_objext \
8219       conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_check_lib_save_LIBS
8221 fi
8222 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8223 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8224 if test $ac_cv_lib_svld_dlopen = yes; then
8225   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8226 else
8227   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8228 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8229 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-ldld  $LIBS"
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240
8241 /* Override any gcc2 internal prototype to avoid an error.  */
8242 #ifdef __cplusplus
8243 extern "C"
8244 #endif
8245 /* We use char because int might match the return type of a gcc2
8246    builtin and then its argument prototype would still apply.  */
8247 char dld_link ();
8248 int
8249 main ()
8250 {
8251 dld_link ();
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258   (eval $ac_link) 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } &&
8265          { ac_try='test -z "$ac_c_werror_flag"
8266                          || test ! -s conftest.err'
8267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268   (eval $ac_try) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; } &&
8272          { ac_try='test -s conftest$ac_exeext'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   ac_cv_lib_dld_dld_link=yes
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_cv_lib_dld_dld_link=no
8284 fi
8285 rm -f conftest.err conftest.$ac_objext \
8286       conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8288 fi
8289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8291 if test $ac_cv_lib_dld_dld_link = yes; then
8292   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8293 fi
8294
8295
8296 fi
8297
8298
8299 fi
8300
8301
8302 fi
8303
8304
8305 fi
8306
8307
8308 fi
8309
8310     ;;
8311   esac
8312
8313   if test "x$lt_cv_dlopen" != xno; then
8314     enable_dlopen=yes
8315   else
8316     enable_dlopen=no
8317   fi
8318
8319   case $lt_cv_dlopen in
8320   dlopen)
8321     save_CPPFLAGS="$CPPFLAGS"
8322     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8323
8324     save_LDFLAGS="$LDFLAGS"
8325     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8326
8327     save_LIBS="$LIBS"
8328     LIBS="$lt_cv_dlopen_libs $LIBS"
8329
8330     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8331 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8332 if test "${lt_cv_dlopen_self+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335           if test "$cross_compiling" = yes; then :
8336   lt_cv_dlopen_self=cross
8337 else
8338   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8339   lt_status=$lt_dlunknown
8340   cat > conftest.$ac_ext <<EOF
8341 #line 8341 "configure"
8342 #include "confdefs.h"
8343
8344 #if HAVE_DLFCN_H
8345 #include <dlfcn.h>
8346 #endif
8347
8348 #include <stdio.h>
8349
8350 #ifdef RTLD_GLOBAL
8351 #  define LT_DLGLOBAL           RTLD_GLOBAL
8352 #else
8353 #  ifdef DL_GLOBAL
8354 #    define LT_DLGLOBAL         DL_GLOBAL
8355 #  else
8356 #    define LT_DLGLOBAL         0
8357 #  endif
8358 #endif
8359
8360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8361    find out it does not work in some platform. */
8362 #ifndef LT_DLLAZY_OR_NOW
8363 #  ifdef RTLD_LAZY
8364 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8365 #  else
8366 #    ifdef DL_LAZY
8367 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8368 #    else
8369 #      ifdef RTLD_NOW
8370 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8371 #      else
8372 #        ifdef DL_NOW
8373 #          define LT_DLLAZY_OR_NOW      DL_NOW
8374 #        else
8375 #          define LT_DLLAZY_OR_NOW      0
8376 #        endif
8377 #      endif
8378 #    endif
8379 #  endif
8380 #endif
8381
8382 #ifdef __cplusplus
8383 extern "C" void exit (int);
8384 #endif
8385
8386 void fnord() { int i=42;}
8387 int main ()
8388 {
8389   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8390   int status = $lt_dlunknown;
8391
8392   if (self)
8393     {
8394       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8395       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8396       /* dlclose (self); */
8397     }
8398
8399     exit (status);
8400 }
8401 EOF
8402   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403   (eval $ac_link) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8407     (./conftest; exit; ) 2>/dev/null
8408     lt_status=$?
8409     case x$lt_status in
8410       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8411       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8412       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8413     esac
8414   else :
8415     # compilation failed
8416     lt_cv_dlopen_self=no
8417   fi
8418 fi
8419 rm -fr conftest*
8420
8421
8422 fi
8423 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8424 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8425
8426     if test "x$lt_cv_dlopen_self" = xyes; then
8427       LDFLAGS="$LDFLAGS $link_static_flag"
8428       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8429 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8430 if test "${lt_cv_dlopen_self_static+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433           if test "$cross_compiling" = yes; then :
8434   lt_cv_dlopen_self_static=cross
8435 else
8436   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8437   lt_status=$lt_dlunknown
8438   cat > conftest.$ac_ext <<EOF
8439 #line 8439 "configure"
8440 #include "confdefs.h"
8441
8442 #if HAVE_DLFCN_H
8443 #include <dlfcn.h>
8444 #endif
8445
8446 #include <stdio.h>
8447
8448 #ifdef RTLD_GLOBAL
8449 #  define LT_DLGLOBAL           RTLD_GLOBAL
8450 #else
8451 #  ifdef DL_GLOBAL
8452 #    define LT_DLGLOBAL         DL_GLOBAL
8453 #  else
8454 #    define LT_DLGLOBAL         0
8455 #  endif
8456 #endif
8457
8458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8459    find out it does not work in some platform. */
8460 #ifndef LT_DLLAZY_OR_NOW
8461 #  ifdef RTLD_LAZY
8462 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8463 #  else
8464 #    ifdef DL_LAZY
8465 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8466 #    else
8467 #      ifdef RTLD_NOW
8468 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8469 #      else
8470 #        ifdef DL_NOW
8471 #          define LT_DLLAZY_OR_NOW      DL_NOW
8472 #        else
8473 #          define LT_DLLAZY_OR_NOW      0
8474 #        endif
8475 #      endif
8476 #    endif
8477 #  endif
8478 #endif
8479
8480 #ifdef __cplusplus
8481 extern "C" void exit (int);
8482 #endif
8483
8484 void fnord() { int i=42;}
8485 int main ()
8486 {
8487   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8488   int status = $lt_dlunknown;
8489
8490   if (self)
8491     {
8492       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8493       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8494       /* dlclose (self); */
8495     }
8496
8497     exit (status);
8498 }
8499 EOF
8500   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8505     (./conftest; exit; ) 2>/dev/null
8506     lt_status=$?
8507     case x$lt_status in
8508       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8509       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8510       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8511     esac
8512   else :
8513     # compilation failed
8514     lt_cv_dlopen_self_static=no
8515   fi
8516 fi
8517 rm -fr conftest*
8518
8519
8520 fi
8521 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8522 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8523     fi
8524
8525     CPPFLAGS="$save_CPPFLAGS"
8526     LDFLAGS="$save_LDFLAGS"
8527     LIBS="$save_LIBS"
8528     ;;
8529   esac
8530
8531   case $lt_cv_dlopen_self in
8532   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8533   *) enable_dlopen_self=unknown ;;
8534   esac
8535
8536   case $lt_cv_dlopen_self_static in
8537   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8538   *) enable_dlopen_self_static=unknown ;;
8539   esac
8540 fi
8541
8542
8543 # Report which librarie types wil actually be built
8544 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8545 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8546 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8547 echo "${ECHO_T}$can_build_shared" >&6
8548
8549 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8550 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8551 test "$can_build_shared" = "no" && enable_shared=no
8552
8553 # On AIX, shared libraries and static libraries use the same namespace, and
8554 # are all built from PIC.
8555 case "$host_os" in
8556 aix3*)
8557   test "$enable_shared" = yes && enable_static=no
8558   if test -n "$RANLIB"; then
8559     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8560     postinstall_cmds='$RANLIB $lib'
8561   fi
8562   ;;
8563
8564 aix4*)
8565   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8566     test "$enable_shared" = yes && enable_static=no
8567   fi
8568   ;;
8569   darwin* | rhapsody*)
8570   if test "$GCC" = yes; then
8571     archive_cmds_need_lc=no
8572     case "$host_os" in
8573     rhapsody* | darwin1.[012])
8574       allow_undefined_flag='-undefined suppress'
8575       ;;
8576     *) # Darwin 1.3 on
8577       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8578         allow_undefined_flag='-flat_namespace -undefined suppress'
8579       else
8580         case ${MACOSX_DEPLOYMENT_TARGET} in
8581           10.[012])
8582             allow_undefined_flag='-flat_namespace -undefined suppress'
8583             ;;
8584           10.*)
8585             allow_undefined_flag='-undefined dynamic_lookup'
8586             ;;
8587         esac
8588       fi
8589       ;;
8590     esac
8591     output_verbose_link_cmd='echo'
8592     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8593     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8594     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8595     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}'
8596     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}'
8597     hardcode_direct=no
8598     hardcode_automatic=yes
8599     hardcode_shlibpath_var=unsupported
8600     whole_archive_flag_spec='-all_load $convenience'
8601     link_all_deplibs=yes
8602   else
8603     ld_shlibs=no
8604   fi
8605     ;;
8606 esac
8607 echo "$as_me:$LINENO: result: $enable_shared" >&5
8608 echo "${ECHO_T}$enable_shared" >&6
8609
8610 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8611 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8612 # Make sure either enable_shared or enable_static is yes.
8613 test "$enable_shared" = yes || enable_static=yes
8614 echo "$as_me:$LINENO: result: $enable_static" >&5
8615 echo "${ECHO_T}$enable_static" >&6
8616
8617 # The else clause should only fire when bootstrapping the
8618 # libtool distribution, otherwise you forgot to ship ltmain.sh
8619 # with your package, and you will get complaints that there are
8620 # no rules to generate ltmain.sh.
8621 if test -f "$ltmain"; then
8622   # See if we are running on zsh, and set the options which allow our commands through
8623   # without removal of \ escapes.
8624   if test -n "${ZSH_VERSION+set}" ; then
8625     setopt NO_GLOB_SUBST
8626   fi
8627   # Now quote all the things that may contain metacharacters while being
8628   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8629   # variables and quote the copies for generation of the libtool script.
8630   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8631     SED SHELL STRIP \
8632     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8633     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8634     deplibs_check_method reload_flag reload_cmds need_locks \
8635     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8636     lt_cv_sys_global_symbol_to_c_name_address \
8637     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8638     old_postinstall_cmds old_postuninstall_cmds \
8639     compiler \
8640     CC \
8641     LD \
8642     lt_prog_compiler_wl \
8643     lt_prog_compiler_pic \
8644     lt_prog_compiler_static \
8645     lt_prog_compiler_no_builtin_flag \
8646     export_dynamic_flag_spec \
8647     thread_safe_flag_spec \
8648     whole_archive_flag_spec \
8649     enable_shared_with_static_runtimes \
8650     old_archive_cmds \
8651     old_archive_from_new_cmds \
8652     predep_objects \
8653     postdep_objects \
8654     predeps \
8655     postdeps \
8656     compiler_lib_search_path \
8657     archive_cmds \
8658     archive_expsym_cmds \
8659     postinstall_cmds \
8660     postuninstall_cmds \
8661     old_archive_from_expsyms_cmds \
8662     allow_undefined_flag \
8663     no_undefined_flag \
8664     export_symbols_cmds \
8665     hardcode_libdir_flag_spec \
8666     hardcode_libdir_flag_spec_ld \
8667     hardcode_libdir_separator \
8668     hardcode_automatic \
8669     module_cmds \
8670     module_expsym_cmds \
8671     lt_cv_prog_compiler_c_o \
8672     exclude_expsyms \
8673     include_expsyms; do
8674
8675     case $var in
8676     old_archive_cmds | \
8677     old_archive_from_new_cmds | \
8678     archive_cmds | \
8679     archive_expsym_cmds | \
8680     module_cmds | \
8681     module_expsym_cmds | \
8682     old_archive_from_expsyms_cmds | \
8683     export_symbols_cmds | \
8684     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8685     postinstall_cmds | postuninstall_cmds | \
8686     old_postinstall_cmds | old_postuninstall_cmds | \
8687     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8688       # Double-quote double-evaled strings.
8689       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8690       ;;
8691     *)
8692       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8693       ;;
8694     esac
8695   done
8696
8697   case $lt_echo in
8698   *'\$0 --fallback-echo"')
8699     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8700     ;;
8701   esac
8702
8703 cfgfile="${ofile}T"
8704   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8705   $rm -f "$cfgfile"
8706   { echo "$as_me:$LINENO: creating $ofile" >&5
8707 echo "$as_me: creating $ofile" >&6;}
8708
8709   cat <<__EOF__ >> "$cfgfile"
8710 #! $SHELL
8711
8712 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8713 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8714 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8715 #
8716 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8717 # Free Software Foundation, Inc.
8718 #
8719 # This file is part of GNU Libtool:
8720 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8721 #
8722 # This program is free software; you can redistribute it and/or modify
8723 # it under the terms of the GNU General Public License as published by
8724 # the Free Software Foundation; either version 2 of the License, or
8725 # (at your option) any later version.
8726 #
8727 # This program is distributed in the hope that it will be useful, but
8728 # WITHOUT ANY WARRANTY; without even the implied warranty of
8729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8730 # General Public License for more details.
8731 #
8732 # You should have received a copy of the GNU General Public License
8733 # along with this program; if not, write to the Free Software
8734 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8735 #
8736 # As a special exception to the GNU General Public License, if you
8737 # distribute this file as part of a program that contains a
8738 # configuration script generated by Autoconf, you may include it under
8739 # the same distribution terms that you use for the rest of that program.
8740
8741 # A sed program that does not truncate output.
8742 SED=$lt_SED
8743
8744 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8745 Xsed="$SED -e s/^X//"
8746
8747 # The HP-UX ksh and POSIX shell print the target directory to stdout
8748 # if CDPATH is set.
8749 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8750
8751 # The names of the tagged configurations supported by this script.
8752 available_tags=
8753
8754 # ### BEGIN LIBTOOL CONFIG
8755
8756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8757
8758 # Shell to use when invoking shell scripts.
8759 SHELL=$lt_SHELL
8760
8761 # Whether or not to build shared libraries.
8762 build_libtool_libs=$enable_shared
8763
8764 # Whether or not to build static libraries.
8765 build_old_libs=$enable_static
8766
8767 # Whether or not to add -lc for building shared libraries.
8768 build_libtool_need_lc=$archive_cmds_need_lc
8769
8770 # Whether or not to disallow shared libs when runtime libs are static
8771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8772
8773 # Whether or not to optimize for fast installation.
8774 fast_install=$enable_fast_install
8775
8776 # The host system.
8777 host_alias=$host_alias
8778 host=$host
8779
8780 # An echo program that does not interpret backslashes.
8781 echo=$lt_echo
8782
8783 # The archiver.
8784 AR=$lt_AR
8785 AR_FLAGS=$lt_AR_FLAGS
8786
8787 # A C compiler.
8788 LTCC=$lt_LTCC
8789
8790 # A language-specific compiler.
8791 CC=$lt_compiler
8792
8793 # Is the compiler the GNU C compiler?
8794 with_gcc=$GCC
8795
8796 # An ERE matcher.
8797 EGREP=$lt_EGREP
8798
8799 # The linker used to build libraries.
8800 LD=$lt_LD
8801
8802 # Whether we need hard or soft links.
8803 LN_S=$lt_LN_S
8804
8805 # A BSD-compatible nm program.
8806 NM=$lt_NM
8807
8808 # A symbol stripping program
8809 STRIP=$lt_STRIP
8810
8811 # Used to examine libraries when file_magic_cmd begins "file"
8812 MAGIC_CMD=$MAGIC_CMD
8813
8814 # Used on cygwin: DLL creation program.
8815 DLLTOOL="$DLLTOOL"
8816
8817 # Used on cygwin: object dumper.
8818 OBJDUMP="$OBJDUMP"
8819
8820 # Used on cygwin: assembler.
8821 AS="$AS"
8822
8823 # The name of the directory that contains temporary libtool files.
8824 objdir=$objdir
8825
8826 # How to create reloadable object files.
8827 reload_flag=$lt_reload_flag
8828 reload_cmds=$lt_reload_cmds
8829
8830 # How to pass a linker flag through the compiler.
8831 wl=$lt_lt_prog_compiler_wl
8832
8833 # Object file suffix (normally "o").
8834 objext="$ac_objext"
8835
8836 # Old archive suffix (normally "a").
8837 libext="$libext"
8838
8839 # Shared library suffix (normally ".so").
8840 shrext='$shrext'
8841
8842 # Executable file suffix (normally "").
8843 exeext="$exeext"
8844
8845 # Additional compiler flags for building library objects.
8846 pic_flag=$lt_lt_prog_compiler_pic
8847 pic_mode=$pic_mode
8848
8849 # What is the maximum length of a command?
8850 max_cmd_len=$lt_cv_sys_max_cmd_len
8851
8852 # Does compiler simultaneously support -c and -o options?
8853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8854
8855 # Must we lock files when doing compilation ?
8856 need_locks=$lt_need_locks
8857
8858 # Do we need the lib prefix for modules?
8859 need_lib_prefix=$need_lib_prefix
8860
8861 # Do we need a version for libraries?
8862 need_version=$need_version
8863
8864 # Whether dlopen is supported.
8865 dlopen_support=$enable_dlopen
8866
8867 # Whether dlopen of programs is supported.
8868 dlopen_self=$enable_dlopen_self
8869
8870 # Whether dlopen of statically linked programs is supported.
8871 dlopen_self_static=$enable_dlopen_self_static
8872
8873 # Compiler flag to prevent dynamic linking.
8874 link_static_flag=$lt_lt_prog_compiler_static
8875
8876 # Compiler flag to turn off builtin functions.
8877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8878
8879 # Compiler flag to allow reflexive dlopens.
8880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8881
8882 # Compiler flag to generate shared objects directly from archives.
8883 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8884
8885 # Compiler flag to generate thread-safe objects.
8886 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8887
8888 # Library versioning type.
8889 version_type=$version_type
8890
8891 # Format of library name prefix.
8892 libname_spec=$lt_libname_spec
8893
8894 # List of archive names.  First name is the real one, the rest are links.
8895 # The last name is the one that the linker finds with -lNAME.
8896 library_names_spec=$lt_library_names_spec
8897
8898 # The coded name of the library, if different from the real name.
8899 soname_spec=$lt_soname_spec
8900
8901 # Commands used to build and install an old-style archive.
8902 RANLIB=$lt_RANLIB
8903 old_archive_cmds=$lt_old_archive_cmds
8904 old_postinstall_cmds=$lt_old_postinstall_cmds
8905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8906
8907 # Create an old-style archive from a shared archive.
8908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8909
8910 # Create a temporary old-style archive to link instead of a shared archive.
8911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8912
8913 # Commands used to build and install a shared archive.
8914 archive_cmds=$lt_archive_cmds
8915 archive_expsym_cmds=$lt_archive_expsym_cmds
8916 postinstall_cmds=$lt_postinstall_cmds
8917 postuninstall_cmds=$lt_postuninstall_cmds
8918
8919 # Commands used to build a loadable module (assumed same as above if empty)
8920 module_cmds=$lt_module_cmds
8921 module_expsym_cmds=$lt_module_expsym_cmds
8922
8923 # Commands to strip libraries.
8924 old_striplib=$lt_old_striplib
8925 striplib=$lt_striplib
8926
8927 # Dependencies to place before the objects being linked to create a
8928 # shared library.
8929 predep_objects=$lt_predep_objects
8930
8931 # Dependencies to place after the objects being linked to create a
8932 # shared library.
8933 postdep_objects=$lt_postdep_objects
8934
8935 # Dependencies to place before the objects being linked to create a
8936 # shared library.
8937 predeps=$lt_predeps
8938
8939 # Dependencies to place after the objects being linked to create a
8940 # shared library.
8941 postdeps=$lt_postdeps
8942
8943 # The library search path used internally by the compiler when linking
8944 # a shared library.
8945 compiler_lib_search_path=$lt_compiler_lib_search_path
8946
8947 # Method to check whether dependent libraries are shared objects.
8948 deplibs_check_method=$lt_deplibs_check_method
8949
8950 # Command to use when deplibs_check_method == file_magic.
8951 file_magic_cmd=$lt_file_magic_cmd
8952
8953 # Flag that allows shared libraries with undefined symbols to be built.
8954 allow_undefined_flag=$lt_allow_undefined_flag
8955
8956 # Flag that forces no undefined symbols.
8957 no_undefined_flag=$lt_no_undefined_flag
8958
8959 # Commands used to finish a libtool library installation in a directory.
8960 finish_cmds=$lt_finish_cmds
8961
8962 # Same as above, but a single script fragment to be evaled but not shown.
8963 finish_eval=$lt_finish_eval
8964
8965 # Take the output of nm and produce a listing of raw symbols and C names.
8966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8967
8968 # Transform the output of nm in a proper C declaration
8969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8970
8971 # Transform the output of nm in a C name address pair
8972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8973
8974 # This is the shared library runtime path variable.
8975 runpath_var=$runpath_var
8976
8977 # This is the shared library path variable.
8978 shlibpath_var=$shlibpath_var
8979
8980 # Is shlibpath searched before the hard-coded library search path?
8981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8982
8983 # How to hardcode a shared library path into an executable.
8984 hardcode_action=$hardcode_action
8985
8986 # Whether we should hardcode library paths into libraries.
8987 hardcode_into_libs=$hardcode_into_libs
8988
8989 # Flag to hardcode \$libdir into a binary during linking.
8990 # This must work even if \$libdir does not exist.
8991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8992
8993 # If ld is used when linking, flag to hardcode \$libdir into
8994 # a binary during linking. This must work even if \$libdir does
8995 # not exist.
8996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8997
8998 # Whether we need a single -rpath flag with a separated argument.
8999 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9000
9001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9002 # resulting binary.
9003 hardcode_direct=$hardcode_direct
9004
9005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9006 # resulting binary.
9007 hardcode_minus_L=$hardcode_minus_L
9008
9009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9010 # the resulting binary.
9011 hardcode_shlibpath_var=$hardcode_shlibpath_var
9012
9013 # Set to yes if building a shared library automatically hardcodes DIR into the library
9014 # and all subsequent libraries and executables linked against it.
9015 hardcode_automatic=$hardcode_automatic
9016
9017 # Variables whose values should be saved in libtool wrapper scripts and
9018 # restored at relink time.
9019 variables_saved_for_relink="$variables_saved_for_relink"
9020
9021 # Whether libtool must link a program against all its dependency libraries.
9022 link_all_deplibs=$link_all_deplibs
9023
9024 # Compile-time system search path for libraries
9025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9026
9027 # Run-time system search path for libraries
9028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9029
9030 # Fix the shell variable \$srcfile for the compiler.
9031 fix_srcfile_path="$fix_srcfile_path"
9032
9033 # Set to yes if exported symbols are required.
9034 always_export_symbols=$always_export_symbols
9035
9036 # The commands to list exported symbols.
9037 export_symbols_cmds=$lt_export_symbols_cmds
9038
9039 # The commands to extract the exported symbol list from a shared archive.
9040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9041
9042 # Symbols that should not be listed in the preloaded symbols.
9043 exclude_expsyms=$lt_exclude_expsyms
9044
9045 # Symbols that must always be exported.
9046 include_expsyms=$lt_include_expsyms
9047
9048 # ### END LIBTOOL CONFIG
9049
9050 __EOF__
9051
9052
9053   case $host_os in
9054   aix3*)
9055     cat <<\EOF >> "$cfgfile"
9056
9057 # AIX sometimes has problems with the GCC collect2 program.  For some
9058 # reason, if we set the COLLECT_NAMES environment variable, the problems
9059 # vanish in a puff of smoke.
9060 if test "X${COLLECT_NAMES+set}" != Xset; then
9061   COLLECT_NAMES=
9062   export COLLECT_NAMES
9063 fi
9064 EOF
9065     ;;
9066   esac
9067
9068   # We use sed instead of cat because bash on DJGPP gets confused if
9069   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9070   # text mode, it properly converts lines to CR/LF.  This bash problem
9071   # is reportedly fixed, but why not run on old versions too?
9072   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9073
9074   mv -f "$cfgfile" "$ofile" || \
9075     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9076   chmod +x "$ofile"
9077
9078 else
9079   # If there is no Makefile yet, we rely on a make rule to execute
9080   # `config.status --recheck' to rerun these tests and create the
9081   # libtool script then.
9082   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9083   if test -f "$ltmain_in"; then
9084     test -f Makefile && make "$ltmain"
9085   fi
9086 fi
9087
9088
9089 ac_ext=c
9090 ac_cpp='$CPP $CPPFLAGS'
9091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9094
9095 CC="$lt_save_CC"
9096
9097
9098 # Check whether --with-tags or --without-tags was given.
9099 if test "${with_tags+set}" = set; then
9100   withval="$with_tags"
9101   tagnames="$withval"
9102 fi;
9103
9104 if test -f "$ltmain" && test -n "$tagnames"; then
9105   if test ! -f "${ofile}"; then
9106     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9107 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9108   fi
9109
9110   if test -z "$LTCC"; then
9111     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9112     if test -z "$LTCC"; then
9113       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9114 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9115     else
9116       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9117 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9118     fi
9119   fi
9120
9121   # Extract list of available tagged configurations in $ofile.
9122   # Note that this assumes the entire list is on one line.
9123   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9124
9125   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9126   for tagname in $tagnames; do
9127     IFS="$lt_save_ifs"
9128     # Check whether tagname contains only valid characters
9129     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9130     "") ;;
9131     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9132 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9133    { (exit 1); exit 1; }; }
9134         ;;
9135     esac
9136
9137     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9138     then
9139       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9140 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9141    { (exit 1); exit 1; }; }
9142     fi
9143
9144     # Update the list of available tags.
9145     if test -n "$tagname"; then
9146       echo appending configuration tag \"$tagname\" to $ofile
9147
9148       case $tagname in
9149       CXX)
9150         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9151           ac_ext=cc
9152 ac_cpp='$CXXCPP $CPPFLAGS'
9153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9156
9157
9158
9159
9160 archive_cmds_need_lc_CXX=no
9161 allow_undefined_flag_CXX=
9162 always_export_symbols_CXX=no
9163 archive_expsym_cmds_CXX=
9164 export_dynamic_flag_spec_CXX=
9165 hardcode_direct_CXX=no
9166 hardcode_libdir_flag_spec_CXX=
9167 hardcode_libdir_flag_spec_ld_CXX=
9168 hardcode_libdir_separator_CXX=
9169 hardcode_minus_L_CXX=no
9170 hardcode_automatic_CXX=no
9171 module_cmds_CXX=
9172 module_expsym_cmds_CXX=
9173 link_all_deplibs_CXX=unknown
9174 old_archive_cmds_CXX=$old_archive_cmds
9175 no_undefined_flag_CXX=
9176 whole_archive_flag_spec_CXX=
9177 enable_shared_with_static_runtimes_CXX=no
9178
9179 # Dependencies to place before and after the object being linked:
9180 predep_objects_CXX=
9181 postdep_objects_CXX=
9182 predeps_CXX=
9183 postdeps_CXX=
9184 compiler_lib_search_path_CXX=
9185
9186 # Source file extension for C++ test sources.
9187 ac_ext=cc
9188
9189 # Object file extension for compiled C++ test sources.
9190 objext=o
9191 objext_CXX=$objext
9192
9193 # Code to be used in simple compile tests
9194 lt_simple_compile_test_code="int some_variable = 0;\n"
9195
9196 # Code to be used in simple link tests
9197 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9198
9199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9200
9201 # If no C compiler was specified, use CC.
9202 LTCC=${LTCC-"$CC"}
9203
9204 # Allow CC to be a program name with arguments.
9205 compiler=$CC
9206
9207
9208 # Allow CC to be a program name with arguments.
9209 lt_save_CC=$CC
9210 lt_save_LD=$LD
9211 lt_save_GCC=$GCC
9212 GCC=$GXX
9213 lt_save_with_gnu_ld=$with_gnu_ld
9214 lt_save_path_LD=$lt_cv_path_LD
9215 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9216   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9217 else
9218   unset lt_cv_prog_gnu_ld
9219 fi
9220 if test -n "${lt_cv_path_LDCXX+set}"; then
9221   lt_cv_path_LD=$lt_cv_path_LDCXX
9222 else
9223   unset lt_cv_path_LD
9224 fi
9225 test -z "${LDCXX+set}" || LD=$LDCXX
9226 CC=${CXX-"c++"}
9227 compiler=$CC
9228 compiler_CXX=$CC
9229 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9230
9231 # We don't want -fno-exception wen compiling C++ code, so set the
9232 # no_builtin_flag separately
9233 if test "$GXX" = yes; then
9234   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9235 else
9236   lt_prog_compiler_no_builtin_flag_CXX=
9237 fi
9238
9239 if test "$GXX" = yes; then
9240   # Set up default GNU C++ configuration
9241
9242
9243 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9244 if test "${with_gnu_ld+set}" = set; then
9245   withval="$with_gnu_ld"
9246   test "$withval" = no || with_gnu_ld=yes
9247 else
9248   with_gnu_ld=no
9249 fi;
9250 ac_prog=ld
9251 if test "$GCC" = yes; then
9252   # Check if gcc -print-prog-name=ld gives a path.
9253   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9255   case $host in
9256   *-*-mingw*)
9257     # gcc leaves a trailing carriage return which upsets mingw
9258     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9259   *)
9260     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9261   esac
9262   case $ac_prog in
9263     # Accept absolute paths.
9264     [\\/]* | ?:[\\/]*)
9265       re_direlt='/[^/][^/]*/\.\./'
9266       # Canonicalize the pathname of ld
9267       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9268       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9269         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9270       done
9271       test -z "$LD" && LD="$ac_prog"
9272       ;;
9273   "")
9274     # If it fails, then pretend we aren't using GCC.
9275     ac_prog=ld
9276     ;;
9277   *)
9278     # If it is relative, then search for the first ld in PATH.
9279     with_gnu_ld=unknown
9280     ;;
9281   esac
9282 elif test "$with_gnu_ld" = yes; then
9283   echo "$as_me:$LINENO: checking for GNU ld" >&5
9284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9285 else
9286   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9288 fi
9289 if test "${lt_cv_path_LD+set}" = set; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   if test -z "$LD"; then
9293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294   for ac_dir in $PATH; do
9295     IFS="$lt_save_ifs"
9296     test -z "$ac_dir" && ac_dir=.
9297     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9298       lt_cv_path_LD="$ac_dir/$ac_prog"
9299       # Check to see if the program is GNU ld.  I'd rather use --version,
9300       # but apparently some GNU ld's only accept -v.
9301       # Break only if it was the GNU/non-GNU ld that we prefer.
9302       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9303       *GNU* | *'with BFD'*)
9304         test "$with_gnu_ld" != no && break
9305         ;;
9306       *)
9307         test "$with_gnu_ld" != yes && break
9308         ;;
9309       esac
9310     fi
9311   done
9312   IFS="$lt_save_ifs"
9313 else
9314   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9315 fi
9316 fi
9317
9318 LD="$lt_cv_path_LD"
9319 if test -n "$LD"; then
9320   echo "$as_me:$LINENO: result: $LD" >&5
9321 echo "${ECHO_T}$LD" >&6
9322 else
9323   echo "$as_me:$LINENO: result: no" >&5
9324 echo "${ECHO_T}no" >&6
9325 fi
9326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9328    { (exit 1); exit 1; }; }
9329 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9335 case `$LD -v 2>&1 </dev/null` in
9336 *GNU* | *'with BFD'*)
9337   lt_cv_prog_gnu_ld=yes
9338   ;;
9339 *)
9340   lt_cv_prog_gnu_ld=no
9341   ;;
9342 esac
9343 fi
9344 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9346 with_gnu_ld=$lt_cv_prog_gnu_ld
9347
9348
9349
9350   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9351   # archiving commands below assume that GNU ld is being used.
9352   if test "$with_gnu_ld" = yes; then
9353     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354     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'
9355
9356     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9357     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9358
9359     # If archive_cmds runs LD, not CC, wlarc should be empty
9360     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9361     #     investigate it a little bit more. (MM)
9362     wlarc='${wl}'
9363
9364     # ancient GNU ld didn't support --whole-archive et. al.
9365     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9366         grep 'no-whole-archive' > /dev/null; then
9367       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9368     else
9369       whole_archive_flag_spec_CXX=
9370     fi
9371   else
9372     with_gnu_ld=no
9373     wlarc=
9374
9375     # A generic and very simple default shared library creation
9376     # command for GNU C++ for the case where it uses the native
9377     # linker, instead of GNU ld.  If possible, this setting should
9378     # overridden to take advantage of the native linker features on
9379     # the platform it is being used on.
9380     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9381   fi
9382
9383   # Commands to make compiler produce verbose output that lists
9384   # what "hidden" libraries, object files and flags are used when
9385   # linking a shared library.
9386   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9387
9388 else
9389   GXX=no
9390   with_gnu_ld=no
9391   wlarc=
9392 fi
9393
9394 # PORTME: fill in a description of your system's C++ link characteristics
9395 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9397 ld_shlibs_CXX=yes
9398 case $host_os in
9399   aix3*)
9400     # FIXME: insert proper C++ library support
9401     ld_shlibs_CXX=no
9402     ;;
9403   aix4* | aix5*)
9404     if test "$host_cpu" = ia64; then
9405       # On IA64, the linker does run time linking by default, so we don't
9406       # have to do anything special.
9407       aix_use_runtimelinking=no
9408       exp_sym_flag='-Bexport'
9409       no_entry_flag=""
9410     else
9411       aix_use_runtimelinking=no
9412
9413       # Test if we are trying to use run time linking or normal
9414       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9415       # need to do runtime linking.
9416       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9417         for ld_flag in $LDFLAGS; do
9418           case $ld_flag in
9419           *-brtl*)
9420             aix_use_runtimelinking=yes
9421             break
9422             ;;
9423           esac
9424         done
9425       esac
9426
9427       exp_sym_flag='-bexport'
9428       no_entry_flag='-bnoentry'
9429     fi
9430
9431     # When large executables or shared objects are built, AIX ld can
9432     # have problems creating the table of contents.  If linking a library
9433     # or program results in "error TOC overflow" add -mminimal-toc to
9434     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9435     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9436
9437     archive_cmds_CXX=''
9438     hardcode_direct_CXX=yes
9439     hardcode_libdir_separator_CXX=':'
9440     link_all_deplibs_CXX=yes
9441
9442     if test "$GXX" = yes; then
9443       case $host_os in aix4.012|aix4.012.*)
9444       # We only want to do this on AIX 4.2 and lower, the check
9445       # below for broken collect2 doesn't work under 4.3+
9446         collect2name=`${CC} -print-prog-name=collect2`
9447         if test -f "$collect2name" && \
9448            strings "$collect2name" | grep resolve_lib_name >/dev/null
9449         then
9450           # We have reworked collect2
9451           hardcode_direct_CXX=yes
9452         else
9453           # We have old collect2
9454           hardcode_direct_CXX=unsupported
9455           # It fails to find uninstalled libraries when the uninstalled
9456           # path is not listed in the libpath.  Setting hardcode_minus_L
9457           # to unsupported forces relinking
9458           hardcode_minus_L_CXX=yes
9459           hardcode_libdir_flag_spec_CXX='-L$libdir'
9460           hardcode_libdir_separator_CXX=
9461         fi
9462       esac
9463       shared_flag='-shared'
9464     else
9465       # not using gcc
9466       if test "$host_cpu" = ia64; then
9467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9468         # chokes on -Wl,-G. The following line is correct:
9469         shared_flag='-G'
9470       else
9471         if test "$aix_use_runtimelinking" = yes; then
9472           shared_flag='${wl}-G'
9473         else
9474           shared_flag='${wl}-bM:SRE'
9475         fi
9476       fi
9477     fi
9478
9479     # It seems that -bexpall does not export symbols beginning with
9480     # underscore (_), so it is better to generate a list of symbols to export.
9481     always_export_symbols_CXX=yes
9482     if test "$aix_use_runtimelinking" = yes; then
9483       # Warning - without using the other runtime loading flags (-brtl),
9484       # -berok will link without error, but may produce a broken library.
9485       allow_undefined_flag_CXX='-berok'
9486       # Determine the default libpath from the value encoded in an empty executable.
9487       cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493
9494 int
9495 main ()
9496 {
9497
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>conftest.er1
9505   ac_status=$?
9506   grep -v '^ *+' conftest.er1 >conftest.err
9507   rm -f conftest.er1
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -z "$ac_cxx_werror_flag"
9512                          || test ! -s conftest.err'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; } &&
9518          { ac_try='test -s conftest$ac_exeext'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524
9525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9526 }'`
9527 # Check for a 64-bit object if we didn't find anything.
9528 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; }
9529 }'`; fi
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534 fi
9535 rm -f conftest.err conftest.$ac_objext \
9536       conftest$ac_exeext conftest.$ac_ext
9537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9538
9539       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9540
9541       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"
9542      else
9543       if test "$host_cpu" = ia64; then
9544         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9545         allow_undefined_flag_CXX="-z nodefs"
9546         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"
9547       else
9548         # Determine the default libpath from the value encoded in an empty executable.
9549         cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555
9556 int
9557 main ()
9558 {
9559
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566   (eval $ac_link) 2>conftest.er1
9567   ac_status=$?
9568   grep -v '^ *+' conftest.er1 >conftest.err
9569   rm -f conftest.er1
9570   cat conftest.err >&5
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } &&
9573          { ac_try='test -z "$ac_cxx_werror_flag"
9574                          || test ! -s conftest.err'
9575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576   (eval $ac_try) 2>&5
9577   ac_status=$?
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); }; } &&
9580          { ac_try='test -s conftest$ac_exeext'
9581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582   (eval $ac_try) 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; }; then
9586
9587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9588 }'`
9589 # Check for a 64-bit object if we didn't find anything.
9590 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; }
9591 }'`; fi
9592 else
9593   echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 fi
9597 rm -f conftest.err conftest.$ac_objext \
9598       conftest$ac_exeext conftest.$ac_ext
9599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9600
9601         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9602         # Warning - without using the other run time loading flags,
9603         # -berok will link without error, but may produce a broken library.
9604         no_undefined_flag_CXX=' ${wl}-bernotok'
9605         allow_undefined_flag_CXX=' ${wl}-berok'
9606         # -bexpall does not export symbols beginning with underscore (_)
9607         always_export_symbols_CXX=yes
9608         # Exported symbols can be pulled into shared objects from archives
9609         whole_archive_flag_spec_CXX=' '
9610         archive_cmds_need_lc_CXX=yes
9611         # This is similar to how AIX traditionally builds it's shared libraries.
9612         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'
9613       fi
9614     fi
9615     ;;
9616   chorus*)
9617     case $cc_basename in
9618       *)
9619         # FIXME: insert proper C++ library support
9620         ld_shlibs_CXX=no
9621         ;;
9622     esac
9623     ;;
9624
9625   cygwin* | mingw* | pw32*)
9626     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9627     # as there is no search path for DLLs.
9628     hardcode_libdir_flag_spec_CXX='-L$libdir'
9629     allow_undefined_flag_CXX=unsupported
9630     always_export_symbols_CXX=no
9631     enable_shared_with_static_runtimes_CXX=yes
9632
9633     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9634       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'
9635       # If the export-symbols file already is a .def file (1st line
9636       # is EXPORTS), use it as is; otherwise, prepend...
9637       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9638         cp $export_symbols $output_objdir/$soname.def;
9639       else
9640         echo EXPORTS > $output_objdir/$soname.def;
9641         cat $export_symbols >> $output_objdir/$soname.def;
9642       fi~
9643       $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'
9644     else
9645       ld_shlibs_CXX=no
9646     fi
9647   ;;
9648
9649   darwin* | rhapsody*)
9650   if test "$GXX" = yes; then
9651     archive_cmds_need_lc_CXX=no
9652     case "$host_os" in
9653     rhapsody* | darwin1.[012])
9654       allow_undefined_flag_CXX='-undefined suppress'
9655       ;;
9656     *) # Darwin 1.3 on
9657       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9658         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9659       else
9660         case ${MACOSX_DEPLOYMENT_TARGET} in
9661           10.[012])
9662             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9663             ;;
9664           10.*)
9665             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9666             ;;
9667         esac
9668       fi
9669       ;;
9670     esac
9671     lt_int_apple_cc_single_mod=no
9672     output_verbose_link_cmd='echo'
9673     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9674       lt_int_apple_cc_single_mod=yes
9675     fi
9676     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9677       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9678     else
9679       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9680     fi
9681     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9682
9683     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9684     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9685       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}'
9686     else
9687       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9688     fi
9689     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}'
9690     hardcode_direct_CXX=no
9691     hardcode_automatic_CXX=yes
9692     hardcode_shlibpath_var_CXX=unsupported
9693     whole_archive_flag_spec_CXX='-all_load $convenience'
9694     link_all_deplibs_CXX=yes
9695   else
9696     ld_shlibs_CXX=no
9697   fi
9698     ;;
9699
9700   dgux*)
9701     case $cc_basename in
9702       ec++)
9703         # FIXME: insert proper C++ library support
9704         ld_shlibs_CXX=no
9705         ;;
9706       ghcx)
9707         # Green Hills C++ Compiler
9708         # FIXME: insert proper C++ library support
9709         ld_shlibs_CXX=no
9710         ;;
9711       *)
9712         # FIXME: insert proper C++ library support
9713         ld_shlibs_CXX=no
9714         ;;
9715     esac
9716     ;;
9717   freebsd12*)
9718     # C++ shared libraries reported to be fairly broken before switch to ELF
9719     ld_shlibs_CXX=no
9720     ;;
9721   freebsd-elf*)
9722     archive_cmds_need_lc_CXX=no
9723     ;;
9724   freebsd* | kfreebsd*-gnu)
9725     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9726     # conventions
9727     ld_shlibs_CXX=yes
9728     ;;
9729   gnu*)
9730     ;;
9731   hpux9*)
9732     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9733     hardcode_libdir_separator_CXX=:
9734     export_dynamic_flag_spec_CXX='${wl}-E'
9735     hardcode_direct_CXX=yes
9736     hardcode_minus_L_CXX=yes # Not in the search PATH,
9737                                 # but as the default
9738                                 # location of the library.
9739
9740     case $cc_basename in
9741     CC)
9742       # FIXME: insert proper C++ library support
9743       ld_shlibs_CXX=no
9744       ;;
9745     aCC)
9746       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'
9747       # Commands to make compiler produce verbose output that lists
9748       # what "hidden" libraries, object files and flags are used when
9749       # linking a shared library.
9750       #
9751       # There doesn't appear to be a way to prevent this compiler from
9752       # explicitly linking system object files so we need to strip them
9753       # from the output so that they don't get included in the library
9754       # dependencies.
9755       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9756       ;;
9757     *)
9758       if test "$GXX" = yes; then
9759         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'
9760       else
9761         # FIXME: insert proper C++ library support
9762         ld_shlibs_CXX=no
9763       fi
9764       ;;
9765     esac
9766     ;;
9767   hpux10*|hpux11*)
9768     if test $with_gnu_ld = no; then
9769       case "$host_cpu" in
9770       hppa*64*)
9771         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9772         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9773         hardcode_libdir_separator_CXX=:
9774         ;;
9775       ia64*)
9776         hardcode_libdir_flag_spec_CXX='-L$libdir'
9777         ;;
9778       *)
9779         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9780         hardcode_libdir_separator_CXX=:
9781         export_dynamic_flag_spec_CXX='${wl}-E'
9782         ;;
9783       esac
9784     fi
9785     case "$host_cpu" in
9786     hppa*64*)
9787       hardcode_direct_CXX=no
9788       hardcode_shlibpath_var_CXX=no
9789       ;;
9790     ia64*)
9791       hardcode_direct_CXX=no
9792       hardcode_shlibpath_var_CXX=no
9793       hardcode_minus_L_CXX=yes # Not in the search PATH,
9794                                               # but as the default
9795                                               # location of the library.
9796       ;;
9797     *)
9798       hardcode_direct_CXX=yes
9799       hardcode_minus_L_CXX=yes # Not in the search PATH,
9800                                               # but as the default
9801                                               # location of the library.
9802       ;;
9803     esac
9804
9805     case $cc_basename in
9806       CC)
9807         # FIXME: insert proper C++ library support
9808         ld_shlibs_CXX=no
9809         ;;
9810       aCC)
9811         case "$host_cpu" in
9812         hppa*64*|ia64*)
9813           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9814           ;;
9815         *)
9816           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9817           ;;
9818         esac
9819         # Commands to make compiler produce verbose output that lists
9820         # what "hidden" libraries, object files and flags are used when
9821         # linking a shared library.
9822         #
9823         # There doesn't appear to be a way to prevent this compiler from
9824         # explicitly linking system object files so we need to strip them
9825         # from the output so that they don't get included in the library
9826         # dependencies.
9827         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'
9828         ;;
9829       *)
9830         if test "$GXX" = yes; then
9831           if test $with_gnu_ld = no; then
9832             case "$host_cpu" in
9833             ia64*|hppa*64*)
9834               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9835               ;;
9836             *)
9837               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'
9838               ;;
9839             esac
9840           fi
9841         else
9842           # FIXME: insert proper C++ library support
9843           ld_shlibs_CXX=no
9844         fi
9845         ;;
9846     esac
9847     ;;
9848   irix5* | irix6*)
9849     case $cc_basename in
9850       CC)
9851         # SGI C++
9852         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'
9853
9854         # Archives containing C++ object files must be created using
9855         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9856         # necessary to make sure instantiated templates are included
9857         # in the archive.
9858         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9859         ;;
9860       *)
9861         if test "$GXX" = yes; then
9862           if test "$with_gnu_ld" = no; then
9863             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'
9864           else
9865             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'
9866           fi
9867         fi
9868         link_all_deplibs_CXX=yes
9869         ;;
9870     esac
9871     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9872     hardcode_libdir_separator_CXX=:
9873     ;;
9874   linux*)
9875     case $cc_basename in
9876       KCC)
9877         # Kuck and Associates, Inc. (KAI) C++ Compiler
9878
9879         # KCC will only create a shared library if the output file
9880         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9881         # to its proper name (with version) after linking.
9882         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'
9883         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'
9884         # Commands to make compiler produce verbose output that lists
9885         # what "hidden" libraries, object files and flags are used when
9886         # linking a shared library.
9887         #
9888         # There doesn't appear to be a way to prevent this compiler from
9889         # explicitly linking system object files so we need to strip them
9890         # from the output so that they don't get included in the library
9891         # dependencies.
9892         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'
9893
9894         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9895         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9896
9897         # Archives containing C++ object files must be created using
9898         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9899         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9900         ;;
9901       icpc)
9902         # Intel C++
9903         with_gnu_ld=yes
9904         archive_cmds_need_lc_CXX=no
9905         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906         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'
9907         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9908         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9909         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9910         ;;
9911       cxx)
9912         # Compaq C++
9913         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914         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'
9915
9916         runpath_var=LD_RUN_PATH
9917         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9918         hardcode_libdir_separator_CXX=:
9919
9920         # Commands to make compiler produce verbose output that lists
9921         # what "hidden" libraries, object files and flags are used when
9922         # linking a shared library.
9923         #
9924         # There doesn't appear to be a way to prevent this compiler from
9925         # explicitly linking system object files so we need to strip them
9926         # from the output so that they don't get included in the library
9927         # dependencies.
9928         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'
9929         ;;
9930     esac
9931     ;;
9932   lynxos*)
9933     # FIXME: insert proper C++ library support
9934     ld_shlibs_CXX=no
9935     ;;
9936   m88k*)
9937     # FIXME: insert proper C++ library support
9938     ld_shlibs_CXX=no
9939     ;;
9940   mvs*)
9941     case $cc_basename in
9942       cxx)
9943         # FIXME: insert proper C++ library support
9944         ld_shlibs_CXX=no
9945         ;;
9946       *)
9947         # FIXME: insert proper C++ library support
9948         ld_shlibs_CXX=no
9949         ;;
9950     esac
9951     ;;
9952   netbsd*)
9953     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9954       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9955       wlarc=
9956       hardcode_libdir_flag_spec_CXX='-R$libdir'
9957       hardcode_direct_CXX=yes
9958       hardcode_shlibpath_var_CXX=no
9959     fi
9960     # Workaround some broken pre-1.5 toolchains
9961     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9962     ;;
9963   osf3*)
9964     case $cc_basename in
9965       KCC)
9966         # Kuck and Associates, Inc. (KAI) C++ Compiler
9967
9968         # KCC will only create a shared library if the output file
9969         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9970         # to its proper name (with version) after linking.
9971         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'
9972
9973         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9974         hardcode_libdir_separator_CXX=:
9975
9976         # Archives containing C++ object files must be created using
9977         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9978         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9979
9980         ;;
9981       RCC)
9982         # Rational C++ 2.4.1
9983         # FIXME: insert proper C++ library support
9984         ld_shlibs_CXX=no
9985         ;;
9986       cxx)
9987         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9988         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'
9989
9990         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9991         hardcode_libdir_separator_CXX=:
9992
9993         # Commands to make compiler produce verbose output that lists
9994         # what "hidden" libraries, object files and flags are used when
9995         # linking a shared library.
9996         #
9997         # There doesn't appear to be a way to prevent this compiler from
9998         # explicitly linking system object files so we need to strip them
9999         # from the output so that they don't get included in the library
10000         # dependencies.
10001         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'
10002         ;;
10003       *)
10004         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10005           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10006           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'
10007
10008           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10009           hardcode_libdir_separator_CXX=:
10010
10011           # Commands to make compiler produce verbose output that lists
10012           # what "hidden" libraries, object files and flags are used when
10013           # linking a shared library.
10014           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10015
10016         else
10017           # FIXME: insert proper C++ library support
10018           ld_shlibs_CXX=no
10019         fi
10020         ;;
10021     esac
10022     ;;
10023   osf4* | osf5*)
10024     case $cc_basename in
10025       KCC)
10026         # Kuck and Associates, Inc. (KAI) C++ Compiler
10027
10028         # KCC will only create a shared library if the output file
10029         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10030         # to its proper name (with version) after linking.
10031         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'
10032
10033         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10034         hardcode_libdir_separator_CXX=:
10035
10036         # Archives containing C++ object files must be created using
10037         # the KAI C++ compiler.
10038         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10039         ;;
10040       RCC)
10041         # Rational C++ 2.4.1
10042         # FIXME: insert proper C++ library support
10043         ld_shlibs_CXX=no
10044         ;;
10045       cxx)
10046         allow_undefined_flag_CXX=' -expect_unresolved \*'
10047         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'
10048         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10049           echo "-hidden">> $lib.exp~
10050           $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~
10051           $rm $lib.exp'
10052
10053         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10054         hardcode_libdir_separator_CXX=:
10055
10056         # Commands to make compiler produce verbose output that lists
10057         # what "hidden" libraries, object files and flags are used when
10058         # linking a shared library.
10059         #
10060         # There doesn't appear to be a way to prevent this compiler from
10061         # explicitly linking system object files so we need to strip them
10062         # from the output so that they don't get included in the library
10063         # dependencies.
10064         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'
10065         ;;
10066       *)
10067         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10068           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10069          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'
10070
10071           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10072           hardcode_libdir_separator_CXX=:
10073
10074           # Commands to make compiler produce verbose output that lists
10075           # what "hidden" libraries, object files and flags are used when
10076           # linking a shared library.
10077           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10078
10079         else
10080           # FIXME: insert proper C++ library support
10081           ld_shlibs_CXX=no
10082         fi
10083         ;;
10084     esac
10085     ;;
10086   psos*)
10087     # FIXME: insert proper C++ library support
10088     ld_shlibs_CXX=no
10089     ;;
10090   sco*)
10091     archive_cmds_need_lc_CXX=no
10092     case $cc_basename in
10093       CC)
10094         # FIXME: insert proper C++ library support
10095         ld_shlibs_CXX=no
10096         ;;
10097       *)
10098         # FIXME: insert proper C++ library support
10099         ld_shlibs_CXX=no
10100         ;;
10101     esac
10102     ;;
10103   sunos4*)
10104     case $cc_basename in
10105       CC)
10106         # Sun C++ 4.x
10107         # FIXME: insert proper C++ library support
10108         ld_shlibs_CXX=no
10109         ;;
10110       lcc)
10111         # Lucid
10112         # FIXME: insert proper C++ library support
10113         ld_shlibs_CXX=no
10114         ;;
10115       *)
10116         # FIXME: insert proper C++ library support
10117         ld_shlibs_CXX=no
10118         ;;
10119     esac
10120     ;;
10121   solaris*)
10122     case $cc_basename in
10123       CC)
10124         # Sun C++ 4.2, 5.x and Centerline C++
10125         no_undefined_flag_CXX=' -zdefs'
10126         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10127         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10128         $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'
10129
10130         hardcode_libdir_flag_spec_CXX='-R$libdir'
10131         hardcode_shlibpath_var_CXX=no
10132         case $host_os in
10133           solaris2.0-5 | solaris2.0-5.*) ;;
10134           *)
10135             # The C++ compiler is used as linker so we must use $wl
10136             # flag to pass the commands to the underlying system
10137             # linker.
10138             # Supported since Solaris 2.6 (maybe 2.5.1?)
10139             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10140             ;;
10141         esac
10142         link_all_deplibs_CXX=yes
10143
10144         # Commands to make compiler produce verbose output that lists
10145         # what "hidden" libraries, object files and flags are used when
10146         # linking a shared library.
10147         #
10148         # There doesn't appear to be a way to prevent this compiler from
10149         # explicitly linking system object files so we need to strip them
10150         # from the output so that they don't get included in the library
10151         # dependencies.
10152         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'
10153
10154         # Archives containing C++ object files must be created using
10155         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10156         # necessary to make sure instantiated templates are included
10157         # in the archive.
10158         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10159         ;;
10160       gcx)
10161         # Green Hills C++ Compiler
10162         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10163
10164         # The C++ compiler must be used to create the archive.
10165         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10166         ;;
10167       *)
10168         # GNU C++ compiler with Solaris linker
10169         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10170           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10171           if $CC --version | grep -v '^2\.7' > /dev/null; then
10172             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10173             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10174                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10175
10176             # Commands to make compiler produce verbose output that lists
10177             # what "hidden" libraries, object files and flags are used when
10178             # linking a shared library.
10179             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10180           else
10181             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10182             # platform.
10183             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10184             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10185                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10186
10187             # Commands to make compiler produce verbose output that lists
10188             # what "hidden" libraries, object files and flags are used when
10189             # linking a shared library.
10190             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10191           fi
10192
10193           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10194         fi
10195         ;;
10196     esac
10197     ;;
10198   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10199     archive_cmds_need_lc_CXX=no
10200     ;;
10201   tandem*)
10202     case $cc_basename in
10203       NCC)
10204         # NonStop-UX NCC 3.20
10205         # FIXME: insert proper C++ library support
10206         ld_shlibs_CXX=no
10207         ;;
10208       *)
10209         # FIXME: insert proper C++ library support
10210         ld_shlibs_CXX=no
10211         ;;
10212     esac
10213     ;;
10214   vxworks*)
10215     # FIXME: insert proper C++ library support
10216     ld_shlibs_CXX=no
10217     ;;
10218   *)
10219     # FIXME: insert proper C++ library support
10220     ld_shlibs_CXX=no
10221     ;;
10222 esac
10223 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10224 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10225 test "$ld_shlibs_CXX" = no && can_build_shared=no
10226
10227 GCC_CXX="$GXX"
10228 LD_CXX="$LD"
10229
10230
10231 cat > conftest.$ac_ext <<EOF
10232 class Foo
10233 {
10234 public:
10235   Foo (void) { a = 0; }
10236 private:
10237   int a;
10238 };
10239 EOF
10240
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242   (eval $ac_compile) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; then
10246   # Parse the compiler output and extract the necessary
10247   # objects, libraries and library flags.
10248
10249   # Sentinel used to keep track of whether or not we are before
10250   # the conftest object file.
10251   pre_test_object_deps_done=no
10252
10253   # The `*' in the case matches for architectures that use `case' in
10254   # $output_verbose_cmd can trigger glob expansion during the loop
10255   # eval without this substitution.
10256   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10257
10258   for p in `eval $output_verbose_link_cmd`; do
10259     case $p in
10260
10261     -L* | -R* | -l*)
10262        # Some compilers place space between "-{L,R}" and the path.
10263        # Remove the space.
10264        if test $p = "-L" \
10265           || test $p = "-R"; then
10266          prev=$p
10267          continue
10268        else
10269          prev=
10270        fi
10271
10272        if test "$pre_test_object_deps_done" = no; then
10273          case $p in
10274          -L* | -R*)
10275            # Internal compiler library paths should come after those
10276            # provided the user.  The postdeps already come after the
10277            # user supplied libs so there is no need to process them.
10278            if test -z "$compiler_lib_search_path_CXX"; then
10279              compiler_lib_search_path_CXX="${prev}${p}"
10280            else
10281              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10282            fi
10283            ;;
10284          # The "-l" case would never come before the object being
10285          # linked, so don't bother handling this case.
10286          esac
10287        else
10288          if test -z "$postdeps_CXX"; then
10289            postdeps_CXX="${prev}${p}"
10290          else
10291            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10292          fi
10293        fi
10294        ;;
10295
10296     *.$objext)
10297        # This assumes that the test object file only shows up
10298        # once in the compiler output.
10299        if test "$p" = "conftest.$objext"; then
10300          pre_test_object_deps_done=yes
10301          continue
10302        fi
10303
10304        if test "$pre_test_object_deps_done" = no; then
10305          if test -z "$predep_objects_CXX"; then
10306            predep_objects_CXX="$p"
10307          else
10308            predep_objects_CXX="$predep_objects_CXX $p"
10309          fi
10310        else
10311          if test -z "$postdep_objects_CXX"; then
10312            postdep_objects_CXX="$p"
10313          else
10314            postdep_objects_CXX="$postdep_objects_CXX $p"
10315          fi
10316        fi
10317        ;;
10318
10319     *) ;; # Ignore the rest.
10320
10321     esac
10322   done
10323
10324   # Clean up.
10325   rm -f a.out a.exe
10326 else
10327   echo "libtool.m4: error: problem compiling CXX test program"
10328 fi
10329
10330 $rm -f confest.$objext
10331
10332 case " $postdeps_CXX " in
10333 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10334 esac
10335
10336 lt_prog_compiler_wl_CXX=
10337 lt_prog_compiler_pic_CXX=
10338 lt_prog_compiler_static_CXX=
10339
10340 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10341 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10342
10343   # C++ specific cases for pic, static, wl, etc.
10344   if test "$GXX" = yes; then
10345     lt_prog_compiler_wl_CXX='-Wl,'
10346     lt_prog_compiler_static_CXX='-static'
10347
10348     case $host_os in
10349     aix*)
10350       # All AIX code is PIC.
10351       if test "$host_cpu" = ia64; then
10352         # AIX 5 now supports IA64 processor
10353         lt_prog_compiler_static_CXX='-Bstatic'
10354       fi
10355       ;;
10356     amigaos*)
10357       # FIXME: we need at least 68020 code to build shared libraries, but
10358       # adding the `-m68020' flag to GCC prevents building anything better,
10359       # like `-m68040'.
10360       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10361       ;;
10362     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10363       # PIC is the default for these OSes.
10364       ;;
10365     mingw* | os2* | pw32*)
10366       # This hack is so that the source file can tell whether it is being
10367       # built for inclusion in a dll (and should export symbols for example).
10368       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10369       ;;
10370     darwin* | rhapsody*)
10371       # PIC is the default on this platform
10372       # Common symbols not allowed in MH_DYLIB files
10373       lt_prog_compiler_pic_CXX='-fno-common'
10374       ;;
10375     *djgpp*)
10376       # DJGPP does not support shared libraries at all
10377       lt_prog_compiler_pic_CXX=
10378       ;;
10379     sysv4*MP*)
10380       if test -d /usr/nec; then
10381         lt_prog_compiler_pic_CXX=-Kconform_pic
10382       fi
10383       ;;
10384     hpux*)
10385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10386       # not for PA HP-UX.
10387       case "$host_cpu" in
10388       hppa*64*|ia64*)
10389         ;;
10390       *)
10391         lt_prog_compiler_pic_CXX='-fPIC'
10392         ;;
10393       esac
10394       ;;
10395     *)
10396       lt_prog_compiler_pic_CXX='-fPIC'
10397       ;;
10398     esac
10399   else
10400     case $host_os in
10401       aix4* | aix5*)
10402         # All AIX code is PIC.
10403         if test "$host_cpu" = ia64; then
10404           # AIX 5 now supports IA64 processor
10405           lt_prog_compiler_static_CXX='-Bstatic'
10406         else
10407           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10408         fi
10409         ;;
10410       chorus*)
10411         case $cc_basename in
10412         cxch68)
10413           # Green Hills C++ Compiler
10414           # _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"
10415           ;;
10416         esac
10417         ;;
10418       dgux*)
10419         case $cc_basename in
10420           ec++)
10421             lt_prog_compiler_pic_CXX='-KPIC'
10422             ;;
10423           ghcx)
10424             # Green Hills C++ Compiler
10425             lt_prog_compiler_pic_CXX='-pic'
10426             ;;
10427           *)
10428             ;;
10429         esac
10430         ;;
10431       freebsd* | kfreebsd*-gnu)
10432         # FreeBSD uses GNU C++
10433         ;;
10434       hpux9* | hpux10* | hpux11*)
10435         case $cc_basename in
10436           CC)
10437             lt_prog_compiler_wl_CXX='-Wl,'
10438             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10439             if test "$host_cpu" != ia64; then
10440               lt_prog_compiler_pic_CXX='+Z'
10441             fi
10442             ;;
10443           aCC)
10444             lt_prog_compiler_wl_CXX='-Wl,'
10445             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10446             case "$host_cpu" in
10447             hppa*64*|ia64*)
10448               # +Z the default
10449               ;;
10450             *)
10451               lt_prog_compiler_pic_CXX='+Z'
10452               ;;
10453             esac
10454             ;;
10455           *)
10456             ;;
10457         esac
10458         ;;
10459       irix5* | irix6* | nonstopux*)
10460         case $cc_basename in
10461           CC)
10462             lt_prog_compiler_wl_CXX='-Wl,'
10463             lt_prog_compiler_static_CXX='-non_shared'
10464             # CC pic flag -KPIC is the default.
10465             ;;
10466           *)
10467             ;;
10468         esac
10469         ;;
10470       linux*)
10471         case $cc_basename in
10472           KCC)
10473             # KAI C++ Compiler
10474             lt_prog_compiler_wl_CXX='--backend -Wl,'
10475             lt_prog_compiler_pic_CXX='-fPIC'
10476             ;;
10477           icpc)
10478             # Intel C++
10479             lt_prog_compiler_wl_CXX='-Wl,'
10480             lt_prog_compiler_pic_CXX='-KPIC'
10481             lt_prog_compiler_static_CXX='-static'
10482             ;;
10483           cxx)
10484             # Compaq C++
10485             # Make sure the PIC flag is empty.  It appears that all Alpha
10486             # Linux and Compaq Tru64 Unix objects are PIC.
10487             lt_prog_compiler_pic_CXX=
10488             lt_prog_compiler_static_CXX='-non_shared'
10489             ;;
10490           *)
10491             ;;
10492         esac
10493         ;;
10494       lynxos*)
10495         ;;
10496       m88k*)
10497         ;;
10498       mvs*)
10499         case $cc_basename in
10500           cxx)
10501             lt_prog_compiler_pic_CXX='-W c,exportall'
10502             ;;
10503           *)
10504             ;;
10505         esac
10506         ;;
10507       netbsd*)
10508         ;;
10509       osf3* | osf4* | osf5*)
10510         case $cc_basename in
10511           KCC)
10512             lt_prog_compiler_wl_CXX='--backend -Wl,'
10513             ;;
10514           RCC)
10515             # Rational C++ 2.4.1
10516             lt_prog_compiler_pic_CXX='-pic'
10517             ;;
10518           cxx)
10519             # Digital/Compaq C++
10520             lt_prog_compiler_wl_CXX='-Wl,'
10521             # Make sure the PIC flag is empty.  It appears that all Alpha
10522             # Linux and Compaq Tru64 Unix objects are PIC.
10523             lt_prog_compiler_pic_CXX=
10524             lt_prog_compiler_static_CXX='-non_shared'
10525             ;;
10526           *)
10527             ;;
10528         esac
10529         ;;
10530       psos*)
10531         ;;
10532       sco*)
10533         case $cc_basename in
10534           CC)
10535             lt_prog_compiler_pic_CXX='-fPIC'
10536             ;;
10537           *)
10538             ;;
10539         esac
10540         ;;
10541       solaris*)
10542         case $cc_basename in
10543           CC)
10544             # Sun C++ 4.2, 5.x and Centerline C++
10545             lt_prog_compiler_pic_CXX='-KPIC'
10546             lt_prog_compiler_static_CXX='-Bstatic'
10547             lt_prog_compiler_wl_CXX='-Qoption ld '
10548             ;;
10549           gcx)
10550             # Green Hills C++ Compiler
10551             lt_prog_compiler_pic_CXX='-PIC'
10552             ;;
10553           *)
10554             ;;
10555         esac
10556         ;;
10557       sunos4*)
10558         case $cc_basename in
10559           CC)
10560             # Sun C++ 4.x
10561             lt_prog_compiler_pic_CXX='-pic'
10562             lt_prog_compiler_static_CXX='-Bstatic'
10563             ;;
10564           lcc)
10565             # Lucid
10566             lt_prog_compiler_pic_CXX='-pic'
10567             ;;
10568           *)
10569             ;;
10570         esac
10571         ;;
10572       tandem*)
10573         case $cc_basename in
10574           NCC)
10575             # NonStop-UX NCC 3.20
10576             lt_prog_compiler_pic_CXX='-KPIC'
10577             ;;
10578           *)
10579             ;;
10580         esac
10581         ;;
10582       unixware*)
10583         ;;
10584       vxworks*)
10585         ;;
10586       *)
10587         lt_prog_compiler_can_build_shared_CXX=no
10588         ;;
10589     esac
10590   fi
10591
10592 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10593 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10594
10595 #
10596 # Check to make sure the PIC flag actually works.
10597 #
10598 if test -n "$lt_prog_compiler_pic_CXX"; then
10599
10600 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10601 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10602 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   lt_prog_compiler_pic_works_CXX=no
10606   ac_outfile=conftest.$ac_objext
10607    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10608    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10609    # Insert the option either (1) after the last *FLAGS variable, or
10610    # (2) before a word containing "conftest.", or (3) at the end.
10611    # Note that $ac_compile itself does not contain backslashes and begins
10612    # with a dollar sign (not a hyphen), so the echo should work correctly.
10613    # The option is referenced via a variable to avoid confusing sed.
10614    lt_compile=`echo "$ac_compile" | $SED \
10615    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10616    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10617    -e 's:$: $lt_compiler_flag:'`
10618    (eval echo "\"\$as_me:10618: $lt_compile\"" >&5)
10619    (eval "$lt_compile" 2>conftest.err)
10620    ac_status=$?
10621    cat conftest.err >&5
10622    echo "$as_me:10622: \$? = $ac_status" >&5
10623    if (exit $ac_status) && test -s "$ac_outfile"; then
10624      # The compiler can only warn and ignore the option if not recognized
10625      # So say no if there are warnings
10626      if test ! -s conftest.err; then
10627        lt_prog_compiler_pic_works_CXX=yes
10628      fi
10629    fi
10630    $rm conftest*
10631
10632 fi
10633 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10634 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10635
10636 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10637     case $lt_prog_compiler_pic_CXX in
10638      "" | " "*) ;;
10639      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10640      esac
10641 else
10642     lt_prog_compiler_pic_CXX=
10643      lt_prog_compiler_can_build_shared_CXX=no
10644 fi
10645
10646 fi
10647 case "$host_os" in
10648   # For platforms which do not support PIC, -DPIC is meaningless:
10649   *djgpp*)
10650     lt_prog_compiler_pic_CXX=
10651     ;;
10652   *)
10653     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10654     ;;
10655 esac
10656
10657 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10658 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10659 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   lt_cv_prog_compiler_c_o_CXX=no
10663    $rm -r conftest 2>/dev/null
10664    mkdir conftest
10665    cd conftest
10666    mkdir out
10667    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10668
10669    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10670    # that will create temporary files in the current directory regardless of
10671    # the output directory.  Thus, making CWD read-only will cause this test
10672    # to fail, enabling locking or at least warning the user not to do parallel
10673    # builds.
10674    chmod -w .
10675
10676    lt_compiler_flag="-o out/conftest2.$ac_objext"
10677    # Insert the option either (1) after the last *FLAGS variable, or
10678    # (2) before a word containing "conftest.", or (3) at the end.
10679    # Note that $ac_compile itself does not contain backslashes and begins
10680    # with a dollar sign (not a hyphen), so the echo should work correctly.
10681    lt_compile=`echo "$ac_compile" | $SED \
10682    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10684    -e 's:$: $lt_compiler_flag:'`
10685    (eval echo "\"\$as_me:10685: $lt_compile\"" >&5)
10686    (eval "$lt_compile" 2>out/conftest.err)
10687    ac_status=$?
10688    cat out/conftest.err >&5
10689    echo "$as_me:10689: \$? = $ac_status" >&5
10690    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10691    then
10692      # The compiler can only warn and ignore the option if not recognized
10693      # So say no if there are warnings
10694      if test ! -s out/conftest.err; then
10695        lt_cv_prog_compiler_c_o_CXX=yes
10696      fi
10697    fi
10698    chmod u+w .
10699    $rm conftest*
10700    # SGI C++ compiler will create directory out/ii_files/ for
10701    # template instantiation
10702    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10703    $rm out/* && rmdir out
10704    cd ..
10705    rmdir conftest
10706    $rm conftest*
10707
10708 fi
10709 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10710 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10711
10712
10713 hard_links="nottested"
10714 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10715   # do not overwrite the value of need_locks provided by the user
10716   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10717 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10718   hard_links=yes
10719   $rm conftest*
10720   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10721   touch conftest.a
10722   ln conftest.a conftest.b 2>&5 || hard_links=no
10723   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10724   echo "$as_me:$LINENO: result: $hard_links" >&5
10725 echo "${ECHO_T}$hard_links" >&6
10726   if test "$hard_links" = no; then
10727     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10728 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10729     need_locks=warn
10730   fi
10731 else
10732   need_locks=no
10733 fi
10734
10735 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10736 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10737
10738   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10739   case $host_os in
10740   aix4* | aix5*)
10741     # If we're using GNU nm, then we don't want the "-C" option.
10742     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10743     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10744       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'
10745     else
10746       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'
10747     fi
10748     ;;
10749   pw32*)
10750     export_symbols_cmds_CXX="$ltdll_cmds"
10751   ;;
10752   cygwin* | mingw*)
10753     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10754   ;;
10755   *)
10756     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10757   ;;
10758   esac
10759
10760 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10761 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10762 test "$ld_shlibs_CXX" = no && can_build_shared=no
10763
10764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10765 if test "$GCC" = yes; then
10766   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10767 fi
10768
10769 #
10770 # Do we need to explicitly link libc?
10771 #
10772 case "x$archive_cmds_need_lc_CXX" in
10773 x|xyes)
10774   # Assume -lc should be added
10775   archive_cmds_need_lc_CXX=yes
10776
10777   if test "$enable_shared" = yes && test "$GCC" = yes; then
10778     case $archive_cmds_CXX in
10779     *'~'*)
10780       # FIXME: we may have to deal with multi-command sequences.
10781       ;;
10782     '$CC '*)
10783       # Test whether the compiler implicitly links with -lc since on some
10784       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10785       # to ld, don't add -lc before -lgcc.
10786       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10787 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10788       $rm conftest*
10789       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10790
10791       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792   (eval $ac_compile) 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } 2>conftest.err; then
10796         soname=conftest
10797         lib=conftest
10798         libobjs=conftest.$ac_objext
10799         deplibs=
10800         wl=$lt_prog_compiler_wl_CXX
10801         compiler_flags=-v
10802         linker_flags=-v
10803         verstring=
10804         output_objdir=.
10805         libname=conftest
10806         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10807         allow_undefined_flag_CXX=
10808         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10809   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }
10813         then
10814           archive_cmds_need_lc_CXX=no
10815         else
10816           archive_cmds_need_lc_CXX=yes
10817         fi
10818         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10819       else
10820         cat conftest.err 1>&5
10821       fi
10822       $rm conftest*
10823       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10824 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10825       ;;
10826     esac
10827   fi
10828   ;;
10829 esac
10830
10831 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10833 library_names_spec=
10834 libname_spec='lib$name'
10835 soname_spec=
10836 shrext=".so"
10837 postinstall_cmds=
10838 postuninstall_cmds=
10839 finish_cmds=
10840 finish_eval=
10841 shlibpath_var=
10842 shlibpath_overrides_runpath=unknown
10843 version_type=none
10844 dynamic_linker="$host_os ld.so"
10845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10846 if test "$GCC" = yes; then
10847   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10848   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10849     # if the path contains ";" then we assume it to be the separator
10850     # otherwise default to the standard path separator (i.e. ":") - it is
10851     # assumed that no part of a normal pathname contains ";" but that should
10852     # okay in the real world where ";" in dirpaths is itself problematic.
10853     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10854   else
10855     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10856   fi
10857 else
10858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10859 fi
10860 need_lib_prefix=unknown
10861 hardcode_into_libs=no
10862
10863 # when you set need_version to no, make sure it does not cause -set_version
10864 # flags to be left without arguments
10865 need_version=unknown
10866
10867 case $host_os in
10868 aix3*)
10869   version_type=linux
10870   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10871   shlibpath_var=LIBPATH
10872
10873   # AIX 3 has no versioning support, so we append a major version to the name.
10874   soname_spec='${libname}${release}${shared_ext}$major'
10875   ;;
10876
10877 aix4* | aix5*)
10878   version_type=linux
10879   need_lib_prefix=no
10880   need_version=no
10881   hardcode_into_libs=yes
10882   if test "$host_cpu" = ia64; then
10883     # AIX 5 supports IA64
10884     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10885     shlibpath_var=LD_LIBRARY_PATH
10886   else
10887     # With GCC up to 2.95.x, collect2 would create an import file
10888     # for dependence libraries.  The import file would start with
10889     # the line `#! .'.  This would cause the generated library to
10890     # depend on `.', always an invalid library.  This was fixed in
10891     # development snapshots of GCC prior to 3.0.
10892     case $host_os in
10893       aix4 | aix4.[01] | aix4.[01].*)
10894       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10895            echo ' yes '
10896            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10897         :
10898       else
10899         can_build_shared=no
10900       fi
10901       ;;
10902     esac
10903     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10904     # soname into executable. Probably we can add versioning support to
10905     # collect2, so additional links can be useful in future.
10906     if test "$aix_use_runtimelinking" = yes; then
10907       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10908       # instead of lib<name>.a to let people know that these are not
10909       # typical AIX shared libraries.
10910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911     else
10912       # We preserve .a as extension for shared libraries through AIX4.2
10913       # and later when we are not doing run time linking.
10914       library_names_spec='${libname}${release}.a $libname.a'
10915       soname_spec='${libname}${release}${shared_ext}$major'
10916     fi
10917     shlibpath_var=LIBPATH
10918   fi
10919   ;;
10920
10921 amigaos*)
10922   library_names_spec='$libname.ixlibrary $libname.a'
10923   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10924   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'
10925   ;;
10926
10927 beos*)
10928   library_names_spec='${libname}${shared_ext}'
10929   dynamic_linker="$host_os ld.so"
10930   shlibpath_var=LIBRARY_PATH
10931   ;;
10932
10933 bsdi4*)
10934   version_type=linux
10935   need_version=no
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937   soname_spec='${libname}${release}${shared_ext}$major'
10938   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10941   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10942   # the default ld.so.conf also contains /usr/contrib/lib and
10943   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10944   # libtool to hard-code these into programs
10945   ;;
10946
10947 cygwin* | mingw* | pw32*)
10948   version_type=windows
10949   shrext=".dll"
10950   need_version=no
10951   need_lib_prefix=no
10952
10953   case $GCC,$host_os in
10954   yes,cygwin* | yes,mingw* | yes,pw32*)
10955     library_names_spec='$libname.dll.a'
10956     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10957     postinstall_cmds='base_file=`basename \${file}`~
10958       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10959       dldir=$destdir/`dirname \$dlpath`~
10960       test -d \$dldir || mkdir -p \$dldir~
10961       $install_prog $dir/$dlname \$dldir/$dlname'
10962     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10963       dlpath=$dir/\$dldll~
10964        $rm \$dlpath'
10965     shlibpath_overrides_runpath=yes
10966
10967     case $host_os in
10968     cygwin*)
10969       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10970       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10972       ;;
10973     mingw*)
10974       # MinGW DLLs use traditional 'lib' prefix
10975       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10976       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10977       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10978         # It is most probably a Windows format PATH printed by
10979         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10980         # path with ; separators, and with drive letters. We can handle the
10981         # drive letters (cygwin fileutils understands them), so leave them,
10982         # especially as we might pass files found there to a mingw objdump,
10983         # which wouldn't understand a cygwinified path. Ahh.
10984         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10985       else
10986         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10987       fi
10988       ;;
10989     pw32*)
10990       # pw32 DLLs use 'pw' prefix rather than 'lib'
10991       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10992       ;;
10993     esac
10994     ;;
10995
10996   *)
10997     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10998     ;;
10999   esac
11000   dynamic_linker='Win32 ld.exe'
11001   # FIXME: first we should search . and the directory the executable is in
11002   shlibpath_var=PATH
11003   ;;
11004
11005 darwin* | rhapsody*)
11006   dynamic_linker="$host_os dyld"
11007   version_type=darwin
11008   need_lib_prefix=no
11009   need_version=no
11010   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11011   soname_spec='${libname}${release}${major}$shared_ext'
11012   shlibpath_overrides_runpath=yes
11013   shlibpath_var=DYLD_LIBRARY_PATH
11014   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11015   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11016   if test "$GCC" = yes; then
11017     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"`
11018   else
11019     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11020   fi
11021   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11022   ;;
11023
11024 dgux*)
11025   version_type=linux
11026   need_lib_prefix=no
11027   need_version=no
11028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11029   soname_spec='${libname}${release}${shared_ext}$major'
11030   shlibpath_var=LD_LIBRARY_PATH
11031   ;;
11032
11033 freebsd1*)
11034   dynamic_linker=no
11035   ;;
11036
11037 kfreebsd*-gnu)
11038   version_type=linux
11039   need_lib_prefix=no
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   shlibpath_var=LD_LIBRARY_PATH
11044   shlibpath_overrides_runpath=no
11045   hardcode_into_libs=yes
11046   dynamic_linker='GNU ld.so'
11047   ;;
11048
11049 freebsd*)
11050   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11051   version_type=freebsd-$objformat
11052   case $version_type in
11053     freebsd-elf*)
11054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11055       need_version=no
11056       need_lib_prefix=no
11057       ;;
11058     freebsd-*)
11059       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11060       need_version=yes
11061       ;;
11062   esac
11063   shlibpath_var=LD_LIBRARY_PATH
11064   case $host_os in
11065   freebsd2*)
11066     shlibpath_overrides_runpath=yes
11067     ;;
11068   freebsd3.01* | freebsdelf3.01*)
11069     shlibpath_overrides_runpath=yes
11070     hardcode_into_libs=yes
11071     ;;
11072   *) # from 3.2 on
11073     shlibpath_overrides_runpath=no
11074     hardcode_into_libs=yes
11075     ;;
11076   esac
11077   ;;
11078
11079 gnu*)
11080   version_type=linux
11081   need_lib_prefix=no
11082   need_version=no
11083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11084   soname_spec='${libname}${release}${shared_ext}$major'
11085   shlibpath_var=LD_LIBRARY_PATH
11086   hardcode_into_libs=yes
11087   ;;
11088
11089 hpux9* | hpux10* | hpux11*)
11090   # Give a soname corresponding to the major version so that dld.sl refuses to
11091   # link against other versions.
11092   version_type=sunos
11093   need_lib_prefix=no
11094   need_version=no
11095   case "$host_cpu" in
11096   ia64*)
11097     shrext='.so'
11098     hardcode_into_libs=yes
11099     dynamic_linker="$host_os dld.so"
11100     shlibpath_var=LD_LIBRARY_PATH
11101     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103     soname_spec='${libname}${release}${shared_ext}$major'
11104     if test "X$HPUX_IA64_MODE" = X32; then
11105       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11106     else
11107       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11108     fi
11109     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11110     ;;
11111    hppa*64*)
11112      shrext='.sl'
11113      hardcode_into_libs=yes
11114      dynamic_linker="$host_os dld.sl"
11115      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11116      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11117      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118      soname_spec='${libname}${release}${shared_ext}$major'
11119      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11120      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11121      ;;
11122    *)
11123     shrext='.sl'
11124     dynamic_linker="$host_os dld.sl"
11125     shlibpath_var=SHLIB_PATH
11126     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128     soname_spec='${libname}${release}${shared_ext}$major'
11129     ;;
11130   esac
11131   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11132   postinstall_cmds='chmod 555 $lib'
11133   ;;
11134
11135 irix5* | irix6* | nonstopux*)
11136   case $host_os in
11137     nonstopux*) version_type=nonstopux ;;
11138     *)
11139         if test "$lt_cv_prog_gnu_ld" = yes; then
11140                 version_type=linux
11141         else
11142                 version_type=irix
11143         fi ;;
11144   esac
11145   need_lib_prefix=no
11146   need_version=no
11147   soname_spec='${libname}${release}${shared_ext}$major'
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11149   case $host_os in
11150   irix5* | nonstopux*)
11151     libsuff= shlibsuff=
11152     ;;
11153   *)
11154     case $LD in # libtool.m4 will add one of these switches to LD
11155     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11156       libsuff= shlibsuff= libmagic=32-bit;;
11157     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11158       libsuff=32 shlibsuff=N32 libmagic=N32;;
11159     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11160       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11161     *) libsuff= shlibsuff= libmagic=never-match;;
11162     esac
11163     ;;
11164   esac
11165   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11166   shlibpath_overrides_runpath=no
11167   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11168   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11169   hardcode_into_libs=yes
11170   ;;
11171
11172 # No shared lib support for Linux oldld, aout, or coff.
11173 linux*oldld* | linux*aout* | linux*coff*)
11174   dynamic_linker=no
11175   ;;
11176
11177 # This must be Linux ELF.
11178 linux*)
11179   version_type=linux
11180   need_lib_prefix=no
11181   need_version=no
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   shlibpath_overrides_runpath=no
11187   # This implies no fast_install, which is unacceptable.
11188   # Some rework will be needed to allow for fast_install
11189   # before this can be enabled.
11190   hardcode_into_libs=yes
11191
11192   # /usr/X11R6/lib and /usr/local/lib are common enough...
11193   sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
11194
11195   # We used to test for /lib/ld.so.1 and disable shared libraries on
11196   # powerpc, because MkLinux only supported shared libraries with the
11197   # GNU dynamic linker.  Since this was broken with cross compilers,
11198   # most powerpc-linux boxes support dynamic linking these days and
11199   # people can always --disable-shared, the test was removed, and we
11200   # assume the GNU/Linux dynamic linker is in use.
11201   dynamic_linker='GNU/Linux ld.so'
11202   ;;
11203
11204 knetbsd*-gnu)
11205   version_type=linux
11206   need_lib_prefix=no
11207   need_version=no
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   shlibpath_overrides_runpath=no
11212   hardcode_into_libs=yes
11213   dynamic_linker='GNU ld.so'
11214   ;;
11215
11216 netbsd*)
11217   version_type=sunos
11218   need_lib_prefix=no
11219   need_version=no
11220   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11223     dynamic_linker='NetBSD (a.out) ld.so'
11224   else
11225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11226     soname_spec='${libname}${release}${shared_ext}$major'
11227     dynamic_linker='NetBSD ld.elf_so'
11228   fi
11229   shlibpath_var=LD_LIBRARY_PATH
11230   shlibpath_overrides_runpath=yes
11231   hardcode_into_libs=yes
11232   ;;
11233
11234 newsos6)
11235   version_type=linux
11236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237   shlibpath_var=LD_LIBRARY_PATH
11238   shlibpath_overrides_runpath=yes
11239   ;;
11240
11241 nto-qnx*)
11242   version_type=linux
11243   need_lib_prefix=no
11244   need_version=no
11245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246   soname_spec='${libname}${release}${shared_ext}$major'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   shlibpath_overrides_runpath=yes
11249   ;;
11250
11251 openbsd*)
11252   version_type=sunos
11253   need_lib_prefix=no
11254   need_version=yes
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11256   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11257   shlibpath_var=LD_LIBRARY_PATH
11258   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11259     case $host_os in
11260       openbsd2.[89] | openbsd2.[89].*)
11261         shlibpath_overrides_runpath=no
11262         ;;
11263       *)
11264         shlibpath_overrides_runpath=yes
11265         ;;
11266       esac
11267   else
11268     shlibpath_overrides_runpath=yes
11269   fi
11270   ;;
11271
11272 os2*)
11273   libname_spec='$name'
11274   shrext=".dll"
11275   need_lib_prefix=no
11276   library_names_spec='$libname${shared_ext} $libname.a'
11277   dynamic_linker='OS/2 ld.exe'
11278   shlibpath_var=LIBPATH
11279   ;;
11280
11281 osf3* | osf4* | osf5*)
11282   version_type=osf
11283   need_lib_prefix=no
11284   need_version=no
11285   soname_spec='${libname}${release}${shared_ext}$major'
11286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287   shlibpath_var=LD_LIBRARY_PATH
11288   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11289   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11290   ;;
11291
11292 sco3.2v5*)
11293   version_type=osf
11294   soname_spec='${libname}${release}${shared_ext}$major'
11295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296   shlibpath_var=LD_LIBRARY_PATH
11297   ;;
11298
11299 solaris*)
11300   version_type=linux
11301   need_lib_prefix=no
11302   need_version=no
11303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304   soname_spec='${libname}${release}${shared_ext}$major'
11305   shlibpath_var=LD_LIBRARY_PATH
11306   shlibpath_overrides_runpath=yes
11307   hardcode_into_libs=yes
11308   # ldd complains unless libraries are executable
11309   postinstall_cmds='chmod +x $lib'
11310   ;;
11311
11312 sunos4*)
11313   version_type=sunos
11314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11315   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11316   shlibpath_var=LD_LIBRARY_PATH
11317   shlibpath_overrides_runpath=yes
11318   if test "$with_gnu_ld" = yes; then
11319     need_lib_prefix=no
11320   fi
11321   need_version=yes
11322   ;;
11323
11324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11325   version_type=linux
11326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327   soname_spec='${libname}${release}${shared_ext}$major'
11328   shlibpath_var=LD_LIBRARY_PATH
11329   case $host_vendor in
11330     sni)
11331       shlibpath_overrides_runpath=no
11332       need_lib_prefix=no
11333       export_dynamic_flag_spec='${wl}-Blargedynsym'
11334       runpath_var=LD_RUN_PATH
11335       ;;
11336     siemens)
11337       need_lib_prefix=no
11338       ;;
11339     motorola)
11340       need_lib_prefix=no
11341       need_version=no
11342       shlibpath_overrides_runpath=no
11343       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11344       ;;
11345   esac
11346   ;;
11347
11348 sysv4*MP*)
11349   if test -d /usr/nec ;then
11350     version_type=linux
11351     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11352     soname_spec='$libname${shared_ext}.$major'
11353     shlibpath_var=LD_LIBRARY_PATH
11354   fi
11355   ;;
11356
11357 uts4*)
11358   version_type=linux
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360   soname_spec='${libname}${release}${shared_ext}$major'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   ;;
11363
11364 *)
11365   dynamic_linker=no
11366   ;;
11367 esac
11368 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11369 echo "${ECHO_T}$dynamic_linker" >&6
11370 test "$dynamic_linker" = no && can_build_shared=no
11371
11372 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11373 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11374 hardcode_action_CXX=
11375 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11376    test -n "$runpath_var CXX" || \
11377    test "X$hardcode_automatic_CXX"="Xyes" ; then
11378
11379   # We can hardcode non-existant directories.
11380   if test "$hardcode_direct_CXX" != no &&
11381      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11382      # have to relink, otherwise we might link with an installed library
11383      # when we should be linking with a yet-to-be-installed one
11384      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11385      test "$hardcode_minus_L_CXX" != no; then
11386     # Linking always hardcodes the temporary library directory.
11387     hardcode_action_CXX=relink
11388   else
11389     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11390     hardcode_action_CXX=immediate
11391   fi
11392 else
11393   # We cannot hardcode anything, or else we can only hardcode existing
11394   # directories.
11395   hardcode_action_CXX=unsupported
11396 fi
11397 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11398 echo "${ECHO_T}$hardcode_action_CXX" >&6
11399
11400 if test "$hardcode_action_CXX" = relink; then
11401   # Fast installation is not supported
11402   enable_fast_install=no
11403 elif test "$shlibpath_overrides_runpath" = yes ||
11404      test "$enable_shared" = no; then
11405   # Fast installation is not necessary
11406   enable_fast_install=needless
11407 fi
11408
11409 striplib=
11410 old_striplib=
11411 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11412 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11413 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11414   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11415   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11416   echo "$as_me:$LINENO: result: yes" >&5
11417 echo "${ECHO_T}yes" >&6
11418 else
11419 # FIXME - insert some real tests, host_os isn't really good enough
11420   case $host_os in
11421    darwin*)
11422        if test -n "$STRIP" ; then
11423          striplib="$STRIP -x"
11424          echo "$as_me:$LINENO: result: yes" >&5
11425 echo "${ECHO_T}yes" >&6
11426        else
11427   echo "$as_me:$LINENO: result: no" >&5
11428 echo "${ECHO_T}no" >&6
11429 fi
11430        ;;
11431    *)
11432   echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6
11434     ;;
11435   esac
11436 fi
11437
11438 if test "x$enable_dlopen" != xyes; then
11439   enable_dlopen=unknown
11440   enable_dlopen_self=unknown
11441   enable_dlopen_self_static=unknown
11442 else
11443   lt_cv_dlopen=no
11444   lt_cv_dlopen_libs=
11445
11446   case $host_os in
11447   beos*)
11448     lt_cv_dlopen="load_add_on"
11449     lt_cv_dlopen_libs=
11450     lt_cv_dlopen_self=yes
11451     ;;
11452
11453   mingw* | pw32*)
11454     lt_cv_dlopen="LoadLibrary"
11455     lt_cv_dlopen_libs=
11456    ;;
11457
11458   cygwin*)
11459     lt_cv_dlopen="dlopen"
11460     lt_cv_dlopen_libs=
11461    ;;
11462
11463   darwin*)
11464   # if libdl is installed we need to link against it
11465     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldl  $LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478
11479 /* Override any gcc2 internal prototype to avoid an error.  */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484    builtin and then its argument prototype would still apply.  */
11485 char dlopen ();
11486 int
11487 main ()
11488 {
11489 dlopen ();
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>conftest.er1
11497   ac_status=$?
11498   grep -v '^ *+' conftest.er1 >conftest.err
11499   rm -f conftest.er1
11500   cat conftest.err >&5
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } &&
11503          { ac_try='test -z "$ac_cxx_werror_flag"
11504                          || test ! -s conftest.err'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; } &&
11510          { ac_try='test -s conftest$ac_exeext'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_lib_dl_dlopen=yes
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_cv_lib_dl_dlopen=no
11522 fi
11523 rm -f conftest.err conftest.$ac_objext \
11524       conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11528 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11529 if test $ac_cv_lib_dl_dlopen = yes; then
11530   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11531 else
11532
11533     lt_cv_dlopen="dyld"
11534     lt_cv_dlopen_libs=
11535     lt_cv_dlopen_self=yes
11536
11537 fi
11538
11539    ;;
11540
11541   *)
11542     echo "$as_me:$LINENO: checking for shl_load" >&5
11543 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11544 if test "${ac_cv_func_shl_load+set}" = set; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11555 #define shl_load innocuous_shl_load
11556
11557 /* System header to define __stub macros and hopefully few prototypes,
11558     which can conflict with char shl_load (); below.
11559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560     <limits.h> exists even on freestanding compilers.  */
11561
11562 #ifdef __STDC__
11563 # include <limits.h>
11564 #else
11565 # include <assert.h>
11566 #endif
11567
11568 #undef shl_load
11569
11570 /* Override any gcc2 internal prototype to avoid an error.  */
11571 #ifdef __cplusplus
11572 extern "C"
11573 {
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576    builtin and then its argument prototype would still apply.  */
11577 char shl_load ();
11578 /* The GNU C library defines this for functions which it implements
11579     to always fail with ENOSYS.  Some functions are actually named
11580     something starting with __ and the normal name is an alias.  */
11581 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11582 choke me
11583 #else
11584 char (*f) () = shl_load;
11585 #endif
11586 #ifdef __cplusplus
11587 }
11588 #endif
11589
11590 int
11591 main ()
11592 {
11593 return f != shl_load;
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600   (eval $ac_link) 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } &&
11607          { ac_try='test -z "$ac_cxx_werror_flag"
11608                          || test ! -s conftest.err'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; } &&
11614          { ac_try='test -s conftest$ac_exeext'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; }; then
11620   ac_cv_func_shl_load=yes
11621 else
11622   echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 ac_cv_func_shl_load=no
11626 fi
11627 rm -f conftest.err conftest.$ac_objext \
11628       conftest$ac_exeext conftest.$ac_ext
11629 fi
11630 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11631 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11632 if test $ac_cv_func_shl_load = yes; then
11633   lt_cv_dlopen="shl_load"
11634 else
11635   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11636 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11637 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-ldld  $LIBS"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648
11649 /* Override any gcc2 internal prototype to avoid an error.  */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 /* We use char because int might match the return type of a gcc2
11654    builtin and then its argument prototype would still apply.  */
11655 char shl_load ();
11656 int
11657 main ()
11658 {
11659 shl_load ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666   (eval $ac_link) 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_cxx_werror_flag"
11674                          || test ! -s conftest.err'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; } &&
11680          { ac_try='test -s conftest$ac_exeext'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_cv_lib_dld_shl_load=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_cv_lib_dld_shl_load=no
11692 fi
11693 rm -f conftest.err conftest.$ac_objext \
11694       conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11699 if test $ac_cv_lib_dld_shl_load = yes; then
11700   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11701 else
11702   echo "$as_me:$LINENO: checking for dlopen" >&5
11703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11704 if test "${ac_cv_func_dlopen+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h.  */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h.  */
11713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11715 #define dlopen innocuous_dlopen
11716
11717 /* System header to define __stub macros and hopefully few prototypes,
11718     which can conflict with char dlopen (); below.
11719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720     <limits.h> exists even on freestanding compilers.  */
11721
11722 #ifdef __STDC__
11723 # include <limits.h>
11724 #else
11725 # include <assert.h>
11726 #endif
11727
11728 #undef dlopen
11729
11730 /* Override any gcc2 internal prototype to avoid an error.  */
11731 #ifdef __cplusplus
11732 extern "C"
11733 {
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736    builtin and then its argument prototype would still apply.  */
11737 char dlopen ();
11738 /* The GNU C library defines this for functions which it implements
11739     to always fail with ENOSYS.  Some functions are actually named
11740     something starting with __ and the normal name is an alias.  */
11741 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11742 choke me
11743 #else
11744 char (*f) () = dlopen;
11745 #endif
11746 #ifdef __cplusplus
11747 }
11748 #endif
11749
11750 int
11751 main ()
11752 {
11753 return f != dlopen;
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760   (eval $ac_link) 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -z "$ac_cxx_werror_flag"
11768                          || test ! -s conftest.err'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; } &&
11774          { ac_try='test -s conftest$ac_exeext'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; }; then
11780   ac_cv_func_dlopen=yes
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_func_dlopen=no
11786 fi
11787 rm -f conftest.err conftest.$ac_objext \
11788       conftest$ac_exeext conftest.$ac_ext
11789 fi
11790 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11791 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11792 if test $ac_cv_func_dlopen = yes; then
11793   lt_cv_dlopen="dlopen"
11794 else
11795   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11796 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11797 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   ac_check_lib_save_LIBS=$LIBS
11801 LIBS="-ldl  $LIBS"
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808
11809 /* Override any gcc2 internal prototype to avoid an error.  */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 /* We use char because int might match the return type of a gcc2
11814    builtin and then its argument prototype would still apply.  */
11815 char dlopen ();
11816 int
11817 main ()
11818 {
11819 dlopen ();
11820   ;
11821   return 0;
11822 }
11823 _ACEOF
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826   (eval $ac_link) 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -z "$ac_cxx_werror_flag"
11834                          || test ! -s conftest.err'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; } &&
11840          { ac_try='test -s conftest$ac_exeext'
11841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842   (eval $ac_try) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); }; }; then
11846   ac_cv_lib_dl_dlopen=yes
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 ac_cv_lib_dl_dlopen=no
11852 fi
11853 rm -f conftest.err conftest.$ac_objext \
11854       conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11856 fi
11857 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11858 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11859 if test $ac_cv_lib_dl_dlopen = yes; then
11860   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11861 else
11862   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11863 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11864 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11865   echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867   ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-lsvld  $LIBS"
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875
11876 /* Override any gcc2 internal prototype to avoid an error.  */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 /* We use char because int might match the return type of a gcc2
11881    builtin and then its argument prototype would still apply.  */
11882 char dlopen ();
11883 int
11884 main ()
11885 {
11886 dlopen ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893   (eval $ac_link) 2>conftest.er1
11894   ac_status=$?
11895   grep -v '^ *+' conftest.er1 >conftest.err
11896   rm -f conftest.er1
11897   cat conftest.err >&5
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } &&
11900          { ac_try='test -z "$ac_cxx_werror_flag"
11901                          || test ! -s conftest.err'
11902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903   (eval $ac_try) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; } &&
11907          { ac_try='test -s conftest$ac_exeext'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   ac_cv_lib_svld_dlopen=yes
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_cv_lib_svld_dlopen=no
11919 fi
11920 rm -f conftest.err conftest.$ac_objext \
11921       conftest$ac_exeext conftest.$ac_ext
11922 LIBS=$ac_check_lib_save_LIBS
11923 fi
11924 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11925 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11926 if test $ac_cv_lib_svld_dlopen = yes; then
11927   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11928 else
11929   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11930 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11931 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-ldld  $LIBS"
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942
11943 /* Override any gcc2 internal prototype to avoid an error.  */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 /* We use char because int might match the return type of a gcc2
11948    builtin and then its argument prototype would still apply.  */
11949 char dld_link ();
11950 int
11951 main ()
11952 {
11953 dld_link ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960   (eval $ac_link) 2>conftest.er1
11961   ac_status=$?
11962   grep -v '^ *+' conftest.er1 >conftest.err
11963   rm -f conftest.er1
11964   cat conftest.err >&5
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -z "$ac_cxx_werror_flag"
11968                          || test ! -s conftest.err'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; } &&
11974          { ac_try='test -s conftest$ac_exeext'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   ac_cv_lib_dld_dld_link=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 ac_cv_lib_dld_dld_link=no
11986 fi
11987 rm -f conftest.err conftest.$ac_objext \
11988       conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11990 fi
11991 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11993 if test $ac_cv_lib_dld_dld_link = yes; then
11994   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11995 fi
11996
11997
11998 fi
11999
12000
12001 fi
12002
12003
12004 fi
12005
12006
12007 fi
12008
12009
12010 fi
12011
12012     ;;
12013   esac
12014
12015   if test "x$lt_cv_dlopen" != xno; then
12016     enable_dlopen=yes
12017   else
12018     enable_dlopen=no
12019   fi
12020
12021   case $lt_cv_dlopen in
12022   dlopen)
12023     save_CPPFLAGS="$CPPFLAGS"
12024     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12025
12026     save_LDFLAGS="$LDFLAGS"
12027     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12028
12029     save_LIBS="$LIBS"
12030     LIBS="$lt_cv_dlopen_libs $LIBS"
12031
12032     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12033 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12034 if test "${lt_cv_dlopen_self+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037           if test "$cross_compiling" = yes; then :
12038   lt_cv_dlopen_self=cross
12039 else
12040   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041   lt_status=$lt_dlunknown
12042   cat > conftest.$ac_ext <<EOF
12043 #line 12043 "configure"
12044 #include "confdefs.h"
12045
12046 #if HAVE_DLFCN_H
12047 #include <dlfcn.h>
12048 #endif
12049
12050 #include <stdio.h>
12051
12052 #ifdef RTLD_GLOBAL
12053 #  define LT_DLGLOBAL           RTLD_GLOBAL
12054 #else
12055 #  ifdef DL_GLOBAL
12056 #    define LT_DLGLOBAL         DL_GLOBAL
12057 #  else
12058 #    define LT_DLGLOBAL         0
12059 #  endif
12060 #endif
12061
12062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063    find out it does not work in some platform. */
12064 #ifndef LT_DLLAZY_OR_NOW
12065 #  ifdef RTLD_LAZY
12066 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12067 #  else
12068 #    ifdef DL_LAZY
12069 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12070 #    else
12071 #      ifdef RTLD_NOW
12072 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12073 #      else
12074 #        ifdef DL_NOW
12075 #          define LT_DLLAZY_OR_NOW      DL_NOW
12076 #        else
12077 #          define LT_DLLAZY_OR_NOW      0
12078 #        endif
12079 #      endif
12080 #    endif
12081 #  endif
12082 #endif
12083
12084 #ifdef __cplusplus
12085 extern "C" void exit (int);
12086 #endif
12087
12088 void fnord() { int i=42;}
12089 int main ()
12090 {
12091   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12092   int status = $lt_dlunknown;
12093
12094   if (self)
12095     {
12096       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12097       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12098       /* dlclose (self); */
12099     }
12100
12101     exit (status);
12102 }
12103 EOF
12104   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105   (eval $ac_link) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12109     (./conftest; exit; ) 2>/dev/null
12110     lt_status=$?
12111     case x$lt_status in
12112       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12115     esac
12116   else :
12117     # compilation failed
12118     lt_cv_dlopen_self=no
12119   fi
12120 fi
12121 rm -fr conftest*
12122
12123
12124 fi
12125 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12126 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12127
12128     if test "x$lt_cv_dlopen_self" = xyes; then
12129       LDFLAGS="$LDFLAGS $link_static_flag"
12130       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12131 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12132 if test "${lt_cv_dlopen_self_static+set}" = set; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135           if test "$cross_compiling" = yes; then :
12136   lt_cv_dlopen_self_static=cross
12137 else
12138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139   lt_status=$lt_dlunknown
12140   cat > conftest.$ac_ext <<EOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12143
12144 #if HAVE_DLFCN_H
12145 #include <dlfcn.h>
12146 #endif
12147
12148 #include <stdio.h>
12149
12150 #ifdef RTLD_GLOBAL
12151 #  define LT_DLGLOBAL           RTLD_GLOBAL
12152 #else
12153 #  ifdef DL_GLOBAL
12154 #    define LT_DLGLOBAL         DL_GLOBAL
12155 #  else
12156 #    define LT_DLGLOBAL         0
12157 #  endif
12158 #endif
12159
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161    find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12163 #  ifdef RTLD_LAZY
12164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12165 #  else
12166 #    ifdef DL_LAZY
12167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12168 #    else
12169 #      ifdef RTLD_NOW
12170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12171 #      else
12172 #        ifdef DL_NOW
12173 #          define LT_DLLAZY_OR_NOW      DL_NOW
12174 #        else
12175 #          define LT_DLLAZY_OR_NOW      0
12176 #        endif
12177 #      endif
12178 #    endif
12179 #  endif
12180 #endif
12181
12182 #ifdef __cplusplus
12183 extern "C" void exit (int);
12184 #endif
12185
12186 void fnord() { int i=42;}
12187 int main ()
12188 {
12189   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190   int status = $lt_dlunknown;
12191
12192   if (self)
12193     {
12194       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12195       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12196       /* dlclose (self); */
12197     }
12198
12199     exit (status);
12200 }
12201 EOF
12202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203   (eval $ac_link) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12207     (./conftest; exit; ) 2>/dev/null
12208     lt_status=$?
12209     case x$lt_status in
12210       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12211       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12212       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12213     esac
12214   else :
12215     # compilation failed
12216     lt_cv_dlopen_self_static=no
12217   fi
12218 fi
12219 rm -fr conftest*
12220
12221
12222 fi
12223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12224 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12225     fi
12226
12227     CPPFLAGS="$save_CPPFLAGS"
12228     LDFLAGS="$save_LDFLAGS"
12229     LIBS="$save_LIBS"
12230     ;;
12231   esac
12232
12233   case $lt_cv_dlopen_self in
12234   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12235   *) enable_dlopen_self=unknown ;;
12236   esac
12237
12238   case $lt_cv_dlopen_self_static in
12239   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12240   *) enable_dlopen_self_static=unknown ;;
12241   esac
12242 fi
12243
12244
12245 # The else clause should only fire when bootstrapping the
12246 # libtool distribution, otherwise you forgot to ship ltmain.sh
12247 # with your package, and you will get complaints that there are
12248 # no rules to generate ltmain.sh.
12249 if test -f "$ltmain"; then
12250   # See if we are running on zsh, and set the options which allow our commands through
12251   # without removal of \ escapes.
12252   if test -n "${ZSH_VERSION+set}" ; then
12253     setopt NO_GLOB_SUBST
12254   fi
12255   # Now quote all the things that may contain metacharacters while being
12256   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12257   # variables and quote the copies for generation of the libtool script.
12258   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12259     SED SHELL STRIP \
12260     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12261     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12262     deplibs_check_method reload_flag reload_cmds need_locks \
12263     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12264     lt_cv_sys_global_symbol_to_c_name_address \
12265     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12266     old_postinstall_cmds old_postuninstall_cmds \
12267     compiler_CXX \
12268     CC_CXX \
12269     LD_CXX \
12270     lt_prog_compiler_wl_CXX \
12271     lt_prog_compiler_pic_CXX \
12272     lt_prog_compiler_static_CXX \
12273     lt_prog_compiler_no_builtin_flag_CXX \
12274     export_dynamic_flag_spec_CXX \
12275     thread_safe_flag_spec_CXX \
12276     whole_archive_flag_spec_CXX \
12277     enable_shared_with_static_runtimes_CXX \
12278     old_archive_cmds_CXX \
12279     old_archive_from_new_cmds_CXX \
12280     predep_objects_CXX \
12281     postdep_objects_CXX \
12282     predeps_CXX \
12283     postdeps_CXX \
12284     compiler_lib_search_path_CXX \
12285     archive_cmds_CXX \
12286     archive_expsym_cmds_CXX \
12287     postinstall_cmds_CXX \
12288     postuninstall_cmds_CXX \
12289     old_archive_from_expsyms_cmds_CXX \
12290     allow_undefined_flag_CXX \
12291     no_undefined_flag_CXX \
12292     export_symbols_cmds_CXX \
12293     hardcode_libdir_flag_spec_CXX \
12294     hardcode_libdir_flag_spec_ld_CXX \
12295     hardcode_libdir_separator_CXX \
12296     hardcode_automatic_CXX \
12297     module_cmds_CXX \
12298     module_expsym_cmds_CXX \
12299     lt_cv_prog_compiler_c_o_CXX \
12300     exclude_expsyms_CXX \
12301     include_expsyms_CXX; do
12302
12303     case $var in
12304     old_archive_cmds_CXX | \
12305     old_archive_from_new_cmds_CXX | \
12306     archive_cmds_CXX | \
12307     archive_expsym_cmds_CXX | \
12308     module_cmds_CXX | \
12309     module_expsym_cmds_CXX | \
12310     old_archive_from_expsyms_cmds_CXX | \
12311     export_symbols_cmds_CXX | \
12312     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12313     postinstall_cmds | postuninstall_cmds | \
12314     old_postinstall_cmds | old_postuninstall_cmds | \
12315     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12316       # Double-quote double-evaled strings.
12317       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12318       ;;
12319     *)
12320       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12321       ;;
12322     esac
12323   done
12324
12325   case $lt_echo in
12326   *'\$0 --fallback-echo"')
12327     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12328     ;;
12329   esac
12330
12331 cfgfile="$ofile"
12332
12333   cat <<__EOF__ >> "$cfgfile"
12334 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12335
12336 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12337
12338 # Shell to use when invoking shell scripts.
12339 SHELL=$lt_SHELL
12340
12341 # Whether or not to build shared libraries.
12342 build_libtool_libs=$enable_shared
12343
12344 # Whether or not to build static libraries.
12345 build_old_libs=$enable_static
12346
12347 # Whether or not to add -lc for building shared libraries.
12348 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12349
12350 # Whether or not to disallow shared libs when runtime libs are static
12351 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12352
12353 # Whether or not to optimize for fast installation.
12354 fast_install=$enable_fast_install
12355
12356 # The host system.
12357 host_alias=$host_alias
12358 host=$host
12359
12360 # An echo program that does not interpret backslashes.
12361 echo=$lt_echo
12362
12363 # The archiver.
12364 AR=$lt_AR
12365 AR_FLAGS=$lt_AR_FLAGS
12366
12367 # A C compiler.
12368 LTCC=$lt_LTCC
12369
12370 # A language-specific compiler.
12371 CC=$lt_compiler_CXX
12372
12373 # Is the compiler the GNU C compiler?
12374 with_gcc=$GCC_CXX
12375
12376 # An ERE matcher.
12377 EGREP=$lt_EGREP
12378
12379 # The linker used to build libraries.
12380 LD=$lt_LD_CXX
12381
12382 # Whether we need hard or soft links.
12383 LN_S=$lt_LN_S
12384
12385 # A BSD-compatible nm program.
12386 NM=$lt_NM
12387
12388 # A symbol stripping program
12389 STRIP=$lt_STRIP
12390
12391 # Used to examine libraries when file_magic_cmd begins "file"
12392 MAGIC_CMD=$MAGIC_CMD
12393
12394 # Used on cygwin: DLL creation program.
12395 DLLTOOL="$DLLTOOL"
12396
12397 # Used on cygwin: object dumper.
12398 OBJDUMP="$OBJDUMP"
12399
12400 # Used on cygwin: assembler.
12401 AS="$AS"
12402
12403 # The name of the directory that contains temporary libtool files.
12404 objdir=$objdir
12405
12406 # How to create reloadable object files.
12407 reload_flag=$lt_reload_flag
12408 reload_cmds=$lt_reload_cmds
12409
12410 # How to pass a linker flag through the compiler.
12411 wl=$lt_lt_prog_compiler_wl_CXX
12412
12413 # Object file suffix (normally "o").
12414 objext="$ac_objext"
12415
12416 # Old archive suffix (normally "a").
12417 libext="$libext"
12418
12419 # Shared library suffix (normally ".so").
12420 shrext='$shrext'
12421
12422 # Executable file suffix (normally "").
12423 exeext="$exeext"
12424
12425 # Additional compiler flags for building library objects.
12426 pic_flag=$lt_lt_prog_compiler_pic_CXX
12427 pic_mode=$pic_mode
12428
12429 # What is the maximum length of a command?
12430 max_cmd_len=$lt_cv_sys_max_cmd_len
12431
12432 # Does compiler simultaneously support -c and -o options?
12433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12434
12435 # Must we lock files when doing compilation ?
12436 need_locks=$lt_need_locks
12437
12438 # Do we need the lib prefix for modules?
12439 need_lib_prefix=$need_lib_prefix
12440
12441 # Do we need a version for libraries?
12442 need_version=$need_version
12443
12444 # Whether dlopen is supported.
12445 dlopen_support=$enable_dlopen
12446
12447 # Whether dlopen of programs is supported.
12448 dlopen_self=$enable_dlopen_self
12449
12450 # Whether dlopen of statically linked programs is supported.
12451 dlopen_self_static=$enable_dlopen_self_static
12452
12453 # Compiler flag to prevent dynamic linking.
12454 link_static_flag=$lt_lt_prog_compiler_static_CXX
12455
12456 # Compiler flag to turn off builtin functions.
12457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12458
12459 # Compiler flag to allow reflexive dlopens.
12460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12461
12462 # Compiler flag to generate shared objects directly from archives.
12463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12464
12465 # Compiler flag to generate thread-safe objects.
12466 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12467
12468 # Library versioning type.
12469 version_type=$version_type
12470
12471 # Format of library name prefix.
12472 libname_spec=$lt_libname_spec
12473
12474 # List of archive names.  First name is the real one, the rest are links.
12475 # The last name is the one that the linker finds with -lNAME.
12476 library_names_spec=$lt_library_names_spec
12477
12478 # The coded name of the library, if different from the real name.
12479 soname_spec=$lt_soname_spec
12480
12481 # Commands used to build and install an old-style archive.
12482 RANLIB=$lt_RANLIB
12483 old_archive_cmds=$lt_old_archive_cmds_CXX
12484 old_postinstall_cmds=$lt_old_postinstall_cmds
12485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12486
12487 # Create an old-style archive from a shared archive.
12488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12489
12490 # Create a temporary old-style archive to link instead of a shared archive.
12491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12492
12493 # Commands used to build and install a shared archive.
12494 archive_cmds=$lt_archive_cmds_CXX
12495 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12496 postinstall_cmds=$lt_postinstall_cmds
12497 postuninstall_cmds=$lt_postuninstall_cmds
12498
12499 # Commands used to build a loadable module (assumed same as above if empty)
12500 module_cmds=$lt_module_cmds_CXX
12501 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12502
12503 # Commands to strip libraries.
12504 old_striplib=$lt_old_striplib
12505 striplib=$lt_striplib
12506
12507 # Dependencies to place before the objects being linked to create a
12508 # shared library.
12509 predep_objects=$lt_predep_objects_CXX
12510
12511 # Dependencies to place after the objects being linked to create a
12512 # shared library.
12513 postdep_objects=$lt_postdep_objects_CXX
12514
12515 # Dependencies to place before the objects being linked to create a
12516 # shared library.
12517 predeps=$lt_predeps_CXX
12518
12519 # Dependencies to place after the objects being linked to create a
12520 # shared library.
12521 postdeps=$lt_postdeps_CXX
12522
12523 # The library search path used internally by the compiler when linking
12524 # a shared library.
12525 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12526
12527 # Method to check whether dependent libraries are shared objects.
12528 deplibs_check_method=$lt_deplibs_check_method
12529
12530 # Command to use when deplibs_check_method == file_magic.
12531 file_magic_cmd=$lt_file_magic_cmd
12532
12533 # Flag that allows shared libraries with undefined symbols to be built.
12534 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12535
12536 # Flag that forces no undefined symbols.
12537 no_undefined_flag=$lt_no_undefined_flag_CXX
12538
12539 # Commands used to finish a libtool library installation in a directory.
12540 finish_cmds=$lt_finish_cmds
12541
12542 # Same as above, but a single script fragment to be evaled but not shown.
12543 finish_eval=$lt_finish_eval
12544
12545 # Take the output of nm and produce a listing of raw symbols and C names.
12546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12547
12548 # Transform the output of nm in a proper C declaration
12549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12550
12551 # Transform the output of nm in a C name address pair
12552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12553
12554 # This is the shared library runtime path variable.
12555 runpath_var=$runpath_var
12556
12557 # This is the shared library path variable.
12558 shlibpath_var=$shlibpath_var
12559
12560 # Is shlibpath searched before the hard-coded library search path?
12561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12562
12563 # How to hardcode a shared library path into an executable.
12564 hardcode_action=$hardcode_action_CXX
12565
12566 # Whether we should hardcode library paths into libraries.
12567 hardcode_into_libs=$hardcode_into_libs
12568
12569 # Flag to hardcode \$libdir into a binary during linking.
12570 # This must work even if \$libdir does not exist.
12571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12572
12573 # If ld is used when linking, flag to hardcode \$libdir into
12574 # a binary during linking. This must work even if \$libdir does
12575 # not exist.
12576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12577
12578 # Whether we need a single -rpath flag with a separated argument.
12579 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12580
12581 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12582 # resulting binary.
12583 hardcode_direct=$hardcode_direct_CXX
12584
12585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12586 # resulting binary.
12587 hardcode_minus_L=$hardcode_minus_L_CXX
12588
12589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12590 # the resulting binary.
12591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12592
12593 # Set to yes if building a shared library automatically hardcodes DIR into the library
12594 # and all subsequent libraries and executables linked against it.
12595 hardcode_automatic=$hardcode_automatic_CXX
12596
12597 # Variables whose values should be saved in libtool wrapper scripts and
12598 # restored at relink time.
12599 variables_saved_for_relink="$variables_saved_for_relink"
12600
12601 # Whether libtool must link a program against all its dependency libraries.
12602 link_all_deplibs=$link_all_deplibs_CXX
12603
12604 # Compile-time system search path for libraries
12605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12606
12607 # Run-time system search path for libraries
12608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12609
12610 # Fix the shell variable \$srcfile for the compiler.
12611 fix_srcfile_path="$fix_srcfile_path_CXX"
12612
12613 # Set to yes if exported symbols are required.
12614 always_export_symbols=$always_export_symbols_CXX
12615
12616 # The commands to list exported symbols.
12617 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12618
12619 # The commands to extract the exported symbol list from a shared archive.
12620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12621
12622 # Symbols that should not be listed in the preloaded symbols.
12623 exclude_expsyms=$lt_exclude_expsyms_CXX
12624
12625 # Symbols that must always be exported.
12626 include_expsyms=$lt_include_expsyms_CXX
12627
12628 # ### END LIBTOOL TAG CONFIG: $tagname
12629
12630 __EOF__
12631
12632
12633 else
12634   # If there is no Makefile yet, we rely on a make rule to execute
12635   # `config.status --recheck' to rerun these tests and create the
12636   # libtool script then.
12637   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12638   if test -f "$ltmain_in"; then
12639     test -f Makefile && make "$ltmain"
12640   fi
12641 fi
12642
12643
12644 ac_ext=c
12645 ac_cpp='$CPP $CPPFLAGS'
12646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12649
12650 CC=$lt_save_CC
12651 LDCXX=$LD
12652 LD=$lt_save_LD
12653 GCC=$lt_save_GCC
12654 with_gnu_ldcxx=$with_gnu_ld
12655 with_gnu_ld=$lt_save_with_gnu_ld
12656 lt_cv_path_LDCXX=$lt_cv_path_LD
12657 lt_cv_path_LD=$lt_save_path_LD
12658 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12659 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12660
12661         else
12662           tagname=""
12663         fi
12664         ;;
12665
12666       F77)
12667         if test -n "$F77" && test "X$F77" != "Xno"; then
12668
12669 ac_ext=f
12670 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12671 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12673
12674
12675 archive_cmds_need_lc_F77=no
12676 allow_undefined_flag_F77=
12677 always_export_symbols_F77=no
12678 archive_expsym_cmds_F77=
12679 export_dynamic_flag_spec_F77=
12680 hardcode_direct_F77=no
12681 hardcode_libdir_flag_spec_F77=
12682 hardcode_libdir_flag_spec_ld_F77=
12683 hardcode_libdir_separator_F77=
12684 hardcode_minus_L_F77=no
12685 hardcode_automatic_F77=no
12686 module_cmds_F77=
12687 module_expsym_cmds_F77=
12688 link_all_deplibs_F77=unknown
12689 old_archive_cmds_F77=$old_archive_cmds
12690 no_undefined_flag_F77=
12691 whole_archive_flag_spec_F77=
12692 enable_shared_with_static_runtimes_F77=no
12693
12694 # Source file extension for f77 test sources.
12695 ac_ext=f
12696
12697 # Object file extension for compiled f77 test sources.
12698 objext=o
12699 objext_F77=$objext
12700
12701 # Code to be used in simple compile tests
12702 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12703
12704 # Code to be used in simple link tests
12705 lt_simple_link_test_code="      program t\n      end\n"
12706
12707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12708
12709 # If no C compiler was specified, use CC.
12710 LTCC=${LTCC-"$CC"}
12711
12712 # Allow CC to be a program name with arguments.
12713 compiler=$CC
12714
12715
12716 # Allow CC to be a program name with arguments.
12717 lt_save_CC="$CC"
12718 CC=${F77-"f77"}
12719 compiler=$CC
12720 compiler_F77=$CC
12721 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12722
12723 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12724 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12725 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12726 echo "${ECHO_T}$can_build_shared" >&6
12727
12728 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12729 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12730 test "$can_build_shared" = "no" && enable_shared=no
12731
12732 # On AIX, shared libraries and static libraries use the same namespace, and
12733 # are all built from PIC.
12734 case "$host_os" in
12735 aix3*)
12736   test "$enable_shared" = yes && enable_static=no
12737   if test -n "$RANLIB"; then
12738     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12739     postinstall_cmds='$RANLIB $lib'
12740   fi
12741   ;;
12742 aix4*)
12743   test "$enable_shared" = yes && enable_static=no
12744   ;;
12745 esac
12746 echo "$as_me:$LINENO: result: $enable_shared" >&5
12747 echo "${ECHO_T}$enable_shared" >&6
12748
12749 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12750 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12751 # Make sure either enable_shared or enable_static is yes.
12752 test "$enable_shared" = yes || enable_static=yes
12753 echo "$as_me:$LINENO: result: $enable_static" >&5
12754 echo "${ECHO_T}$enable_static" >&6
12755
12756 test "$ld_shlibs_F77" = no && can_build_shared=no
12757
12758 GCC_F77="$G77"
12759 LD_F77="$LD"
12760
12761 lt_prog_compiler_wl_F77=
12762 lt_prog_compiler_pic_F77=
12763 lt_prog_compiler_static_F77=
12764
12765 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12767
12768   if test "$GCC" = yes; then
12769     lt_prog_compiler_wl_F77='-Wl,'
12770     lt_prog_compiler_static_F77='-static'
12771
12772     case $host_os in
12773       aix*)
12774       # All AIX code is PIC.
12775       if test "$host_cpu" = ia64; then
12776         # AIX 5 now supports IA64 processor
12777         lt_prog_compiler_static_F77='-Bstatic'
12778       fi
12779       ;;
12780
12781     amigaos*)
12782       # FIXME: we need at least 68020 code to build shared libraries, but
12783       # adding the `-m68020' flag to GCC prevents building anything better,
12784       # like `-m68040'.
12785       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12786       ;;
12787
12788     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12789       # PIC is the default for these OSes.
12790       ;;
12791
12792     mingw* | pw32* | os2*)
12793       # This hack is so that the source file can tell whether it is being
12794       # built for inclusion in a dll (and should export symbols for example).
12795       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12796       ;;
12797
12798     darwin* | rhapsody*)
12799       # PIC is the default on this platform
12800       # Common symbols not allowed in MH_DYLIB files
12801       lt_prog_compiler_pic_F77='-fno-common'
12802       ;;
12803
12804     msdosdjgpp*)
12805       # Just because we use GCC doesn't mean we suddenly get shared libraries
12806       # on systems that don't support them.
12807       lt_prog_compiler_can_build_shared_F77=no
12808       enable_shared=no
12809       ;;
12810
12811     sysv4*MP*)
12812       if test -d /usr/nec; then
12813         lt_prog_compiler_pic_F77=-Kconform_pic
12814       fi
12815       ;;
12816
12817     hpux*)
12818       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12819       # not for PA HP-UX.
12820       case "$host_cpu" in
12821       hppa*64*|ia64*)
12822         # +Z the default
12823         ;;
12824       *)
12825         lt_prog_compiler_pic_F77='-fPIC'
12826         ;;
12827       esac
12828       ;;
12829
12830     *)
12831       lt_prog_compiler_pic_F77='-fPIC'
12832       ;;
12833     esac
12834   else
12835     # PORTME Check for flag to pass linker flags through the system compiler.
12836     case $host_os in
12837     aix*)
12838       lt_prog_compiler_wl_F77='-Wl,'
12839       if test "$host_cpu" = ia64; then
12840         # AIX 5 now supports IA64 processor
12841         lt_prog_compiler_static_F77='-Bstatic'
12842       else
12843         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12844       fi
12845       ;;
12846
12847     mingw* | pw32* | os2*)
12848       # This hack is so that the source file can tell whether it is being
12849       # built for inclusion in a dll (and should export symbols for example).
12850       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12851       ;;
12852
12853     hpux9* | hpux10* | hpux11*)
12854       lt_prog_compiler_wl_F77='-Wl,'
12855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12856       # not for PA HP-UX.
12857       case "$host_cpu" in
12858       hppa*64*|ia64*)
12859         # +Z the default
12860         ;;
12861       *)
12862         lt_prog_compiler_pic_F77='+Z'
12863         ;;
12864       esac
12865       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12866       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12867       ;;
12868
12869     irix5* | irix6* | nonstopux*)
12870       lt_prog_compiler_wl_F77='-Wl,'
12871       # PIC (with -KPIC) is the default.
12872       lt_prog_compiler_static_F77='-non_shared'
12873       ;;
12874
12875     newsos6)
12876       lt_prog_compiler_pic_F77='-KPIC'
12877       lt_prog_compiler_static_F77='-Bstatic'
12878       ;;
12879
12880     linux*)
12881       case $CC in
12882       icc* | ecc*)
12883         lt_prog_compiler_wl_F77='-Wl,'
12884         lt_prog_compiler_pic_F77='-KPIC'
12885         lt_prog_compiler_static_F77='-static'
12886         ;;
12887       ccc*)
12888         lt_prog_compiler_wl_F77='-Wl,'
12889         # All Alpha code is PIC.
12890         lt_prog_compiler_static_F77='-non_shared'
12891         ;;
12892       esac
12893       ;;
12894
12895     osf3* | osf4* | osf5*)
12896       lt_prog_compiler_wl_F77='-Wl,'
12897       # All OSF/1 code is PIC.
12898       lt_prog_compiler_static_F77='-non_shared'
12899       ;;
12900
12901     sco3.2v5*)
12902       lt_prog_compiler_pic_F77='-Kpic'
12903       lt_prog_compiler_static_F77='-dn'
12904       ;;
12905
12906     solaris*)
12907       lt_prog_compiler_wl_F77='-Wl,'
12908       lt_prog_compiler_pic_F77='-KPIC'
12909       lt_prog_compiler_static_F77='-Bstatic'
12910       ;;
12911
12912     sunos4*)
12913       lt_prog_compiler_wl_F77='-Qoption ld '
12914       lt_prog_compiler_pic_F77='-PIC'
12915       lt_prog_compiler_static_F77='-Bstatic'
12916       ;;
12917
12918     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12919       lt_prog_compiler_wl_F77='-Wl,'
12920       lt_prog_compiler_pic_F77='-KPIC'
12921       lt_prog_compiler_static_F77='-Bstatic'
12922       ;;
12923
12924     sysv4*MP*)
12925       if test -d /usr/nec ;then
12926         lt_prog_compiler_pic_F77='-Kconform_pic'
12927         lt_prog_compiler_static_F77='-Bstatic'
12928       fi
12929       ;;
12930
12931     uts4*)
12932       lt_prog_compiler_pic_F77='-pic'
12933       lt_prog_compiler_static_F77='-Bstatic'
12934       ;;
12935
12936     *)
12937       lt_prog_compiler_can_build_shared_F77=no
12938       ;;
12939     esac
12940   fi
12941
12942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12943 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12944
12945 #
12946 # Check to make sure the PIC flag actually works.
12947 #
12948 if test -n "$lt_prog_compiler_pic_F77"; then
12949
12950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12952 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   lt_prog_compiler_pic_works_F77=no
12956   ac_outfile=conftest.$ac_objext
12957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12959    # Insert the option either (1) after the last *FLAGS variable, or
12960    # (2) before a word containing "conftest.", or (3) at the end.
12961    # Note that $ac_compile itself does not contain backslashes and begins
12962    # with a dollar sign (not a hyphen), so the echo should work correctly.
12963    # The option is referenced via a variable to avoid confusing sed.
12964    lt_compile=`echo "$ac_compile" | $SED \
12965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12967    -e 's:$: $lt_compiler_flag:'`
12968    (eval echo "\"\$as_me:12968: $lt_compile\"" >&5)
12969    (eval "$lt_compile" 2>conftest.err)
12970    ac_status=$?
12971    cat conftest.err >&5
12972    echo "$as_me:12972: \$? = $ac_status" >&5
12973    if (exit $ac_status) && test -s "$ac_outfile"; then
12974      # The compiler can only warn and ignore the option if not recognized
12975      # So say no if there are warnings
12976      if test ! -s conftest.err; then
12977        lt_prog_compiler_pic_works_F77=yes
12978      fi
12979    fi
12980    $rm conftest*
12981
12982 fi
12983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12984 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12985
12986 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12987     case $lt_prog_compiler_pic_F77 in
12988      "" | " "*) ;;
12989      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12990      esac
12991 else
12992     lt_prog_compiler_pic_F77=
12993      lt_prog_compiler_can_build_shared_F77=no
12994 fi
12995
12996 fi
12997 case "$host_os" in
12998   # For platforms which do not support PIC, -DPIC is meaningless:
12999   *djgpp*)
13000     lt_prog_compiler_pic_F77=
13001     ;;
13002   *)
13003     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13004     ;;
13005 esac
13006
13007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13009 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   lt_cv_prog_compiler_c_o_F77=no
13013    $rm -r conftest 2>/dev/null
13014    mkdir conftest
13015    cd conftest
13016    mkdir out
13017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13018
13019    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13020    # that will create temporary files in the current directory regardless of
13021    # the output directory.  Thus, making CWD read-only will cause this test
13022    # to fail, enabling locking or at least warning the user not to do parallel
13023    # builds.
13024    chmod -w .
13025
13026    lt_compiler_flag="-o out/conftest2.$ac_objext"
13027    # Insert the option either (1) after the last *FLAGS variable, or
13028    # (2) before a word containing "conftest.", or (3) at the end.
13029    # Note that $ac_compile itself does not contain backslashes and begins
13030    # with a dollar sign (not a hyphen), so the echo should work correctly.
13031    lt_compile=`echo "$ac_compile" | $SED \
13032    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034    -e 's:$: $lt_compiler_flag:'`
13035    (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036    (eval "$lt_compile" 2>out/conftest.err)
13037    ac_status=$?
13038    cat out/conftest.err >&5
13039    echo "$as_me:13039: \$? = $ac_status" >&5
13040    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13041    then
13042      # The compiler can only warn and ignore the option if not recognized
13043      # So say no if there are warnings
13044      if test ! -s out/conftest.err; then
13045        lt_cv_prog_compiler_c_o_F77=yes
13046      fi
13047    fi
13048    chmod u+w .
13049    $rm conftest*
13050    # SGI C++ compiler will create directory out/ii_files/ for
13051    # template instantiation
13052    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13053    $rm out/* && rmdir out
13054    cd ..
13055    rmdir conftest
13056    $rm conftest*
13057
13058 fi
13059 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13060 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13061
13062
13063 hard_links="nottested"
13064 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13065   # do not overwrite the value of need_locks provided by the user
13066   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13067 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13068   hard_links=yes
13069   $rm conftest*
13070   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13071   touch conftest.a
13072   ln conftest.a conftest.b 2>&5 || hard_links=no
13073   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13074   echo "$as_me:$LINENO: result: $hard_links" >&5
13075 echo "${ECHO_T}$hard_links" >&6
13076   if test "$hard_links" = no; then
13077     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13078 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13079     need_locks=warn
13080   fi
13081 else
13082   need_locks=no
13083 fi
13084
13085 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13086 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13087
13088   runpath_var=
13089   allow_undefined_flag_F77=
13090   enable_shared_with_static_runtimes_F77=no
13091   archive_cmds_F77=
13092   archive_expsym_cmds_F77=
13093   old_archive_From_new_cmds_F77=
13094   old_archive_from_expsyms_cmds_F77=
13095   export_dynamic_flag_spec_F77=
13096   whole_archive_flag_spec_F77=
13097   thread_safe_flag_spec_F77=
13098   hardcode_libdir_flag_spec_F77=
13099   hardcode_libdir_flag_spec_ld_F77=
13100   hardcode_libdir_separator_F77=
13101   hardcode_direct_F77=no
13102   hardcode_minus_L_F77=no
13103   hardcode_shlibpath_var_F77=unsupported
13104   link_all_deplibs_F77=unknown
13105   hardcode_automatic_F77=no
13106   module_cmds_F77=
13107   module_expsym_cmds_F77=
13108   always_export_symbols_F77=no
13109   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13110   # include_expsyms should be a list of space-separated symbols to be *always*
13111   # included in the symbol list
13112   include_expsyms_F77=
13113   # exclude_expsyms can be an extended regexp of symbols to exclude
13114   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13115   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13116   # as well as any symbol that contains `d'.
13117   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13118   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13119   # platforms (ab)use it in PIC code, but their linkers get confused if
13120   # the symbol is explicitly referenced.  Since portable code cannot
13121   # rely on this symbol name, it's probably fine to never include it in
13122   # preloaded symbol tables.
13123   extract_expsyms_cmds=
13124
13125   case $host_os in
13126   cygwin* | mingw* | pw32*)
13127     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13128     # When not using gcc, we currently assume that we are using
13129     # Microsoft Visual C++.
13130     if test "$GCC" != yes; then
13131       with_gnu_ld=no
13132     fi
13133     ;;
13134   openbsd*)
13135     with_gnu_ld=no
13136     ;;
13137   esac
13138
13139   ld_shlibs_F77=yes
13140   if test "$with_gnu_ld" = yes; then
13141     # If archive_cmds runs LD, not CC, wlarc should be empty
13142     wlarc='${wl}'
13143
13144     # See if GNU ld supports shared libraries.
13145     case $host_os in
13146     aix3* | aix4* | aix5*)
13147       # On AIX/PPC, the GNU linker is very broken
13148       if test "$host_cpu" != ia64; then
13149         ld_shlibs_F77=no
13150         cat <<EOF 1>&2
13151
13152 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13153 *** to be unable to reliably create shared libraries on AIX.
13154 *** Therefore, libtool is disabling shared libraries support.  If you
13155 *** really care for shared libraries, you may want to modify your PATH
13156 *** so that a non-GNU linker is found, and then restart.
13157
13158 EOF
13159       fi
13160       ;;
13161
13162     amigaos*)
13163       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)'
13164       hardcode_libdir_flag_spec_F77='-L$libdir'
13165       hardcode_minus_L_F77=yes
13166
13167       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13168       # that the semantics of dynamic libraries on AmigaOS, at least up
13169       # to version 4, is to share data among multiple programs linked
13170       # with the same dynamic library.  Since this doesn't match the
13171       # behavior of shared libraries on other platforms, we can't use
13172       # them.
13173       ld_shlibs_F77=no
13174       ;;
13175
13176     beos*)
13177       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13178         allow_undefined_flag_F77=unsupported
13179         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13180         # support --undefined.  This deserves some investigation.  FIXME
13181         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182       else
13183         ld_shlibs_F77=no
13184       fi
13185       ;;
13186
13187     cygwin* | mingw* | pw32*)
13188       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13189       # as there is no search path for DLLs.
13190       hardcode_libdir_flag_spec_F77='-L$libdir'
13191       allow_undefined_flag_F77=unsupported
13192       always_export_symbols_F77=no
13193       enable_shared_with_static_runtimes_F77=yes
13194       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13195
13196       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13197         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13198         # If the export-symbols file already is a .def file (1st line
13199         # is EXPORTS), use it as is; otherwise, prepend...
13200         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13201           cp $export_symbols $output_objdir/$soname.def;
13202         else
13203           echo EXPORTS > $output_objdir/$soname.def;
13204           cat $export_symbols >> $output_objdir/$soname.def;
13205         fi~
13206         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13207       else
13208         ld_shlibs=no
13209       fi
13210       ;;
13211
13212     netbsd*)
13213       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13214         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13215         wlarc=
13216       else
13217         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13219       fi
13220       ;;
13221
13222     solaris* | sysv5*)
13223       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13224         ld_shlibs_F77=no
13225         cat <<EOF 1>&2
13226
13227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13228 *** create shared libraries on Solaris systems.  Therefore, libtool
13229 *** is disabling shared libraries support.  We urge you to upgrade GNU
13230 *** binutils to release 2.9.1 or newer.  Another option is to modify
13231 *** your PATH or compiler configuration so that the native linker is
13232 *** used, and then restart.
13233
13234 EOF
13235       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13236         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13238       else
13239         ld_shlibs_F77=no
13240       fi
13241       ;;
13242
13243     sunos4*)
13244       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13245       wlarc=
13246       hardcode_direct_F77=yes
13247       hardcode_shlibpath_var_F77=no
13248       ;;
13249
13250   linux*)
13251     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13252         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13253         archive_cmds_F77="$tmp_archive_cmds"
13254       supports_anon_versioning=no
13255       case `$LD -v 2>/dev/null` in
13256         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13257         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13258         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13259         *\ 2.11.*) ;; # other 2.11 versions
13260         *) supports_anon_versioning=yes ;;
13261       esac
13262       if test $supports_anon_versioning = yes; then
13263         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13265 $echo "local: *; };" >> $output_objdir/$libname.ver~
13266         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13267       else
13268         archive_expsym_cmds_F77="$tmp_archive_cmds"
13269       fi
13270     else
13271       ld_shlibs_F77=no
13272     fi
13273     ;;
13274
13275     *)
13276       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13277         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13279       else
13280         ld_shlibs_F77=no
13281       fi
13282       ;;
13283     esac
13284
13285     if test "$ld_shlibs_F77" = yes; then
13286       runpath_var=LD_RUN_PATH
13287       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13288       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13289       # ancient GNU ld didn't support --whole-archive et. al.
13290       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13291         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13292       else
13293         whole_archive_flag_spec_F77=
13294       fi
13295     fi
13296   else
13297     # PORTME fill in a description of your system's linker (not GNU ld)
13298     case $host_os in
13299     aix3*)
13300       allow_undefined_flag_F77=unsupported
13301       always_export_symbols_F77=yes
13302       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'
13303       # Note: this linker hardcodes the directories in LIBPATH if there
13304       # are no directories specified by -L.
13305       hardcode_minus_L_F77=yes
13306       if test "$GCC" = yes && test -z "$link_static_flag"; then
13307         # Neither direct hardcoding nor static linking is supported with a
13308         # broken collect2.
13309         hardcode_direct_F77=unsupported
13310       fi
13311       ;;
13312
13313     aix4* | aix5*)
13314       if test "$host_cpu" = ia64; then
13315         # On IA64, the linker does run time linking by default, so we don't
13316         # have to do anything special.
13317         aix_use_runtimelinking=no
13318         exp_sym_flag='-Bexport'
13319         no_entry_flag=""
13320       else
13321         # If we're using GNU nm, then we don't want the "-C" option.
13322         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13323         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13324           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'
13325         else
13326           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'
13327         fi
13328         aix_use_runtimelinking=no
13329
13330         # Test if we are trying to use run time linking or normal
13331         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13332         # need to do runtime linking.
13333         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13334           for ld_flag in $LDFLAGS; do
13335           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13336             aix_use_runtimelinking=yes
13337             break
13338           fi
13339           done
13340         esac
13341
13342         exp_sym_flag='-bexport'
13343         no_entry_flag='-bnoentry'
13344       fi
13345
13346       # When large executables or shared objects are built, AIX ld can
13347       # have problems creating the table of contents.  If linking a library
13348       # or program results in "error TOC overflow" add -mminimal-toc to
13349       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13350       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13351
13352       archive_cmds_F77=''
13353       hardcode_direct_F77=yes
13354       hardcode_libdir_separator_F77=':'
13355       link_all_deplibs_F77=yes
13356
13357       if test "$GCC" = yes; then
13358         case $host_os in aix4.012|aix4.012.*)
13359         # We only want to do this on AIX 4.2 and lower, the check
13360         # below for broken collect2 doesn't work under 4.3+
13361           collect2name=`${CC} -print-prog-name=collect2`
13362           if test -f "$collect2name" && \
13363            strings "$collect2name" | grep resolve_lib_name >/dev/null
13364           then
13365           # We have reworked collect2
13366           hardcode_direct_F77=yes
13367           else
13368           # We have old collect2
13369           hardcode_direct_F77=unsupported
13370           # It fails to find uninstalled libraries when the uninstalled
13371           # path is not listed in the libpath.  Setting hardcode_minus_L
13372           # to unsupported forces relinking
13373           hardcode_minus_L_F77=yes
13374           hardcode_libdir_flag_spec_F77='-L$libdir'
13375           hardcode_libdir_separator_F77=
13376           fi
13377         esac
13378         shared_flag='-shared'
13379       else
13380         # not using gcc
13381         if test "$host_cpu" = ia64; then
13382         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13383         # chokes on -Wl,-G. The following line is correct:
13384           shared_flag='-G'
13385         else
13386         if test "$aix_use_runtimelinking" = yes; then
13387             shared_flag='${wl}-G'
13388           else
13389             shared_flag='${wl}-bM:SRE'
13390         fi
13391         fi
13392       fi
13393
13394       # It seems that -bexpall does not export symbols beginning with
13395       # underscore (_), so it is better to generate a list of symbols to export.
13396       always_export_symbols_F77=yes
13397       if test "$aix_use_runtimelinking" = yes; then
13398         # Warning - without using the other runtime loading flags (-brtl),
13399         # -berok will link without error, but may produce a broken library.
13400         allow_undefined_flag_F77='-berok'
13401        # Determine the default libpath from the value encoded in an empty executable.
13402        cat >conftest.$ac_ext <<_ACEOF
13403       program main
13404
13405       end
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409   (eval $ac_link) 2>conftest.er1
13410   ac_status=$?
13411   grep -v '^ *+' conftest.er1 >conftest.err
13412   rm -f conftest.er1
13413   cat conftest.err >&5
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } &&
13416          { ac_try='test -z "$ac_f77_werror_flag"
13417                          || test ! -s conftest.err'
13418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419   (eval $ac_try) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; } &&
13423          { ac_try='test -s conftest$ac_exeext'
13424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425   (eval $ac_try) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; }; then
13429
13430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13431 }'`
13432 # Check for a 64-bit object if we didn't find anything.
13433 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; }
13434 }'`; fi
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 fi
13440 rm -f conftest.err conftest.$ac_objext \
13441       conftest$ac_exeext conftest.$ac_ext
13442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13443
13444        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13445         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"
13446        else
13447         if test "$host_cpu" = ia64; then
13448           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13449           allow_undefined_flag_F77="-z nodefs"
13450           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"
13451         else
13452          # Determine the default libpath from the value encoded in an empty executable.
13453          cat >conftest.$ac_ext <<_ACEOF
13454       program main
13455
13456       end
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460   (eval $ac_link) 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -z "$ac_f77_werror_flag"
13468                          || test ! -s conftest.err'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; } &&
13474          { ac_try='test -s conftest$ac_exeext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480
13481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13482 }'`
13483 # Check for a 64-bit object if we didn't find anything.
13484 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; }
13485 }'`; fi
13486 else
13487   echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 fi
13491 rm -f conftest.err conftest.$ac_objext \
13492       conftest$ac_exeext conftest.$ac_ext
13493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13494
13495          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13496           # Warning - without using the other run time loading flags,
13497           # -berok will link without error, but may produce a broken library.
13498           no_undefined_flag_F77=' ${wl}-bernotok'
13499           allow_undefined_flag_F77=' ${wl}-berok'
13500           # -bexpall does not export symbols beginning with underscore (_)
13501           always_export_symbols_F77=yes
13502           # Exported symbols can be pulled into shared objects from archives
13503           whole_archive_flag_spec_F77=' '
13504           archive_cmds_need_lc_F77=yes
13505           # This is similar to how AIX traditionally builds it's shared libraries.
13506           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'
13507         fi
13508       fi
13509       ;;
13510
13511     amigaos*)
13512       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)'
13513       hardcode_libdir_flag_spec_F77='-L$libdir'
13514       hardcode_minus_L_F77=yes
13515       # see comment about different semantics on the GNU ld section
13516       ld_shlibs_F77=no
13517       ;;
13518
13519     bsdi4*)
13520       export_dynamic_flag_spec_F77=-rdynamic
13521       ;;
13522
13523     cygwin* | mingw* | pw32*)
13524       # When not using gcc, we currently assume that we are using
13525       # Microsoft Visual C++.
13526       # hardcode_libdir_flag_spec is actually meaningless, as there is
13527       # no search path for DLLs.
13528       hardcode_libdir_flag_spec_F77=' '
13529       allow_undefined_flag_F77=unsupported
13530       # Tell ltmain to make .lib files, not .a files.
13531       libext=lib
13532       # Tell ltmain to make .dll files, not .so files.
13533       shrext=".dll"
13534       # FIXME: Setting linknames here is a bad hack.
13535       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13536       # The linker will automatically build a .lib file if we build a DLL.
13537       old_archive_From_new_cmds_F77='true'
13538       # FIXME: Should let the user specify the lib program.
13539       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13540       fix_srcfile_path='`cygpath -w "$srcfile"`'
13541       enable_shared_with_static_runtimes_F77=yes
13542       ;;
13543
13544     darwin* | rhapsody*)
13545     if test "$GXX" = yes ; then
13546       archive_cmds_need_lc_F77=no
13547       case "$host_os" in
13548       rhapsody* | darwin1.[012])
13549         allow_undefined_flag_F77='-undefined suppress'
13550         ;;
13551       *) # Darwin 1.3 on
13552       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13553         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13554       else
13555         case ${MACOSX_DEPLOYMENT_TARGET} in
13556           10.[012])
13557             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13558             ;;
13559           10.*)
13560             allow_undefined_flag_F77='-undefined dynamic_lookup'
13561             ;;
13562         esac
13563       fi
13564         ;;
13565       esac
13566         lt_int_apple_cc_single_mod=no
13567         output_verbose_link_cmd='echo'
13568         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13569           lt_int_apple_cc_single_mod=yes
13570         fi
13571         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13572           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13573         else
13574         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13575       fi
13576       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13577       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13578         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13579           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13580         else
13581           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13582         fi
13583           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}'
13584       hardcode_direct_F77=no
13585       hardcode_automatic_F77=yes
13586       hardcode_shlibpath_var_F77=unsupported
13587       whole_archive_flag_spec_F77='-all_load $convenience'
13588       link_all_deplibs_F77=yes
13589     else
13590       ld_shlibs_F77=no
13591     fi
13592       ;;
13593
13594     dgux*)
13595       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596       hardcode_libdir_flag_spec_F77='-L$libdir'
13597       hardcode_shlibpath_var_F77=no
13598       ;;
13599
13600     freebsd1*)
13601       ld_shlibs_F77=no
13602       ;;
13603
13604     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13605     # support.  Future versions do this automatically, but an explicit c++rt0.o
13606     # does not break anything, and helps significantly (at the cost of a little
13607     # extra space).
13608     freebsd2.2*)
13609       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13610       hardcode_libdir_flag_spec_F77='-R$libdir'
13611       hardcode_direct_F77=yes
13612       hardcode_shlibpath_var_F77=no
13613       ;;
13614
13615     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13616     freebsd2*)
13617       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618       hardcode_direct_F77=yes
13619       hardcode_minus_L_F77=yes
13620       hardcode_shlibpath_var_F77=no
13621       ;;
13622
13623     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13624     freebsd* | kfreebsd*-gnu)
13625       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13626       hardcode_libdir_flag_spec_F77='-R$libdir'
13627       hardcode_direct_F77=yes
13628       hardcode_shlibpath_var_F77=no
13629       ;;
13630
13631     hpux9*)
13632       if test "$GCC" = yes; then
13633         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'
13634       else
13635         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'
13636       fi
13637       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13638       hardcode_libdir_separator_F77=:
13639       hardcode_direct_F77=yes
13640
13641       # hardcode_minus_L: Not really in the search PATH,
13642       # but as the default location of the library.
13643       hardcode_minus_L_F77=yes
13644       export_dynamic_flag_spec_F77='${wl}-E'
13645       ;;
13646
13647     hpux10* | hpux11*)
13648       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13649         case "$host_cpu" in
13650         hppa*64*|ia64*)
13651           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13652           ;;
13653         *)
13654           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13655           ;;
13656         esac
13657       else
13658         case "$host_cpu" in
13659         hppa*64*|ia64*)
13660           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13661           ;;
13662         *)
13663           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13664           ;;
13665         esac
13666       fi
13667       if test "$with_gnu_ld" = no; then
13668         case "$host_cpu" in
13669         hppa*64*)
13670           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13671           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13672           hardcode_libdir_separator_F77=:
13673           hardcode_direct_F77=no
13674           hardcode_shlibpath_var_F77=no
13675           ;;
13676         ia64*)
13677           hardcode_libdir_flag_spec_F77='-L$libdir'
13678           hardcode_direct_F77=no
13679           hardcode_shlibpath_var_F77=no
13680
13681           # hardcode_minus_L: Not really in the search PATH,
13682           # but as the default location of the library.
13683           hardcode_minus_L_F77=yes
13684           ;;
13685         *)
13686           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13687           hardcode_libdir_separator_F77=:
13688           hardcode_direct_F77=yes
13689           export_dynamic_flag_spec_F77='${wl}-E'
13690
13691           # hardcode_minus_L: Not really in the search PATH,
13692           # but as the default location of the library.
13693           hardcode_minus_L_F77=yes
13694           ;;
13695         esac
13696       fi
13697       ;;
13698
13699     irix5* | irix6* | nonstopux*)
13700       if test "$GCC" = yes; then
13701         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'
13702       else
13703         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'
13704         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13705       fi
13706       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13707       hardcode_libdir_separator_F77=:
13708       link_all_deplibs_F77=yes
13709       ;;
13710
13711     netbsd*)
13712       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13713         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13714       else
13715         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13716       fi
13717       hardcode_libdir_flag_spec_F77='-R$libdir'
13718       hardcode_direct_F77=yes
13719       hardcode_shlibpath_var_F77=no
13720       ;;
13721
13722     newsos6)
13723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13724       hardcode_direct_F77=yes
13725       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13726       hardcode_libdir_separator_F77=:
13727       hardcode_shlibpath_var_F77=no
13728       ;;
13729
13730     openbsd*)
13731       hardcode_direct_F77=yes
13732       hardcode_shlibpath_var_F77=no
13733       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13734         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13736         export_dynamic_flag_spec_F77='${wl}-E'
13737       else
13738        case $host_os in
13739          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13740            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741            hardcode_libdir_flag_spec_F77='-R$libdir'
13742            ;;
13743          *)
13744            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13745            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13746            ;;
13747        esac
13748       fi
13749       ;;
13750
13751     os2*)
13752       hardcode_libdir_flag_spec_F77='-L$libdir'
13753       hardcode_minus_L_F77=yes
13754       allow_undefined_flag_F77=unsupported
13755       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'
13756       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13757       ;;
13758
13759     osf3*)
13760       if test "$GCC" = yes; then
13761         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13762         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'
13763       else
13764         allow_undefined_flag_F77=' -expect_unresolved \*'
13765         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'
13766       fi
13767       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13768       hardcode_libdir_separator_F77=:
13769       ;;
13770
13771     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13772       if test "$GCC" = yes; then
13773         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13774         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'
13775         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13776       else
13777         allow_undefined_flag_F77=' -expect_unresolved \*'
13778         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'
13779         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~
13780         $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'
13781
13782         # Both c and cxx compiler support -rpath directly
13783         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13784       fi
13785       hardcode_libdir_separator_F77=:
13786       ;;
13787
13788     sco3.2v5*)
13789       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790       hardcode_shlibpath_var_F77=no
13791       export_dynamic_flag_spec_F77='${wl}-Bexport'
13792       runpath_var=LD_RUN_PATH
13793       hardcode_runpath_var=yes
13794       ;;
13795
13796     solaris*)
13797       no_undefined_flag_F77=' -z text'
13798       if test "$GCC" = yes; then
13799         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13801           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13802       else
13803         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13805         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13806       fi
13807       hardcode_libdir_flag_spec_F77='-R$libdir'
13808       hardcode_shlibpath_var_F77=no
13809       case $host_os in
13810       solaris2.[0-5] | solaris2.[0-5].*) ;;
13811       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13812         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13813       esac
13814       link_all_deplibs_F77=yes
13815       ;;
13816
13817     sunos4*)
13818       if test "x$host_vendor" = xsequent; then
13819         # Use $CC to link under sequent, because it throws in some extra .o
13820         # files that make .init and .fini sections work.
13821         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13822       else
13823         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13824       fi
13825       hardcode_libdir_flag_spec_F77='-L$libdir'
13826       hardcode_direct_F77=yes
13827       hardcode_minus_L_F77=yes
13828       hardcode_shlibpath_var_F77=no
13829       ;;
13830
13831     sysv4)
13832       case $host_vendor in
13833         sni)
13834           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835           hardcode_direct_F77=yes # is this really true???
13836         ;;
13837         siemens)
13838           ## LD is ld it makes a PLAMLIB
13839           ## CC just makes a GrossModule.
13840           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13841           reload_cmds_F77='$CC -r -o $output$reload_objs'
13842           hardcode_direct_F77=no
13843         ;;
13844         motorola)
13845           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13847         ;;
13848       esac
13849       runpath_var='LD_RUN_PATH'
13850       hardcode_shlibpath_var_F77=no
13851       ;;
13852
13853     sysv4.3*)
13854       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855       hardcode_shlibpath_var_F77=no
13856       export_dynamic_flag_spec_F77='-Bexport'
13857       ;;
13858
13859     sysv4*MP*)
13860       if test -d /usr/nec; then
13861         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862         hardcode_shlibpath_var_F77=no
13863         runpath_var=LD_RUN_PATH
13864         hardcode_runpath_var=yes
13865         ld_shlibs_F77=yes
13866       fi
13867       ;;
13868
13869     sysv4.2uw2*)
13870       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13871       hardcode_direct_F77=yes
13872       hardcode_minus_L_F77=no
13873       hardcode_shlibpath_var_F77=no
13874       hardcode_runpath_var=yes
13875       runpath_var=LD_RUN_PATH
13876       ;;
13877
13878    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13879       no_undefined_flag_F77='${wl}-z ${wl}text'
13880       if test "$GCC" = yes; then
13881         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13882       else
13883         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13884       fi
13885       runpath_var='LD_RUN_PATH'
13886       hardcode_shlibpath_var_F77=no
13887       ;;
13888
13889     sysv5*)
13890       no_undefined_flag_F77=' -z text'
13891       # $CC -shared without GNU ld will not create a library from C++
13892       # object files and a static libstdc++, better avoid it by now
13893       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13895                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13896       hardcode_libdir_flag_spec_F77=
13897       hardcode_shlibpath_var_F77=no
13898       runpath_var='LD_RUN_PATH'
13899       ;;
13900
13901     uts4*)
13902       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903       hardcode_libdir_flag_spec_F77='-L$libdir'
13904       hardcode_shlibpath_var_F77=no
13905       ;;
13906
13907     *)
13908       ld_shlibs_F77=no
13909       ;;
13910     esac
13911   fi
13912
13913 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13914 echo "${ECHO_T}$ld_shlibs_F77" >&6
13915 test "$ld_shlibs_F77" = no && can_build_shared=no
13916
13917 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13918 if test "$GCC" = yes; then
13919   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13920 fi
13921
13922 #
13923 # Do we need to explicitly link libc?
13924 #
13925 case "x$archive_cmds_need_lc_F77" in
13926 x|xyes)
13927   # Assume -lc should be added
13928   archive_cmds_need_lc_F77=yes
13929
13930   if test "$enable_shared" = yes && test "$GCC" = yes; then
13931     case $archive_cmds_F77 in
13932     *'~'*)
13933       # FIXME: we may have to deal with multi-command sequences.
13934       ;;
13935     '$CC '*)
13936       # Test whether the compiler implicitly links with -lc since on some
13937       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13938       # to ld, don't add -lc before -lgcc.
13939       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13940 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13941       $rm conftest*
13942       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13943
13944       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945   (eval $ac_compile) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } 2>conftest.err; then
13949         soname=conftest
13950         lib=conftest
13951         libobjs=conftest.$ac_objext
13952         deplibs=
13953         wl=$lt_prog_compiler_wl_F77
13954         compiler_flags=-v
13955         linker_flags=-v
13956         verstring=
13957         output_objdir=.
13958         libname=conftest
13959         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13960         allow_undefined_flag_F77=
13961         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13962   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }
13966         then
13967           archive_cmds_need_lc_F77=no
13968         else
13969           archive_cmds_need_lc_F77=yes
13970         fi
13971         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13972       else
13973         cat conftest.err 1>&5
13974       fi
13975       $rm conftest*
13976       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13977 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13978       ;;
13979     esac
13980   fi
13981   ;;
13982 esac
13983
13984 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13985 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13986 library_names_spec=
13987 libname_spec='lib$name'
13988 soname_spec=
13989 shrext=".so"
13990 postinstall_cmds=
13991 postuninstall_cmds=
13992 finish_cmds=
13993 finish_eval=
13994 shlibpath_var=
13995 shlibpath_overrides_runpath=unknown
13996 version_type=none
13997 dynamic_linker="$host_os ld.so"
13998 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13999 if test "$GCC" = yes; then
14000   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14001   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14002     # if the path contains ";" then we assume it to be the separator
14003     # otherwise default to the standard path separator (i.e. ":") - it is
14004     # assumed that no part of a normal pathname contains ";" but that should
14005     # okay in the real world where ";" in dirpaths is itself problematic.
14006     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14007   else
14008     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14009   fi
14010 else
14011   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14012 fi
14013 need_lib_prefix=unknown
14014 hardcode_into_libs=no
14015
14016 # when you set need_version to no, make sure it does not cause -set_version
14017 # flags to be left without arguments
14018 need_version=unknown
14019
14020 case $host_os in
14021 aix3*)
14022   version_type=linux
14023   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14024   shlibpath_var=LIBPATH
14025
14026   # AIX 3 has no versioning support, so we append a major version to the name.
14027   soname_spec='${libname}${release}${shared_ext}$major'
14028   ;;
14029
14030 aix4* | aix5*)
14031   version_type=linux
14032   need_lib_prefix=no
14033   need_version=no
14034   hardcode_into_libs=yes
14035   if test "$host_cpu" = ia64; then
14036     # AIX 5 supports IA64
14037     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14038     shlibpath_var=LD_LIBRARY_PATH
14039   else
14040     # With GCC up to 2.95.x, collect2 would create an import file
14041     # for dependence libraries.  The import file would start with
14042     # the line `#! .'.  This would cause the generated library to
14043     # depend on `.', always an invalid library.  This was fixed in
14044     # development snapshots of GCC prior to 3.0.
14045     case $host_os in
14046       aix4 | aix4.[01] | aix4.[01].*)
14047       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14048            echo ' yes '
14049            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14050         :
14051       else
14052         can_build_shared=no
14053       fi
14054       ;;
14055     esac
14056     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14057     # soname into executable. Probably we can add versioning support to
14058     # collect2, so additional links can be useful in future.
14059     if test "$aix_use_runtimelinking" = yes; then
14060       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14061       # instead of lib<name>.a to let people know that these are not
14062       # typical AIX shared libraries.
14063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064     else
14065       # We preserve .a as extension for shared libraries through AIX4.2
14066       # and later when we are not doing run time linking.
14067       library_names_spec='${libname}${release}.a $libname.a'
14068       soname_spec='${libname}${release}${shared_ext}$major'
14069     fi
14070     shlibpath_var=LIBPATH
14071   fi
14072   ;;
14073
14074 amigaos*)
14075   library_names_spec='$libname.ixlibrary $libname.a'
14076   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14077   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'
14078   ;;
14079
14080 beos*)
14081   library_names_spec='${libname}${shared_ext}'
14082   dynamic_linker="$host_os ld.so"
14083   shlibpath_var=LIBRARY_PATH
14084   ;;
14085
14086 bsdi4*)
14087   version_type=linux
14088   need_version=no
14089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090   soname_spec='${libname}${release}${shared_ext}$major'
14091   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14092   shlibpath_var=LD_LIBRARY_PATH
14093   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14094   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14095   # the default ld.so.conf also contains /usr/contrib/lib and
14096   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14097   # libtool to hard-code these into programs
14098   ;;
14099
14100 cygwin* | mingw* | pw32*)
14101   version_type=windows
14102   shrext=".dll"
14103   need_version=no
14104   need_lib_prefix=no
14105
14106   case $GCC,$host_os in
14107   yes,cygwin* | yes,mingw* | yes,pw32*)
14108     library_names_spec='$libname.dll.a'
14109     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14110     postinstall_cmds='base_file=`basename \${file}`~
14111       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14112       dldir=$destdir/`dirname \$dlpath`~
14113       test -d \$dldir || mkdir -p \$dldir~
14114       $install_prog $dir/$dlname \$dldir/$dlname'
14115     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14116       dlpath=$dir/\$dldll~
14117        $rm \$dlpath'
14118     shlibpath_overrides_runpath=yes
14119
14120     case $host_os in
14121     cygwin*)
14122       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14123       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14124       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14125       ;;
14126     mingw*)
14127       # MinGW DLLs use traditional 'lib' prefix
14128       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14129       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14130       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14131         # It is most probably a Windows format PATH printed by
14132         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14133         # path with ; separators, and with drive letters. We can handle the
14134         # drive letters (cygwin fileutils understands them), so leave them,
14135         # especially as we might pass files found there to a mingw objdump,
14136         # which wouldn't understand a cygwinified path. Ahh.
14137         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14138       else
14139         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14140       fi
14141       ;;
14142     pw32*)
14143       # pw32 DLLs use 'pw' prefix rather than 'lib'
14144       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14145       ;;
14146     esac
14147     ;;
14148
14149   *)
14150     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14151     ;;
14152   esac
14153   dynamic_linker='Win32 ld.exe'
14154   # FIXME: first we should search . and the directory the executable is in
14155   shlibpath_var=PATH
14156   ;;
14157
14158 darwin* | rhapsody*)
14159   dynamic_linker="$host_os dyld"
14160   version_type=darwin
14161   need_lib_prefix=no
14162   need_version=no
14163   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14164   soname_spec='${libname}${release}${major}$shared_ext'
14165   shlibpath_overrides_runpath=yes
14166   shlibpath_var=DYLD_LIBRARY_PATH
14167   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14168   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14169   if test "$GCC" = yes; then
14170     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"`
14171   else
14172     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14173   fi
14174   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14175   ;;
14176
14177 dgux*)
14178   version_type=linux
14179   need_lib_prefix=no
14180   need_version=no
14181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14182   soname_spec='${libname}${release}${shared_ext}$major'
14183   shlibpath_var=LD_LIBRARY_PATH
14184   ;;
14185
14186 freebsd1*)
14187   dynamic_linker=no
14188   ;;
14189
14190 kfreebsd*-gnu)
14191   version_type=linux
14192   need_lib_prefix=no
14193   need_version=no
14194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14195   soname_spec='${libname}${release}${shared_ext}$major'
14196   shlibpath_var=LD_LIBRARY_PATH
14197   shlibpath_overrides_runpath=no
14198   hardcode_into_libs=yes
14199   dynamic_linker='GNU ld.so'
14200   ;;
14201
14202 freebsd*)
14203   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14204   version_type=freebsd-$objformat
14205   case $version_type in
14206     freebsd-elf*)
14207       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14208       need_version=no
14209       need_lib_prefix=no
14210       ;;
14211     freebsd-*)
14212       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14213       need_version=yes
14214       ;;
14215   esac
14216   shlibpath_var=LD_LIBRARY_PATH
14217   case $host_os in
14218   freebsd2*)
14219     shlibpath_overrides_runpath=yes
14220     ;;
14221   freebsd3.01* | freebsdelf3.01*)
14222     shlibpath_overrides_runpath=yes
14223     hardcode_into_libs=yes
14224     ;;
14225   *) # from 3.2 on
14226     shlibpath_overrides_runpath=no
14227     hardcode_into_libs=yes
14228     ;;
14229   esac
14230   ;;
14231
14232 gnu*)
14233   version_type=linux
14234   need_lib_prefix=no
14235   need_version=no
14236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14237   soname_spec='${libname}${release}${shared_ext}$major'
14238   shlibpath_var=LD_LIBRARY_PATH
14239   hardcode_into_libs=yes
14240   ;;
14241
14242 hpux9* | hpux10* | hpux11*)
14243   # Give a soname corresponding to the major version so that dld.sl refuses to
14244   # link against other versions.
14245   version_type=sunos
14246   need_lib_prefix=no
14247   need_version=no
14248   case "$host_cpu" in
14249   ia64*)
14250     shrext='.so'
14251     hardcode_into_libs=yes
14252     dynamic_linker="$host_os dld.so"
14253     shlibpath_var=LD_LIBRARY_PATH
14254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256     soname_spec='${libname}${release}${shared_ext}$major'
14257     if test "X$HPUX_IA64_MODE" = X32; then
14258       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14259     else
14260       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14261     fi
14262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14263     ;;
14264    hppa*64*)
14265      shrext='.sl'
14266      hardcode_into_libs=yes
14267      dynamic_linker="$host_os dld.sl"
14268      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14269      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271      soname_spec='${libname}${release}${shared_ext}$major'
14272      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14273      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14274      ;;
14275    *)
14276     shrext='.sl'
14277     dynamic_linker="$host_os dld.sl"
14278     shlibpath_var=SHLIB_PATH
14279     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281     soname_spec='${libname}${release}${shared_ext}$major'
14282     ;;
14283   esac
14284   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14285   postinstall_cmds='chmod 555 $lib'
14286   ;;
14287
14288 irix5* | irix6* | nonstopux*)
14289   case $host_os in
14290     nonstopux*) version_type=nonstopux ;;
14291     *)
14292         if test "$lt_cv_prog_gnu_ld" = yes; then
14293                 version_type=linux
14294         else
14295                 version_type=irix
14296         fi ;;
14297   esac
14298   need_lib_prefix=no
14299   need_version=no
14300   soname_spec='${libname}${release}${shared_ext}$major'
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14302   case $host_os in
14303   irix5* | nonstopux*)
14304     libsuff= shlibsuff=
14305     ;;
14306   *)
14307     case $LD in # libtool.m4 will add one of these switches to LD
14308     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14309       libsuff= shlibsuff= libmagic=32-bit;;
14310     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14311       libsuff=32 shlibsuff=N32 libmagic=N32;;
14312     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14313       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14314     *) libsuff= shlibsuff= libmagic=never-match;;
14315     esac
14316     ;;
14317   esac
14318   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14319   shlibpath_overrides_runpath=no
14320   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14321   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14322   hardcode_into_libs=yes
14323   ;;
14324
14325 # No shared lib support for Linux oldld, aout, or coff.
14326 linux*oldld* | linux*aout* | linux*coff*)
14327   dynamic_linker=no
14328   ;;
14329
14330 # This must be Linux ELF.
14331 linux*)
14332   version_type=linux
14333   need_lib_prefix=no
14334   need_version=no
14335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336   soname_spec='${libname}${release}${shared_ext}$major'
14337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14338   shlibpath_var=LD_LIBRARY_PATH
14339   shlibpath_overrides_runpath=no
14340   # This implies no fast_install, which is unacceptable.
14341   # Some rework will be needed to allow for fast_install
14342   # before this can be enabled.
14343   hardcode_into_libs=yes
14344
14345   # /usr/X11R6/lib and /usr/local/lib are common enough...
14346   sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
14347
14348   # We used to test for /lib/ld.so.1 and disable shared libraries on
14349   # powerpc, because MkLinux only supported shared libraries with the
14350   # GNU dynamic linker.  Since this was broken with cross compilers,
14351   # most powerpc-linux boxes support dynamic linking these days and
14352   # people can always --disable-shared, the test was removed, and we
14353   # assume the GNU/Linux dynamic linker is in use.
14354   dynamic_linker='GNU/Linux ld.so'
14355   ;;
14356
14357 knetbsd*-gnu)
14358   version_type=linux
14359   need_lib_prefix=no
14360   need_version=no
14361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14362   soname_spec='${libname}${release}${shared_ext}$major'
14363   shlibpath_var=LD_LIBRARY_PATH
14364   shlibpath_overrides_runpath=no
14365   hardcode_into_libs=yes
14366   dynamic_linker='GNU ld.so'
14367   ;;
14368
14369 netbsd*)
14370   version_type=sunos
14371   need_lib_prefix=no
14372   need_version=no
14373   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14375     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14376     dynamic_linker='NetBSD (a.out) ld.so'
14377   else
14378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14379     soname_spec='${libname}${release}${shared_ext}$major'
14380     dynamic_linker='NetBSD ld.elf_so'
14381   fi
14382   shlibpath_var=LD_LIBRARY_PATH
14383   shlibpath_overrides_runpath=yes
14384   hardcode_into_libs=yes
14385   ;;
14386
14387 newsos6)
14388   version_type=linux
14389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390   shlibpath_var=LD_LIBRARY_PATH
14391   shlibpath_overrides_runpath=yes
14392   ;;
14393
14394 nto-qnx*)
14395   version_type=linux
14396   need_lib_prefix=no
14397   need_version=no
14398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399   soname_spec='${libname}${release}${shared_ext}$major'
14400   shlibpath_var=LD_LIBRARY_PATH
14401   shlibpath_overrides_runpath=yes
14402   ;;
14403
14404 openbsd*)
14405   version_type=sunos
14406   need_lib_prefix=no
14407   need_version=yes
14408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14409   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14410   shlibpath_var=LD_LIBRARY_PATH
14411   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14412     case $host_os in
14413       openbsd2.[89] | openbsd2.[89].*)
14414         shlibpath_overrides_runpath=no
14415         ;;
14416       *)
14417         shlibpath_overrides_runpath=yes
14418         ;;
14419       esac
14420   else
14421     shlibpath_overrides_runpath=yes
14422   fi
14423   ;;
14424
14425 os2*)
14426   libname_spec='$name'
14427   shrext=".dll"
14428   need_lib_prefix=no
14429   library_names_spec='$libname${shared_ext} $libname.a'
14430   dynamic_linker='OS/2 ld.exe'
14431   shlibpath_var=LIBPATH
14432   ;;
14433
14434 osf3* | osf4* | osf5*)
14435   version_type=osf
14436   need_lib_prefix=no
14437   need_version=no
14438   soname_spec='${libname}${release}${shared_ext}$major'
14439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440   shlibpath_var=LD_LIBRARY_PATH
14441   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14442   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14443   ;;
14444
14445 sco3.2v5*)
14446   version_type=osf
14447   soname_spec='${libname}${release}${shared_ext}$major'
14448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449   shlibpath_var=LD_LIBRARY_PATH
14450   ;;
14451
14452 solaris*)
14453   version_type=linux
14454   need_lib_prefix=no
14455   need_version=no
14456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457   soname_spec='${libname}${release}${shared_ext}$major'
14458   shlibpath_var=LD_LIBRARY_PATH
14459   shlibpath_overrides_runpath=yes
14460   hardcode_into_libs=yes
14461   # ldd complains unless libraries are executable
14462   postinstall_cmds='chmod +x $lib'
14463   ;;
14464
14465 sunos4*)
14466   version_type=sunos
14467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14469   shlibpath_var=LD_LIBRARY_PATH
14470   shlibpath_overrides_runpath=yes
14471   if test "$with_gnu_ld" = yes; then
14472     need_lib_prefix=no
14473   fi
14474   need_version=yes
14475   ;;
14476
14477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14478   version_type=linux
14479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480   soname_spec='${libname}${release}${shared_ext}$major'
14481   shlibpath_var=LD_LIBRARY_PATH
14482   case $host_vendor in
14483     sni)
14484       shlibpath_overrides_runpath=no
14485       need_lib_prefix=no
14486       export_dynamic_flag_spec='${wl}-Blargedynsym'
14487       runpath_var=LD_RUN_PATH
14488       ;;
14489     siemens)
14490       need_lib_prefix=no
14491       ;;
14492     motorola)
14493       need_lib_prefix=no
14494       need_version=no
14495       shlibpath_overrides_runpath=no
14496       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14497       ;;
14498   esac
14499   ;;
14500
14501 sysv4*MP*)
14502   if test -d /usr/nec ;then
14503     version_type=linux
14504     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14505     soname_spec='$libname${shared_ext}.$major'
14506     shlibpath_var=LD_LIBRARY_PATH
14507   fi
14508   ;;
14509
14510 uts4*)
14511   version_type=linux
14512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513   soname_spec='${libname}${release}${shared_ext}$major'
14514   shlibpath_var=LD_LIBRARY_PATH
14515   ;;
14516
14517 *)
14518   dynamic_linker=no
14519   ;;
14520 esac
14521 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14522 echo "${ECHO_T}$dynamic_linker" >&6
14523 test "$dynamic_linker" = no && can_build_shared=no
14524
14525 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14527 hardcode_action_F77=
14528 if test -n "$hardcode_libdir_flag_spec_F77" || \
14529    test -n "$runpath_var F77" || \
14530    test "X$hardcode_automatic_F77"="Xyes" ; then
14531
14532   # We can hardcode non-existant directories.
14533   if test "$hardcode_direct_F77" != no &&
14534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14535      # have to relink, otherwise we might link with an installed library
14536      # when we should be linking with a yet-to-be-installed one
14537      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14538      test "$hardcode_minus_L_F77" != no; then
14539     # Linking always hardcodes the temporary library directory.
14540     hardcode_action_F77=relink
14541   else
14542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14543     hardcode_action_F77=immediate
14544   fi
14545 else
14546   # We cannot hardcode anything, or else we can only hardcode existing
14547   # directories.
14548   hardcode_action_F77=unsupported
14549 fi
14550 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14551 echo "${ECHO_T}$hardcode_action_F77" >&6
14552
14553 if test "$hardcode_action_F77" = relink; then
14554   # Fast installation is not supported
14555   enable_fast_install=no
14556 elif test "$shlibpath_overrides_runpath" = yes ||
14557      test "$enable_shared" = no; then
14558   # Fast installation is not necessary
14559   enable_fast_install=needless
14560 fi
14561
14562 striplib=
14563 old_striplib=
14564 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14565 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14566 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14567   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14568   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14569   echo "$as_me:$LINENO: result: yes" >&5
14570 echo "${ECHO_T}yes" >&6
14571 else
14572 # FIXME - insert some real tests, host_os isn't really good enough
14573   case $host_os in
14574    darwin*)
14575        if test -n "$STRIP" ; then
14576          striplib="$STRIP -x"
14577          echo "$as_me:$LINENO: result: yes" >&5
14578 echo "${ECHO_T}yes" >&6
14579        else
14580   echo "$as_me:$LINENO: result: no" >&5
14581 echo "${ECHO_T}no" >&6
14582 fi
14583        ;;
14584    *)
14585   echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6
14587     ;;
14588   esac
14589 fi
14590
14591
14592
14593 # The else clause should only fire when bootstrapping the
14594 # libtool distribution, otherwise you forgot to ship ltmain.sh
14595 # with your package, and you will get complaints that there are
14596 # no rules to generate ltmain.sh.
14597 if test -f "$ltmain"; then
14598   # See if we are running on zsh, and set the options which allow our commands through
14599   # without removal of \ escapes.
14600   if test -n "${ZSH_VERSION+set}" ; then
14601     setopt NO_GLOB_SUBST
14602   fi
14603   # Now quote all the things that may contain metacharacters while being
14604   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14605   # variables and quote the copies for generation of the libtool script.
14606   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14607     SED SHELL STRIP \
14608     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14609     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14610     deplibs_check_method reload_flag reload_cmds need_locks \
14611     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14612     lt_cv_sys_global_symbol_to_c_name_address \
14613     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14614     old_postinstall_cmds old_postuninstall_cmds \
14615     compiler_F77 \
14616     CC_F77 \
14617     LD_F77 \
14618     lt_prog_compiler_wl_F77 \
14619     lt_prog_compiler_pic_F77 \
14620     lt_prog_compiler_static_F77 \
14621     lt_prog_compiler_no_builtin_flag_F77 \
14622     export_dynamic_flag_spec_F77 \
14623     thread_safe_flag_spec_F77 \
14624     whole_archive_flag_spec_F77 \
14625     enable_shared_with_static_runtimes_F77 \
14626     old_archive_cmds_F77 \
14627     old_archive_from_new_cmds_F77 \
14628     predep_objects_F77 \
14629     postdep_objects_F77 \
14630     predeps_F77 \
14631     postdeps_F77 \
14632     compiler_lib_search_path_F77 \
14633     archive_cmds_F77 \
14634     archive_expsym_cmds_F77 \
14635     postinstall_cmds_F77 \
14636     postuninstall_cmds_F77 \
14637     old_archive_from_expsyms_cmds_F77 \
14638     allow_undefined_flag_F77 \
14639     no_undefined_flag_F77 \
14640     export_symbols_cmds_F77 \
14641     hardcode_libdir_flag_spec_F77 \
14642     hardcode_libdir_flag_spec_ld_F77 \
14643     hardcode_libdir_separator_F77 \
14644     hardcode_automatic_F77 \
14645     module_cmds_F77 \
14646     module_expsym_cmds_F77 \
14647     lt_cv_prog_compiler_c_o_F77 \
14648     exclude_expsyms_F77 \
14649     include_expsyms_F77; do
14650
14651     case $var in
14652     old_archive_cmds_F77 | \
14653     old_archive_from_new_cmds_F77 | \
14654     archive_cmds_F77 | \
14655     archive_expsym_cmds_F77 | \
14656     module_cmds_F77 | \
14657     module_expsym_cmds_F77 | \
14658     old_archive_from_expsyms_cmds_F77 | \
14659     export_symbols_cmds_F77 | \
14660     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14661     postinstall_cmds | postuninstall_cmds | \
14662     old_postinstall_cmds | old_postuninstall_cmds | \
14663     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14664       # Double-quote double-evaled strings.
14665       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14666       ;;
14667     *)
14668       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14669       ;;
14670     esac
14671   done
14672
14673   case $lt_echo in
14674   *'\$0 --fallback-echo"')
14675     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14676     ;;
14677   esac
14678
14679 cfgfile="$ofile"
14680
14681   cat <<__EOF__ >> "$cfgfile"
14682 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14683
14684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14685
14686 # Shell to use when invoking shell scripts.
14687 SHELL=$lt_SHELL
14688
14689 # Whether or not to build shared libraries.
14690 build_libtool_libs=$enable_shared
14691
14692 # Whether or not to build static libraries.
14693 build_old_libs=$enable_static
14694
14695 # Whether or not to add -lc for building shared libraries.
14696 build_libtool_need_lc=$archive_cmds_need_lc_F77
14697
14698 # Whether or not to disallow shared libs when runtime libs are static
14699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14700
14701 # Whether or not to optimize for fast installation.
14702 fast_install=$enable_fast_install
14703
14704 # The host system.
14705 host_alias=$host_alias
14706 host=$host
14707
14708 # An echo program that does not interpret backslashes.
14709 echo=$lt_echo
14710
14711 # The archiver.
14712 AR=$lt_AR
14713 AR_FLAGS=$lt_AR_FLAGS
14714
14715 # A C compiler.
14716 LTCC=$lt_LTCC
14717
14718 # A language-specific compiler.
14719 CC=$lt_compiler_F77
14720
14721 # Is the compiler the GNU C compiler?
14722 with_gcc=$GCC_F77
14723
14724 # An ERE matcher.
14725 EGREP=$lt_EGREP
14726
14727 # The linker used to build libraries.
14728 LD=$lt_LD_F77
14729
14730 # Whether we need hard or soft links.
14731 LN_S=$lt_LN_S
14732
14733 # A BSD-compatible nm program.
14734 NM=$lt_NM
14735
14736 # A symbol stripping program
14737 STRIP=$lt_STRIP
14738
14739 # Used to examine libraries when file_magic_cmd begins "file"
14740 MAGIC_CMD=$MAGIC_CMD
14741
14742 # Used on cygwin: DLL creation program.
14743 DLLTOOL="$DLLTOOL"
14744
14745 # Used on cygwin: object dumper.
14746 OBJDUMP="$OBJDUMP"
14747
14748 # Used on cygwin: assembler.
14749 AS="$AS"
14750
14751 # The name of the directory that contains temporary libtool files.
14752 objdir=$objdir
14753
14754 # How to create reloadable object files.
14755 reload_flag=$lt_reload_flag
14756 reload_cmds=$lt_reload_cmds
14757
14758 # How to pass a linker flag through the compiler.
14759 wl=$lt_lt_prog_compiler_wl_F77
14760
14761 # Object file suffix (normally "o").
14762 objext="$ac_objext"
14763
14764 # Old archive suffix (normally "a").
14765 libext="$libext"
14766
14767 # Shared library suffix (normally ".so").
14768 shrext='$shrext'
14769
14770 # Executable file suffix (normally "").
14771 exeext="$exeext"
14772
14773 # Additional compiler flags for building library objects.
14774 pic_flag=$lt_lt_prog_compiler_pic_F77
14775 pic_mode=$pic_mode
14776
14777 # What is the maximum length of a command?
14778 max_cmd_len=$lt_cv_sys_max_cmd_len
14779
14780 # Does compiler simultaneously support -c and -o options?
14781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14782
14783 # Must we lock files when doing compilation ?
14784 need_locks=$lt_need_locks
14785
14786 # Do we need the lib prefix for modules?
14787 need_lib_prefix=$need_lib_prefix
14788
14789 # Do we need a version for libraries?
14790 need_version=$need_version
14791
14792 # Whether dlopen is supported.
14793 dlopen_support=$enable_dlopen
14794
14795 # Whether dlopen of programs is supported.
14796 dlopen_self=$enable_dlopen_self
14797
14798 # Whether dlopen of statically linked programs is supported.
14799 dlopen_self_static=$enable_dlopen_self_static
14800
14801 # Compiler flag to prevent dynamic linking.
14802 link_static_flag=$lt_lt_prog_compiler_static_F77
14803
14804 # Compiler flag to turn off builtin functions.
14805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14806
14807 # Compiler flag to allow reflexive dlopens.
14808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14809
14810 # Compiler flag to generate shared objects directly from archives.
14811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14812
14813 # Compiler flag to generate thread-safe objects.
14814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14815
14816 # Library versioning type.
14817 version_type=$version_type
14818
14819 # Format of library name prefix.
14820 libname_spec=$lt_libname_spec
14821
14822 # List of archive names.  First name is the real one, the rest are links.
14823 # The last name is the one that the linker finds with -lNAME.
14824 library_names_spec=$lt_library_names_spec
14825
14826 # The coded name of the library, if different from the real name.
14827 soname_spec=$lt_soname_spec
14828
14829 # Commands used to build and install an old-style archive.
14830 RANLIB=$lt_RANLIB
14831 old_archive_cmds=$lt_old_archive_cmds_F77
14832 old_postinstall_cmds=$lt_old_postinstall_cmds
14833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14834
14835 # Create an old-style archive from a shared archive.
14836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14837
14838 # Create a temporary old-style archive to link instead of a shared archive.
14839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14840
14841 # Commands used to build and install a shared archive.
14842 archive_cmds=$lt_archive_cmds_F77
14843 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14844 postinstall_cmds=$lt_postinstall_cmds
14845 postuninstall_cmds=$lt_postuninstall_cmds
14846
14847 # Commands used to build a loadable module (assumed same as above if empty)
14848 module_cmds=$lt_module_cmds_F77
14849 module_expsym_cmds=$lt_module_expsym_cmds_F77
14850
14851 # Commands to strip libraries.
14852 old_striplib=$lt_old_striplib
14853 striplib=$lt_striplib
14854
14855 # Dependencies to place before the objects being linked to create a
14856 # shared library.
14857 predep_objects=$lt_predep_objects_F77
14858
14859 # Dependencies to place after the objects being linked to create a
14860 # shared library.
14861 postdep_objects=$lt_postdep_objects_F77
14862
14863 # Dependencies to place before the objects being linked to create a
14864 # shared library.
14865 predeps=$lt_predeps_F77
14866
14867 # Dependencies to place after the objects being linked to create a
14868 # shared library.
14869 postdeps=$lt_postdeps_F77
14870
14871 # The library search path used internally by the compiler when linking
14872 # a shared library.
14873 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14874
14875 # Method to check whether dependent libraries are shared objects.
14876 deplibs_check_method=$lt_deplibs_check_method
14877
14878 # Command to use when deplibs_check_method == file_magic.
14879 file_magic_cmd=$lt_file_magic_cmd
14880
14881 # Flag that allows shared libraries with undefined symbols to be built.
14882 allow_undefined_flag=$lt_allow_undefined_flag_F77
14883
14884 # Flag that forces no undefined symbols.
14885 no_undefined_flag=$lt_no_undefined_flag_F77
14886
14887 # Commands used to finish a libtool library installation in a directory.
14888 finish_cmds=$lt_finish_cmds
14889
14890 # Same as above, but a single script fragment to be evaled but not shown.
14891 finish_eval=$lt_finish_eval
14892
14893 # Take the output of nm and produce a listing of raw symbols and C names.
14894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14895
14896 # Transform the output of nm in a proper C declaration
14897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14898
14899 # Transform the output of nm in a C name address pair
14900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14901
14902 # This is the shared library runtime path variable.
14903 runpath_var=$runpath_var
14904
14905 # This is the shared library path variable.
14906 shlibpath_var=$shlibpath_var
14907
14908 # Is shlibpath searched before the hard-coded library search path?
14909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14910
14911 # How to hardcode a shared library path into an executable.
14912 hardcode_action=$hardcode_action_F77
14913
14914 # Whether we should hardcode library paths into libraries.
14915 hardcode_into_libs=$hardcode_into_libs
14916
14917 # Flag to hardcode \$libdir into a binary during linking.
14918 # This must work even if \$libdir does not exist.
14919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14920
14921 # If ld is used when linking, flag to hardcode \$libdir into
14922 # a binary during linking. This must work even if \$libdir does
14923 # not exist.
14924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14925
14926 # Whether we need a single -rpath flag with a separated argument.
14927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14928
14929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14930 # resulting binary.
14931 hardcode_direct=$hardcode_direct_F77
14932
14933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14934 # resulting binary.
14935 hardcode_minus_L=$hardcode_minus_L_F77
14936
14937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14938 # the resulting binary.
14939 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14940
14941 # Set to yes if building a shared library automatically hardcodes DIR into the library
14942 # and all subsequent libraries and executables linked against it.
14943 hardcode_automatic=$hardcode_automatic_F77
14944
14945 # Variables whose values should be saved in libtool wrapper scripts and
14946 # restored at relink time.
14947 variables_saved_for_relink="$variables_saved_for_relink"
14948
14949 # Whether libtool must link a program against all its dependency libraries.
14950 link_all_deplibs=$link_all_deplibs_F77
14951
14952 # Compile-time system search path for libraries
14953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14954
14955 # Run-time system search path for libraries
14956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14957
14958 # Fix the shell variable \$srcfile for the compiler.
14959 fix_srcfile_path="$fix_srcfile_path_F77"
14960
14961 # Set to yes if exported symbols are required.
14962 always_export_symbols=$always_export_symbols_F77
14963
14964 # The commands to list exported symbols.
14965 export_symbols_cmds=$lt_export_symbols_cmds_F77
14966
14967 # The commands to extract the exported symbol list from a shared archive.
14968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14969
14970 # Symbols that should not be listed in the preloaded symbols.
14971 exclude_expsyms=$lt_exclude_expsyms_F77
14972
14973 # Symbols that must always be exported.
14974 include_expsyms=$lt_include_expsyms_F77
14975
14976 # ### END LIBTOOL TAG CONFIG: $tagname
14977
14978 __EOF__
14979
14980
14981 else
14982   # If there is no Makefile yet, we rely on a make rule to execute
14983   # `config.status --recheck' to rerun these tests and create the
14984   # libtool script then.
14985   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14986   if test -f "$ltmain_in"; then
14987     test -f Makefile && make "$ltmain"
14988   fi
14989 fi
14990
14991
14992 ac_ext=c
14993 ac_cpp='$CPP $CPPFLAGS'
14994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14997
14998 CC="$lt_save_CC"
14999
15000         else
15001           tagname=""
15002         fi
15003         ;;
15004
15005       GCJ)
15006         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15007
15008
15009
15010 # Source file extension for Java test sources.
15011 ac_ext=java
15012
15013 # Object file extension for compiled Java test sources.
15014 objext=o
15015 objext_GCJ=$objext
15016
15017 # Code to be used in simple compile tests
15018 lt_simple_compile_test_code="class foo {}\n"
15019
15020 # Code to be used in simple link tests
15021 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15022
15023 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15024
15025 # If no C compiler was specified, use CC.
15026 LTCC=${LTCC-"$CC"}
15027
15028 # Allow CC to be a program name with arguments.
15029 compiler=$CC
15030
15031
15032 # Allow CC to be a program name with arguments.
15033 lt_save_CC="$CC"
15034 CC=${GCJ-"gcj"}
15035 compiler=$CC
15036 compiler_GCJ=$CC
15037
15038 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15039 archive_cmds_need_lc_GCJ=no
15040
15041
15042 lt_prog_compiler_no_builtin_flag_GCJ=
15043
15044 if test "$GCC" = yes; then
15045   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15046
15047
15048 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15049 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15050 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15051   echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053   lt_cv_prog_compiler_rtti_exceptions=no
15054   ac_outfile=conftest.$ac_objext
15055    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15056    lt_compiler_flag="-fno-rtti -fno-exceptions"
15057    # Insert the option either (1) after the last *FLAGS variable, or
15058    # (2) before a word containing "conftest.", or (3) at the end.
15059    # Note that $ac_compile itself does not contain backslashes and begins
15060    # with a dollar sign (not a hyphen), so the echo should work correctly.
15061    # The option is referenced via a variable to avoid confusing sed.
15062    lt_compile=`echo "$ac_compile" | $SED \
15063    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15065    -e 's:$: $lt_compiler_flag:'`
15066    (eval echo "\"\$as_me:15066: $lt_compile\"" >&5)
15067    (eval "$lt_compile" 2>conftest.err)
15068    ac_status=$?
15069    cat conftest.err >&5
15070    echo "$as_me:15070: \$? = $ac_status" >&5
15071    if (exit $ac_status) && test -s "$ac_outfile"; then
15072      # The compiler can only warn and ignore the option if not recognized
15073      # So say no if there are warnings
15074      if test ! -s conftest.err; then
15075        lt_cv_prog_compiler_rtti_exceptions=yes
15076      fi
15077    fi
15078    $rm conftest*
15079
15080 fi
15081 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15082 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15083
15084 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15085     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15086 else
15087     :
15088 fi
15089
15090 fi
15091
15092 lt_prog_compiler_wl_GCJ=
15093 lt_prog_compiler_pic_GCJ=
15094 lt_prog_compiler_static_GCJ=
15095
15096 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15097 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15098
15099   if test "$GCC" = yes; then
15100     lt_prog_compiler_wl_GCJ='-Wl,'
15101     lt_prog_compiler_static_GCJ='-static'
15102
15103     case $host_os in
15104       aix*)
15105       # All AIX code is PIC.
15106       if test "$host_cpu" = ia64; then
15107         # AIX 5 now supports IA64 processor
15108         lt_prog_compiler_static_GCJ='-Bstatic'
15109       fi
15110       ;;
15111
15112     amigaos*)
15113       # FIXME: we need at least 68020 code to build shared libraries, but
15114       # adding the `-m68020' flag to GCC prevents building anything better,
15115       # like `-m68040'.
15116       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15117       ;;
15118
15119     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15120       # PIC is the default for these OSes.
15121       ;;
15122
15123     mingw* | pw32* | os2*)
15124       # This hack is so that the source file can tell whether it is being
15125       # built for inclusion in a dll (and should export symbols for example).
15126       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15127       ;;
15128
15129     darwin* | rhapsody*)
15130       # PIC is the default on this platform
15131       # Common symbols not allowed in MH_DYLIB files
15132       lt_prog_compiler_pic_GCJ='-fno-common'
15133       ;;
15134
15135     msdosdjgpp*)
15136       # Just because we use GCC doesn't mean we suddenly get shared libraries
15137       # on systems that don't support them.
15138       lt_prog_compiler_can_build_shared_GCJ=no
15139       enable_shared=no
15140       ;;
15141
15142     sysv4*MP*)
15143       if test -d /usr/nec; then
15144         lt_prog_compiler_pic_GCJ=-Kconform_pic
15145       fi
15146       ;;
15147
15148     hpux*)
15149       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15150       # not for PA HP-UX.
15151       case "$host_cpu" in
15152       hppa*64*|ia64*)
15153         # +Z the default
15154         ;;
15155       *)
15156         lt_prog_compiler_pic_GCJ='-fPIC'
15157         ;;
15158       esac
15159       ;;
15160
15161     *)
15162       lt_prog_compiler_pic_GCJ='-fPIC'
15163       ;;
15164     esac
15165   else
15166     # PORTME Check for flag to pass linker flags through the system compiler.
15167     case $host_os in
15168     aix*)
15169       lt_prog_compiler_wl_GCJ='-Wl,'
15170       if test "$host_cpu" = ia64; then
15171         # AIX 5 now supports IA64 processor
15172         lt_prog_compiler_static_GCJ='-Bstatic'
15173       else
15174         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15175       fi
15176       ;;
15177
15178     mingw* | pw32* | os2*)
15179       # This hack is so that the source file can tell whether it is being
15180       # built for inclusion in a dll (and should export symbols for example).
15181       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15182       ;;
15183
15184     hpux9* | hpux10* | hpux11*)
15185       lt_prog_compiler_wl_GCJ='-Wl,'
15186       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15187       # not for PA HP-UX.
15188       case "$host_cpu" in
15189       hppa*64*|ia64*)
15190         # +Z the default
15191         ;;
15192       *)
15193         lt_prog_compiler_pic_GCJ='+Z'
15194         ;;
15195       esac
15196       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15197       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15198       ;;
15199
15200     irix5* | irix6* | nonstopux*)
15201       lt_prog_compiler_wl_GCJ='-Wl,'
15202       # PIC (with -KPIC) is the default.
15203       lt_prog_compiler_static_GCJ='-non_shared'
15204       ;;
15205
15206     newsos6)
15207       lt_prog_compiler_pic_GCJ='-KPIC'
15208       lt_prog_compiler_static_GCJ='-Bstatic'
15209       ;;
15210
15211     linux*)
15212       case $CC in
15213       icc* | ecc*)
15214         lt_prog_compiler_wl_GCJ='-Wl,'
15215         lt_prog_compiler_pic_GCJ='-KPIC'
15216         lt_prog_compiler_static_GCJ='-static'
15217         ;;
15218       ccc*)
15219         lt_prog_compiler_wl_GCJ='-Wl,'
15220         # All Alpha code is PIC.
15221         lt_prog_compiler_static_GCJ='-non_shared'
15222         ;;
15223       esac
15224       ;;
15225
15226     osf3* | osf4* | osf5*)
15227       lt_prog_compiler_wl_GCJ='-Wl,'
15228       # All OSF/1 code is PIC.
15229       lt_prog_compiler_static_GCJ='-non_shared'
15230       ;;
15231
15232     sco3.2v5*)
15233       lt_prog_compiler_pic_GCJ='-Kpic'
15234       lt_prog_compiler_static_GCJ='-dn'
15235       ;;
15236
15237     solaris*)
15238       lt_prog_compiler_wl_GCJ='-Wl,'
15239       lt_prog_compiler_pic_GCJ='-KPIC'
15240       lt_prog_compiler_static_GCJ='-Bstatic'
15241       ;;
15242
15243     sunos4*)
15244       lt_prog_compiler_wl_GCJ='-Qoption ld '
15245       lt_prog_compiler_pic_GCJ='-PIC'
15246       lt_prog_compiler_static_GCJ='-Bstatic'
15247       ;;
15248
15249     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15250       lt_prog_compiler_wl_GCJ='-Wl,'
15251       lt_prog_compiler_pic_GCJ='-KPIC'
15252       lt_prog_compiler_static_GCJ='-Bstatic'
15253       ;;
15254
15255     sysv4*MP*)
15256       if test -d /usr/nec ;then
15257         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15258         lt_prog_compiler_static_GCJ='-Bstatic'
15259       fi
15260       ;;
15261
15262     uts4*)
15263       lt_prog_compiler_pic_GCJ='-pic'
15264       lt_prog_compiler_static_GCJ='-Bstatic'
15265       ;;
15266
15267     *)
15268       lt_prog_compiler_can_build_shared_GCJ=no
15269       ;;
15270     esac
15271   fi
15272
15273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15274 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15275
15276 #
15277 # Check to make sure the PIC flag actually works.
15278 #
15279 if test -n "$lt_prog_compiler_pic_GCJ"; then
15280
15281 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15282 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15283 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   lt_prog_compiler_pic_works_GCJ=no
15287   ac_outfile=conftest.$ac_objext
15288    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15289    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15290    # Insert the option either (1) after the last *FLAGS variable, or
15291    # (2) before a word containing "conftest.", or (3) at the end.
15292    # Note that $ac_compile itself does not contain backslashes and begins
15293    # with a dollar sign (not a hyphen), so the echo should work correctly.
15294    # The option is referenced via a variable to avoid confusing sed.
15295    lt_compile=`echo "$ac_compile" | $SED \
15296    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15298    -e 's:$: $lt_compiler_flag:'`
15299    (eval echo "\"\$as_me:15299: $lt_compile\"" >&5)
15300    (eval "$lt_compile" 2>conftest.err)
15301    ac_status=$?
15302    cat conftest.err >&5
15303    echo "$as_me:15303: \$? = $ac_status" >&5
15304    if (exit $ac_status) && test -s "$ac_outfile"; then
15305      # The compiler can only warn and ignore the option if not recognized
15306      # So say no if there are warnings
15307      if test ! -s conftest.err; then
15308        lt_prog_compiler_pic_works_GCJ=yes
15309      fi
15310    fi
15311    $rm conftest*
15312
15313 fi
15314 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15315 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15316
15317 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15318     case $lt_prog_compiler_pic_GCJ in
15319      "" | " "*) ;;
15320      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15321      esac
15322 else
15323     lt_prog_compiler_pic_GCJ=
15324      lt_prog_compiler_can_build_shared_GCJ=no
15325 fi
15326
15327 fi
15328 case "$host_os" in
15329   # For platforms which do not support PIC, -DPIC is meaningless:
15330   *djgpp*)
15331     lt_prog_compiler_pic_GCJ=
15332     ;;
15333   *)
15334     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15335     ;;
15336 esac
15337
15338 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15340 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15341   echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343   lt_cv_prog_compiler_c_o_GCJ=no
15344    $rm -r conftest 2>/dev/null
15345    mkdir conftest
15346    cd conftest
15347    mkdir out
15348    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15349
15350    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15351    # that will create temporary files in the current directory regardless of
15352    # the output directory.  Thus, making CWD read-only will cause this test
15353    # to fail, enabling locking or at least warning the user not to do parallel
15354    # builds.
15355    chmod -w .
15356
15357    lt_compiler_flag="-o out/conftest2.$ac_objext"
15358    # Insert the option either (1) after the last *FLAGS variable, or
15359    # (2) before a word containing "conftest.", or (3) at the end.
15360    # Note that $ac_compile itself does not contain backslashes and begins
15361    # with a dollar sign (not a hyphen), so the echo should work correctly.
15362    lt_compile=`echo "$ac_compile" | $SED \
15363    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365    -e 's:$: $lt_compiler_flag:'`
15366    (eval echo "\"\$as_me:15366: $lt_compile\"" >&5)
15367    (eval "$lt_compile" 2>out/conftest.err)
15368    ac_status=$?
15369    cat out/conftest.err >&5
15370    echo "$as_me:15370: \$? = $ac_status" >&5
15371    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15372    then
15373      # The compiler can only warn and ignore the option if not recognized
15374      # So say no if there are warnings
15375      if test ! -s out/conftest.err; then
15376        lt_cv_prog_compiler_c_o_GCJ=yes
15377      fi
15378    fi
15379    chmod u+w .
15380    $rm conftest*
15381    # SGI C++ compiler will create directory out/ii_files/ for
15382    # template instantiation
15383    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15384    $rm out/* && rmdir out
15385    cd ..
15386    rmdir conftest
15387    $rm conftest*
15388
15389 fi
15390 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15391 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15392
15393
15394 hard_links="nottested"
15395 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15396   # do not overwrite the value of need_locks provided by the user
15397   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15398 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15399   hard_links=yes
15400   $rm conftest*
15401   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15402   touch conftest.a
15403   ln conftest.a conftest.b 2>&5 || hard_links=no
15404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15405   echo "$as_me:$LINENO: result: $hard_links" >&5
15406 echo "${ECHO_T}$hard_links" >&6
15407   if test "$hard_links" = no; then
15408     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15409 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15410     need_locks=warn
15411   fi
15412 else
15413   need_locks=no
15414 fi
15415
15416 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15417 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15418
15419   runpath_var=
15420   allow_undefined_flag_GCJ=
15421   enable_shared_with_static_runtimes_GCJ=no
15422   archive_cmds_GCJ=
15423   archive_expsym_cmds_GCJ=
15424   old_archive_From_new_cmds_GCJ=
15425   old_archive_from_expsyms_cmds_GCJ=
15426   export_dynamic_flag_spec_GCJ=
15427   whole_archive_flag_spec_GCJ=
15428   thread_safe_flag_spec_GCJ=
15429   hardcode_libdir_flag_spec_GCJ=
15430   hardcode_libdir_flag_spec_ld_GCJ=
15431   hardcode_libdir_separator_GCJ=
15432   hardcode_direct_GCJ=no
15433   hardcode_minus_L_GCJ=no
15434   hardcode_shlibpath_var_GCJ=unsupported
15435   link_all_deplibs_GCJ=unknown
15436   hardcode_automatic_GCJ=no
15437   module_cmds_GCJ=
15438   module_expsym_cmds_GCJ=
15439   always_export_symbols_GCJ=no
15440   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15441   # include_expsyms should be a list of space-separated symbols to be *always*
15442   # included in the symbol list
15443   include_expsyms_GCJ=
15444   # exclude_expsyms can be an extended regexp of symbols to exclude
15445   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15446   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15447   # as well as any symbol that contains `d'.
15448   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15449   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15450   # platforms (ab)use it in PIC code, but their linkers get confused if
15451   # the symbol is explicitly referenced.  Since portable code cannot
15452   # rely on this symbol name, it's probably fine to never include it in
15453   # preloaded symbol tables.
15454   extract_expsyms_cmds=
15455
15456   case $host_os in
15457   cygwin* | mingw* | pw32*)
15458     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15459     # When not using gcc, we currently assume that we are using
15460     # Microsoft Visual C++.
15461     if test "$GCC" != yes; then
15462       with_gnu_ld=no
15463     fi
15464     ;;
15465   openbsd*)
15466     with_gnu_ld=no
15467     ;;
15468   esac
15469
15470   ld_shlibs_GCJ=yes
15471   if test "$with_gnu_ld" = yes; then
15472     # If archive_cmds runs LD, not CC, wlarc should be empty
15473     wlarc='${wl}'
15474
15475     # See if GNU ld supports shared libraries.
15476     case $host_os in
15477     aix3* | aix4* | aix5*)
15478       # On AIX/PPC, the GNU linker is very broken
15479       if test "$host_cpu" != ia64; then
15480         ld_shlibs_GCJ=no
15481         cat <<EOF 1>&2
15482
15483 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15484 *** to be unable to reliably create shared libraries on AIX.
15485 *** Therefore, libtool is disabling shared libraries support.  If you
15486 *** really care for shared libraries, you may want to modify your PATH
15487 *** so that a non-GNU linker is found, and then restart.
15488
15489 EOF
15490       fi
15491       ;;
15492
15493     amigaos*)
15494       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)'
15495       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15496       hardcode_minus_L_GCJ=yes
15497
15498       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15499       # that the semantics of dynamic libraries on AmigaOS, at least up
15500       # to version 4, is to share data among multiple programs linked
15501       # with the same dynamic library.  Since this doesn't match the
15502       # behavior of shared libraries on other platforms, we can't use
15503       # them.
15504       ld_shlibs_GCJ=no
15505       ;;
15506
15507     beos*)
15508       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15509         allow_undefined_flag_GCJ=unsupported
15510         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15511         # support --undefined.  This deserves some investigation.  FIXME
15512         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15513       else
15514         ld_shlibs_GCJ=no
15515       fi
15516       ;;
15517
15518     cygwin* | mingw* | pw32*)
15519       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15520       # as there is no search path for DLLs.
15521       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15522       allow_undefined_flag_GCJ=unsupported
15523       always_export_symbols_GCJ=no
15524       enable_shared_with_static_runtimes_GCJ=yes
15525       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15526
15527       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15528         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15529         # If the export-symbols file already is a .def file (1st line
15530         # is EXPORTS), use it as is; otherwise, prepend...
15531         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15532           cp $export_symbols $output_objdir/$soname.def;
15533         else
15534           echo EXPORTS > $output_objdir/$soname.def;
15535           cat $export_symbols >> $output_objdir/$soname.def;
15536         fi~
15537         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15538       else
15539         ld_shlibs=no
15540       fi
15541       ;;
15542
15543     netbsd*)
15544       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15545         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15546         wlarc=
15547       else
15548         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15549         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15550       fi
15551       ;;
15552
15553     solaris* | sysv5*)
15554       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15555         ld_shlibs_GCJ=no
15556         cat <<EOF 1>&2
15557
15558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15559 *** create shared libraries on Solaris systems.  Therefore, libtool
15560 *** is disabling shared libraries support.  We urge you to upgrade GNU
15561 *** binutils to release 2.9.1 or newer.  Another option is to modify
15562 *** your PATH or compiler configuration so that the native linker is
15563 *** used, and then restart.
15564
15565 EOF
15566       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15567         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15568         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15569       else
15570         ld_shlibs_GCJ=no
15571       fi
15572       ;;
15573
15574     sunos4*)
15575       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576       wlarc=
15577       hardcode_direct_GCJ=yes
15578       hardcode_shlibpath_var_GCJ=no
15579       ;;
15580
15581   linux*)
15582     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15583         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584         archive_cmds_GCJ="$tmp_archive_cmds"
15585       supports_anon_versioning=no
15586       case `$LD -v 2>/dev/null` in
15587         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15588         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15589         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15590         *\ 2.11.*) ;; # other 2.11 versions
15591         *) supports_anon_versioning=yes ;;
15592       esac
15593       if test $supports_anon_versioning = yes; then
15594         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15596 $echo "local: *; };" >> $output_objdir/$libname.ver~
15597         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15598       else
15599         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15600       fi
15601     else
15602       ld_shlibs_GCJ=no
15603     fi
15604     ;;
15605
15606     *)
15607       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15608         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15609         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15610       else
15611         ld_shlibs_GCJ=no
15612       fi
15613       ;;
15614     esac
15615
15616     if test "$ld_shlibs_GCJ" = yes; then
15617       runpath_var=LD_RUN_PATH
15618       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15619       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15620       # ancient GNU ld didn't support --whole-archive et. al.
15621       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15622         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15623       else
15624         whole_archive_flag_spec_GCJ=
15625       fi
15626     fi
15627   else
15628     # PORTME fill in a description of your system's linker (not GNU ld)
15629     case $host_os in
15630     aix3*)
15631       allow_undefined_flag_GCJ=unsupported
15632       always_export_symbols_GCJ=yes
15633       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'
15634       # Note: this linker hardcodes the directories in LIBPATH if there
15635       # are no directories specified by -L.
15636       hardcode_minus_L_GCJ=yes
15637       if test "$GCC" = yes && test -z "$link_static_flag"; then
15638         # Neither direct hardcoding nor static linking is supported with a
15639         # broken collect2.
15640         hardcode_direct_GCJ=unsupported
15641       fi
15642       ;;
15643
15644     aix4* | aix5*)
15645       if test "$host_cpu" = ia64; then
15646         # On IA64, the linker does run time linking by default, so we don't
15647         # have to do anything special.
15648         aix_use_runtimelinking=no
15649         exp_sym_flag='-Bexport'
15650         no_entry_flag=""
15651       else
15652         # If we're using GNU nm, then we don't want the "-C" option.
15653         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15654         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15655           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'
15656         else
15657           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'
15658         fi
15659         aix_use_runtimelinking=no
15660
15661         # Test if we are trying to use run time linking or normal
15662         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15663         # need to do runtime linking.
15664         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15665           for ld_flag in $LDFLAGS; do
15666           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15667             aix_use_runtimelinking=yes
15668             break
15669           fi
15670           done
15671         esac
15672
15673         exp_sym_flag='-bexport'
15674         no_entry_flag='-bnoentry'
15675       fi
15676
15677       # When large executables or shared objects are built, AIX ld can
15678       # have problems creating the table of contents.  If linking a library
15679       # or program results in "error TOC overflow" add -mminimal-toc to
15680       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15681       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15682
15683       archive_cmds_GCJ=''
15684       hardcode_direct_GCJ=yes
15685       hardcode_libdir_separator_GCJ=':'
15686       link_all_deplibs_GCJ=yes
15687
15688       if test "$GCC" = yes; then
15689         case $host_os in aix4.012|aix4.012.*)
15690         # We only want to do this on AIX 4.2 and lower, the check
15691         # below for broken collect2 doesn't work under 4.3+
15692           collect2name=`${CC} -print-prog-name=collect2`
15693           if test -f "$collect2name" && \
15694            strings "$collect2name" | grep resolve_lib_name >/dev/null
15695           then
15696           # We have reworked collect2
15697           hardcode_direct_GCJ=yes
15698           else
15699           # We have old collect2
15700           hardcode_direct_GCJ=unsupported
15701           # It fails to find uninstalled libraries when the uninstalled
15702           # path is not listed in the libpath.  Setting hardcode_minus_L
15703           # to unsupported forces relinking
15704           hardcode_minus_L_GCJ=yes
15705           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15706           hardcode_libdir_separator_GCJ=
15707           fi
15708         esac
15709         shared_flag='-shared'
15710       else
15711         # not using gcc
15712         if test "$host_cpu" = ia64; then
15713         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15714         # chokes on -Wl,-G. The following line is correct:
15715           shared_flag='-G'
15716         else
15717         if test "$aix_use_runtimelinking" = yes; then
15718             shared_flag='${wl}-G'
15719           else
15720             shared_flag='${wl}-bM:SRE'
15721         fi
15722         fi
15723       fi
15724
15725       # It seems that -bexpall does not export symbols beginning with
15726       # underscore (_), so it is better to generate a list of symbols to export.
15727       always_export_symbols_GCJ=yes
15728       if test "$aix_use_runtimelinking" = yes; then
15729         # Warning - without using the other runtime loading flags (-brtl),
15730         # -berok will link without error, but may produce a broken library.
15731         allow_undefined_flag_GCJ='-berok'
15732        # Determine the default libpath from the value encoded in an empty executable.
15733        cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739
15740 int
15741 main ()
15742 {
15743
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750   (eval $ac_link) 2>conftest.er1
15751   ac_status=$?
15752   grep -v '^ *+' conftest.er1 >conftest.err
15753   rm -f conftest.er1
15754   cat conftest.err >&5
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -z "$ac_c_werror_flag"
15758                          || test ! -s conftest.err'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; } &&
15764          { ac_try='test -s conftest$ac_exeext'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; }; then
15770
15771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15772 }'`
15773 # Check for a 64-bit object if we didn't find anything.
15774 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; }
15775 }'`; fi
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 fi
15781 rm -f conftest.err conftest.$ac_objext \
15782       conftest$ac_exeext conftest.$ac_ext
15783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15784
15785        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15786         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"
15787        else
15788         if test "$host_cpu" = ia64; then
15789           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15790           allow_undefined_flag_GCJ="-z nodefs"
15791           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"
15792         else
15793          # Determine the default libpath from the value encoded in an empty executable.
15794          cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800
15801 int
15802 main ()
15803 {
15804
15805   ;
15806   return 0;
15807 }
15808 _ACEOF
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811   (eval $ac_link) 2>conftest.er1
15812   ac_status=$?
15813   grep -v '^ *+' conftest.er1 >conftest.err
15814   rm -f conftest.er1
15815   cat conftest.err >&5
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -z "$ac_c_werror_flag"
15819                          || test ! -s conftest.err'
15820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821   (eval $ac_try) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; } &&
15825          { ac_try='test -s conftest$ac_exeext'
15826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827   (eval $ac_try) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); }; }; then
15831
15832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15833 }'`
15834 # Check for a 64-bit object if we didn't find anything.
15835 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; }
15836 }'`; fi
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 fi
15842 rm -f conftest.err conftest.$ac_objext \
15843       conftest$ac_exeext conftest.$ac_ext
15844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15845
15846          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15847           # Warning - without using the other run time loading flags,
15848           # -berok will link without error, but may produce a broken library.
15849           no_undefined_flag_GCJ=' ${wl}-bernotok'
15850           allow_undefined_flag_GCJ=' ${wl}-berok'
15851           # -bexpall does not export symbols beginning with underscore (_)
15852           always_export_symbols_GCJ=yes
15853           # Exported symbols can be pulled into shared objects from archives
15854           whole_archive_flag_spec_GCJ=' '
15855           archive_cmds_need_lc_GCJ=yes
15856           # This is similar to how AIX traditionally builds it's shared libraries.
15857           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'
15858         fi
15859       fi
15860       ;;
15861
15862     amigaos*)
15863       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)'
15864       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15865       hardcode_minus_L_GCJ=yes
15866       # see comment about different semantics on the GNU ld section
15867       ld_shlibs_GCJ=no
15868       ;;
15869
15870     bsdi4*)
15871       export_dynamic_flag_spec_GCJ=-rdynamic
15872       ;;
15873
15874     cygwin* | mingw* | pw32*)
15875       # When not using gcc, we currently assume that we are using
15876       # Microsoft Visual C++.
15877       # hardcode_libdir_flag_spec is actually meaningless, as there is
15878       # no search path for DLLs.
15879       hardcode_libdir_flag_spec_GCJ=' '
15880       allow_undefined_flag_GCJ=unsupported
15881       # Tell ltmain to make .lib files, not .a files.
15882       libext=lib
15883       # Tell ltmain to make .dll files, not .so files.
15884       shrext=".dll"
15885       # FIXME: Setting linknames here is a bad hack.
15886       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15887       # The linker will automatically build a .lib file if we build a DLL.
15888       old_archive_From_new_cmds_GCJ='true'
15889       # FIXME: Should let the user specify the lib program.
15890       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15891       fix_srcfile_path='`cygpath -w "$srcfile"`'
15892       enable_shared_with_static_runtimes_GCJ=yes
15893       ;;
15894
15895     darwin* | rhapsody*)
15896     if test "$GXX" = yes ; then
15897       archive_cmds_need_lc_GCJ=no
15898       case "$host_os" in
15899       rhapsody* | darwin1.[012])
15900         allow_undefined_flag_GCJ='-undefined suppress'
15901         ;;
15902       *) # Darwin 1.3 on
15903       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15904         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15905       else
15906         case ${MACOSX_DEPLOYMENT_TARGET} in
15907           10.[012])
15908             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15909             ;;
15910           10.*)
15911             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15912             ;;
15913         esac
15914       fi
15915         ;;
15916       esac
15917         lt_int_apple_cc_single_mod=no
15918         output_verbose_link_cmd='echo'
15919         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15920           lt_int_apple_cc_single_mod=yes
15921         fi
15922         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15923           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15924         else
15925         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15926       fi
15927       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15928       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15929         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15930           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15931         else
15932           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15933         fi
15934           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}'
15935       hardcode_direct_GCJ=no
15936       hardcode_automatic_GCJ=yes
15937       hardcode_shlibpath_var_GCJ=unsupported
15938       whole_archive_flag_spec_GCJ='-all_load $convenience'
15939       link_all_deplibs_GCJ=yes
15940     else
15941       ld_shlibs_GCJ=no
15942     fi
15943       ;;
15944
15945     dgux*)
15946       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15947       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15948       hardcode_shlibpath_var_GCJ=no
15949       ;;
15950
15951     freebsd1*)
15952       ld_shlibs_GCJ=no
15953       ;;
15954
15955     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15956     # support.  Future versions do this automatically, but an explicit c++rt0.o
15957     # does not break anything, and helps significantly (at the cost of a little
15958     # extra space).
15959     freebsd2.2*)
15960       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15961       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15962       hardcode_direct_GCJ=yes
15963       hardcode_shlibpath_var_GCJ=no
15964       ;;
15965
15966     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15967     freebsd2*)
15968       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15969       hardcode_direct_GCJ=yes
15970       hardcode_minus_L_GCJ=yes
15971       hardcode_shlibpath_var_GCJ=no
15972       ;;
15973
15974     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15975     freebsd* | kfreebsd*-gnu)
15976       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15977       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15978       hardcode_direct_GCJ=yes
15979       hardcode_shlibpath_var_GCJ=no
15980       ;;
15981
15982     hpux9*)
15983       if test "$GCC" = yes; then
15984         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'
15985       else
15986         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'
15987       fi
15988       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15989       hardcode_libdir_separator_GCJ=:
15990       hardcode_direct_GCJ=yes
15991
15992       # hardcode_minus_L: Not really in the search PATH,
15993       # but as the default location of the library.
15994       hardcode_minus_L_GCJ=yes
15995       export_dynamic_flag_spec_GCJ='${wl}-E'
15996       ;;
15997
15998     hpux10* | hpux11*)
15999       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16000         case "$host_cpu" in
16001         hppa*64*|ia64*)
16002           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003           ;;
16004         *)
16005           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16006           ;;
16007         esac
16008       else
16009         case "$host_cpu" in
16010         hppa*64*|ia64*)
16011           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16012           ;;
16013         *)
16014           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16015           ;;
16016         esac
16017       fi
16018       if test "$with_gnu_ld" = no; then
16019         case "$host_cpu" in
16020         hppa*64*)
16021           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16022           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16023           hardcode_libdir_separator_GCJ=:
16024           hardcode_direct_GCJ=no
16025           hardcode_shlibpath_var_GCJ=no
16026           ;;
16027         ia64*)
16028           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16029           hardcode_direct_GCJ=no
16030           hardcode_shlibpath_var_GCJ=no
16031
16032           # hardcode_minus_L: Not really in the search PATH,
16033           # but as the default location of the library.
16034           hardcode_minus_L_GCJ=yes
16035           ;;
16036         *)
16037           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16038           hardcode_libdir_separator_GCJ=:
16039           hardcode_direct_GCJ=yes
16040           export_dynamic_flag_spec_GCJ='${wl}-E'
16041
16042           # hardcode_minus_L: Not really in the search PATH,
16043           # but as the default location of the library.
16044           hardcode_minus_L_GCJ=yes
16045           ;;
16046         esac
16047       fi
16048       ;;
16049
16050     irix5* | irix6* | nonstopux*)
16051       if test "$GCC" = yes; then
16052         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'
16053       else
16054         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'
16055         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16056       fi
16057       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16058       hardcode_libdir_separator_GCJ=:
16059       link_all_deplibs_GCJ=yes
16060       ;;
16061
16062     netbsd*)
16063       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16064         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16065       else
16066         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16067       fi
16068       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16069       hardcode_direct_GCJ=yes
16070       hardcode_shlibpath_var_GCJ=no
16071       ;;
16072
16073     newsos6)
16074       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16075       hardcode_direct_GCJ=yes
16076       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16077       hardcode_libdir_separator_GCJ=:
16078       hardcode_shlibpath_var_GCJ=no
16079       ;;
16080
16081     openbsd*)
16082       hardcode_direct_GCJ=yes
16083       hardcode_shlibpath_var_GCJ=no
16084       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16085         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16086         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16087         export_dynamic_flag_spec_GCJ='${wl}-E'
16088       else
16089        case $host_os in
16090          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16091            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16092            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16093            ;;
16094          *)
16095            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16096            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16097            ;;
16098        esac
16099       fi
16100       ;;
16101
16102     os2*)
16103       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16104       hardcode_minus_L_GCJ=yes
16105       allow_undefined_flag_GCJ=unsupported
16106       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'
16107       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16108       ;;
16109
16110     osf3*)
16111       if test "$GCC" = yes; then
16112         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16113         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'
16114       else
16115         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16116         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'
16117       fi
16118       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16119       hardcode_libdir_separator_GCJ=:
16120       ;;
16121
16122     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16123       if test "$GCC" = yes; then
16124         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16125         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'
16126         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16127       else
16128         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16129         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'
16130         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~
16131         $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'
16132
16133         # Both c and cxx compiler support -rpath directly
16134         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16135       fi
16136       hardcode_libdir_separator_GCJ=:
16137       ;;
16138
16139     sco3.2v5*)
16140       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141       hardcode_shlibpath_var_GCJ=no
16142       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16143       runpath_var=LD_RUN_PATH
16144       hardcode_runpath_var=yes
16145       ;;
16146
16147     solaris*)
16148       no_undefined_flag_GCJ=' -z text'
16149       if test "$GCC" = yes; then
16150         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16151         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16152           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16153       else
16154         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16156         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16157       fi
16158       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16159       hardcode_shlibpath_var_GCJ=no
16160       case $host_os in
16161       solaris2.[0-5] | solaris2.[0-5].*) ;;
16162       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16163         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16164       esac
16165       link_all_deplibs_GCJ=yes
16166       ;;
16167
16168     sunos4*)
16169       if test "x$host_vendor" = xsequent; then
16170         # Use $CC to link under sequent, because it throws in some extra .o
16171         # files that make .init and .fini sections work.
16172         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16173       else
16174         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16175       fi
16176       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177       hardcode_direct_GCJ=yes
16178       hardcode_minus_L_GCJ=yes
16179       hardcode_shlibpath_var_GCJ=no
16180       ;;
16181
16182     sysv4)
16183       case $host_vendor in
16184         sni)
16185           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186           hardcode_direct_GCJ=yes # is this really true???
16187         ;;
16188         siemens)
16189           ## LD is ld it makes a PLAMLIB
16190           ## CC just makes a GrossModule.
16191           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16192           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16193           hardcode_direct_GCJ=no
16194         ;;
16195         motorola)
16196           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16198         ;;
16199       esac
16200       runpath_var='LD_RUN_PATH'
16201       hardcode_shlibpath_var_GCJ=no
16202       ;;
16203
16204     sysv4.3*)
16205       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16206       hardcode_shlibpath_var_GCJ=no
16207       export_dynamic_flag_spec_GCJ='-Bexport'
16208       ;;
16209
16210     sysv4*MP*)
16211       if test -d /usr/nec; then
16212         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213         hardcode_shlibpath_var_GCJ=no
16214         runpath_var=LD_RUN_PATH
16215         hardcode_runpath_var=yes
16216         ld_shlibs_GCJ=yes
16217       fi
16218       ;;
16219
16220     sysv4.2uw2*)
16221       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16222       hardcode_direct_GCJ=yes
16223       hardcode_minus_L_GCJ=no
16224       hardcode_shlibpath_var_GCJ=no
16225       hardcode_runpath_var=yes
16226       runpath_var=LD_RUN_PATH
16227       ;;
16228
16229    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16230       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16231       if test "$GCC" = yes; then
16232         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233       else
16234         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235       fi
16236       runpath_var='LD_RUN_PATH'
16237       hardcode_shlibpath_var_GCJ=no
16238       ;;
16239
16240     sysv5*)
16241       no_undefined_flag_GCJ=' -z text'
16242       # $CC -shared without GNU ld will not create a library from C++
16243       # object files and a static libstdc++, better avoid it by now
16244       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16246                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16247       hardcode_libdir_flag_spec_GCJ=
16248       hardcode_shlibpath_var_GCJ=no
16249       runpath_var='LD_RUN_PATH'
16250       ;;
16251
16252     uts4*)
16253       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16254       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16255       hardcode_shlibpath_var_GCJ=no
16256       ;;
16257
16258     *)
16259       ld_shlibs_GCJ=no
16260       ;;
16261     esac
16262   fi
16263
16264 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16265 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16266 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16267
16268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16269 if test "$GCC" = yes; then
16270   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16271 fi
16272
16273 #
16274 # Do we need to explicitly link libc?
16275 #
16276 case "x$archive_cmds_need_lc_GCJ" in
16277 x|xyes)
16278   # Assume -lc should be added
16279   archive_cmds_need_lc_GCJ=yes
16280
16281   if test "$enable_shared" = yes && test "$GCC" = yes; then
16282     case $archive_cmds_GCJ in
16283     *'~'*)
16284       # FIXME: we may have to deal with multi-command sequences.
16285       ;;
16286     '$CC '*)
16287       # Test whether the compiler implicitly links with -lc since on some
16288       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289       # to ld, don't add -lc before -lgcc.
16290       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16292       $rm conftest*
16293       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16294
16295       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296   (eval $ac_compile) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); } 2>conftest.err; then
16300         soname=conftest
16301         lib=conftest
16302         libobjs=conftest.$ac_objext
16303         deplibs=
16304         wl=$lt_prog_compiler_wl_GCJ
16305         compiler_flags=-v
16306         linker_flags=-v
16307         verstring=
16308         output_objdir=.
16309         libname=conftest
16310         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16311         allow_undefined_flag_GCJ=
16312         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16313   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }
16317         then
16318           archive_cmds_need_lc_GCJ=no
16319         else
16320           archive_cmds_need_lc_GCJ=yes
16321         fi
16322         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16323       else
16324         cat conftest.err 1>&5
16325       fi
16326       $rm conftest*
16327       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16328 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16329       ;;
16330     esac
16331   fi
16332   ;;
16333 esac
16334
16335 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16336 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16337 library_names_spec=
16338 libname_spec='lib$name'
16339 soname_spec=
16340 shrext=".so"
16341 postinstall_cmds=
16342 postuninstall_cmds=
16343 finish_cmds=
16344 finish_eval=
16345 shlibpath_var=
16346 shlibpath_overrides_runpath=unknown
16347 version_type=none
16348 dynamic_linker="$host_os ld.so"
16349 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16350 if test "$GCC" = yes; then
16351   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16352   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16353     # if the path contains ";" then we assume it to be the separator
16354     # otherwise default to the standard path separator (i.e. ":") - it is
16355     # assumed that no part of a normal pathname contains ";" but that should
16356     # okay in the real world where ";" in dirpaths is itself problematic.
16357     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16358   else
16359     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16360   fi
16361 else
16362   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16363 fi
16364 need_lib_prefix=unknown
16365 hardcode_into_libs=no
16366
16367 # when you set need_version to no, make sure it does not cause -set_version
16368 # flags to be left without arguments
16369 need_version=unknown
16370
16371 case $host_os in
16372 aix3*)
16373   version_type=linux
16374   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16375   shlibpath_var=LIBPATH
16376
16377   # AIX 3 has no versioning support, so we append a major version to the name.
16378   soname_spec='${libname}${release}${shared_ext}$major'
16379   ;;
16380
16381 aix4* | aix5*)
16382   version_type=linux
16383   need_lib_prefix=no
16384   need_version=no
16385   hardcode_into_libs=yes
16386   if test "$host_cpu" = ia64; then
16387     # AIX 5 supports IA64
16388     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16389     shlibpath_var=LD_LIBRARY_PATH
16390   else
16391     # With GCC up to 2.95.x, collect2 would create an import file
16392     # for dependence libraries.  The import file would start with
16393     # the line `#! .'.  This would cause the generated library to
16394     # depend on `.', always an invalid library.  This was fixed in
16395     # development snapshots of GCC prior to 3.0.
16396     case $host_os in
16397       aix4 | aix4.[01] | aix4.[01].*)
16398       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16399            echo ' yes '
16400            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16401         :
16402       else
16403         can_build_shared=no
16404       fi
16405       ;;
16406     esac
16407     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16408     # soname into executable. Probably we can add versioning support to
16409     # collect2, so additional links can be useful in future.
16410     if test "$aix_use_runtimelinking" = yes; then
16411       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16412       # instead of lib<name>.a to let people know that these are not
16413       # typical AIX shared libraries.
16414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415     else
16416       # We preserve .a as extension for shared libraries through AIX4.2
16417       # and later when we are not doing run time linking.
16418       library_names_spec='${libname}${release}.a $libname.a'
16419       soname_spec='${libname}${release}${shared_ext}$major'
16420     fi
16421     shlibpath_var=LIBPATH
16422   fi
16423   ;;
16424
16425 amigaos*)
16426   library_names_spec='$libname.ixlibrary $libname.a'
16427   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16428   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'
16429   ;;
16430
16431 beos*)
16432   library_names_spec='${libname}${shared_ext}'
16433   dynamic_linker="$host_os ld.so"
16434   shlibpath_var=LIBRARY_PATH
16435   ;;
16436
16437 bsdi4*)
16438   version_type=linux
16439   need_version=no
16440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441   soname_spec='${libname}${release}${shared_ext}$major'
16442   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16445   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16446   # the default ld.so.conf also contains /usr/contrib/lib and
16447   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16448   # libtool to hard-code these into programs
16449   ;;
16450
16451 cygwin* | mingw* | pw32*)
16452   version_type=windows
16453   shrext=".dll"
16454   need_version=no
16455   need_lib_prefix=no
16456
16457   case $GCC,$host_os in
16458   yes,cygwin* | yes,mingw* | yes,pw32*)
16459     library_names_spec='$libname.dll.a'
16460     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16461     postinstall_cmds='base_file=`basename \${file}`~
16462       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16463       dldir=$destdir/`dirname \$dlpath`~
16464       test -d \$dldir || mkdir -p \$dldir~
16465       $install_prog $dir/$dlname \$dldir/$dlname'
16466     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16467       dlpath=$dir/\$dldll~
16468        $rm \$dlpath'
16469     shlibpath_overrides_runpath=yes
16470
16471     case $host_os in
16472     cygwin*)
16473       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16474       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16476       ;;
16477     mingw*)
16478       # MinGW DLLs use traditional 'lib' prefix
16479       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16480       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16481       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16482         # It is most probably a Windows format PATH printed by
16483         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16484         # path with ; separators, and with drive letters. We can handle the
16485         # drive letters (cygwin fileutils understands them), so leave them,
16486         # especially as we might pass files found there to a mingw objdump,
16487         # which wouldn't understand a cygwinified path. Ahh.
16488         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16489       else
16490         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16491       fi
16492       ;;
16493     pw32*)
16494       # pw32 DLLs use 'pw' prefix rather than 'lib'
16495       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16496       ;;
16497     esac
16498     ;;
16499
16500   *)
16501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16502     ;;
16503   esac
16504   dynamic_linker='Win32 ld.exe'
16505   # FIXME: first we should search . and the directory the executable is in
16506   shlibpath_var=PATH
16507   ;;
16508
16509 darwin* | rhapsody*)
16510   dynamic_linker="$host_os dyld"
16511   version_type=darwin
16512   need_lib_prefix=no
16513   need_version=no
16514   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16515   soname_spec='${libname}${release}${major}$shared_ext'
16516   shlibpath_overrides_runpath=yes
16517   shlibpath_var=DYLD_LIBRARY_PATH
16518   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16519   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16520   if test "$GCC" = yes; then
16521     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"`
16522   else
16523     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16524   fi
16525   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16526   ;;
16527
16528 dgux*)
16529   version_type=linux
16530   need_lib_prefix=no
16531   need_version=no
16532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16533   soname_spec='${libname}${release}${shared_ext}$major'
16534   shlibpath_var=LD_LIBRARY_PATH
16535   ;;
16536
16537 freebsd1*)
16538   dynamic_linker=no
16539   ;;
16540
16541 kfreebsd*-gnu)
16542   version_type=linux
16543   need_lib_prefix=no
16544   need_version=no
16545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16546   soname_spec='${libname}${release}${shared_ext}$major'
16547   shlibpath_var=LD_LIBRARY_PATH
16548   shlibpath_overrides_runpath=no
16549   hardcode_into_libs=yes
16550   dynamic_linker='GNU ld.so'
16551   ;;
16552
16553 freebsd*)
16554   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16555   version_type=freebsd-$objformat
16556   case $version_type in
16557     freebsd-elf*)
16558       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16559       need_version=no
16560       need_lib_prefix=no
16561       ;;
16562     freebsd-*)
16563       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16564       need_version=yes
16565       ;;
16566   esac
16567   shlibpath_var=LD_LIBRARY_PATH
16568   case $host_os in
16569   freebsd2*)
16570     shlibpath_overrides_runpath=yes
16571     ;;
16572   freebsd3.01* | freebsdelf3.01*)
16573     shlibpath_overrides_runpath=yes
16574     hardcode_into_libs=yes
16575     ;;
16576   *) # from 3.2 on
16577     shlibpath_overrides_runpath=no
16578     hardcode_into_libs=yes
16579     ;;
16580   esac
16581   ;;
16582
16583 gnu*)
16584   version_type=linux
16585   need_lib_prefix=no
16586   need_version=no
16587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16588   soname_spec='${libname}${release}${shared_ext}$major'
16589   shlibpath_var=LD_LIBRARY_PATH
16590   hardcode_into_libs=yes
16591   ;;
16592
16593 hpux9* | hpux10* | hpux11*)
16594   # Give a soname corresponding to the major version so that dld.sl refuses to
16595   # link against other versions.
16596   version_type=sunos
16597   need_lib_prefix=no
16598   need_version=no
16599   case "$host_cpu" in
16600   ia64*)
16601     shrext='.so'
16602     hardcode_into_libs=yes
16603     dynamic_linker="$host_os dld.so"
16604     shlibpath_var=LD_LIBRARY_PATH
16605     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607     soname_spec='${libname}${release}${shared_ext}$major'
16608     if test "X$HPUX_IA64_MODE" = X32; then
16609       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16610     else
16611       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16612     fi
16613     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16614     ;;
16615    hppa*64*)
16616      shrext='.sl'
16617      hardcode_into_libs=yes
16618      dynamic_linker="$host_os dld.sl"
16619      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16620      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16621      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622      soname_spec='${libname}${release}${shared_ext}$major'
16623      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16624      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16625      ;;
16626    *)
16627     shrext='.sl'
16628     dynamic_linker="$host_os dld.sl"
16629     shlibpath_var=SHLIB_PATH
16630     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632     soname_spec='${libname}${release}${shared_ext}$major'
16633     ;;
16634   esac
16635   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16636   postinstall_cmds='chmod 555 $lib'
16637   ;;
16638
16639 irix5* | irix6* | nonstopux*)
16640   case $host_os in
16641     nonstopux*) version_type=nonstopux ;;
16642     *)
16643         if test "$lt_cv_prog_gnu_ld" = yes; then
16644                 version_type=linux
16645         else
16646                 version_type=irix
16647         fi ;;
16648   esac
16649   need_lib_prefix=no
16650   need_version=no
16651   soname_spec='${libname}${release}${shared_ext}$major'
16652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16653   case $host_os in
16654   irix5* | nonstopux*)
16655     libsuff= shlibsuff=
16656     ;;
16657   *)
16658     case $LD in # libtool.m4 will add one of these switches to LD
16659     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16660       libsuff= shlibsuff= libmagic=32-bit;;
16661     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16662       libsuff=32 shlibsuff=N32 libmagic=N32;;
16663     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16664       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16665     *) libsuff= shlibsuff= libmagic=never-match;;
16666     esac
16667     ;;
16668   esac
16669   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16670   shlibpath_overrides_runpath=no
16671   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16672   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16673   hardcode_into_libs=yes
16674   ;;
16675
16676 # No shared lib support for Linux oldld, aout, or coff.
16677 linux*oldld* | linux*aout* | linux*coff*)
16678   dynamic_linker=no
16679   ;;
16680
16681 # This must be Linux ELF.
16682 linux*)
16683   version_type=linux
16684   need_lib_prefix=no
16685   need_version=no
16686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687   soname_spec='${libname}${release}${shared_ext}$major'
16688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=no
16691   # This implies no fast_install, which is unacceptable.
16692   # Some rework will be needed to allow for fast_install
16693   # before this can be enabled.
16694   hardcode_into_libs=yes
16695
16696   # /usr/X11R6/lib and /usr/local/lib are common enough...
16697   sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
16698
16699   # We used to test for /lib/ld.so.1 and disable shared libraries on
16700   # powerpc, because MkLinux only supported shared libraries with the
16701   # GNU dynamic linker.  Since this was broken with cross compilers,
16702   # most powerpc-linux boxes support dynamic linking these days and
16703   # people can always --disable-shared, the test was removed, and we
16704   # assume the GNU/Linux dynamic linker is in use.
16705   dynamic_linker='GNU/Linux ld.so'
16706   ;;
16707
16708 knetbsd*-gnu)
16709   version_type=linux
16710   need_lib_prefix=no
16711   need_version=no
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   shlibpath_overrides_runpath=no
16716   hardcode_into_libs=yes
16717   dynamic_linker='GNU ld.so'
16718   ;;
16719
16720 netbsd*)
16721   version_type=sunos
16722   need_lib_prefix=no
16723   need_version=no
16724   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16726     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16727     dynamic_linker='NetBSD (a.out) ld.so'
16728   else
16729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16730     soname_spec='${libname}${release}${shared_ext}$major'
16731     dynamic_linker='NetBSD ld.elf_so'
16732   fi
16733   shlibpath_var=LD_LIBRARY_PATH
16734   shlibpath_overrides_runpath=yes
16735   hardcode_into_libs=yes
16736   ;;
16737
16738 newsos6)
16739   version_type=linux
16740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741   shlibpath_var=LD_LIBRARY_PATH
16742   shlibpath_overrides_runpath=yes
16743   ;;
16744
16745 nto-qnx*)
16746   version_type=linux
16747   need_lib_prefix=no
16748   need_version=no
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750   soname_spec='${libname}${release}${shared_ext}$major'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=yes
16753   ;;
16754
16755 openbsd*)
16756   version_type=sunos
16757   need_lib_prefix=no
16758   need_version=yes
16759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16761   shlibpath_var=LD_LIBRARY_PATH
16762   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16763     case $host_os in
16764       openbsd2.[89] | openbsd2.[89].*)
16765         shlibpath_overrides_runpath=no
16766         ;;
16767       *)
16768         shlibpath_overrides_runpath=yes
16769         ;;
16770       esac
16771   else
16772     shlibpath_overrides_runpath=yes
16773   fi
16774   ;;
16775
16776 os2*)
16777   libname_spec='$name'
16778   shrext=".dll"
16779   need_lib_prefix=no
16780   library_names_spec='$libname${shared_ext} $libname.a'
16781   dynamic_linker='OS/2 ld.exe'
16782   shlibpath_var=LIBPATH
16783   ;;
16784
16785 osf3* | osf4* | osf5*)
16786   version_type=osf
16787   need_lib_prefix=no
16788   need_version=no
16789   soname_spec='${libname}${release}${shared_ext}$major'
16790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16793   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16794   ;;
16795
16796 sco3.2v5*)
16797   version_type=osf
16798   soname_spec='${libname}${release}${shared_ext}$major'
16799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800   shlibpath_var=LD_LIBRARY_PATH
16801   ;;
16802
16803 solaris*)
16804   version_type=linux
16805   need_lib_prefix=no
16806   need_version=no
16807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808   soname_spec='${libname}${release}${shared_ext}$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   shlibpath_overrides_runpath=yes
16811   hardcode_into_libs=yes
16812   # ldd complains unless libraries are executable
16813   postinstall_cmds='chmod +x $lib'
16814   ;;
16815
16816 sunos4*)
16817   version_type=sunos
16818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16820   shlibpath_var=LD_LIBRARY_PATH
16821   shlibpath_overrides_runpath=yes
16822   if test "$with_gnu_ld" = yes; then
16823     need_lib_prefix=no
16824   fi
16825   need_version=yes
16826   ;;
16827
16828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16829   version_type=linux
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831   soname_spec='${libname}${release}${shared_ext}$major'
16832   shlibpath_var=LD_LIBRARY_PATH
16833   case $host_vendor in
16834     sni)
16835       shlibpath_overrides_runpath=no
16836       need_lib_prefix=no
16837       export_dynamic_flag_spec='${wl}-Blargedynsym'
16838       runpath_var=LD_RUN_PATH
16839       ;;
16840     siemens)
16841       need_lib_prefix=no
16842       ;;
16843     motorola)
16844       need_lib_prefix=no
16845       need_version=no
16846       shlibpath_overrides_runpath=no
16847       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16848       ;;
16849   esac
16850   ;;
16851
16852 sysv4*MP*)
16853   if test -d /usr/nec ;then
16854     version_type=linux
16855     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16856     soname_spec='$libname${shared_ext}.$major'
16857     shlibpath_var=LD_LIBRARY_PATH
16858   fi
16859   ;;
16860
16861 uts4*)
16862   version_type=linux
16863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864   soname_spec='${libname}${release}${shared_ext}$major'
16865   shlibpath_var=LD_LIBRARY_PATH
16866   ;;
16867
16868 *)
16869   dynamic_linker=no
16870   ;;
16871 esac
16872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16873 echo "${ECHO_T}$dynamic_linker" >&6
16874 test "$dynamic_linker" = no && can_build_shared=no
16875
16876 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16878 hardcode_action_GCJ=
16879 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16880    test -n "$runpath_var GCJ" || \
16881    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16882
16883   # We can hardcode non-existant directories.
16884   if test "$hardcode_direct_GCJ" != no &&
16885      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16886      # have to relink, otherwise we might link with an installed library
16887      # when we should be linking with a yet-to-be-installed one
16888      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16889      test "$hardcode_minus_L_GCJ" != no; then
16890     # Linking always hardcodes the temporary library directory.
16891     hardcode_action_GCJ=relink
16892   else
16893     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16894     hardcode_action_GCJ=immediate
16895   fi
16896 else
16897   # We cannot hardcode anything, or else we can only hardcode existing
16898   # directories.
16899   hardcode_action_GCJ=unsupported
16900 fi
16901 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16902 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16903
16904 if test "$hardcode_action_GCJ" = relink; then
16905   # Fast installation is not supported
16906   enable_fast_install=no
16907 elif test "$shlibpath_overrides_runpath" = yes ||
16908      test "$enable_shared" = no; then
16909   # Fast installation is not necessary
16910   enable_fast_install=needless
16911 fi
16912
16913 striplib=
16914 old_striplib=
16915 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16918   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16919   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16920   echo "$as_me:$LINENO: result: yes" >&5
16921 echo "${ECHO_T}yes" >&6
16922 else
16923 # FIXME - insert some real tests, host_os isn't really good enough
16924   case $host_os in
16925    darwin*)
16926        if test -n "$STRIP" ; then
16927          striplib="$STRIP -x"
16928          echo "$as_me:$LINENO: result: yes" >&5
16929 echo "${ECHO_T}yes" >&6
16930        else
16931   echo "$as_me:$LINENO: result: no" >&5
16932 echo "${ECHO_T}no" >&6
16933 fi
16934        ;;
16935    *)
16936   echo "$as_me:$LINENO: result: no" >&5
16937 echo "${ECHO_T}no" >&6
16938     ;;
16939   esac
16940 fi
16941
16942 if test "x$enable_dlopen" != xyes; then
16943   enable_dlopen=unknown
16944   enable_dlopen_self=unknown
16945   enable_dlopen_self_static=unknown
16946 else
16947   lt_cv_dlopen=no
16948   lt_cv_dlopen_libs=
16949
16950   case $host_os in
16951   beos*)
16952     lt_cv_dlopen="load_add_on"
16953     lt_cv_dlopen_libs=
16954     lt_cv_dlopen_self=yes
16955     ;;
16956
16957   mingw* | pw32*)
16958     lt_cv_dlopen="LoadLibrary"
16959     lt_cv_dlopen_libs=
16960    ;;
16961
16962   cygwin*)
16963     lt_cv_dlopen="dlopen"
16964     lt_cv_dlopen_libs=
16965    ;;
16966
16967   darwin*)
16968   # if libdl is installed we need to link against it
16969     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   ac_check_lib_save_LIBS=$LIBS
16975 LIBS="-ldl  $LIBS"
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h.  */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h.  */
16982
16983 /* Override any gcc2 internal prototype to avoid an error.  */
16984 #ifdef __cplusplus
16985 extern "C"
16986 #endif
16987 /* We use char because int might match the return type of a gcc2
16988    builtin and then its argument prototype would still apply.  */
16989 char dlopen ();
16990 int
16991 main ()
16992 {
16993 dlopen ();
16994   ;
16995   return 0;
16996 }
16997 _ACEOF
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000   (eval $ac_link) 2>conftest.er1
17001   ac_status=$?
17002   grep -v '^ *+' conftest.er1 >conftest.err
17003   rm -f conftest.er1
17004   cat conftest.err >&5
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } &&
17007          { ac_try='test -z "$ac_c_werror_flag"
17008                          || test ! -s conftest.err'
17009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010   (eval $ac_try) 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; } &&
17014          { ac_try='test -s conftest$ac_exeext'
17015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016   (eval $ac_try) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); }; }; then
17020   ac_cv_lib_dl_dlopen=yes
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ac_cv_lib_dl_dlopen=no
17026 fi
17027 rm -f conftest.err conftest.$ac_objext \
17028       conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17030 fi
17031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17033 if test $ac_cv_lib_dl_dlopen = yes; then
17034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17035 else
17036
17037     lt_cv_dlopen="dyld"
17038     lt_cv_dlopen_libs=
17039     lt_cv_dlopen_self=yes
17040
17041 fi
17042
17043    ;;
17044
17045   *)
17046     echo "$as_me:$LINENO: checking for shl_load" >&5
17047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17048 if test "${ac_cv_func_shl_load+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17059 #define shl_load innocuous_shl_load
17060
17061 /* System header to define __stub macros and hopefully few prototypes,
17062     which can conflict with char shl_load (); below.
17063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064     <limits.h> exists even on freestanding compilers.  */
17065
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071
17072 #undef shl_load
17073
17074 /* Override any gcc2 internal prototype to avoid an error.  */
17075 #ifdef __cplusplus
17076 extern "C"
17077 {
17078 #endif
17079 /* We use char because int might match the return type of a gcc2
17080    builtin and then its argument prototype would still apply.  */
17081 char shl_load ();
17082 /* The GNU C library defines this for functions which it implements
17083     to always fail with ENOSYS.  Some functions are actually named
17084     something starting with __ and the normal name is an alias.  */
17085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17086 choke me
17087 #else
17088 char (*f) () = shl_load;
17089 #endif
17090 #ifdef __cplusplus
17091 }
17092 #endif
17093
17094 int
17095 main ()
17096 {
17097 return f != shl_load;
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104   (eval $ac_link) 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -z "$ac_c_werror_flag"
17112                          || test ! -s conftest.err'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; } &&
17118          { ac_try='test -s conftest$ac_exeext'
17119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120   (eval $ac_try) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124   ac_cv_func_shl_load=yes
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ac_cv_func_shl_load=no
17130 fi
17131 rm -f conftest.err conftest.$ac_objext \
17132       conftest$ac_exeext conftest.$ac_ext
17133 fi
17134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17136 if test $ac_cv_func_shl_load = yes; then
17137   lt_cv_dlopen="shl_load"
17138 else
17139   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-ldld  $LIBS"
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h.  */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h.  */
17152
17153 /* Override any gcc2 internal prototype to avoid an error.  */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 /* We use char because int might match the return type of a gcc2
17158    builtin and then its argument prototype would still apply.  */
17159 char shl_load ();
17160 int
17161 main ()
17162 {
17163 shl_load ();
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170   (eval $ac_link) 2>conftest.er1
17171   ac_status=$?
17172   grep -v '^ *+' conftest.er1 >conftest.err
17173   rm -f conftest.er1
17174   cat conftest.err >&5
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); } &&
17177          { ac_try='test -z "$ac_c_werror_flag"
17178                          || test ! -s conftest.err'
17179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180   (eval $ac_try) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; } &&
17184          { ac_try='test -s conftest$ac_exeext'
17185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186   (eval $ac_try) 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; }; then
17190   ac_cv_lib_dld_shl_load=yes
17191 else
17192   echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195 ac_cv_lib_dld_shl_load=no
17196 fi
17197 rm -f conftest.err conftest.$ac_objext \
17198       conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17200 fi
17201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17203 if test $ac_cv_lib_dld_shl_load = yes; then
17204   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17205 else
17206   echo "$as_me:$LINENO: checking for dlopen" >&5
17207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17208 if test "${ac_cv_func_dlopen+set}" = set; then
17209   echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211   cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h.  */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h.  */
17217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17219 #define dlopen innocuous_dlopen
17220
17221 /* System header to define __stub macros and hopefully few prototypes,
17222     which can conflict with char dlopen (); below.
17223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224     <limits.h> exists even on freestanding compilers.  */
17225
17226 #ifdef __STDC__
17227 # include <limits.h>
17228 #else
17229 # include <assert.h>
17230 #endif
17231
17232 #undef dlopen
17233
17234 /* Override any gcc2 internal prototype to avoid an error.  */
17235 #ifdef __cplusplus
17236 extern "C"
17237 {
17238 #endif
17239 /* We use char because int might match the return type of a gcc2
17240    builtin and then its argument prototype would still apply.  */
17241 char dlopen ();
17242 /* The GNU C library defines this for functions which it implements
17243     to always fail with ENOSYS.  Some functions are actually named
17244     something starting with __ and the normal name is an alias.  */
17245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17246 choke me
17247 #else
17248 char (*f) () = dlopen;
17249 #endif
17250 #ifdef __cplusplus
17251 }
17252 #endif
17253
17254 int
17255 main ()
17256 {
17257 return f != dlopen;
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264   (eval $ac_link) 2>conftest.er1
17265   ac_status=$?
17266   grep -v '^ *+' conftest.er1 >conftest.err
17267   rm -f conftest.er1
17268   cat conftest.err >&5
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); } &&
17271          { ac_try='test -z "$ac_c_werror_flag"
17272                          || test ! -s conftest.err'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest$ac_exeext'
17279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280   (eval $ac_try) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; }; then
17284   ac_cv_func_dlopen=yes
17285 else
17286   echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 ac_cv_func_dlopen=no
17290 fi
17291 rm -f conftest.err conftest.$ac_objext \
17292       conftest$ac_exeext conftest.$ac_ext
17293 fi
17294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17296 if test $ac_cv_func_dlopen = yes; then
17297   lt_cv_dlopen="dlopen"
17298 else
17299   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304   ac_check_lib_save_LIBS=$LIBS
17305 LIBS="-ldl  $LIBS"
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312
17313 /* Override any gcc2 internal prototype to avoid an error.  */
17314 #ifdef __cplusplus
17315 extern "C"
17316 #endif
17317 /* We use char because int might match the return type of a gcc2
17318    builtin and then its argument prototype would still apply.  */
17319 char dlopen ();
17320 int
17321 main ()
17322 {
17323 dlopen ();
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330   (eval $ac_link) 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } &&
17337          { ac_try='test -z "$ac_c_werror_flag"
17338                          || test ! -s conftest.err'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   ac_cv_lib_dl_dlopen=yes
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_cv_lib_dl_dlopen=no
17356 fi
17357 rm -f conftest.err conftest.$ac_objext \
17358       conftest$ac_exeext conftest.$ac_ext
17359 LIBS=$ac_check_lib_save_LIBS
17360 fi
17361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17363 if test $ac_cv_lib_dl_dlopen = yes; then
17364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17365 else
17366   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371   ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-lsvld  $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h.  */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h.  */
17379
17380 /* Override any gcc2 internal prototype to avoid an error.  */
17381 #ifdef __cplusplus
17382 extern "C"
17383 #endif
17384 /* We use char because int might match the return type of a gcc2
17385    builtin and then its argument prototype would still apply.  */
17386 char dlopen ();
17387 int
17388 main ()
17389 {
17390 dlopen ();
17391   ;
17392   return 0;
17393 }
17394 _ACEOF
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397   (eval $ac_link) 2>conftest.er1
17398   ac_status=$?
17399   grep -v '^ *+' conftest.er1 >conftest.err
17400   rm -f conftest.er1
17401   cat conftest.err >&5
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); } &&
17404          { ac_try='test -z "$ac_c_werror_flag"
17405                          || test ! -s conftest.err'
17406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407   (eval $ac_try) 2>&5
17408   ac_status=$?
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); }; } &&
17411          { ac_try='test -s conftest$ac_exeext'
17412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413   (eval $ac_try) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; }; then
17417   ac_cv_lib_svld_dlopen=yes
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 ac_cv_lib_svld_dlopen=no
17423 fi
17424 rm -f conftest.err conftest.$ac_objext \
17425       conftest$ac_exeext conftest.$ac_ext
17426 LIBS=$ac_check_lib_save_LIBS
17427 fi
17428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17430 if test $ac_cv_lib_svld_dlopen = yes; then
17431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17432 else
17433   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   ac_check_lib_save_LIBS=$LIBS
17439 LIBS="-ldld  $LIBS"
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446
17447 /* Override any gcc2 internal prototype to avoid an error.  */
17448 #ifdef __cplusplus
17449 extern "C"
17450 #endif
17451 /* We use char because int might match the return type of a gcc2
17452    builtin and then its argument prototype would still apply.  */
17453 char dld_link ();
17454 int
17455 main ()
17456 {
17457 dld_link ();
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464   (eval $ac_link) 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag"
17472                          || test ! -s conftest.err'
17473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474   (eval $ac_try) 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; } &&
17478          { ac_try='test -s conftest$ac_exeext'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; }; then
17484   ac_cv_lib_dld_dld_link=yes
17485 else
17486   echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 ac_cv_lib_dld_dld_link=no
17490 fi
17491 rm -f conftest.err conftest.$ac_objext \
17492       conftest$ac_exeext conftest.$ac_ext
17493 LIBS=$ac_check_lib_save_LIBS
17494 fi
17495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17497 if test $ac_cv_lib_dld_dld_link = yes; then
17498   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17499 fi
17500
17501
17502 fi
17503
17504
17505 fi
17506
17507
17508 fi
17509
17510
17511 fi
17512
17513
17514 fi
17515
17516     ;;
17517   esac
17518
17519   if test "x$lt_cv_dlopen" != xno; then
17520     enable_dlopen=yes
17521   else
17522     enable_dlopen=no
17523   fi
17524
17525   case $lt_cv_dlopen in
17526   dlopen)
17527     save_CPPFLAGS="$CPPFLAGS"
17528     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17529
17530     save_LDFLAGS="$LDFLAGS"
17531     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17532
17533     save_LIBS="$LIBS"
17534     LIBS="$lt_cv_dlopen_libs $LIBS"
17535
17536     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17538 if test "${lt_cv_dlopen_self+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541           if test "$cross_compiling" = yes; then :
17542   lt_cv_dlopen_self=cross
17543 else
17544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17545   lt_status=$lt_dlunknown
17546   cat > conftest.$ac_ext <<EOF
17547 #line 17547 "configure"
17548 #include "confdefs.h"
17549
17550 #if HAVE_DLFCN_H
17551 #include <dlfcn.h>
17552 #endif
17553
17554 #include <stdio.h>
17555
17556 #ifdef RTLD_GLOBAL
17557 #  define LT_DLGLOBAL           RTLD_GLOBAL
17558 #else
17559 #  ifdef DL_GLOBAL
17560 #    define LT_DLGLOBAL         DL_GLOBAL
17561 #  else
17562 #    define LT_DLGLOBAL         0
17563 #  endif
17564 #endif
17565
17566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17567    find out it does not work in some platform. */
17568 #ifndef LT_DLLAZY_OR_NOW
17569 #  ifdef RTLD_LAZY
17570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17571 #  else
17572 #    ifdef DL_LAZY
17573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17574 #    else
17575 #      ifdef RTLD_NOW
17576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17577 #      else
17578 #        ifdef DL_NOW
17579 #          define LT_DLLAZY_OR_NOW      DL_NOW
17580 #        else
17581 #          define LT_DLLAZY_OR_NOW      0
17582 #        endif
17583 #      endif
17584 #    endif
17585 #  endif
17586 #endif
17587
17588 #ifdef __cplusplus
17589 extern "C" void exit (int);
17590 #endif
17591
17592 void fnord() { int i=42;}
17593 int main ()
17594 {
17595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17596   int status = $lt_dlunknown;
17597
17598   if (self)
17599     {
17600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17602       /* dlclose (self); */
17603     }
17604
17605     exit (status);
17606 }
17607 EOF
17608   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609   (eval $ac_link) 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17613     (./conftest; exit; ) 2>/dev/null
17614     lt_status=$?
17615     case x$lt_status in
17616       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17617       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17618       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17619     esac
17620   else :
17621     # compilation failed
17622     lt_cv_dlopen_self=no
17623   fi
17624 fi
17625 rm -fr conftest*
17626
17627
17628 fi
17629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17631
17632     if test "x$lt_cv_dlopen_self" = xyes; then
17633       LDFLAGS="$LDFLAGS $link_static_flag"
17634       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17636 if test "${lt_cv_dlopen_self_static+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639           if test "$cross_compiling" = yes; then :
17640   lt_cv_dlopen_self_static=cross
17641 else
17642   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17643   lt_status=$lt_dlunknown
17644   cat > conftest.$ac_ext <<EOF
17645 #line 17645 "configure"
17646 #include "confdefs.h"
17647
17648 #if HAVE_DLFCN_H
17649 #include <dlfcn.h>
17650 #endif
17651
17652 #include <stdio.h>
17653
17654 #ifdef RTLD_GLOBAL
17655 #  define LT_DLGLOBAL           RTLD_GLOBAL
17656 #else
17657 #  ifdef DL_GLOBAL
17658 #    define LT_DLGLOBAL         DL_GLOBAL
17659 #  else
17660 #    define LT_DLGLOBAL         0
17661 #  endif
17662 #endif
17663
17664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17665    find out it does not work in some platform. */
17666 #ifndef LT_DLLAZY_OR_NOW
17667 #  ifdef RTLD_LAZY
17668 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17669 #  else
17670 #    ifdef DL_LAZY
17671 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17672 #    else
17673 #      ifdef RTLD_NOW
17674 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17675 #      else
17676 #        ifdef DL_NOW
17677 #          define LT_DLLAZY_OR_NOW      DL_NOW
17678 #        else
17679 #          define LT_DLLAZY_OR_NOW      0
17680 #        endif
17681 #      endif
17682 #    endif
17683 #  endif
17684 #endif
17685
17686 #ifdef __cplusplus
17687 extern "C" void exit (int);
17688 #endif
17689
17690 void fnord() { int i=42;}
17691 int main ()
17692 {
17693   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17694   int status = $lt_dlunknown;
17695
17696   if (self)
17697     {
17698       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17699       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17700       /* dlclose (self); */
17701     }
17702
17703     exit (status);
17704 }
17705 EOF
17706   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17707   (eval $ac_link) 2>&5
17708   ac_status=$?
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17711     (./conftest; exit; ) 2>/dev/null
17712     lt_status=$?
17713     case x$lt_status in
17714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17716       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17717     esac
17718   else :
17719     # compilation failed
17720     lt_cv_dlopen_self_static=no
17721   fi
17722 fi
17723 rm -fr conftest*
17724
17725
17726 fi
17727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17729     fi
17730
17731     CPPFLAGS="$save_CPPFLAGS"
17732     LDFLAGS="$save_LDFLAGS"
17733     LIBS="$save_LIBS"
17734     ;;
17735   esac
17736
17737   case $lt_cv_dlopen_self in
17738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17739   *) enable_dlopen_self=unknown ;;
17740   esac
17741
17742   case $lt_cv_dlopen_self_static in
17743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17744   *) enable_dlopen_self_static=unknown ;;
17745   esac
17746 fi
17747
17748
17749 # The else clause should only fire when bootstrapping the
17750 # libtool distribution, otherwise you forgot to ship ltmain.sh
17751 # with your package, and you will get complaints that there are
17752 # no rules to generate ltmain.sh.
17753 if test -f "$ltmain"; then
17754   # See if we are running on zsh, and set the options which allow our commands through
17755   # without removal of \ escapes.
17756   if test -n "${ZSH_VERSION+set}" ; then
17757     setopt NO_GLOB_SUBST
17758   fi
17759   # Now quote all the things that may contain metacharacters while being
17760   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17761   # variables and quote the copies for generation of the libtool script.
17762   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17763     SED SHELL STRIP \
17764     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17765     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17766     deplibs_check_method reload_flag reload_cmds need_locks \
17767     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17768     lt_cv_sys_global_symbol_to_c_name_address \
17769     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17770     old_postinstall_cmds old_postuninstall_cmds \
17771     compiler_GCJ \
17772     CC_GCJ \
17773     LD_GCJ \
17774     lt_prog_compiler_wl_GCJ \
17775     lt_prog_compiler_pic_GCJ \
17776     lt_prog_compiler_static_GCJ \
17777     lt_prog_compiler_no_builtin_flag_GCJ \
17778     export_dynamic_flag_spec_GCJ \
17779     thread_safe_flag_spec_GCJ \
17780     whole_archive_flag_spec_GCJ \
17781     enable_shared_with_static_runtimes_GCJ \
17782     old_archive_cmds_GCJ \
17783     old_archive_from_new_cmds_GCJ \
17784     predep_objects_GCJ \
17785     postdep_objects_GCJ \
17786     predeps_GCJ \
17787     postdeps_GCJ \
17788     compiler_lib_search_path_GCJ \
17789     archive_cmds_GCJ \
17790     archive_expsym_cmds_GCJ \
17791     postinstall_cmds_GCJ \
17792     postuninstall_cmds_GCJ \
17793     old_archive_from_expsyms_cmds_GCJ \
17794     allow_undefined_flag_GCJ \
17795     no_undefined_flag_GCJ \
17796     export_symbols_cmds_GCJ \
17797     hardcode_libdir_flag_spec_GCJ \
17798     hardcode_libdir_flag_spec_ld_GCJ \
17799     hardcode_libdir_separator_GCJ \
17800     hardcode_automatic_GCJ \
17801     module_cmds_GCJ \
17802     module_expsym_cmds_GCJ \
17803     lt_cv_prog_compiler_c_o_GCJ \
17804     exclude_expsyms_GCJ \
17805     include_expsyms_GCJ; do
17806
17807     case $var in
17808     old_archive_cmds_GCJ | \
17809     old_archive_from_new_cmds_GCJ | \
17810     archive_cmds_GCJ | \
17811     archive_expsym_cmds_GCJ | \
17812     module_cmds_GCJ | \
17813     module_expsym_cmds_GCJ | \
17814     old_archive_from_expsyms_cmds_GCJ | \
17815     export_symbols_cmds_GCJ | \
17816     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17817     postinstall_cmds | postuninstall_cmds | \
17818     old_postinstall_cmds | old_postuninstall_cmds | \
17819     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17820       # Double-quote double-evaled strings.
17821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17822       ;;
17823     *)
17824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17825       ;;
17826     esac
17827   done
17828
17829   case $lt_echo in
17830   *'\$0 --fallback-echo"')
17831     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17832     ;;
17833   esac
17834
17835 cfgfile="$ofile"
17836
17837   cat <<__EOF__ >> "$cfgfile"
17838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17839
17840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17841
17842 # Shell to use when invoking shell scripts.
17843 SHELL=$lt_SHELL
17844
17845 # Whether or not to build shared libraries.
17846 build_libtool_libs=$enable_shared
17847
17848 # Whether or not to build static libraries.
17849 build_old_libs=$enable_static
17850
17851 # Whether or not to add -lc for building shared libraries.
17852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17853
17854 # Whether or not to disallow shared libs when runtime libs are static
17855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17856
17857 # Whether or not to optimize for fast installation.
17858 fast_install=$enable_fast_install
17859
17860 # The host system.
17861 host_alias=$host_alias
17862 host=$host
17863
17864 # An echo program that does not interpret backslashes.
17865 echo=$lt_echo
17866
17867 # The archiver.
17868 AR=$lt_AR
17869 AR_FLAGS=$lt_AR_FLAGS
17870
17871 # A C compiler.
17872 LTCC=$lt_LTCC
17873
17874 # A language-specific compiler.
17875 CC=$lt_compiler_GCJ
17876
17877 # Is the compiler the GNU C compiler?
17878 with_gcc=$GCC_GCJ
17879
17880 # An ERE matcher.
17881 EGREP=$lt_EGREP
17882
17883 # The linker used to build libraries.
17884 LD=$lt_LD_GCJ
17885
17886 # Whether we need hard or soft links.
17887 LN_S=$lt_LN_S
17888
17889 # A BSD-compatible nm program.
17890 NM=$lt_NM
17891
17892 # A symbol stripping program
17893 STRIP=$lt_STRIP
17894
17895 # Used to examine libraries when file_magic_cmd begins "file"
17896 MAGIC_CMD=$MAGIC_CMD
17897
17898 # Used on cygwin: DLL creation program.
17899 DLLTOOL="$DLLTOOL"
17900
17901 # Used on cygwin: object dumper.
17902 OBJDUMP="$OBJDUMP"
17903
17904 # Used on cygwin: assembler.
17905 AS="$AS"
17906
17907 # The name of the directory that contains temporary libtool files.
17908 objdir=$objdir
17909
17910 # How to create reloadable object files.
17911 reload_flag=$lt_reload_flag
17912 reload_cmds=$lt_reload_cmds
17913
17914 # How to pass a linker flag through the compiler.
17915 wl=$lt_lt_prog_compiler_wl_GCJ
17916
17917 # Object file suffix (normally "o").
17918 objext="$ac_objext"
17919
17920 # Old archive suffix (normally "a").
17921 libext="$libext"
17922
17923 # Shared library suffix (normally ".so").
17924 shrext='$shrext'
17925
17926 # Executable file suffix (normally "").
17927 exeext="$exeext"
17928
17929 # Additional compiler flags for building library objects.
17930 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17931 pic_mode=$pic_mode
17932
17933 # What is the maximum length of a command?
17934 max_cmd_len=$lt_cv_sys_max_cmd_len
17935
17936 # Does compiler simultaneously support -c and -o options?
17937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17938
17939 # Must we lock files when doing compilation ?
17940 need_locks=$lt_need_locks
17941
17942 # Do we need the lib prefix for modules?
17943 need_lib_prefix=$need_lib_prefix
17944
17945 # Do we need a version for libraries?
17946 need_version=$need_version
17947
17948 # Whether dlopen is supported.
17949 dlopen_support=$enable_dlopen
17950
17951 # Whether dlopen of programs is supported.
17952 dlopen_self=$enable_dlopen_self
17953
17954 # Whether dlopen of statically linked programs is supported.
17955 dlopen_self_static=$enable_dlopen_self_static
17956
17957 # Compiler flag to prevent dynamic linking.
17958 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17959
17960 # Compiler flag to turn off builtin functions.
17961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17962
17963 # Compiler flag to allow reflexive dlopens.
17964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17965
17966 # Compiler flag to generate shared objects directly from archives.
17967 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17968
17969 # Compiler flag to generate thread-safe objects.
17970 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17971
17972 # Library versioning type.
17973 version_type=$version_type
17974
17975 # Format of library name prefix.
17976 libname_spec=$lt_libname_spec
17977
17978 # List of archive names.  First name is the real one, the rest are links.
17979 # The last name is the one that the linker finds with -lNAME.
17980 library_names_spec=$lt_library_names_spec
17981
17982 # The coded name of the library, if different from the real name.
17983 soname_spec=$lt_soname_spec
17984
17985 # Commands used to build and install an old-style archive.
17986 RANLIB=$lt_RANLIB
17987 old_archive_cmds=$lt_old_archive_cmds_GCJ
17988 old_postinstall_cmds=$lt_old_postinstall_cmds
17989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17990
17991 # Create an old-style archive from a shared archive.
17992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17993
17994 # Create a temporary old-style archive to link instead of a shared archive.
17995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17996
17997 # Commands used to build and install a shared archive.
17998 archive_cmds=$lt_archive_cmds_GCJ
17999 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18000 postinstall_cmds=$lt_postinstall_cmds
18001 postuninstall_cmds=$lt_postuninstall_cmds
18002
18003 # Commands used to build a loadable module (assumed same as above if empty)
18004 module_cmds=$lt_module_cmds_GCJ
18005 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18006
18007 # Commands to strip libraries.
18008 old_striplib=$lt_old_striplib
18009 striplib=$lt_striplib
18010
18011 # Dependencies to place before the objects being linked to create a
18012 # shared library.
18013 predep_objects=$lt_predep_objects_GCJ
18014
18015 # Dependencies to place after the objects being linked to create a
18016 # shared library.
18017 postdep_objects=$lt_postdep_objects_GCJ
18018
18019 # Dependencies to place before the objects being linked to create a
18020 # shared library.
18021 predeps=$lt_predeps_GCJ
18022
18023 # Dependencies to place after the objects being linked to create a
18024 # shared library.
18025 postdeps=$lt_postdeps_GCJ
18026
18027 # The library search path used internally by the compiler when linking
18028 # a shared library.
18029 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18030
18031 # Method to check whether dependent libraries are shared objects.
18032 deplibs_check_method=$lt_deplibs_check_method
18033
18034 # Command to use when deplibs_check_method == file_magic.
18035 file_magic_cmd=$lt_file_magic_cmd
18036
18037 # Flag that allows shared libraries with undefined symbols to be built.
18038 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18039
18040 # Flag that forces no undefined symbols.
18041 no_undefined_flag=$lt_no_undefined_flag_GCJ
18042
18043 # Commands used to finish a libtool library installation in a directory.
18044 finish_cmds=$lt_finish_cmds
18045
18046 # Same as above, but a single script fragment to be evaled but not shown.
18047 finish_eval=$lt_finish_eval
18048
18049 # Take the output of nm and produce a listing of raw symbols and C names.
18050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18051
18052 # Transform the output of nm in a proper C declaration
18053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18054
18055 # Transform the output of nm in a C name address pair
18056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18057
18058 # This is the shared library runtime path variable.
18059 runpath_var=$runpath_var
18060
18061 # This is the shared library path variable.
18062 shlibpath_var=$shlibpath_var
18063
18064 # Is shlibpath searched before the hard-coded library search path?
18065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18066
18067 # How to hardcode a shared library path into an executable.
18068 hardcode_action=$hardcode_action_GCJ
18069
18070 # Whether we should hardcode library paths into libraries.
18071 hardcode_into_libs=$hardcode_into_libs
18072
18073 # Flag to hardcode \$libdir into a binary during linking.
18074 # This must work even if \$libdir does not exist.
18075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18076
18077 # If ld is used when linking, flag to hardcode \$libdir into
18078 # a binary during linking. This must work even if \$libdir does
18079 # not exist.
18080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18081
18082 # Whether we need a single -rpath flag with a separated argument.
18083 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18084
18085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18086 # resulting binary.
18087 hardcode_direct=$hardcode_direct_GCJ
18088
18089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18090 # resulting binary.
18091 hardcode_minus_L=$hardcode_minus_L_GCJ
18092
18093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18094 # the resulting binary.
18095 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18096
18097 # Set to yes if building a shared library automatically hardcodes DIR into the library
18098 # and all subsequent libraries and executables linked against it.
18099 hardcode_automatic=$hardcode_automatic_GCJ
18100
18101 # Variables whose values should be saved in libtool wrapper scripts and
18102 # restored at relink time.
18103 variables_saved_for_relink="$variables_saved_for_relink"
18104
18105 # Whether libtool must link a program against all its dependency libraries.
18106 link_all_deplibs=$link_all_deplibs_GCJ
18107
18108 # Compile-time system search path for libraries
18109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18110
18111 # Run-time system search path for libraries
18112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18113
18114 # Fix the shell variable \$srcfile for the compiler.
18115 fix_srcfile_path="$fix_srcfile_path_GCJ"
18116
18117 # Set to yes if exported symbols are required.
18118 always_export_symbols=$always_export_symbols_GCJ
18119
18120 # The commands to list exported symbols.
18121 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18122
18123 # The commands to extract the exported symbol list from a shared archive.
18124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18125
18126 # Symbols that should not be listed in the preloaded symbols.
18127 exclude_expsyms=$lt_exclude_expsyms_GCJ
18128
18129 # Symbols that must always be exported.
18130 include_expsyms=$lt_include_expsyms_GCJ
18131
18132 # ### END LIBTOOL TAG CONFIG: $tagname
18133
18134 __EOF__
18135
18136
18137 else
18138   # If there is no Makefile yet, we rely on a make rule to execute
18139   # `config.status --recheck' to rerun these tests and create the
18140   # libtool script then.
18141   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18142   if test -f "$ltmain_in"; then
18143     test -f Makefile && make "$ltmain"
18144   fi
18145 fi
18146
18147
18148 ac_ext=c
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18153
18154 CC="$lt_save_CC"
18155
18156         else
18157           tagname=""
18158         fi
18159         ;;
18160
18161       RC)
18162
18163
18164
18165 # Source file extension for RC test sources.
18166 ac_ext=rc
18167
18168 # Object file extension for compiled RC test sources.
18169 objext=o
18170 objext_RC=$objext
18171
18172 # Code to be used in simple compile tests
18173 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18174
18175 # Code to be used in simple link tests
18176 lt_simple_link_test_code="$lt_simple_compile_test_code"
18177
18178 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18179
18180 # If no C compiler was specified, use CC.
18181 LTCC=${LTCC-"$CC"}
18182
18183 # Allow CC to be a program name with arguments.
18184 compiler=$CC
18185
18186
18187 # Allow CC to be a program name with arguments.
18188 lt_save_CC="$CC"
18189 CC=${RC-"windres"}
18190 compiler=$CC
18191 compiler_RC=$CC
18192 lt_cv_prog_compiler_c_o_RC=yes
18193
18194 # The else clause should only fire when bootstrapping the
18195 # libtool distribution, otherwise you forgot to ship ltmain.sh
18196 # with your package, and you will get complaints that there are
18197 # no rules to generate ltmain.sh.
18198 if test -f "$ltmain"; then
18199   # See if we are running on zsh, and set the options which allow our commands through
18200   # without removal of \ escapes.
18201   if test -n "${ZSH_VERSION+set}" ; then
18202     setopt NO_GLOB_SUBST
18203   fi
18204   # Now quote all the things that may contain metacharacters while being
18205   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18206   # variables and quote the copies for generation of the libtool script.
18207   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18208     SED SHELL STRIP \
18209     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18210     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18211     deplibs_check_method reload_flag reload_cmds need_locks \
18212     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18213     lt_cv_sys_global_symbol_to_c_name_address \
18214     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18215     old_postinstall_cmds old_postuninstall_cmds \
18216     compiler_RC \
18217     CC_RC \
18218     LD_RC \
18219     lt_prog_compiler_wl_RC \
18220     lt_prog_compiler_pic_RC \
18221     lt_prog_compiler_static_RC \
18222     lt_prog_compiler_no_builtin_flag_RC \
18223     export_dynamic_flag_spec_RC \
18224     thread_safe_flag_spec_RC \
18225     whole_archive_flag_spec_RC \
18226     enable_shared_with_static_runtimes_RC \
18227     old_archive_cmds_RC \
18228     old_archive_from_new_cmds_RC \
18229     predep_objects_RC \
18230     postdep_objects_RC \
18231     predeps_RC \
18232     postdeps_RC \
18233     compiler_lib_search_path_RC \
18234     archive_cmds_RC \
18235     archive_expsym_cmds_RC \
18236     postinstall_cmds_RC \
18237     postuninstall_cmds_RC \
18238     old_archive_from_expsyms_cmds_RC \
18239     allow_undefined_flag_RC \
18240     no_undefined_flag_RC \
18241     export_symbols_cmds_RC \
18242     hardcode_libdir_flag_spec_RC \
18243     hardcode_libdir_flag_spec_ld_RC \
18244     hardcode_libdir_separator_RC \
18245     hardcode_automatic_RC \
18246     module_cmds_RC \
18247     module_expsym_cmds_RC \
18248     lt_cv_prog_compiler_c_o_RC \
18249     exclude_expsyms_RC \
18250     include_expsyms_RC; do
18251
18252     case $var in
18253     old_archive_cmds_RC | \
18254     old_archive_from_new_cmds_RC | \
18255     archive_cmds_RC | \
18256     archive_expsym_cmds_RC | \
18257     module_cmds_RC | \
18258     module_expsym_cmds_RC | \
18259     old_archive_from_expsyms_cmds_RC | \
18260     export_symbols_cmds_RC | \
18261     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18262     postinstall_cmds | postuninstall_cmds | \
18263     old_postinstall_cmds | old_postuninstall_cmds | \
18264     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18265       # Double-quote double-evaled strings.
18266       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18267       ;;
18268     *)
18269       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18270       ;;
18271     esac
18272   done
18273
18274   case $lt_echo in
18275   *'\$0 --fallback-echo"')
18276     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18277     ;;
18278   esac
18279
18280 cfgfile="$ofile"
18281
18282   cat <<__EOF__ >> "$cfgfile"
18283 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18284
18285 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18286
18287 # Shell to use when invoking shell scripts.
18288 SHELL=$lt_SHELL
18289
18290 # Whether or not to build shared libraries.
18291 build_libtool_libs=$enable_shared
18292
18293 # Whether or not to build static libraries.
18294 build_old_libs=$enable_static
18295
18296 # Whether or not to add -lc for building shared libraries.
18297 build_libtool_need_lc=$archive_cmds_need_lc_RC
18298
18299 # Whether or not to disallow shared libs when runtime libs are static
18300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18301
18302 # Whether or not to optimize for fast installation.
18303 fast_install=$enable_fast_install
18304
18305 # The host system.
18306 host_alias=$host_alias
18307 host=$host
18308
18309 # An echo program that does not interpret backslashes.
18310 echo=$lt_echo
18311
18312 # The archiver.
18313 AR=$lt_AR
18314 AR_FLAGS=$lt_AR_FLAGS
18315
18316 # A C compiler.
18317 LTCC=$lt_LTCC
18318
18319 # A language-specific compiler.
18320 CC=$lt_compiler_RC
18321
18322 # Is the compiler the GNU C compiler?
18323 with_gcc=$GCC_RC
18324
18325 # An ERE matcher.
18326 EGREP=$lt_EGREP
18327
18328 # The linker used to build libraries.
18329 LD=$lt_LD_RC
18330
18331 # Whether we need hard or soft links.
18332 LN_S=$lt_LN_S
18333
18334 # A BSD-compatible nm program.
18335 NM=$lt_NM
18336
18337 # A symbol stripping program
18338 STRIP=$lt_STRIP
18339
18340 # Used to examine libraries when file_magic_cmd begins "file"
18341 MAGIC_CMD=$MAGIC_CMD
18342
18343 # Used on cygwin: DLL creation program.
18344 DLLTOOL="$DLLTOOL"
18345
18346 # Used on cygwin: object dumper.
18347 OBJDUMP="$OBJDUMP"
18348
18349 # Used on cygwin: assembler.
18350 AS="$AS"
18351
18352 # The name of the directory that contains temporary libtool files.
18353 objdir=$objdir
18354
18355 # How to create reloadable object files.
18356 reload_flag=$lt_reload_flag
18357 reload_cmds=$lt_reload_cmds
18358
18359 # How to pass a linker flag through the compiler.
18360 wl=$lt_lt_prog_compiler_wl_RC
18361
18362 # Object file suffix (normally "o").
18363 objext="$ac_objext"
18364
18365 # Old archive suffix (normally "a").
18366 libext="$libext"
18367
18368 # Shared library suffix (normally ".so").
18369 shrext='$shrext'
18370
18371 # Executable file suffix (normally "").
18372 exeext="$exeext"
18373
18374 # Additional compiler flags for building library objects.
18375 pic_flag=$lt_lt_prog_compiler_pic_RC
18376 pic_mode=$pic_mode
18377
18378 # What is the maximum length of a command?
18379 max_cmd_len=$lt_cv_sys_max_cmd_len
18380
18381 # Does compiler simultaneously support -c and -o options?
18382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18383
18384 # Must we lock files when doing compilation ?
18385 need_locks=$lt_need_locks
18386
18387 # Do we need the lib prefix for modules?
18388 need_lib_prefix=$need_lib_prefix
18389
18390 # Do we need a version for libraries?
18391 need_version=$need_version
18392
18393 # Whether dlopen is supported.
18394 dlopen_support=$enable_dlopen
18395
18396 # Whether dlopen of programs is supported.
18397 dlopen_self=$enable_dlopen_self
18398
18399 # Whether dlopen of statically linked programs is supported.
18400 dlopen_self_static=$enable_dlopen_self_static
18401
18402 # Compiler flag to prevent dynamic linking.
18403 link_static_flag=$lt_lt_prog_compiler_static_RC
18404
18405 # Compiler flag to turn off builtin functions.
18406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18407
18408 # Compiler flag to allow reflexive dlopens.
18409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18410
18411 # Compiler flag to generate shared objects directly from archives.
18412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18413
18414 # Compiler flag to generate thread-safe objects.
18415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18416
18417 # Library versioning type.
18418 version_type=$version_type
18419
18420 # Format of library name prefix.
18421 libname_spec=$lt_libname_spec
18422
18423 # List of archive names.  First name is the real one, the rest are links.
18424 # The last name is the one that the linker finds with -lNAME.
18425 library_names_spec=$lt_library_names_spec
18426
18427 # The coded name of the library, if different from the real name.
18428 soname_spec=$lt_soname_spec
18429
18430 # Commands used to build and install an old-style archive.
18431 RANLIB=$lt_RANLIB
18432 old_archive_cmds=$lt_old_archive_cmds_RC
18433 old_postinstall_cmds=$lt_old_postinstall_cmds
18434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18435
18436 # Create an old-style archive from a shared archive.
18437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18438
18439 # Create a temporary old-style archive to link instead of a shared archive.
18440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18441
18442 # Commands used to build and install a shared archive.
18443 archive_cmds=$lt_archive_cmds_RC
18444 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18445 postinstall_cmds=$lt_postinstall_cmds
18446 postuninstall_cmds=$lt_postuninstall_cmds
18447
18448 # Commands used to build a loadable module (assumed same as above if empty)
18449 module_cmds=$lt_module_cmds_RC
18450 module_expsym_cmds=$lt_module_expsym_cmds_RC
18451
18452 # Commands to strip libraries.
18453 old_striplib=$lt_old_striplib
18454 striplib=$lt_striplib
18455
18456 # Dependencies to place before the objects being linked to create a
18457 # shared library.
18458 predep_objects=$lt_predep_objects_RC
18459
18460 # Dependencies to place after the objects being linked to create a
18461 # shared library.
18462 postdep_objects=$lt_postdep_objects_RC
18463
18464 # Dependencies to place before the objects being linked to create a
18465 # shared library.
18466 predeps=$lt_predeps_RC
18467
18468 # Dependencies to place after the objects being linked to create a
18469 # shared library.
18470 postdeps=$lt_postdeps_RC
18471
18472 # The library search path used internally by the compiler when linking
18473 # a shared library.
18474 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18475
18476 # Method to check whether dependent libraries are shared objects.
18477 deplibs_check_method=$lt_deplibs_check_method
18478
18479 # Command to use when deplibs_check_method == file_magic.
18480 file_magic_cmd=$lt_file_magic_cmd
18481
18482 # Flag that allows shared libraries with undefined symbols to be built.
18483 allow_undefined_flag=$lt_allow_undefined_flag_RC
18484
18485 # Flag that forces no undefined symbols.
18486 no_undefined_flag=$lt_no_undefined_flag_RC
18487
18488 # Commands used to finish a libtool library installation in a directory.
18489 finish_cmds=$lt_finish_cmds
18490
18491 # Same as above, but a single script fragment to be evaled but not shown.
18492 finish_eval=$lt_finish_eval
18493
18494 # Take the output of nm and produce a listing of raw symbols and C names.
18495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18496
18497 # Transform the output of nm in a proper C declaration
18498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18499
18500 # Transform the output of nm in a C name address pair
18501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18502
18503 # This is the shared library runtime path variable.
18504 runpath_var=$runpath_var
18505
18506 # This is the shared library path variable.
18507 shlibpath_var=$shlibpath_var
18508
18509 # Is shlibpath searched before the hard-coded library search path?
18510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18511
18512 # How to hardcode a shared library path into an executable.
18513 hardcode_action=$hardcode_action_RC
18514
18515 # Whether we should hardcode library paths into libraries.
18516 hardcode_into_libs=$hardcode_into_libs
18517
18518 # Flag to hardcode \$libdir into a binary during linking.
18519 # This must work even if \$libdir does not exist.
18520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18521
18522 # If ld is used when linking, flag to hardcode \$libdir into
18523 # a binary during linking. This must work even if \$libdir does
18524 # not exist.
18525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18526
18527 # Whether we need a single -rpath flag with a separated argument.
18528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18529
18530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18531 # resulting binary.
18532 hardcode_direct=$hardcode_direct_RC
18533
18534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18535 # resulting binary.
18536 hardcode_minus_L=$hardcode_minus_L_RC
18537
18538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18539 # the resulting binary.
18540 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18541
18542 # Set to yes if building a shared library automatically hardcodes DIR into the library
18543 # and all subsequent libraries and executables linked against it.
18544 hardcode_automatic=$hardcode_automatic_RC
18545
18546 # Variables whose values should be saved in libtool wrapper scripts and
18547 # restored at relink time.
18548 variables_saved_for_relink="$variables_saved_for_relink"
18549
18550 # Whether libtool must link a program against all its dependency libraries.
18551 link_all_deplibs=$link_all_deplibs_RC
18552
18553 # Compile-time system search path for libraries
18554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18555
18556 # Run-time system search path for libraries
18557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18558
18559 # Fix the shell variable \$srcfile for the compiler.
18560 fix_srcfile_path="$fix_srcfile_path_RC"
18561
18562 # Set to yes if exported symbols are required.
18563 always_export_symbols=$always_export_symbols_RC
18564
18565 # The commands to list exported symbols.
18566 export_symbols_cmds=$lt_export_symbols_cmds_RC
18567
18568 # The commands to extract the exported symbol list from a shared archive.
18569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18570
18571 # Symbols that should not be listed in the preloaded symbols.
18572 exclude_expsyms=$lt_exclude_expsyms_RC
18573
18574 # Symbols that must always be exported.
18575 include_expsyms=$lt_include_expsyms_RC
18576
18577 # ### END LIBTOOL TAG CONFIG: $tagname
18578
18579 __EOF__
18580
18581
18582 else
18583   # If there is no Makefile yet, we rely on a make rule to execute
18584   # `config.status --recheck' to rerun these tests and create the
18585   # libtool script then.
18586   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18587   if test -f "$ltmain_in"; then
18588     test -f Makefile && make "$ltmain"
18589   fi
18590 fi
18591
18592
18593 ac_ext=c
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18598
18599 CC="$lt_save_CC"
18600
18601         ;;
18602
18603       *)
18604         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18605 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18606    { (exit 1); exit 1; }; }
18607         ;;
18608       esac
18609
18610       # Append the new tag name to the list of available tags.
18611       if test -n "$tagname" ; then
18612       available_tags="$available_tags $tagname"
18613     fi
18614     fi
18615   done
18616   IFS="$lt_save_ifs"
18617
18618   # Now substitute the updated list of available tags.
18619   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18620     mv "${ofile}T" "$ofile"
18621     chmod +x "$ofile"
18622   else
18623     rm -f "${ofile}T"
18624     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18625 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18626    { (exit 1); exit 1; }; }
18627   fi
18628 fi
18629
18630
18631
18632 # This can be used to rebuild libtool when needed
18633 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18634
18635 # Always use our own libtool.
18636 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18637
18638 # Prevent multiple expansion
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660 # Check whether --enable-docs or --disable-docs was given.
18661 if test "${enable_docs+set}" = set; then
18662   enableval="$enable_docs"
18663   case "${enableval}" in
18664     yes) build_docs=true;;
18665     no)  build_docs=false;;
18666     *)   { { echo "$as_me:$LINENO: error: unknown value ${enableval} for --enable-docs" >&5
18667 echo "$as_me: error: unknown value ${enableval} for --enable-docs" >&2;}
18668    { (exit 1); exit 1; }; };;
18669   esac
18670 else
18671   build_docs=false
18672 fi;
18673
18674 if test x$build_docs = xtrue; then
18675   for ac_prog in xsltproc
18676 do
18677   # Extract the first word of "$ac_prog", so it can be a program name with args.
18678 set dummy $ac_prog; ac_word=$2
18679 echo "$as_me:$LINENO: checking for $ac_word" >&5
18680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   if test -n "$XSLTPROC"; then
18685   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
18686 else
18687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688 for as_dir in $PATH
18689 do
18690   IFS=$as_save_IFS
18691   test -z "$as_dir" && as_dir=.
18692   for ac_exec_ext in '' $ac_executable_extensions; do
18693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694     ac_cv_prog_XSLTPROC="$ac_prog"
18695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18696     break 2
18697   fi
18698 done
18699 done
18700
18701 fi
18702 fi
18703 XSLTPROC=$ac_cv_prog_XSLTPROC
18704 if test -n "$XSLTPROC"; then
18705   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
18706 echo "${ECHO_T}$XSLTPROC" >&6
18707 else
18708   echo "$as_me:$LINENO: result: no" >&5
18709 echo "${ECHO_T}no" >&6
18710 fi
18711
18712   test -n "$XSLTPROC" && break
18713 done
18714 test -n "$XSLTPROC" || XSLTPROC="/bin/false"
18715
18716   for ac_prog in pdfxmltex
18717 do
18718   # Extract the first word of "$ac_prog", so it can be a program name with args.
18719 set dummy $ac_prog; ac_word=$2
18720 echo "$as_me:$LINENO: checking for $ac_word" >&5
18721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18722 if test "${ac_cv_prog_PDFXMLTEX+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   if test -n "$PDFXMLTEX"; then
18726   ac_cv_prog_PDFXMLTEX="$PDFXMLTEX" # Let the user override the test.
18727 else
18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH
18730 do
18731   IFS=$as_save_IFS
18732   test -z "$as_dir" && as_dir=.
18733   for ac_exec_ext in '' $ac_executable_extensions; do
18734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735     ac_cv_prog_PDFXMLTEX="$ac_prog"
18736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18737     break 2
18738   fi
18739 done
18740 done
18741
18742 fi
18743 fi
18744 PDFXMLTEX=$ac_cv_prog_PDFXMLTEX
18745 if test -n "$PDFXMLTEX"; then
18746   echo "$as_me:$LINENO: result: $PDFXMLTEX" >&5
18747 echo "${ECHO_T}$PDFXMLTEX" >&6
18748 else
18749   echo "$as_me:$LINENO: result: no" >&5
18750 echo "${ECHO_T}no" >&6
18751 fi
18752
18753   test -n "$PDFXMLTEX" && break
18754 done
18755 test -n "$PDFXMLTEX" || PDFXMLTEX="/bin/false"
18756
18757   if test "x$XSLTPROC" = "x/bin/false" || test "x$PDFXMLTEX" = "x/bin/false"; then
18758     build_docs=false
18759     { echo "$as_me:$LINENO: WARNING: Documentation will not be built" >&5
18760 echo "$as_me: WARNING: Documentation will not be built" >&2;}
18761   fi
18762 fi
18763
18764
18765
18766 if test x$build_docs = xtrue; then
18767   BUILD_DOCS_TRUE=
18768   BUILD_DOCS_FALSE='#'
18769 else
18770   BUILD_DOCS_TRUE='#'
18771   BUILD_DOCS_FALSE=
18772 fi
18773
18774
18775
18776
18777
18778 cflags_save="$CFLAGS"
18779 ldflags_save="$LDFLAGS"
18780 if test -z "$GCC"; then
18781         case $host in
18782         *-*-irix*)
18783                                                 if test -z "$CC"; then
18784                         CC=cc
18785                 fi
18786                 DEBUG="-g -signed"
18787                 CFLAGS="-O2 -w -signed"
18788                 PROFILE="-p -g3 -O2 -signed" ;;
18789         sparc-sun-solaris*)
18790                 DEBUG="-v -g"
18791                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
18792                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
18793         *)
18794                 DEBUG="-g"
18795                 CFLAGS="-O"
18796                 PROFILE="-g -p" ;;
18797         esac
18798 else
18799
18800         case $host in
18801         *86-*-linux*)
18802                 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
18803                 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
18804 #               PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
18805                 PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
18806
18807                 # glibc < 2.1.3 has a serious FP bug in the math inline header
18808                 # that will cripple Vorbis.  Look to see if the magic FP stack
18809                 # clobber is missing in the mathinline header, thus indicating
18810                 # the buggy version
18811
18812                 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h.  */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h.  */
18818
18819                                 #define __LIBC_INTERNAL_MATH_INLINES 1
18820                                 #define __OPTIMIZE__
18821                                 #include <math.h>
18822
18823 _ACEOF
18824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18825   $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
18826   bad=maybe
18827 else
18828   bad=no
18829 fi
18830 rm -f conftest*
18831
18832                 if test ${bad} = "maybe" ;then
18833                       cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h.  */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h.  */
18839
18840                                         #define __LIBC_INTERNAL_MATH_INLINES 1
18841                                         #define __OPTIMIZE__
18842                                         #include <math.h>
18843
18844 _ACEOF
18845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18846   $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
18847   bad=no
18848 else
18849   bad=yes
18850 fi
18851 rm -f conftest*
18852
18853                 fi
18854                 if test ${bad} = "yes" ;then
18855  { echo "$as_me:$LINENO: WARNING:                                                         " >&5
18856 echo "$as_me: WARNING:                                                         " >&2;}
18857  { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
18858 echo "$as_me: WARNING: ********************************************************" >&2;}
18859  { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5
18860 echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
18861  { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&5
18862 echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&2;}
18863  { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5
18864 echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
18865  { echo "$as_me:$LINENO: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&5
18866 echo "$as_me: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
18867  { echo "$as_me:$LINENO: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&5
18868 echo "$as_me: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&2;}
18869  { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is  *" >&5
18870 echo "$as_me: WARNING: * will not fix any previously built programs; this is  *" >&2;}
18871  { echo "$as_me:$LINENO: WARNING: * a compile-time time bug.                             *" >&5
18872 echo "$as_me: WARNING: * a compile-time time bug.                             *" >&2;}
18873  { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg,    *" >&5
18874 echo "$as_me: WARNING: * To work around the problem for this build of Ogg,    *" >&2;}
18875  { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining.  This will  *" >&5
18876 echo "$as_me: WARNING: * autoconf is disabling all math inlining.  This will  *" >&2;}
18877  { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
18878 echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
18879  { echo "$as_me:$LINENO: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&5
18880 echo "$as_me: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&2;}
18881  { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining.           *" >&5
18882 echo "$as_me: WARNING: * configure and make to build with inlining.           *" >&2;}
18883  { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
18884 echo "$as_me: WARNING: ********************************************************" >&2;}
18885  { echo "$as_me:$LINENO: WARNING:                                                         " >&5
18886 echo "$as_me: WARNING:                                                         " >&2;}
18887
18888                 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
18889                 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
18890                 fi;;
18891         powerpc-*-linux*)
18892                 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES"
18893                 CFLAGS="-O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
18894                 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
18895         *-*-linux*)
18896                 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
18897                 CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
18898                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
18899         sparc-sun-*)
18900                 DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char -mv8"
18901                 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
18902                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
18903         *-*-darwin*)
18904                 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
18905                 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
18906                 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
18907         *)
18908                 DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char"
18909                 CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
18910                 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
18911         esac
18912 fi
18913 CFLAGS="$CFLAGS $cflags_save"
18914 LDFLAGS="$LDFLAGS $ldflags_save"
18915
18916
18917 if test "${ac_cv_header_memory_h+set}" = set; then
18918   echo "$as_me:$LINENO: checking for memory.h" >&5
18919 echo $ECHO_N "checking for memory.h... $ECHO_C" >&6
18920 if test "${ac_cv_header_memory_h+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 fi
18923 echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
18924 echo "${ECHO_T}$ac_cv_header_memory_h" >&6
18925 else
18926   # Is the header compilable?
18927 echo "$as_me:$LINENO: checking memory.h usability" >&5
18928 echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 $ac_includes_default
18936 #include <memory.h>
18937 _ACEOF
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940   (eval $ac_compile) 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -z "$ac_c_werror_flag"
18948                          || test ! -s conftest.err'
18949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950   (eval $ac_try) 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; } &&
18954          { ac_try='test -s conftest.$ac_objext'
18955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956   (eval $ac_try) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_header_compiler=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_header_compiler=no
18966 fi
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18969 echo "${ECHO_T}$ac_header_compiler" >&6
18970
18971 # Is the header present?
18972 echo "$as_me:$LINENO: checking memory.h presence" >&5
18973 echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980 #include <memory.h>
18981 _ACEOF
18982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } >/dev/null; then
18990   if test -s conftest.err; then
18991     ac_cpp_err=$ac_c_preproc_warn_flag
18992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18993   else
18994     ac_cpp_err=
18995   fi
18996 else
18997   ac_cpp_err=yes
18998 fi
18999 if test -z "$ac_cpp_err"; then
19000   ac_header_preproc=yes
19001 else
19002   echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005   ac_header_preproc=no
19006 fi
19007 rm -f conftest.err conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6
19010
19011 # So?  What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19013   yes:no: )
19014     { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016     { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;}
19018     ac_header_preproc=yes
19019     ;;
19020   no:yes:* )
19021     { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: memory.h:     check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: memory.h:     check for missing prerequisite headers?" >&2;}
19025     { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;}
19027     { echo "$as_me:$LINENO: WARNING: memory.h:     section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: memory.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19029     { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;}
19031     { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;}
19033     (
19034       cat <<\_ASBOX
19035 ## ------------------------------------------ ##
19036 ## Report this to the AC_PACKAGE_NAME lists.  ##
19037 ## ------------------------------------------ ##
19038 _ASBOX
19039     ) |
19040       sed "s/^/$as_me: WARNING:     /" >&2
19041     ;;
19042 esac
19043 echo "$as_me:$LINENO: checking for memory.h" >&5
19044 echo $ECHO_N "checking for memory.h... $ECHO_C" >&6
19045 if test "${ac_cv_header_memory_h+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   ac_cv_header_memory_h=$ac_header_preproc
19049 fi
19050 echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
19051 echo "${ECHO_T}$ac_cv_header_memory_h" >&6
19052
19053 fi
19054 if test $ac_cv_header_memory_h = yes; then
19055   CFLAGS="$CFLAGS -DUSE_MEMORY_H"
19056 else
19057   :
19058 fi
19059
19060
19061
19062
19063
19064
19065 echo "$as_me:$LINENO: checking for cos in -lm" >&5
19066 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
19067 if test "${ac_cv_lib_m_cos+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   ac_check_lib_save_LIBS=$LIBS
19071 LIBS="-lm  $LIBS"
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any gcc2 internal prototype to avoid an error.  */
19080 #ifdef __cplusplus
19081 extern "C"
19082 #endif
19083 /* We use char because int might match the return type of a gcc2
19084    builtin and then its argument prototype would still apply.  */
19085 char cos ();
19086 int
19087 main ()
19088 {
19089 cos ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096   (eval $ac_link) 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -z "$ac_c_werror_flag"
19104                          || test ! -s conftest.err'
19105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106   (eval $ac_try) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); }; } &&
19110          { ac_try='test -s conftest$ac_exeext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_lib_m_cos=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_lib_m_cos=no
19122 fi
19123 rm -f conftest.err conftest.$ac_objext \
19124       conftest$ac_exeext conftest.$ac_ext
19125 LIBS=$ac_check_lib_save_LIBS
19126 fi
19127 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
19128 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
19129 if test $ac_cv_lib_m_cos = yes; then
19130   LIBS="-lm"
19131 else
19132   LIBS=""
19133 fi
19134
19135 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19136 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19137 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   ac_check_lib_save_LIBS=$LIBS
19141 LIBS="-lpthread  $LIBS"
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148
19149 /* Override any gcc2 internal prototype to avoid an error.  */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 /* We use char because int might match the return type of a gcc2
19154    builtin and then its argument prototype would still apply.  */
19155 char pthread_create ();
19156 int
19157 main ()
19158 {
19159 pthread_create ();
19160   ;
19161   return 0;
19162 }
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166   (eval $ac_link) 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } &&
19173          { ac_try='test -z "$ac_c_werror_flag"
19174                          || test ! -s conftest.err'
19175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176   (eval $ac_try) 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); }; } &&
19180          { ac_try='test -s conftest$ac_exeext'
19181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182   (eval $ac_try) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; }; then
19186   ac_cv_lib_pthread_pthread_create=yes
19187 else
19188   echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 ac_cv_lib_pthread_pthread_create=no
19192 fi
19193 rm -f conftest.err conftest.$ac_objext \
19194       conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19196 fi
19197 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19198 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19199 if test $ac_cv_lib_pthread_pthread_create = yes; then
19200   pthread_lib="-lpthread"
19201 else
19202   :
19203 fi
19204
19205
19206
19207 # Check whether --with-ogg or --without-ogg was given.
19208 if test "${with_ogg+set}" = set; then
19209   withval="$with_ogg"
19210   ogg_prefix="$withval"
19211 else
19212   ogg_prefix=""
19213 fi;
19214
19215 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
19216 if test "${with_ogg_libraries+set}" = set; then
19217   withval="$with_ogg_libraries"
19218   ogg_libraries="$withval"
19219 else
19220   ogg_libraries=""
19221 fi;
19222
19223 # Check whether --with-ogg-includes or --without-ogg-includes was given.
19224 if test "${with_ogg_includes+set}" = set; then
19225   withval="$with_ogg_includes"
19226   ogg_includes="$withval"
19227 else
19228   ogg_includes=""
19229 fi;
19230 # Check whether --enable-oggtest or --disable-oggtest was given.
19231 if test "${enable_oggtest+set}" = set; then
19232   enableval="$enable_oggtest"
19233
19234 else
19235   enable_oggtest=yes
19236 fi;
19237
19238   if test "x$ogg_libraries" != "x" ; then
19239     OGG_LIBS="-L$ogg_libraries"
19240   elif test "x$ogg_prefix" != "x" ; then
19241     OGG_LIBS="-L$ogg_prefix/lib"
19242   elif test "x$prefix" != "xNONE" ; then
19243     OGG_LIBS="-L$prefix/lib"
19244   fi
19245
19246   OGG_LIBS="$OGG_LIBS -logg"
19247
19248   if test "x$ogg_includes" != "x" ; then
19249     OGG_CFLAGS="-I$ogg_includes"
19250   elif test "x$ogg_prefix" != "x" ; then
19251     OGG_CFLAGS="-I$ogg_prefix/include"
19252   elif test "x$prefix" != "xNONE"; then
19253     OGG_CFLAGS="-I$prefix/include"
19254   fi
19255
19256   echo "$as_me:$LINENO: checking for Ogg" >&5
19257 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
19258   no_ogg=""
19259
19260
19261   if test "x$enable_oggtest" = "xyes" ; then
19262     ac_save_CFLAGS="$CFLAGS"
19263     ac_save_LIBS="$LIBS"
19264     CFLAGS="$CFLAGS $OGG_CFLAGS"
19265     LIBS="$LIBS $OGG_LIBS"
19266       rm -f conf.oggtest
19267       if test "$cross_compiling" = yes; then
19268   echo $ac_n "cross compiling; assumed OK... $ac_c"
19269 else
19270   cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276
19277 #include <stdio.h>
19278 #include <stdlib.h>
19279 #include <string.h>
19280 #include <ogg/ogg.h>
19281
19282 int main ()
19283 {
19284   system("touch conf.oggtest");
19285   return 0;
19286 }
19287
19288
19289 _ACEOF
19290 rm -f conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297   (eval $ac_try) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; }; then
19301   :
19302 else
19303   echo "$as_me: program exited with status $ac_status" >&5
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ( exit $ac_status )
19308 no_ogg=yes
19309 fi
19310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19311 fi
19312        CFLAGS="$ac_save_CFLAGS"
19313        LIBS="$ac_save_LIBS"
19314   fi
19315
19316   if test "x$no_ogg" = "x" ; then
19317      echo "$as_me:$LINENO: result: yes" >&5
19318 echo "${ECHO_T}yes" >&6
19319      :
19320   else
19321      echo "$as_me:$LINENO: result: no" >&5
19322 echo "${ECHO_T}no" >&6
19323      if test -f conf.oggtest ; then
19324        :
19325      else
19326        echo "*** Could not run Ogg test program, checking why..."
19327        CFLAGS="$CFLAGS $OGG_CFLAGS"
19328        LIBS="$LIBS $OGG_LIBS"
19329        cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335
19336 #include <stdio.h>
19337 #include <ogg/ogg.h>
19338
19339 int
19340 main ()
19341 {
19342  return 0;
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349   (eval $ac_link) 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag"
19357                          || test ! -s conftest.err'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; } &&
19363          { ac_try='test -s conftest$ac_exeext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369    echo "*** The test program compiled, but did not run. This usually means"
19370        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
19371        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
19372        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19373        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
19374        echo "*** is required on your system"
19375        echo "***"
19376        echo "*** If you have an old version installed, it is best to remove it, although"
19377        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382  echo "*** The test program failed to compile or link. See the file config.log for the"
19383        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
19384        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
19385        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
19386 fi
19387 rm -f conftest.err conftest.$ac_objext \
19388       conftest$ac_exeext conftest.$ac_ext
19389        CFLAGS="$ac_save_CFLAGS"
19390        LIBS="$ac_save_LIBS"
19391      fi
19392      OGG_CFLAGS=""
19393      OGG_LIBS=""
19394      { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
19395 echo "$as_me: error: must have Ogg installed!" >&2;}
19396    { (exit 1); exit 1; }; }
19397   fi
19398
19399
19400   rm -f conf.oggtest
19401
19402 LIBS="$LIBS $OGG_LIBS"
19403 echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
19404 echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6
19405 if test "${ac_cv_func_oggpack_writealign+set}" = set; then
19406   echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408   cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414 /* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
19415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19416 #define oggpack_writealign innocuous_oggpack_writealign
19417
19418 /* System header to define __stub macros and hopefully few prototypes,
19419     which can conflict with char oggpack_writealign (); below.
19420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19421     <limits.h> exists even on freestanding compilers.  */
19422
19423 #ifdef __STDC__
19424 # include <limits.h>
19425 #else
19426 # include <assert.h>
19427 #endif
19428
19429 #undef oggpack_writealign
19430
19431 /* Override any gcc2 internal prototype to avoid an error.  */
19432 #ifdef __cplusplus
19433 extern "C"
19434 {
19435 #endif
19436 /* We use char because int might match the return type of a gcc2
19437    builtin and then its argument prototype would still apply.  */
19438 char oggpack_writealign ();
19439 /* The GNU C library defines this for functions which it implements
19440     to always fail with ENOSYS.  Some functions are actually named
19441     something starting with __ and the normal name is an alias.  */
19442 #if defined (__stub_oggpack_writealign) || defined (__stub___oggpack_writealign)
19443 choke me
19444 #else
19445 char (*f) () = oggpack_writealign;
19446 #endif
19447 #ifdef __cplusplus
19448 }
19449 #endif
19450
19451 int
19452 main ()
19453 {
19454 return f != oggpack_writealign;
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461   (eval $ac_link) 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } &&
19468          { ac_try='test -z "$ac_c_werror_flag"
19469                          || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest$ac_exeext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_func_oggpack_writealign=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_func_oggpack_writealign=no
19487 fi
19488 rm -f conftest.err conftest.$ac_objext \
19489       conftest$ac_exeext conftest.$ac_ext
19490 fi
19491 echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
19492 echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6
19493 if test $ac_cv_func_oggpack_writealign = yes; then
19494   :
19495 else
19496   { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
19497 echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
19498    { (exit 1); exit 1; }; }
19499 fi
19500
19501
19502
19503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19504 # for constant arguments.  Useless!
19505 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19507 if test "${ac_cv_working_alloca_h+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <alloca.h>
19517 int
19518 main ()
19519 {
19520 char *p = (char *) alloca (2 * sizeof (int));
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19527   (eval $ac_link) 2>conftest.er1
19528   ac_status=$?
19529   grep -v '^ *+' conftest.er1 >conftest.err
19530   rm -f conftest.er1
19531   cat conftest.err >&5
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } &&
19534          { ac_try='test -z "$ac_c_werror_flag"
19535                          || test ! -s conftest.err'
19536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537   (eval $ac_try) 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); }; } &&
19541          { ac_try='test -s conftest$ac_exeext'
19542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543   (eval $ac_try) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; }; then
19547   ac_cv_working_alloca_h=yes
19548 else
19549   echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 ac_cv_working_alloca_h=no
19553 fi
19554 rm -f conftest.err conftest.$ac_objext \
19555       conftest$ac_exeext conftest.$ac_ext
19556 fi
19557 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19559 if test $ac_cv_working_alloca_h = yes; then
19560
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_ALLOCA_H 1
19563 _ACEOF
19564
19565 fi
19566
19567 echo "$as_me:$LINENO: checking for alloca" >&5
19568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19569 if test "${ac_cv_func_alloca_works+set}" = set; then
19570   echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572   cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 #ifdef __GNUC__
19579 # define alloca __builtin_alloca
19580 #else
19581 # ifdef _MSC_VER
19582 #  include <malloc.h>
19583 #  define alloca _alloca
19584 # else
19585 #  if HAVE_ALLOCA_H
19586 #   include <alloca.h>
19587 #  else
19588 #   ifdef _AIX
19589  #pragma alloca
19590 #   else
19591 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19592 char *alloca ();
19593 #    endif
19594 #   endif
19595 #  endif
19596 # endif
19597 #endif
19598
19599 int
19600 main ()
19601 {
19602 char *p = (char *) alloca (1);
19603   ;
19604   return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19609   (eval $ac_link) 2>conftest.er1
19610   ac_status=$?
19611   grep -v '^ *+' conftest.er1 >conftest.err
19612   rm -f conftest.er1
19613   cat conftest.err >&5
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); } &&
19616          { ac_try='test -z "$ac_c_werror_flag"
19617                          || test ! -s conftest.err'
19618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619   (eval $ac_try) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; } &&
19623          { ac_try='test -s conftest$ac_exeext'
19624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625   (eval $ac_try) 2>&5
19626   ac_status=$?
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); }; }; then
19629   ac_cv_func_alloca_works=yes
19630 else
19631   echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634 ac_cv_func_alloca_works=no
19635 fi
19636 rm -f conftest.err conftest.$ac_objext \
19637       conftest$ac_exeext conftest.$ac_ext
19638 fi
19639 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19640 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19641
19642 if test $ac_cv_func_alloca_works = yes; then
19643
19644 cat >>confdefs.h <<\_ACEOF
19645 #define HAVE_ALLOCA 1
19646 _ACEOF
19647
19648 else
19649   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19650 # that cause trouble.  Some versions do not even contain alloca or
19651 # contain a buggy version.  If you still want to use their alloca,
19652 # use ar to extract alloca.o from them instead of compiling alloca.c.
19653
19654 ALLOCA=alloca.$ac_objext
19655
19656 cat >>confdefs.h <<\_ACEOF
19657 #define C_ALLOCA 1
19658 _ACEOF
19659
19660
19661 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19662 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19663 if test "${ac_cv_os_cray+set}" = set; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 #if defined(CRAY) && ! defined(CRAY2)
19673 webecray
19674 #else
19675 wenotbecray
19676 #endif
19677
19678 _ACEOF
19679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19680   $EGREP "webecray" >/dev/null 2>&1; then
19681   ac_cv_os_cray=yes
19682 else
19683   ac_cv_os_cray=no
19684 fi
19685 rm -f conftest*
19686
19687 fi
19688 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19689 echo "${ECHO_T}$ac_cv_os_cray" >&6
19690 if test $ac_cv_os_cray = yes; then
19691   for ac_func in _getb67 GETB67 getb67; do
19692     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19693 echo "$as_me:$LINENO: checking for $ac_func" >&5
19694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19695 if eval "test \"\${$as_ac_var+set}\" = set"; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19706 #define $ac_func innocuous_$ac_func
19707
19708 /* System header to define __stub macros and hopefully few prototypes,
19709     which can conflict with char $ac_func (); below.
19710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19711     <limits.h> exists even on freestanding compilers.  */
19712
19713 #ifdef __STDC__
19714 # include <limits.h>
19715 #else
19716 # include <assert.h>
19717 #endif
19718
19719 #undef $ac_func
19720
19721 /* Override any gcc2 internal prototype to avoid an error.  */
19722 #ifdef __cplusplus
19723 extern "C"
19724 {
19725 #endif
19726 /* We use char because int might match the return type of a gcc2
19727    builtin and then its argument prototype would still apply.  */
19728 char $ac_func ();
19729 /* The GNU C library defines this for functions which it implements
19730     to always fail with ENOSYS.  Some functions are actually named
19731     something starting with __ and the normal name is an alias.  */
19732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19733 choke me
19734 #else
19735 char (*f) () = $ac_func;
19736 #endif
19737 #ifdef __cplusplus
19738 }
19739 #endif
19740
19741 int
19742 main ()
19743 {
19744 return f != $ac_func;
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext conftest$ac_exeext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19751   (eval $ac_link) 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } &&
19758          { ac_try='test -z "$ac_c_werror_flag"
19759                          || test ! -s conftest.err'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; } &&
19765          { ac_try='test -s conftest$ac_exeext'
19766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   eval "$as_ac_var=yes"
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776 eval "$as_ac_var=no"
19777 fi
19778 rm -f conftest.err conftest.$ac_objext \
19779       conftest$ac_exeext conftest.$ac_ext
19780 fi
19781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19783 if test `eval echo '${'$as_ac_var'}'` = yes; then
19784
19785 cat >>confdefs.h <<_ACEOF
19786 #define CRAY_STACKSEG_END $ac_func
19787 _ACEOF
19788
19789     break
19790 fi
19791
19792   done
19793 fi
19794
19795 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19796 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19797 if test "${ac_cv_c_stack_direction+set}" = set; then
19798   echo $ECHO_N "(cached) $ECHO_C" >&6
19799 else
19800   if test "$cross_compiling" = yes; then
19801   ac_cv_c_stack_direction=0
19802 else
19803   cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809 int
19810 find_stack_direction ()
19811 {
19812   static char *addr = 0;
19813   auto char dummy;
19814   if (addr == 0)
19815     {
19816       addr = &dummy;
19817       return find_stack_direction ();
19818     }
19819   else
19820     return (&dummy > addr) ? 1 : -1;
19821 }
19822
19823 int
19824 main ()
19825 {
19826   exit (find_stack_direction () < 0);
19827 }
19828 _ACEOF
19829 rm -f conftest$ac_exeext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19831   (eval $ac_link) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   ac_cv_c_stack_direction=1
19841 else
19842   echo "$as_me: program exited with status $ac_status" >&5
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 ( exit $ac_status )
19847 ac_cv_c_stack_direction=-1
19848 fi
19849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19850 fi
19851 fi
19852 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19853 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19854
19855 cat >>confdefs.h <<_ACEOF
19856 #define STACK_DIRECTION $ac_cv_c_stack_direction
19857 _ACEOF
19858
19859
19860 fi
19861
19862 echo "$as_me:$LINENO: checking for working memcmp" >&5
19863 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
19864 if test "${ac_cv_func_memcmp_working+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   if test "$cross_compiling" = yes; then
19868   ac_cv_func_memcmp_working=no
19869 else
19870   cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 $ac_includes_default
19877 int
19878 main ()
19879 {
19880
19881   /* Some versions of memcmp are not 8-bit clean.  */
19882   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
19883   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19884     exit (1);
19885
19886   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19887      or more and with at least one buffer not starting on a 4-byte boundary.
19888      William Lewis provided this test program.   */
19889   {
19890     char foo[21];
19891     char bar[21];
19892     int i;
19893     for (i = 0; i < 4; i++)
19894       {
19895         char *a = foo + i;
19896         char *b = bar + i;
19897         strcpy (a, "--------01111111");
19898         strcpy (b, "--------10000000");
19899         if (memcmp (a, b, 16) >= 0)
19900           exit (1);
19901       }
19902     exit (0);
19903   }
19904
19905   ;
19906   return 0;
19907 }
19908 _ACEOF
19909 rm -f conftest$ac_exeext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911   (eval $ac_link) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916   (eval $ac_try) 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; }; then
19920   ac_cv_func_memcmp_working=yes
19921 else
19922   echo "$as_me: program exited with status $ac_status" >&5
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 ( exit $ac_status )
19927 ac_cv_func_memcmp_working=no
19928 fi
19929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19930 fi
19931 fi
19932 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
19933 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
19934 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
19935     "memcmp.$ac_objext"   | \
19936   *" memcmp.$ac_objext"   | \
19937     "memcmp.$ac_objext "* | \
19938   *" memcmp.$ac_objext "* ) ;;
19939   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
19940 esac
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950                                                                                                                                                                                               ac_config_files="$ac_config_files Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile win32/Makefile debian/Makefile vq/Makefile vorbis.pc vorbisenc.pc vorbisfile.pc"
19951 cat >confcache <<\_ACEOF
19952 # This file is a shell script that caches the results of configure
19953 # tests run on this system so they can be shared between configure
19954 # scripts and configure runs, see configure's option --config-cache.
19955 # It is not useful on other systems.  If it contains results you don't
19956 # want to keep, you may remove or edit it.
19957 #
19958 # config.status only pays attention to the cache file if you give it
19959 # the --recheck option to rerun configure.
19960 #
19961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19963 # following values.
19964
19965 _ACEOF
19966
19967 # The following way of writing the cache mishandles newlines in values,
19968 # but we know of no workaround that is simple, portable, and efficient.
19969 # So, don't put newlines in cache variables' values.
19970 # Ultrix sh set writes to stderr and can't be redirected directly,
19971 # and sets the high bit in the cache file unless we assign to the vars.
19972 {
19973   (set) 2>&1 |
19974     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19975     *ac_space=\ *)
19976       # `set' does not quote correctly, so add quotes (double-quote
19977       # substitution turns \\\\ into \\, and sed turns \\ into \).
19978       sed -n \
19979         "s/'/'\\\\''/g;
19980           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19981       ;;
19982     *)
19983       # `set' quotes correctly as required by POSIX, so do not add quotes.
19984       sed -n \
19985         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19986       ;;
19987     esac;
19988 } |
19989   sed '
19990      t clear
19991      : clear
19992      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19993      t end
19994      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19995      : end' >>confcache
19996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19997   if test -w $cache_file; then
19998     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19999     cat confcache >$cache_file
20000   else
20001     echo "not updating unwritable cache $cache_file"
20002   fi
20003 fi
20004 rm -f confcache
20005
20006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20007 # Let make expand exec_prefix.
20008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20009
20010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20012 # trailing colons and then remove the whole line if VPATH becomes empty
20013 # (actually we leave an empty line to preserve line numbers).
20014 if test "x$srcdir" = x.; then
20015   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20016 s/:*\$(srcdir):*/:/;
20017 s/:*\${srcdir}:*/:/;
20018 s/:*@srcdir@:*/:/;
20019 s/^\([^=]*=[     ]*\):*/\1/;
20020 s/:*$//;
20021 s/^[^=]*=[       ]*$//;
20022 }'
20023 fi
20024
20025 # Transform confdefs.h into DEFS.
20026 # Protect against shell expansion while executing Makefile rules.
20027 # Protect against Makefile macro expansion.
20028 #
20029 # If the first sed substitution is executed (which looks for macros that
20030 # take arguments), then we branch to the quote section.  Otherwise,
20031 # look for a macro that doesn't take arguments.
20032 cat >confdef2opt.sed <<\_ACEOF
20033 t clear
20034 : clear
20035 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
20036 t quote
20037 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
20038 t quote
20039 d
20040 : quote
20041 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
20042 s,\[,\\&,g
20043 s,\],\\&,g
20044 s,\$,$$,g
20045 p
20046 _ACEOF
20047 # We use echo to avoid assuming a particular line-breaking character.
20048 # The extra dot is to prevent the shell from consuming trailing
20049 # line-breaks from the sub-command output.  A line-break within
20050 # single-quotes doesn't work because, if this script is created in a
20051 # platform that uses two characters for line-breaks (e.g., DOS), tr
20052 # would break.
20053 ac_LF_and_DOT=`echo; echo .`
20054 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20055 rm -f confdef2opt.sed
20056
20057
20058 ac_libobjs=
20059 ac_ltlibobjs=
20060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20061   # 1. Remove the extension, and $U if already installed.
20062   ac_i=`echo "$ac_i" |
20063          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20064   # 2. Add them.
20065   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20066   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20067 done
20068 LIBOBJS=$ac_libobjs
20069
20070 LTLIBOBJS=$ac_ltlibobjs
20071
20072
20073
20074 : ${CONFIG_STATUS=./config.status}
20075 ac_clean_files_save=$ac_clean_files
20076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20077 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20078 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20079 cat >$CONFIG_STATUS <<_ACEOF
20080 #! $SHELL
20081 # Generated by $as_me.
20082 # Run this file to recreate the current configuration.
20083 # Compiler output produced by configure, useful for debugging
20084 # configure, is in config.log if it exists.
20085
20086 debug=false
20087 ac_cs_recheck=false
20088 ac_cs_silent=false
20089 SHELL=\${CONFIG_SHELL-$SHELL}
20090 _ACEOF
20091
20092 cat >>$CONFIG_STATUS <<\_ACEOF
20093 ## --------------------- ##
20094 ## M4sh Initialization.  ##
20095 ## --------------------- ##
20096
20097 # Be Bourne compatible
20098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20099   emulate sh
20100   NULLCMD=:
20101   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20102   # is contrary to our usage.  Disable this feature.
20103   alias -g '${1+"$@"}'='"$@"'
20104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20105   set -o posix
20106 fi
20107 DUALCASE=1; export DUALCASE # for MKS sh
20108
20109 # Support unset when possible.
20110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20111   as_unset=unset
20112 else
20113   as_unset=false
20114 fi
20115
20116
20117 # Work around bugs in pre-3.0 UWIN ksh.
20118 $as_unset ENV MAIL MAILPATH
20119 PS1='$ '
20120 PS2='> '
20121 PS4='+ '
20122
20123 # NLS nuisances.
20124 for as_var in \
20125   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20126   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20127   LC_TELEPHONE LC_TIME
20128 do
20129   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20130     eval $as_var=C; export $as_var
20131   else
20132     $as_unset $as_var
20133   fi
20134 done
20135
20136 # Required to use basename.
20137 if expr a : '\(a\)' >/dev/null 2>&1; then
20138   as_expr=expr
20139 else
20140   as_expr=false
20141 fi
20142
20143 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20144   as_basename=basename
20145 else
20146   as_basename=false
20147 fi
20148
20149
20150 # Name of the executable.
20151 as_me=`$as_basename "$0" ||
20152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20153          X"$0" : 'X\(//\)$' \| \
20154          X"$0" : 'X\(/\)$' \| \
20155          .     : '\(.\)' 2>/dev/null ||
20156 echo X/"$0" |
20157     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20158           /^X\/\(\/\/\)$/{ s//\1/; q; }
20159           /^X\/\(\/\).*/{ s//\1/; q; }
20160           s/.*/./; q'`
20161
20162
20163 # PATH needs CR, and LINENO needs CR and PATH.
20164 # Avoid depending upon Character Ranges.
20165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20168 as_cr_digits='0123456789'
20169 as_cr_alnum=$as_cr_Letters$as_cr_digits
20170
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20173   echo "#! /bin/sh" >conf$$.sh
20174   echo  "exit 0"   >>conf$$.sh
20175   chmod +x conf$$.sh
20176   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20177     PATH_SEPARATOR=';'
20178   else
20179     PATH_SEPARATOR=:
20180   fi
20181   rm -f conf$$.sh
20182 fi
20183
20184
20185   as_lineno_1=$LINENO
20186   as_lineno_2=$LINENO
20187   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20188   test "x$as_lineno_1" != "x$as_lineno_2" &&
20189   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20190   # Find who we are.  Look in the path if we contain no path at all
20191   # relative or not.
20192   case $0 in
20193     *[\\/]* ) as_myself=$0 ;;
20194     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195 for as_dir in $PATH
20196 do
20197   IFS=$as_save_IFS
20198   test -z "$as_dir" && as_dir=.
20199   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20200 done
20201
20202        ;;
20203   esac
20204   # We did not find ourselves, most probably we were run as `sh COMMAND'
20205   # in which case we are not to be found in the path.
20206   if test "x$as_myself" = x; then
20207     as_myself=$0
20208   fi
20209   if test ! -f "$as_myself"; then
20210     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20211 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20212    { (exit 1); exit 1; }; }
20213   fi
20214   case $CONFIG_SHELL in
20215   '')
20216     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20218 do
20219   IFS=$as_save_IFS
20220   test -z "$as_dir" && as_dir=.
20221   for as_base in sh bash ksh sh5; do
20222          case $as_dir in
20223          /*)
20224            if ("$as_dir/$as_base" -c '
20225   as_lineno_1=$LINENO
20226   as_lineno_2=$LINENO
20227   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20228   test "x$as_lineno_1" != "x$as_lineno_2" &&
20229   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20230              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20231              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20232              CONFIG_SHELL=$as_dir/$as_base
20233              export CONFIG_SHELL
20234              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20235            fi;;
20236          esac
20237        done
20238 done
20239 ;;
20240   esac
20241
20242   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20243   # uniformly replaced by the line number.  The first 'sed' inserts a
20244   # line-number line before each line; the second 'sed' does the real
20245   # work.  The second script uses 'N' to pair each line-number line
20246   # with the numbered line, and appends trailing '-' during
20247   # substitution so that $LINENO is not a special case at line end.
20248   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20249   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20250   sed '=' <$as_myself |
20251     sed '
20252       N
20253       s,$,-,
20254       : loop
20255       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20256       t loop
20257       s,-$,,
20258       s,^['$as_cr_digits']*\n,,
20259     ' >$as_me.lineno &&
20260   chmod +x $as_me.lineno ||
20261     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20262 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20263    { (exit 1); exit 1; }; }
20264
20265   # Don't try to exec as it changes $[0], causing all sort of problems
20266   # (the dirname of $[0] is not the place where we might find the
20267   # original and so on.  Autoconf is especially sensible to this).
20268   . ./$as_me.lineno
20269   # Exit status is that of the last command.
20270   exit
20271 }
20272
20273
20274 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20275   *c*,-n*) ECHO_N= ECHO_C='
20276 ' ECHO_T='      ' ;;
20277   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20278   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20279 esac
20280
20281 if expr a : '\(a\)' >/dev/null 2>&1; then
20282   as_expr=expr
20283 else
20284   as_expr=false
20285 fi
20286
20287 rm -f conf$$ conf$$.exe conf$$.file
20288 echo >conf$$.file
20289 if ln -s conf$$.file conf$$ 2>/dev/null; then
20290   # We could just check for DJGPP; but this test a) works b) is more generic
20291   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20292   if test -f conf$$.exe; then
20293     # Don't use ln at all; we don't have any links
20294     as_ln_s='cp -p'
20295   else
20296     as_ln_s='ln -s'
20297   fi
20298 elif ln conf$$.file conf$$ 2>/dev/null; then
20299   as_ln_s=ln
20300 else
20301   as_ln_s='cp -p'
20302 fi
20303 rm -f conf$$ conf$$.exe conf$$.file
20304
20305 if mkdir -p . 2>/dev/null; then
20306   as_mkdir_p=:
20307 else
20308   test -d ./-p && rmdir ./-p
20309   as_mkdir_p=false
20310 fi
20311
20312 as_executable_p="test -f"
20313
20314 # Sed expression to map a string onto a valid CPP name.
20315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20316
20317 # Sed expression to map a string onto a valid variable name.
20318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20319
20320
20321 # IFS
20322 # We need space, tab and new line, in precisely that order.
20323 as_nl='
20324 '
20325 IFS="   $as_nl"
20326
20327 # CDPATH.
20328 $as_unset CDPATH
20329
20330 exec 6>&1
20331
20332 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20333 # report actual input values of CONFIG_FILES etc. instead of their
20334 # values after options handling.  Logging --version etc. is OK.
20335 exec 5>>config.log
20336 {
20337   echo
20338   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20339 ## Running $as_me. ##
20340 _ASBOX
20341 } >&5
20342 cat >&5 <<_CSEOF
20343
20344 This file was extended by $as_me, which was
20345 generated by GNU Autoconf 2.58.  Invocation command line was
20346
20347   CONFIG_FILES    = $CONFIG_FILES
20348   CONFIG_HEADERS  = $CONFIG_HEADERS
20349   CONFIG_LINKS    = $CONFIG_LINKS
20350   CONFIG_COMMANDS = $CONFIG_COMMANDS
20351   $ $0 $@
20352
20353 _CSEOF
20354 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20355 echo >&5
20356 _ACEOF
20357
20358 # Files that config.status was made for.
20359 if test -n "$ac_config_files"; then
20360   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20361 fi
20362
20363 if test -n "$ac_config_headers"; then
20364   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20365 fi
20366
20367 if test -n "$ac_config_links"; then
20368   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20369 fi
20370
20371 if test -n "$ac_config_commands"; then
20372   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20373 fi
20374
20375 cat >>$CONFIG_STATUS <<\_ACEOF
20376
20377 ac_cs_usage="\
20378 \`$as_me' instantiates files from templates according to the
20379 current configuration.
20380
20381 Usage: $0 [OPTIONS] [FILE]...
20382
20383   -h, --help       print this help, then exit
20384   -V, --version    print version number, then exit
20385   -q, --quiet      do not print progress messages
20386   -d, --debug      don't remove temporary files
20387       --recheck    update $as_me by reconfiguring in the same conditions
20388   --file=FILE[:TEMPLATE]
20389                    instantiate the configuration file FILE
20390
20391 Configuration files:
20392 $config_files
20393
20394 Report bugs to <bug-autoconf@gnu.org>."
20395 _ACEOF
20396
20397 cat >>$CONFIG_STATUS <<_ACEOF
20398 ac_cs_version="\\
20399 config.status
20400 configured by $0, generated by GNU Autoconf 2.58,
20401   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20402
20403 Copyright (C) 2003 Free Software Foundation, Inc.
20404 This config.status script is free software; the Free Software Foundation
20405 gives unlimited permission to copy, distribute and modify it."
20406 srcdir=$srcdir
20407 INSTALL="$INSTALL"
20408 _ACEOF
20409
20410 cat >>$CONFIG_STATUS <<\_ACEOF
20411 # If no file are specified by the user, then we need to provide default
20412 # value.  By we need to know if files were specified by the user.
20413 ac_need_defaults=:
20414 while test $# != 0
20415 do
20416   case $1 in
20417   --*=*)
20418     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20419     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20420     ac_shift=:
20421     ;;
20422   -*)
20423     ac_option=$1
20424     ac_optarg=$2
20425     ac_shift=shift
20426     ;;
20427   *) # This is not an option, so the user has probably given explicit
20428      # arguments.
20429      ac_option=$1
20430      ac_need_defaults=false;;
20431   esac
20432
20433   case $ac_option in
20434   # Handling of the options.
20435 _ACEOF
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20438     ac_cs_recheck=: ;;
20439   --version | --vers* | -V )
20440     echo "$ac_cs_version"; exit 0 ;;
20441   --he | --h)
20442     # Conflict between --help and --header
20443     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20444 Try \`$0 --help' for more information." >&5
20445 echo "$as_me: error: ambiguous option: $1
20446 Try \`$0 --help' for more information." >&2;}
20447    { (exit 1); exit 1; }; };;
20448   --help | --hel | -h )
20449     echo "$ac_cs_usage"; exit 0 ;;
20450   --debug | --d* | -d )
20451     debug=: ;;
20452   --file | --fil | --fi | --f )
20453     $ac_shift
20454     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20455     ac_need_defaults=false;;
20456   --header | --heade | --head | --hea )
20457     $ac_shift
20458     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20459     ac_need_defaults=false;;
20460   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20461   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20462     ac_cs_silent=: ;;
20463
20464   # This is an error.
20465   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20466 Try \`$0 --help' for more information." >&5
20467 echo "$as_me: error: unrecognized option: $1
20468 Try \`$0 --help' for more information." >&2;}
20469    { (exit 1); exit 1; }; } ;;
20470
20471   *) ac_config_targets="$ac_config_targets $1" ;;
20472
20473   esac
20474   shift
20475 done
20476
20477 ac_configure_extra_args=
20478
20479 if $ac_cs_silent; then
20480   exec 6>/dev/null
20481   ac_configure_extra_args="$ac_configure_extra_args --silent"
20482 fi
20483
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<_ACEOF
20486 if \$ac_cs_recheck; then
20487   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20488   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20489 fi
20490
20491 _ACEOF
20492
20493
20494
20495
20496
20497 cat >>$CONFIG_STATUS <<\_ACEOF
20498 for ac_config_target in $ac_config_targets
20499 do
20500   case "$ac_config_target" in
20501   # Handling of arguments.
20502   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20503   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20504   "lib/modes/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
20505   "lib/books/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
20506   "lib/books/coupled/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
20507   "lib/books/uncoupled/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
20508   "lib/books/floor/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
20509   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20510   "doc/vorbisfile/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
20511   "doc/vorbisenc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
20512   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20513   "include/vorbis/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
20514   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20515   "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20516   "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
20517   "vq/Makefile" ) CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
20518   "vorbis.pc" ) CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
20519   "vorbisenc.pc" ) CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
20520   "vorbisfile.pc" ) CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
20521   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20522 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20523    { (exit 1); exit 1; }; };;
20524   esac
20525 done
20526
20527 # If the user did not use the arguments to specify the items to instantiate,
20528 # then the envvar interface is used.  Set only those that are not.
20529 # We use the long form for the default assignment because of an extremely
20530 # bizarre bug on SunOS 4.1.3.
20531 if $ac_need_defaults; then
20532   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20533 fi
20534
20535 # Have a temporary directory for convenience.  Make it in the build tree
20536 # simply because there is no reason to put it here, and in addition,
20537 # creating and moving files from /tmp can sometimes cause problems.
20538 # Create a temporary directory, and hook for its removal unless debugging.
20539 $debug ||
20540 {
20541   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20542   trap '{ (exit 1); exit 1; }' 1 2 13 15
20543 }
20544
20545 # Create a (secure) tmp directory for tmp files.
20546
20547 {
20548   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20549   test -n "$tmp" && test -d "$tmp"
20550 }  ||
20551 {
20552   tmp=./confstat$$-$RANDOM
20553   (umask 077 && mkdir $tmp)
20554 } ||
20555 {
20556    echo "$me: cannot create a temporary directory in ." >&2
20557    { (exit 1); exit 1; }
20558 }
20559
20560 _ACEOF
20561
20562 cat >>$CONFIG_STATUS <<_ACEOF
20563
20564 #
20565 # CONFIG_FILES section.
20566 #
20567
20568 # No need to generate the scripts if there are no CONFIG_FILES.
20569 # This happens for instance when ./config.status config.h
20570 if test -n "\$CONFIG_FILES"; then
20571   # Protect against being on the right side of a sed subst in config.status.
20572   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20573    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20574 s,@SHELL@,$SHELL,;t t
20575 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20576 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20577 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20578 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20579 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20580 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20581 s,@exec_prefix@,$exec_prefix,;t t
20582 s,@prefix@,$prefix,;t t
20583 s,@program_transform_name@,$program_transform_name,;t t
20584 s,@bindir@,$bindir,;t t
20585 s,@sbindir@,$sbindir,;t t
20586 s,@libexecdir@,$libexecdir,;t t
20587 s,@datadir@,$datadir,;t t
20588 s,@sysconfdir@,$sysconfdir,;t t
20589 s,@sharedstatedir@,$sharedstatedir,;t t
20590 s,@localstatedir@,$localstatedir,;t t
20591 s,@libdir@,$libdir,;t t
20592 s,@includedir@,$includedir,;t t
20593 s,@oldincludedir@,$oldincludedir,;t t
20594 s,@infodir@,$infodir,;t t
20595 s,@mandir@,$mandir,;t t
20596 s,@build_alias@,$build_alias,;t t
20597 s,@host_alias@,$host_alias,;t t
20598 s,@target_alias@,$target_alias,;t t
20599 s,@DEFS@,$DEFS,;t t
20600 s,@ECHO_C@,$ECHO_C,;t t
20601 s,@ECHO_N@,$ECHO_N,;t t
20602 s,@ECHO_T@,$ECHO_T,;t t
20603 s,@LIBS@,$LIBS,;t t
20604 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20605 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20606 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20607 s,@PACKAGE@,$PACKAGE,;t t
20608 s,@VERSION@,$VERSION,;t t
20609 s,@ACLOCAL@,$ACLOCAL,;t t
20610 s,@AUTOCONF@,$AUTOCONF,;t t
20611 s,@AUTOMAKE@,$AUTOMAKE,;t t
20612 s,@AUTOHEADER@,$AUTOHEADER,;t t
20613 s,@MAKEINFO@,$MAKEINFO,;t t
20614 s,@SET_MAKE@,$SET_MAKE,;t t
20615 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20616 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20617 s,@MAINT@,$MAINT,;t t
20618 s,@V_LIB_CURRENT@,$V_LIB_CURRENT,;t t
20619 s,@V_LIB_REVISION@,$V_LIB_REVISION,;t t
20620 s,@V_LIB_AGE@,$V_LIB_AGE,;t t
20621 s,@VF_LIB_CURRENT@,$VF_LIB_CURRENT,;t t
20622 s,@VF_LIB_REVISION@,$VF_LIB_REVISION,;t t
20623 s,@VF_LIB_AGE@,$VF_LIB_AGE,;t t
20624 s,@VE_LIB_CURRENT@,$VE_LIB_CURRENT,;t t
20625 s,@VE_LIB_REVISION@,$VE_LIB_REVISION,;t t
20626 s,@VE_LIB_AGE@,$VE_LIB_AGE,;t t
20627 s,@CC@,$CC,;t t
20628 s,@CFLAGS@,$CFLAGS,;t t
20629 s,@LDFLAGS@,$LDFLAGS,;t t
20630 s,@CPPFLAGS@,$CPPFLAGS,;t t
20631 s,@ac_ct_CC@,$ac_ct_CC,;t t
20632 s,@EXEEXT@,$EXEEXT,;t t
20633 s,@OBJEXT@,$OBJEXT,;t t
20634 s,@CPP@,$CPP,;t t
20635 s,@build@,$build,;t t
20636 s,@build_cpu@,$build_cpu,;t t
20637 s,@build_vendor@,$build_vendor,;t t
20638 s,@build_os@,$build_os,;t t
20639 s,@host@,$host,;t t
20640 s,@host_cpu@,$host_cpu,;t t
20641 s,@host_vendor@,$host_vendor,;t t
20642 s,@host_os@,$host_os,;t t
20643 s,@EGREP@,$EGREP,;t t
20644 s,@LN_S@,$LN_S,;t t
20645 s,@ECHO@,$ECHO,;t t
20646 s,@AR@,$AR,;t t
20647 s,@ac_ct_AR@,$ac_ct_AR,;t t
20648 s,@RANLIB@,$RANLIB,;t t
20649 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20650 s,@STRIP@,$STRIP,;t t
20651 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20652 s,@CXX@,$CXX,;t t
20653 s,@CXXFLAGS@,$CXXFLAGS,;t t
20654 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20655 s,@CXXCPP@,$CXXCPP,;t t
20656 s,@F77@,$F77,;t t
20657 s,@FFLAGS@,$FFLAGS,;t t
20658 s,@ac_ct_F77@,$ac_ct_F77,;t t
20659 s,@LIBTOOL@,$LIBTOOL,;t t
20660 s,@XSLTPROC@,$XSLTPROC,;t t
20661 s,@PDFXMLTEX@,$PDFXMLTEX,;t t
20662 s,@BUILD_DOCS_TRUE@,$BUILD_DOCS_TRUE,;t t
20663 s,@BUILD_DOCS_FALSE@,$BUILD_DOCS_FALSE,;t t
20664 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20665 s,@OGG_LIBS@,$OGG_LIBS,;t t
20666 s,@ALLOCA@,$ALLOCA,;t t
20667 s,@LIBOBJS@,$LIBOBJS,;t t
20668 s,@DEBUG@,$DEBUG,;t t
20669 s,@PROFILE@,$PROFILE,;t t
20670 s,@pthread_lib@,$pthread_lib,;t t
20671 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20672 CEOF
20673
20674 _ACEOF
20675
20676   cat >>$CONFIG_STATUS <<\_ACEOF
20677   # Split the substitutions into bite-sized pieces for seds with
20678   # small command number limits, like on Digital OSF/1 and HP-UX.
20679   ac_max_sed_lines=48
20680   ac_sed_frag=1 # Number of current file.
20681   ac_beg=1 # First line for current file.
20682   ac_end=$ac_max_sed_lines # Line after last line for current file.
20683   ac_more_lines=:
20684   ac_sed_cmds=
20685   while $ac_more_lines; do
20686     if test $ac_beg -gt 1; then
20687       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20688     else
20689       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20690     fi
20691     if test ! -s $tmp/subs.frag; then
20692       ac_more_lines=false
20693     else
20694       # The purpose of the label and of the branching condition is to
20695       # speed up the sed processing (if there are no `@' at all, there
20696       # is no need to browse any of the substitutions).
20697       # These are the two extra sed commands mentioned above.
20698       (echo ':t
20699   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20700       if test -z "$ac_sed_cmds"; then
20701         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20702       else
20703         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20704       fi
20705       ac_sed_frag=`expr $ac_sed_frag + 1`
20706       ac_beg=$ac_end
20707       ac_end=`expr $ac_end + $ac_max_sed_lines`
20708     fi
20709   done
20710   if test -z "$ac_sed_cmds"; then
20711     ac_sed_cmds=cat
20712   fi
20713 fi # test -n "$CONFIG_FILES"
20714
20715 _ACEOF
20716 cat >>$CONFIG_STATUS <<\_ACEOF
20717 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20718   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20719   case $ac_file in
20720   - | *:- | *:-:* ) # input from stdin
20721         cat >$tmp/stdin
20722         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20723         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20724   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20725         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20726   * )   ac_file_in=$ac_file.in ;;
20727   esac
20728
20729   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20730   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20732          X"$ac_file" : 'X\(//\)[^/]' \| \
20733          X"$ac_file" : 'X\(//\)$' \| \
20734          X"$ac_file" : 'X\(/\)' \| \
20735          .     : '\(.\)' 2>/dev/null ||
20736 echo X"$ac_file" |
20737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20738           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20739           /^X\(\/\/\)$/{ s//\1/; q; }
20740           /^X\(\/\).*/{ s//\1/; q; }
20741           s/.*/./; q'`
20742   { if $as_mkdir_p; then
20743     mkdir -p "$ac_dir"
20744   else
20745     as_dir="$ac_dir"
20746     as_dirs=
20747     while test ! -d "$as_dir"; do
20748       as_dirs="$as_dir $as_dirs"
20749       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20751          X"$as_dir" : 'X\(//\)[^/]' \| \
20752          X"$as_dir" : 'X\(//\)$' \| \
20753          X"$as_dir" : 'X\(/\)' \| \
20754          .     : '\(.\)' 2>/dev/null ||
20755 echo X"$as_dir" |
20756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20757           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20758           /^X\(\/\/\)$/{ s//\1/; q; }
20759           /^X\(\/\).*/{ s//\1/; q; }
20760           s/.*/./; q'`
20761     done
20762     test ! -n "$as_dirs" || mkdir $as_dirs
20763   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20765    { (exit 1); exit 1; }; }; }
20766
20767   ac_builddir=.
20768
20769 if test "$ac_dir" != .; then
20770   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20771   # A "../" for each directory in $ac_dir_suffix.
20772   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20773 else
20774   ac_dir_suffix= ac_top_builddir=
20775 fi
20776
20777 case $srcdir in
20778   .)  # No --srcdir option.  We are building in place.
20779     ac_srcdir=.
20780     if test -z "$ac_top_builddir"; then
20781        ac_top_srcdir=.
20782     else
20783        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20784     fi ;;
20785   [\\/]* | ?:[\\/]* )  # Absolute path.
20786     ac_srcdir=$srcdir$ac_dir_suffix;
20787     ac_top_srcdir=$srcdir ;;
20788   *) # Relative path.
20789     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20790     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20791 esac
20792
20793 # Do not use `cd foo && pwd` to compute absolute paths, because
20794 # the directories may not exist.
20795 case `pwd` in
20796 .) ac_abs_builddir="$ac_dir";;
20797 *)
20798   case "$ac_dir" in
20799   .) ac_abs_builddir=`pwd`;;
20800   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20801   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20802   esac;;
20803 esac
20804 case $ac_abs_builddir in
20805 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20806 *)
20807   case ${ac_top_builddir}. in
20808   .) ac_abs_top_builddir=$ac_abs_builddir;;
20809   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20810   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20811   esac;;
20812 esac
20813 case $ac_abs_builddir in
20814 .) ac_abs_srcdir=$ac_srcdir;;
20815 *)
20816   case $ac_srcdir in
20817   .) ac_abs_srcdir=$ac_abs_builddir;;
20818   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20819   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20820   esac;;
20821 esac
20822 case $ac_abs_builddir in
20823 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20824 *)
20825   case $ac_top_srcdir in
20826   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20827   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20828   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20829   esac;;
20830 esac
20831
20832
20833   case $INSTALL in
20834   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20835   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20836   esac
20837
20838   if test x"$ac_file" != x-; then
20839     { echo "$as_me:$LINENO: creating $ac_file" >&5
20840 echo "$as_me: creating $ac_file" >&6;}
20841     rm -f "$ac_file"
20842   fi
20843   # Let's still pretend it is `configure' which instantiates (i.e., don't
20844   # use $as_me), people would be surprised to read:
20845   #    /* config.h.  Generated by config.status.  */
20846   if test x"$ac_file" = x-; then
20847     configure_input=
20848   else
20849     configure_input="$ac_file.  "
20850   fi
20851   configure_input=$configure_input"Generated from `echo $ac_file_in |
20852                                      sed 's,.*/,,'` by configure."
20853
20854   # First look for the input files in the build tree, otherwise in the
20855   # src tree.
20856   ac_file_inputs=`IFS=:
20857     for f in $ac_file_in; do
20858       case $f in
20859       -) echo $tmp/stdin ;;
20860       [\\/$]*)
20861          # Absolute (can't be DOS-style, as IFS=:)
20862          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20863 echo "$as_me: error: cannot find input file: $f" >&2;}
20864    { (exit 1); exit 1; }; }
20865          echo "$f";;
20866       *) # Relative
20867          if test -f "$f"; then
20868            # Build tree
20869            echo "$f"
20870          elif test -f "$srcdir/$f"; then
20871            # Source tree
20872            echo "$srcdir/$f"
20873          else
20874            # /dev/null tree
20875            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20876 echo "$as_me: error: cannot find input file: $f" >&2;}
20877    { (exit 1); exit 1; }; }
20878          fi;;
20879       esac
20880     done` || { (exit 1); exit 1; }
20881 _ACEOF
20882 cat >>$CONFIG_STATUS <<_ACEOF
20883   sed "$ac_vpsub
20884 $extrasub
20885 _ACEOF
20886 cat >>$CONFIG_STATUS <<\_ACEOF
20887 :t
20888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20889 s,@configure_input@,$configure_input,;t t
20890 s,@srcdir@,$ac_srcdir,;t t
20891 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20892 s,@top_srcdir@,$ac_top_srcdir,;t t
20893 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20894 s,@builddir@,$ac_builddir,;t t
20895 s,@abs_builddir@,$ac_abs_builddir,;t t
20896 s,@top_builddir@,$ac_top_builddir,;t t
20897 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20898 s,@INSTALL@,$ac_INSTALL,;t t
20899 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20900   rm -f $tmp/stdin
20901   if test x"$ac_file" != x-; then
20902     mv $tmp/out $ac_file
20903   else
20904     cat $tmp/out
20905     rm -f $tmp/out
20906   fi
20907
20908 done
20909 _ACEOF
20910
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20912
20913 { (exit 0); exit 0; }
20914 _ACEOF
20915 chmod +x $CONFIG_STATUS
20916 ac_clean_files=$ac_clean_files_save
20917
20918
20919 # configure is writing to config.log, and then calls config.status.
20920 # config.status does its own redirection, appending to config.log.
20921 # Unfortunately, on DOS this fails, as config.log is still kept open
20922 # by configure, so config.status won't be able to write to it; its
20923 # output is simply discarded.  So we exec the FD to /dev/null,
20924 # effectively closing config.log, so it can be properly (re)opened and
20925 # appended to by config.status.  When coming back to configure, we
20926 # need to make the FD available again.
20927 if test "$no_create" != yes; then
20928   ac_cs_success=:
20929   ac_config_status_args=
20930   test "$silent" = yes &&
20931     ac_config_status_args="$ac_config_status_args --quiet"
20932   exec 5>/dev/null
20933   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20934   exec 5>>config.log
20935   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20936   # would make configure fail if this is the last instruction.
20937   $ac_cs_success || { (exit 1); exit 1; }
20938 fi
20939